Commit Graph

1172 Commits

Author SHA1 Message Date
Oliver Schneider
5295fe4792
Bump the version 2017-05-03 14:12:37 +02:00
mcarton
668d19bda7 Bump the version 2017-05-01 13:44:59 +02:00
Oliver Schneider
09c5359b9d
Bump the version 2017-04-28 13:20:52 +02:00
Oliver Schneider
9abef6affd
Bump the version 2017-04-27 14:13:14 +02:00
Oliver Schneider
68369e5d37
Merge remote-tracking branch 'origin/master' into yati_master 2017-04-25 10:31:40 +02:00
Oliver Schneider
03f238d35b
Bump the version 2017-04-24 13:35:37 +02:00
mcarton
54affdf4d1 Bump the version 2017-04-19 19:48:25 +02:00
mcarton
c4b94f9044
Bump to 0.0.124 2017-04-16 23:51:55 +02:00
Oliver Schneider
81401ddc8c
Bump the version 2017-04-12 10:57:02 +02:00
Yati Sagade
240471f926 Needless continue: This is a complete rewrite of this lint as an early-pass lint.
The previous version had troubles computing suggestions without macro expansions
creeping in. This fixes it by using original_sp, which works on AST nodes.
2017-04-08 23:30:34 +02:00
Oliver Schneider
c657d603ba
Bump the version 2017-04-07 11:25:00 +02:00
Oliver Schneider
8ae82eb4ab
Merge remote-tracking branch 'origin/master' into 1537-drop_copy 2017-03-24 10:11:46 +01:00
Oliver Schneider
9bdd84cfdb
Bump the version 2017-03-21 08:57:19 +01:00
Andre Bogus
30e0c0fc96 fix typos 2017-03-17 21:21:32 +01:00
Oliver Schneider
49dd2dda57
Bump the version 2017-03-13 11:40:56 +01:00
Oliver Schneider
484e219b93
Bump the version 2017-03-05 10:26:01 +01:00
Oliver Schneider
dee7d76772
Bump the version 2017-03-02 12:27:32 +01:00
Oliver Schneider
e53575b871
Bump the version 2017-02-28 14:27:54 +01:00
Oliver Schneider
d53b878af6 Merge branch 'master' into 1537-drop_copy 2017-02-27 12:36:34 +01:00
Oliver Schneider
eae9f73ea3 Fix list of markdown links 2017-02-27 09:54:42 +01:00
Oliver Schneider
1369569ac7
Bump the version 2017-02-27 09:48:13 +01:00
Tristian Celestin
b8defc6cc4 Warn on calls to std::mem::drop or std::mem::forget with a Copy type 2017-02-25 23:05:37 -05:00
Oliver Schneider
19929790aa Merge pull request #1561 from Manishearth/zero_ptr
New zero_ptr lint.
2017-02-22 13:34:28 +01:00
Oliver Schneider
27aa309b3d Merge pull request #1556 from sinkuu/take_by_value
Lint needless take-by-value
2017-02-21 13:07:25 +01:00
Oliver Schneider
f07f793fa8 Merge pull request #1544 from bood/master
Add lint for unnecessary casts (cast to same type)
2017-02-21 09:16:07 +01:00
Andre Bogus
2f7babba82 New zero_ptr lint.
This fixes #1047. I did not bother to add a full suggestion,
because replacing with `std::ptr::null()` may still lead to
inference failures.
2017-02-21 04:36:59 +01:00
sinkuu
0a6bc6031a Rename lint to needless_take_by_value
And fixes false-positives for generics and `match`
2017-02-20 16:02:48 +09:00
sinkuu
d81d961ba7 Lint needless take-by-value 2017-02-19 07:59:44 +09:00
Bood Qian
97d46232b4 Merge branch 'master' of github.com:Manishearth/rust-clippy 2017-02-18 11:12:13 +08:00
sinkuu
16e53c9868 Run update_lints.py 2017-02-18 10:14:20 +09:00
Andre Bogus
505eb53d29 New never loop lint
This lint detects loops that unconditionally break or return.

Closes #257
2017-02-17 04:53:14 +01:00
Bood Qian
2f00ea3a07 Suppress lint for unsuffixed number casts 2017-02-16 22:55:41 +08:00
Bood Qian
afce85e96d Add lint for unnecessary casts (cast to same type) 2017-02-15 22:20:20 +08:00
Oliver Schneider
40ea5e8c5d run util/update_lint 2017-02-13 11:40:27 +01:00
Oliver Schneider
637a4590f6
Merge remote-tracking branch 'origin/master' 2017-02-13 11:15:12 +01:00
Bood Qian
a2d752807a Lint on Err(_) arm of a match 2017-02-11 14:57:50 +08:00
Andre Bogus
5650a599a8 New mut_from_ref lint
This fixes #1507.
2017-02-10 19:39:03 +01:00
mcarton
ebb68c8707
Update date in changelog 2017-02-08 20:56:34 +01:00
Oliver Schneider
fd1351f6e3 rustup and compile-fail -> ui test move 2017-02-07 21:05:30 +01:00
Martin Carton
4ee839857b Merge pull request #1506 from bood/master
Lint for possible missing comma in an array #1177
2017-02-07 18:56:38 +01:00
Owen Sanchez
1193f4fb68 Run update_lints.py 2017-02-04 21:54:21 -07:00
Oliver Schneider
7fbc7c0bb2 version bump 2017-02-04 13:42:13 +01:00
Bood Qian
25fd8c6ba1 Shorten lint name for possible missing comma 2017-02-04 20:05:25 +08:00
Bood Qian
33577ec3f7 Lint for possible missing comma in an array #1177 2017-02-03 19:10:30 +08:00
Oliver Schneider
82dd50d0e2 large_enum_variants lint suggests to box variants above a configurable limit 2017-01-30 13:17:56 +01:00
Oliver Schneider
d825f194fd version bump 2017-01-27 10:14:15 +01:00
mcarton
a99f8a1726 Bump to 0.0.111 2017-01-21 20:43:51 +01:00
mcarton
83373c55bd
Bump to 0.0.110 2017-01-20 19:24:27 +01:00
Oliver Schneider
0397c6ee9a
publish 2017-01-19 17:10:57 +01:00
Oliver Schneider
d944d7df9a
rustup to 2017-01-12 2017-01-13 17:04:56 +01:00
Oliver Schneider
d93b96949d
update changelog for 0.107 2017-01-11 15:22:51 +01:00
sinkuu
ce6e037ac5 Implement unused_io_amount lint 2017-01-07 22:23:33 +09:00
Theemathas Chirananthavat
4962df30d0 Update lint documentation using util/update_lints.py 2017-01-05 17:44:46 -08:00
Oliver Schneider
f145fc44f8 Merge pull request #1414 from samueltardieu/no-short-circuit-if
Add a new "short_circuit_statement" lint (fixes #1194)
2017-01-05 10:41:14 +01:00
Manish Goregaokar
9a301fd508 Bump to 0.0.106; Fix false positive in wrong_self_convention (fix #1420) 2017-01-04 18:05:04 -08:00
Manish Goregaokar
2f941131bf Bump to 1.105 2017-01-04 15:50:57 -08:00
Samuel Tardieu
82b2f5663f Add a new "short_circuit_statement" lint (fixes #1194) 2016-12-31 01:17:39 +01:00
Theemathas Chirananthavat
7034d169e5 Update lint documentation using util/update_lints.py 2016-12-28 12:06:43 -08:00
Oliver Schneider
90fc9c389f
split pub_enum_variant_names to new lint 2016-12-21 13:30:57 +01:00
Manish Goregaokar
d61c7fc747 Merge pull request #1355 from philipturnbull/deref-addrof
Lint usage of `*&` and `*&mut`
2016-12-19 03:35:45 -08:00
mcarton
4fcefe2a9e
Bump to 0.0.104 2016-12-17 01:28:05 +01:00
Oliver Schneider
4a05fbba3e
remove wrong rustc version so we don't accidentally forget to update 2016-12-06 11:33:50 +01:00
Oliver Schneider
59b0077565 WIP compiles and doesn't crash (much) but tests are failing 2016-12-01 22:31:56 +01:00
Oliver Schneider
31e482403c rustup to rustc 1.15.0-nightly (d5814b03e 2016-11-23) 2016-11-25 19:24:55 +01:00
mcarton
9a92ed4e3e
Bump to 0.0.102 2016-11-23 22:45:00 +01:00
mcarton
338690b4e9
Bump to 0.0.101 2016-11-23 21:31:59 +01:00
Phil Turnbull
a9f5b90f0f Lint usage of *& and *&mut
fixes #1316
2016-11-22 21:06:20 -05:00
Martin Carton
530083c3b9 Merge pull request #1349 from philipturnbull/extend-chars
Lint `.extend(s.chars())` (closes #792)
2016-11-22 18:21:30 +01:00
mcarton
40fcae112d
Bump to 0.0.100 2016-11-20 00:14:25 +01:00
Phil Turnbull
fa78b09fa7 Add lint for string.extend("str".chars())
fixes #792
2016-11-19 14:55:02 -05:00
mcarton
1176242b72 Rustup to rustc 1.15.0-nightly (0ed951993 2016-11-14) 2016-11-18 13:40:53 +01:00
Oliver Schneider
a260e65ead Merge pull request #1312 from devonhollowood/get-unwrap
Implement `get_unwrap` lint
2016-11-09 09:49:20 +01:00
Oliver 'ker' Schneider
e8783be6f1 version bump 2016-11-08 11:44:55 +01:00
Oliver 'ker' Schneider
ea1d432f66 publish 0.97 2016-11-03 21:23:49 +01:00
Devon Hollowood
cfc741405b Run update_lints.py 2016-10-31 23:43:19 -07:00
Oliver Schneider
053896b678 Merge pull request #1307 from Kha/partialeq_ne
Implement 'Re-implementing `PartialEq::ne`' lint
2016-10-31 09:06:14 -04:00
Sebastian Ullrich
8664d03ec6 implement 'Re-implementing PartialEq::ne' lint
closes #86
2016-10-30 15:00:59 -04:00
Oliver Schneider
20b7559558 Merge pull request #1296 from Manishearth/features
Be more helping, less helpful and bring convenience back for the dead
2016-10-30 14:33:39 -04:00
d-dorazio
d213040381 Add lint for redundant pattern matching in iflet for Result/Option 2016-10-30 15:43:46 +01:00
mcarton
409b8e7343
Revert "Revert "Automatically defines the clippy feature""
This reverts commit e4dceef7e7.
2016-10-24 16:04:00 +02:00
mcarton
ceb50872ce
Bump to 0.0.96 2016-10-22 16:00:17 +02:00
d-dorazio
62831c6e29 Suggest nth(X) instead of skip(X).next() 2016-10-14 13:38:00 +02:00
mcarton
a4035aabf3
Bump to 0.0.95 2016-10-06 17:52:41 +02:00
Martin Carton
e851bc7404 Merge pull request #1257 from KitFreddura/master
If let some lint
2016-10-04 23:00:05 +02:00
Manish Goregaokar
ec93ae10e0 Bump to 0.0.94 2016-10-04 09:17:09 +05:30
mcarton
1c035f7cf9
Bump to 0.0.93 2016-10-03 21:26:25 +02:00
Andre Bogus
76b969a5cf added changelog entry 2016-10-03 08:15:29 +02:00
Kit Freddura
ab9435a6d4 ran update 2016-10-02 13:42:11 -07:00
mcarton
2e2052a747
Update changelog 2016-10-01 14:53:31 +02:00
Elliott Clark
4a34087c77 Run util/update_lints.py after adding explicit_into_iter_loop 2016-09-30 17:50:02 -07:00
mcarton
ee5a5a256f
Bump to 0.0.92 2016-09-30 22:07:01 +02:00
mcarton
ec27062bb6
Bump to 0.0.91 2016-09-28 01:10:50 +02:00
Oliver Schneider
f469860dc2
lint diverging expressions that are sub-expressions of others 2016-09-12 14:24:11 +02:00
mcarton
cb49e4e210
Update CHANGELOG 2016-09-10 19:22:29 +02:00
mcarton
7279dc3edf
Bump to 0.0.90 2016-09-10 19:13:55 +02:00
mcarton
9263ec3616
Bump to 0.0.89 2016-09-06 19:05:53 +02:00
mcarton
e9ba9ec1a2
Bump to 0.0.88 2016-09-04 17:50:14 +02:00
mcarton
943e9b5aeb
Fix CHANGELOG misdescription of #1207 2016-09-01 15:43:54 +02:00
mcarton
9c736dc23f
Fix typo in CHANGELOG 2016-09-01 13:38:41 +02:00
mcarton
8d231b22a1
Update CHANGELOG 2016-09-01 13:31:03 +02:00
mcarton
377fec7c9a
Bump to 0.0.87 2016-08-31 18:22:36 +02:00
mcarton
d87f137254
Add a builtin_type_shadow lint 2016-08-28 19:56:18 +02:00
mcarton
e922fa80ce
Fix FP in ZERO_PREFIXED_LITERAL and 0b/Oo 2016-08-28 18:00:09 +02:00
mcarton
f3062f4199 Bump to 0.0.86 2016-08-28 17:26:45 +02:00
mcarton
36d8ca04a1
Add a MISSING_DOCS_IN_PRIVATE_ITEMS lint 2016-08-23 18:28:39 +02:00
mcarton
507b626b36 Add zero_prefixed_literal lint 2016-08-23 18:15:12 +02:00
llogiq
cf2b0c8dd6 New cmp_null lint (fixes #1184) (#1186)
* new cmp_null lint (fixes #1184)

* adressed comments (still fails)

* fixed tests, dogfood, ran update_lints
2016-08-22 18:29:29 +02:00
mcarton
0474fe27ea
Bump to 0.0.85 2016-08-19 17:41:24 +02:00
mcarton
663d8497aa
Bump to 0.0.84 2016-08-18 21:51:06 +02:00
Oliver Schneider
6daa884e4f
version bump and changelog update 2016-08-17 18:07:25 +02:00
mcarton
4ca16c8564 Add missing lints to CHANGELOG 2016-08-17 17:13:28 +02:00
Oliver Schneider
3ab6ad59c4
disallow lint attributes on use and extern crate items 2016-08-17 11:36:04 +02:00
Oliver Schneider
ac16695757 Merge pull request #1143 from birkenfeld/issue-455
Lint print!("...\n") (closes #455)
2016-08-17 11:33:32 +02:00
Manish Goregaokar
f006805c4a
Bump to 0.0.82 2016-08-17 09:20:20 +05:30
Georg Brandl
ffad9a8c8c Lint print!("...\n") (closes #455) 2016-08-16 20:52:48 +02:00
Oliver Schneider
7ee4a9a659
lint modules that have the same name as their parent module 2016-08-16 14:29:21 +02:00
Manish Goregaokar
e12f14f676
Bump to 0.0.81 2016-08-14 09:13:19 +05:30
scurest
b0a96def09 Add lint for reads and writes that depend on evaluation order 2016-08-11 06:01:40 -05:00
Georg Brandl
2f8247ada5 Lint literal suffixes not separated by underscores (see #703) 2016-08-05 18:50:23 +02:00
Georg Brandl
ab58331f22 Lint inconsistent casing in hex literals (closes #703) 2016-08-05 18:30:49 +02:00
mcarton
b901e76ffd
Bump to 0.0.80 2016-07-31 19:24:10 +02:00
Oliver Schneider
f7f9930b89
update lints 2016-07-20 17:34:58 +02:00
llogiq
a371558bdb Merge pull request #1093 from oli-obk/serde_specific_lint
lint on implementing `visit_string` without also implementing `visit_str`
2016-07-18 11:53:28 +02:00
mcarton
b2637a6f78
Fix markdown in CHANGELOG 2016-07-15 12:32:21 +02:00
Oliver Schneider
319c66a2a4
lint on implementing visit_string without also implementing visit_str 2016-07-12 17:36:11 +02:00
mcarton
62ddefc783 Bump to 0.0.79 2016-07-10 15:43:06 +02:00
mcarton
ded5b30f23
Mention the major sugg. refactoring in CHANGELOG 2016-07-06 14:39:25 +02:00
mcarton
7781f1d7c5 Add a new not_unsafe_ptr_arg_deref lint 2016-07-03 13:28:34 +05:30
mcarton
f609ac5b58 Bump to 0.0.78 2016-07-02 16:02:27 +02:00
Andre Bogus
a12e8394d7 new lint: double_neg 2016-06-30 01:00:25 +02:00
mcarton
eba449c2c0
Update CHANGELOG 2016-06-29 17:10:21 +02:00
mcarton
e4dceef7e7
Revert "Automatically defines the clippy feature"
This reverts commit d7ba66bf44.

It was causing problems with crates with:

```rust
#![cfg_attr(feature="clippy", plugin(clippy))]
```
2016-06-29 14:29:25 +02:00
Oliver Schneider
e06bc37477
lint on unnecessary and plain wrong transmutes 2016-06-28 14:08:08 +02:00
llogiq
f81d253c07 Merge pull request #995 from oli-obk/oh_the_horror
lint on `filter(x).map(y)`, `filter(x).flat_map(y)`, `filter_map(x).flat_map(y)`
2016-06-22 13:06:12 +02:00
Oliver Schneider
5ccbf3d437
unify the lints 2016-06-22 10:44:46 +02:00
Martin Carton
294aeaf4b3 Merge pull request #1012 from Manishearth/nohyg
Don't use identifier hygiene in HIR
2016-06-21 21:23:39 +02:00
mcarton
92c02bd4af
Bump to 0.0.77 2016-06-21 16:36:44 +02:00
Oliver Schneider
77e2155778
update lints 2016-06-21 13:32:34 +02:00
Oliver 'ker' Schneider
e628e4d513 allow by default 2016-06-16 18:37:56 +02:00
Devon Hollowood
74025be59d Make iter_nth work for Vecs too 2016-06-16 02:04:32 -07:00
Devon Hollowood
7764dc5ef4 Add slice_iter_nth lint 2016-06-16 01:36:11 -07:00
mcarton
17dd0da9da
Bump to 0.0.76 2016-06-10 20:08:56 +02:00
mcarton
d7ba66bf44
Automatically defines the clippy feature 2016-06-08 21:53:58 +02:00
mcarton
11ea3b8be9
Bump to 0.0.75 2016-06-08 12:23:33 +02:00
mcarton
1aab0e6729 Bump to 0.0.74 2016-06-07 12:22:36 +02:00
mcarton
a7a6c0461d
Add environment variable to deactivate wiki links 2016-06-05 22:03:02 +02:00
mcarton
8497e3bacb
Bump to 0.0.73 2016-06-05 21:47:05 +02:00
David Tolnay
35934befbb Release 0.0.72 2016-06-04 14:31:24 -07:00
mcarton
efeba8eec3 Fix CHANGELOG 2016-06-01 00:04:47 +02:00
mcarton
5c51a2452d Bump to 0.0.71
Rustup to *rustc 1.10.0-nightly (7bddce693 2016-05-27)*
2016-05-31 23:36:42 +02:00
mcarton
42879bcdcb
Add a USELESS_LET_IF_SEQ lint 2016-05-29 12:19:12 +02:00
mcarton
c1d7babc92
Bump to 0.0.70 2016-05-28 16:36:58 +02:00
mcarton
8ac545d0fe Fix documentation 2016-05-26 00:08:31 +02:00
mcarton
51d166f17a Support RegexBuilder 2016-05-25 21:36:51 +02:00
mcarton
4f11f84dee Lint binary regexes 2016-05-25 21:14:14 +02:00
Andre Bogus
9cfc42275d Split new_without_default and new_without_default_derive.
This is still very slow, because we do a trait lookup for each field.
Perhaps storing the visited types in a set to reuse types would improve
performance somewhat. Also we may want to pre-decide some known types
(e.g. `Vec<T>`, `Option<T>`).
2016-05-24 18:22:18 +02:00
mcarton
f2eea6211c
Bump to 0.0.69 2016-05-23 16:36:20 +02:00
mcarton
86a2c9440d Bump to 0.0.68 2016-05-17 23:26:44 +02:00
Oliver Schneider
1e897f1552 add a companion lint to no_effect with suggestions for partially effective statements 2016-05-13 16:43:47 +02:00
mcarton
392df9fbc7 Bump to 0.0.67 2016-05-12 21:22:44 +02:00
Oliver Schneider
c6b4b19a43
suggest a op= b over a = a op b 2016-05-11 15:32:20 +02:00
Oliver Schneider
87faaec7a3
add needless_borrow lint 2016-05-09 13:07:43 +02:00
mcarton
7566484b8a
Bump to 0.0.65 2016-05-08 01:13:14 +02:00
Andre Bogus
9a99979cc4 fix #887: New lints for integer/floating-point arithmetic 2016-04-30 04:01:47 +02:00
mcarton
ffd9f5a3ac Update changelog 2016-04-26 15:08:09 +02:00
Taylor Cramer
7961f59303 Ran update_lints and updated CHANGELOG.md to reflect addition of mem_forget 2016-04-20 13:11:55 -07:00
Taylor Cramer
ed65b259ff Added unsafe_removed_from_name to new list in CHANGELOG.md 2016-04-20 09:27:12 -07:00
Taylor Cramer
b793ad7f2f Ran update_lints script 2016-04-19 16:32:04 -07:00
llogiq
0bc067089e add neg_multiply lint (#862)
add neg_multiply lint
2016-04-17 23:33:21 +02:00
mcarton
d81481bd0d Autogenerate CHANGELOG links to lints in wiki 2016-04-14 17:56:46 +02:00
mcarton
3511297330 Update changelog 2016-04-14 17:27:57 +02:00
mcarton
a137ac92ac Add a changelog file 2016-04-11 21:40:03 +02:00