]> git.lizzy.rs Git - rust.git/log
rust.git
7 years agoMerge pull request #1255 from Manishearth/cov
Manish Goregaokar [Mon, 3 Oct 2016 16:45:23 +0000 (22:15 +0530)]
Merge pull request #1255 from Manishearth/cov

Improve test coverage

7 years agoMove all `*.toml` test files to `tests/aux`
mcarton [Mon, 3 Oct 2016 15:49:41 +0000 (17:49 +0200)]
Move all `*.toml` test files to `tests/aux`

7 years agoImprove the coverage script
mcarton [Mon, 3 Oct 2016 15:49:05 +0000 (17:49 +0200)]
Improve the coverage script

7 years agoMerge pull request #1256 from Manishearth/allow_map_or
Martin Carton [Mon, 3 Oct 2016 09:32:23 +0000 (11:32 +0200)]
Merge pull request #1256 from Manishearth/allow_map_or

Allow option_map_unwrap_or(_else)

7 years agoadded changelog entry
Andre Bogus [Mon, 3 Oct 2016 06:15:29 +0000 (08:15 +0200)]
added changelog entry

7 years agoAllow option_map_unwrap_or(_else)
Andre Bogus [Sun, 2 Oct 2016 19:23:26 +0000 (21:23 +0200)]
Allow option_map_unwrap_or(_else)

This fixes #1192.

7 years agoAdd a script to run `kcov`
mcarton [Sun, 2 Oct 2016 13:12:12 +0000 (15:12 +0200)]
Add a script to run `kcov`

7 years agoTest configuration file typing errors
mcarton [Sun, 2 Oct 2016 12:46:46 +0000 (14:46 +0200)]
Test configuration file typing errors

7 years agoAdd more tests for bad configuration file
mcarton [Sun, 2 Oct 2016 12:43:09 +0000 (14:43 +0200)]
Add more tests for bad configuration file

7 years agoAdd missing tests for `...` and array indexing
mcarton [Sun, 2 Oct 2016 12:42:55 +0000 (14:42 +0200)]
Add missing tests for `...` and array indexing

7 years agoFix slightly wrong comment
mcarton [Sun, 2 Oct 2016 12:30:05 +0000 (14:30 +0200)]
Fix slightly wrong comment

7 years agoRemove a useless method
mcarton [Sun, 2 Oct 2016 00:47:23 +0000 (02:47 +0200)]
Remove a useless method

7 years agoAdd a test for a `shadow` corner case
mcarton [Sun, 2 Oct 2016 00:38:26 +0000 (02:38 +0200)]
Add a test for a `shadow` corner case

7 years agoPartially hash `let` declaration in `SpanlessHash`
mcarton [Sun, 2 Oct 2016 00:17:04 +0000 (02:17 +0200)]
Partially hash `let` declaration in `SpanlessHash`

The hash never needs to be good but before it was simply doing nothing
for these.

7 years agoImprove test coverage of `hir` comparison
mcarton [Sat, 1 Oct 2016 20:27:10 +0000 (22:27 +0200)]
Improve test coverage of `hir` comparison

7 years agoSupport `ExprType` (type ascription) comparison
mcarton [Sat, 1 Oct 2016 20:26:19 +0000 (22:26 +0200)]
Support `ExprType` (type ascription) comparison

*ish

7 years agoImplement more `hir` typed node comparison
mcarton [Sat, 1 Oct 2016 20:18:17 +0000 (22:18 +0200)]
Implement more `hir` typed node comparison

7 years agoMerge pull request #1250 from elliottneilclark/explicit_into_iter
Martin Carton [Sat, 1 Oct 2016 13:01:43 +0000 (15:01 +0200)]
Merge pull request #1250 from elliottneilclark/explicit_into_iter

Add a lint to warn about un-necessary .into_iter()

7 years agoUpdate changelog
mcarton [Sat, 1 Oct 2016 12:53:31 +0000 (14:53 +0200)]
Update changelog

7 years agoMerge pull request #1251 from Manishearth/fix_diverging_sub_expr
Martin Carton [Sat, 1 Oct 2016 12:49:38 +0000 (14:49 +0200)]
Merge pull request #1251 from Manishearth/fix_diverging_sub_expr

correctly traverse match expressions for diverging_sub_expr

7 years agocorrectly traverse match expressions for diverging_sub_expr
Oliver Schneider [Sat, 1 Oct 2016 12:41:20 +0000 (14:41 +0200)]
correctly traverse match expressions for diverging_sub_expr

7 years agoRun util/update_lints.py after adding explicit_into_iter_loop
Elliott Clark [Sat, 1 Oct 2016 00:50:02 +0000 (17:50 -0700)]
Run util/update_lints.py after adding explicit_into_iter_loop

7 years agoAdd a lint to warn about un-necessary .into_iter()
Elliott Clark [Sat, 1 Oct 2016 00:01:30 +0000 (17:01 -0700)]
Add a lint to warn about un-necessary .into_iter()

This should close #1094.

7 years agochmod -x tests/compile-fail/print_with_newline.rs
mcarton [Fri, 30 Sep 2016 22:50:40 +0000 (00:50 +0200)]
chmod -x tests/compile-fail/print_with_newline.rs

7 years agoMove `set -e` of travis down
mcarton [Fri, 30 Sep 2016 22:38:01 +0000 (00:38 +0200)]
Move `set -e` of travis down

We really can continue to build when the first two commands fail.

7 years agoMerge pull request #1248 from Manishearth/rustup2
Martin Carton [Fri, 30 Sep 2016 20:13:22 +0000 (22:13 +0200)]
Merge pull request #1248 from Manishearth/rustup2

Rustup to *rustc 1.14.0-nightly (289f3a4ca 2016-09-29)* and bump to 0.0.92

7 years agoBump to 0.0.92
mcarton [Fri, 30 Sep 2016 20:06:51 +0000 (22:06 +0200)]
Bump to 0.0.92

7 years agoRustup to *rustc 1.14.0-nightly (289f3a4ca 2016-09-29)*
mcarton [Fri, 30 Sep 2016 13:33:24 +0000 (15:33 +0200)]
Rustup to *rustc 1.14.0-nightly (289f3a4ca 2016-09-29)*

7 years agoMerge pull request #1237 from Manishearth/rustup
Martin Carton [Tue, 27 Sep 2016 23:15:33 +0000 (01:15 +0200)]
Merge pull request #1237 from Manishearth/rustup

Rustup to *rustc 1.13.0-nightly (d0623cf7b 2016-09-26)* and bump to 0.0.91

7 years agoBump to 0.0.91
mcarton [Tue, 27 Sep 2016 23:10:38 +0000 (01:10 +0200)]
Bump to 0.0.91

7 years agoRustup to *rustc 1.13.0-nightly (d0623cf7b 2016-09-26)*
mcarton [Thu, 22 Sep 2016 00:51:12 +0000 (02:51 +0200)]
Rustup to *rustc 1.13.0-nightly (d0623cf7b 2016-09-26)*

7 years agoMerge pull request #1240 from Manishearth/compiletest
Martin Carton [Fri, 23 Sep 2016 17:58:43 +0000 (19:58 +0200)]
Merge pull request #1240 from Manishearth/compiletest

Remove redundant labels in tests

7 years agoRemove redundant labels in tests
mcarton [Fri, 23 Sep 2016 17:51:32 +0000 (19:51 +0200)]
Remove redundant labels in tests

7 years agoMerge pull request #1235 from Manishearth/transmute_ptr_to_ref-suggs
Manish Goregaokar [Mon, 19 Sep 2016 16:32:47 +0000 (22:02 +0530)]
Merge pull request #1235 from Manishearth/transmute_ptr_to_ref-suggs

Fix wrong suggestion in `TRANSMUTE_PTR_TO_REF` with lts

7 years agoMerge pull request #1171 from oli-obk/examples
Martin Carton [Mon, 19 Sep 2016 16:30:24 +0000 (18:30 +0200)]
Merge pull request #1171 from oli-obk/examples

also run clippy on examples, tests and benchmarks

7 years agoFix wrong suggestion in `TRANSMUTE_PTR_TO_REF` with lts
mcarton [Mon, 19 Sep 2016 15:59:12 +0000 (17:59 +0200)]
Fix wrong suggestion in `TRANSMUTE_PTR_TO_REF` with lts

7 years agoMerge remote-tracking branch 'origin/master' into examples
Oliver Schneider [Mon, 19 Sep 2016 13:38:38 +0000 (15:38 +0200)]
Merge remote-tracking branch 'origin/master' into examples

7 years agoFix markup in `SINGLE_CHAR_PATTERN` documentation
mcarton [Sun, 18 Sep 2016 16:27:08 +0000 (18:27 +0200)]
Fix markup in `SINGLE_CHAR_PATTERN` documentation

7 years agoMerge pull request #1233 from l1048576/master
Martin Carton [Sun, 18 Sep 2016 11:28:55 +0000 (13:28 +0200)]
Merge pull request #1233 from l1048576/master

Fix typo in example codes of "match" lints

7 years agoFix typo in example codes of "matches" lints
Takuma YOSHIOKA [Sun, 18 Sep 2016 11:17:25 +0000 (20:17 +0900)]
Fix typo in example codes of "matches" lints

Use `=>` for match arms (instead of wrong `->`).

7 years agoMerge pull request #1229 from Manishearth/loops
Manish Goregaokar [Fri, 16 Sep 2016 14:09:58 +0000 (19:39 +0530)]
Merge pull request #1229 from Manishearth/loops

Fix #1188

7 years agoFix FP with `WHILE_LET_ON_ITERATOR` and refutable pats
mcarton [Fri, 16 Sep 2016 13:45:44 +0000 (15:45 +0200)]
Fix FP with `WHILE_LET_ON_ITERATOR` and refutable pats

7 years agoFix typo
mcarton [Fri, 16 Sep 2016 13:45:19 +0000 (15:45 +0200)]
Fix typo

Who cares? Meh, consistency.

7 years agoMerge pull request #1227 from Manishearth/readme_improvements
Manish Goregaokar [Thu, 15 Sep 2016 16:48:52 +0000 (22:18 +0530)]
Merge pull request #1227 from Manishearth/readme_improvements

List lints at the end of the readme

7 years agoList lints at the end of the readme
Oliver Schneider [Thu, 15 Sep 2016 15:19:30 +0000 (17:19 +0200)]
List lints at the end of the readme

7 years agoMerge pull request #1224 from oli-obk/divergence
Martin Carton [Tue, 13 Sep 2016 13:58:31 +0000 (15:58 +0200)]
Merge pull request #1224 from oli-obk/divergence

lint diverging expressions that are sub-expressions of others

7 years agoalso test match statements, return, continue and break
Oliver Schneider [Tue, 13 Sep 2016 12:52:21 +0000 (14:52 +0200)]
also test match statements, return, continue and break

7 years agoalso lint diverging methods
Oliver Schneider [Tue, 13 Sep 2016 10:41:37 +0000 (12:41 +0200)]
also lint diverging methods

7 years agodon't lint expressions referencing `!` objects, just expressions creating them
Oliver Schneider [Tue, 13 Sep 2016 10:41:20 +0000 (12:41 +0200)]
don't lint expressions referencing `!` objects, just expressions creating them

7 years agoMerge pull request #1223 from oli-obk/use_your_token_to_figure_out_if_you_are_in_reality
Oliver Schneider [Tue, 13 Sep 2016 09:35:54 +0000 (11:35 +0200)]
Merge pull request #1223 from oli-obk/use_your_token_to_figure_out_if_you_are_in_reality

Let the submodule `#[allow]` in `module_inception`

7 years agoadd tests for stutter lints
Oliver Schneider [Tue, 13 Sep 2016 08:20:10 +0000 (10:20 +0200)]
add tests for stutter lints

7 years agoalso lint private modules for module_inception, as that is the main issue
Oliver Schneider [Tue, 13 Sep 2016 08:19:55 +0000 (10:19 +0200)]
also lint private modules for module_inception, as that is the main issue

7 years agolint diverging expressions that are sub-expressions of others
Oliver Schneider [Tue, 6 Sep 2016 13:15:36 +0000 (15:15 +0200)]
lint diverging expressions that are sub-expressions of others

7 years agoLet the submodule `#[allow]` in `module_inception`
Oliver Schneider [Mon, 12 Sep 2016 08:30:42 +0000 (10:30 +0200)]
Let the submodule `#[allow]` in `module_inception`

7 years agoAdd test for `#[allow(module_inception)]` on the inner module
mcarton [Fri, 9 Sep 2016 19:40:30 +0000 (21:40 +0200)]
Add test for `#[allow(module_inception)]` on the inner module

7 years agoUpdate CHANGELOG
mcarton [Sat, 10 Sep 2016 17:22:29 +0000 (19:22 +0200)]
Update CHANGELOG

7 years agoMerge pull request #1221 from Manishearth/rustup
Martin Carton [Sat, 10 Sep 2016 17:18:29 +0000 (19:18 +0200)]
Merge pull request #1221 from Manishearth/rustup

Rustup *1.13.0-nightly (f1f40f850 2016-09-09)* and bump to 0.0.90

7 years agoBump to 0.0.90
mcarton [Fri, 9 Sep 2016 18:26:11 +0000 (20:26 +0200)]
Bump to 0.0.90

7 years agoRustup to *rustc 1.13.0-nightly (f1f40f850 2016-09-09)*
mcarton [Fri, 9 Sep 2016 18:24:20 +0000 (20:24 +0200)]
Rustup to *rustc 1.13.0-nightly (f1f40f850 2016-09-09)*

7 years agoRemove EOL space
mcarton [Fri, 9 Sep 2016 18:24:00 +0000 (20:24 +0200)]
Remove EOL space

7 years agoMerge pull request #1217 from Manishearth/rustup
Martin Carton [Tue, 6 Sep 2016 17:12:28 +0000 (19:12 +0200)]
Merge pull request #1217 from Manishearth/rustup

Rustup to *rustc 1.13.0-nightly (cbe4de78e 2016-09-05)* and bump to 0.0.89

7 years agoBump to 0.0.89
mcarton [Tue, 6 Sep 2016 17:05:53 +0000 (19:05 +0200)]
Bump to 0.0.89

7 years agoRustup to *rustc 1.13.0-nightly (cbe4de78e 2016-09-05)*
mcarton [Tue, 6 Sep 2016 17:04:38 +0000 (19:04 +0200)]
Rustup to *rustc 1.13.0-nightly (cbe4de78e 2016-09-05)*

7 years agoMerge pull request #1215 from Manishearth/rustup
Martin Carton [Sun, 4 Sep 2016 15:55:46 +0000 (17:55 +0200)]
Merge pull request #1215 from Manishearth/rustup

Rustup to *rustc 1.13.0-nightly (70598e04f 2016-09-03)* and bump to 0.0.88

7 years agoBump to 0.0.88
mcarton [Sun, 4 Sep 2016 15:45:07 +0000 (17:45 +0200)]
Bump to 0.0.88

7 years agoRevert "Remove all `union` stuffs"
mcarton [Sun, 4 Sep 2016 15:39:48 +0000 (17:39 +0200)]
Revert "Remove all `union` stuffs"

This reverts commit 888c34ad70e9f4491a404c4f0cb5a6241e4a12c1.
This rustups to rustc 1.13.0-nightly (70598e04f 2016-09-03).

7 years agoMerge pull request #1210 from Manishearth/len_without_is_empty
llogiq [Fri, 2 Sep 2016 20:04:28 +0000 (22:04 +0200)]
Merge pull request #1210 from Manishearth/len_without_is_empty

Len without is empty

7 years agoRestrict `len_without_is_empty` to exported items
mcarton [Mon, 29 Aug 2016 21:06:59 +0000 (23:06 +0200)]
Restrict `len_without_is_empty` to exported items

7 years agoFix CHANGELOG misdescription of #1207
mcarton [Thu, 1 Sep 2016 13:42:57 +0000 (15:42 +0200)]
Fix CHANGELOG misdescription of #1207

7 years agoFix typo in CHANGELOG
mcarton [Thu, 1 Sep 2016 11:38:31 +0000 (13:38 +0200)]
Fix typo in CHANGELOG

7 years agoUpdate CHANGELOG
mcarton [Thu, 1 Sep 2016 11:31:03 +0000 (13:31 +0200)]
Update CHANGELOG

7 years agoAdded a lint_without_lint_pass lint.
kennytm [Thu, 1 Sep 2016 07:07:37 +0000 (15:07 +0800)]
Added a lint_without_lint_pass lint.

Four lints were missing from LintPass, making them unavailable unless the
`clippy` lint group is explicitly enabled:

* `for_loop_over_result`
* `for_loop_over_option`
* `match_overlapping_arm`
* `filter_next`

7 years agoMerge pull request #1204 from Manishearth/rustup
Martin Carton [Wed, 31 Aug 2016 16:28:41 +0000 (18:28 +0200)]
Merge pull request #1204 from Manishearth/rustup

Rustup to *rustc 1.13.0-nightly (eac41469d 2016-08-30)* and bump to 0.0.87

7 years agoBump to 0.0.87
mcarton [Wed, 31 Aug 2016 16:19:00 +0000 (18:19 +0200)]
Bump to 0.0.87

7 years agoRemove all `union` stuffs
mcarton [Tue, 30 Aug 2016 15:26:57 +0000 (17:26 +0200)]
Remove all `union` stuffs

The rustc's PR wasn't merged. Hopefully this commit can simply be reverted when it's time.

7 years agoSupport unions here and there
mcarton [Sun, 28 Aug 2016 17:43:55 +0000 (19:43 +0200)]
Support unions here and there

7 years agoRemove temporary fix now unneeded
mcarton [Sun, 28 Aug 2016 17:15:14 +0000 (19:15 +0200)]
Remove temporary fix now unneeded

7 years agoRustup to *1.13.0-nightly (eac41469d 2016-08-30)*
mcarton [Sun, 28 Aug 2016 15:54:32 +0000 (17:54 +0200)]
Rustup to *1.13.0-nightly (eac41469d 2016-08-30)*

7 years agoMerge pull request #1200 from killercup/feature/gh-pages-fixes
Martin Carton [Mon, 29 Aug 2016 12:19:08 +0000 (14:19 +0200)]
Merge pull request #1200 from killercup/feature/gh-pages-fixes

Tweak HTML version of docs with scroll to lints

7 years agoActually scroll lint panels into view
Pascal Hertleif [Sun, 28 Aug 2016 19:08:14 +0000 (21:08 +0200)]
Actually scroll lint panels into view

The trick to writing horrible hacks such as this is to recognize angular
as a technology stack that may be endearing to some as one can do easy
stuff quickly. But fundamentally, it is built on top of crazy shit.

Like: Yes, I just wrote a directive that for some reason automatically
has access to the scope of the repeated item, and fires an event each
time the last `np-repeat` item was seen (delayed by one render loop
cycle, of course). And – obviously – when defining the directive it is
in camelCase  but when using it in the template it has to by in
dash-case.

Great times.

7 years agoMerge pull request #1199 from Manishearth/shadow-builtin
llogiq [Sun, 28 Aug 2016 18:37:28 +0000 (20:37 +0200)]
Merge pull request #1199 from Manishearth/shadow-builtin

Add a `builtin_type_shadow` lint

7 years agoAdd a `builtin_type_shadow` lint
mcarton [Sat, 27 Aug 2016 23:52:01 +0000 (01:52 +0200)]
Add a `builtin_type_shadow` lint

7 years agoMerge pull request #1203 from Manishearth/octal
Martin Carton [Sun, 28 Aug 2016 16:04:03 +0000 (18:04 +0200)]
Merge pull request #1203 from Manishearth/octal

Fix FP in `ZERO_PREFIXED_LITERAL` and `0b`/`Oo`

7 years agoFix FP in `ZERO_PREFIXED_LITERAL` and `0b`/`Oo`
mcarton [Sun, 28 Aug 2016 15:59:01 +0000 (17:59 +0200)]
Fix FP in `ZERO_PREFIXED_LITERAL` and `0b`/`Oo`

7 years agoMerge pull request #1201 from Manishearth/rustup
Martin Carton [Sun, 28 Aug 2016 15:32:25 +0000 (17:32 +0200)]
Merge pull request #1201 from Manishearth/rustup

Rustup to a23064af5 2016-08-27 and bump to 0.0.86

7 years agoBump to 0.0.86
mcarton [Sun, 28 Aug 2016 15:26:45 +0000 (17:26 +0200)]
Bump to 0.0.86

7 years agoRustup to rustc 1.13.0-nightly (a23064af5 2016-08-27)
mcarton [Sun, 28 Aug 2016 15:25:41 +0000 (17:25 +0200)]
Rustup to rustc 1.13.0-nightly (a23064af5 2016-08-27)

7 years agoRemove now useless attribute `type_macros`
mcarton [Sun, 28 Aug 2016 15:24:19 +0000 (17:24 +0200)]
Remove now useless attribute `type_macros`

7 years agoTweak HTML version of docs with scroll to lints
Pascal Hertleif [Sun, 28 Aug 2016 15:04:54 +0000 (17:04 +0200)]
Tweak HTML version of docs with scroll to lints

Uses good old DOM events and wibbly-wobbly timeouts to wait for angular
to render this huge list of lints.

Fixes #1181

7 years agoMerge pull request #1191 from Manishearth/misc_refactor
Manish Goregaokar [Thu, 25 Aug 2016 04:04:05 +0000 (09:34 +0530)]
Merge pull request #1191 from Manishearth/misc_refactor

refactored misc to reduce passes

7 years agorefactored misc to reduce passes
Andre Bogus [Wed, 24 Aug 2016 19:47:46 +0000 (21:47 +0200)]
refactored misc to reduce passes

related to #1062

Before: 960MB After: 956MB

So while this reduces code size somewhat, I don't see much memory
improvement here. Still, it's probably worthwile to consider reducing
our passes at least within modules.

7 years agoFix typos
mcarton [Wed, 24 Aug 2016 12:37:09 +0000 (14:37 +0200)]
Fix typos

7 years agoMerge pull request #1189 from Manishearth/easy
llogiq [Wed, 24 Aug 2016 03:55:04 +0000 (05:55 +0200)]
Merge pull request #1189 from Manishearth/easy

Add `zero_prefixed_literal` and `missing_docs_in_private_items` lints

7 years agoTypo
mcarton [Tue, 23 Aug 2016 17:51:12 +0000 (19:51 +0200)]
Typo

TIL what `wether` means.

7 years ago./utils/update_lints.py
mcarton [Tue, 23 Aug 2016 17:45:15 +0000 (19:45 +0200)]
./utils/update_lints.py

7 years agoDeny `missing_docs_in_private_items` in some modules
mcarton [Tue, 23 Aug 2016 17:39:36 +0000 (19:39 +0200)]
Deny `missing_docs_in_private_items` in some modules

7 years ago`in_macro` check in `MISSING_DOCS_IN_PRIVATE_ITEMS`
mcarton [Tue, 23 Aug 2016 17:00:56 +0000 (19:00 +0200)]
`in_macro` check in `MISSING_DOCS_IN_PRIVATE_ITEMS`

7 years agoAdd a `MISSING_DOCS_IN_PRIVATE_ITEMS` lint
mcarton [Tue, 23 Aug 2016 16:09:37 +0000 (18:09 +0200)]
Add a `MISSING_DOCS_IN_PRIVATE_ITEMS` lint

7 years agoAdd `zero_prefixed_literal` lint
mcarton [Sat, 20 Aug 2016 16:11:15 +0000 (18:11 +0200)]
Add `zero_prefixed_literal` lint

7 years agoNew cmp_null lint (fixes #1184) (#1186)
llogiq [Mon, 22 Aug 2016 16:29:29 +0000 (18:29 +0200)]
New cmp_null lint (fixes #1184) (#1186)

* new cmp_null lint (fixes #1184)

* adressed comments (still fails)

* fixed tests, dogfood, ran update_lints