Commit Graph

16688 Commits

Author SHA1 Message Date
llogiq
e2e89bf800 extended pattern matching 2015-09-02 07:50:58 +02:00
llogiq
08fb953e1a extended pattern matching 2015-09-02 01:36:37 +02:00
Manish Goregaokar
91c3c97828 Merge pull request #274 from birkenfeld/copy_fix
methods: try to allow value self when type is Copy (fixes #273)
2015-09-02 01:24:42 +05:30
Georg Brandl
5264196538 methods: try to allow value self when type is Copy (fixes #273) 2015-09-01 21:08:49 +02:00
Manish Goregaokar
718da74c9f Merge pull request #272 from birkenfeld/conventions
new lint: self conventions for certain method names (fixes #267)
2015-09-01 22:25:19 +05:30
Georg Brandl
1007864198 new lint: self conventions for certain method names (fixes #267) 2015-09-01 18:52:48 +02:00
llogiq
77fcca00f0 Merge pull request #271 from birkenfeld/lint_groups
lib: add clippy_pedantic group with all Allow by default lints (fixes #265)
2015-09-01 18:24:33 +02:00
Georg Brandl
88dd38de87 lib: add clippy_pedantic group with all Allow by default lints (fixes #265) 2015-09-01 18:05:28 +02:00
llogiq
2abc5ab97c Merge pull request #270 from jedisct1/nightly
Yet another fix for rust-nightly
2015-09-01 14:54:21 +02:00
Frank Denis
833493cf07 FnKind::FkClosure -> FnKind::Closure 2015-09-01 14:28:23 +02:00
Manish Goregaokar
d3da9f6c81 Merge branch 'pr-260'
Conflicts:
	src/lib.rs
2015-08-31 15:06:53 +05:30
llogiq
994124521e Merge pull request #264 from birkenfeld/fix2
lifetimes lint: walk type bounds as well as types (fixes #253, again)
2015-08-31 11:32:33 +02:00
Georg Brandl
e33bef685e lifetimes lint: walk type bounds as well as types (fixes #253, again) 2015-08-31 11:26:41 +02:00
llogiq
9d49cc5167 Merge pull request #263 from birkenfeld/fix
fix for #261
2015-08-31 08:53:56 +02:00
Georg Brandl
0217fb81ee loops: fix false positives with explicit_iter_loop and references (fixes #261) 2015-08-31 08:29:40 +02:00
Georg Brandl
d499d2a9a7 loops: remove debugging print 2015-08-31 08:20:39 +02:00
llogiq
614ba3ab86 Merge pull request #255 from TimNN/precedence-negative-literal
add precedence_negative_literal lint
2015-08-30 19:32:44 +02:00
Georg Brandl
03abe275b2 new lint: unnecessary patterns (x@_ -> x) 2015-08-30 19:02:30 +02:00
Tim Neumann
ef0c933550 add precedence_negative_literal lint 2015-08-30 17:34:48 +02:00
llogiq
298728ed65 Merge pull request #258 from birkenfeld/collect-exhaust
new lint: using collect() to just exhaust an iterator
2015-08-30 15:26:35 +02:00
Georg Brandl
16df79a054 new lint: using collect() to just exhaust an iterator
Should use a for loop instead.
2015-08-30 13:10:59 +02:00
Georg Brandl
b72ef5a173 new lint: loop-match-break, which could be while-let (fixes #118) 2015-08-30 12:40:39 +02:00
llogiq
92563a9970 Merge pull request #254 from birkenfeld/lifetimes-where
lifetimes lint: take "where" clauses into account (fixes #253)
2015-08-30 12:07:57 +02:00
Georg Brandl
6461fb3308 lifetimes lint: take "where" clauses into account (fixes #253)
If a where clause is present and has lifetimes mentioned, just bail out.
2015-08-30 09:58:26 +02:00
llogiq
e340584cd8 Merge pull request #248 from Manishearth/rustup
rustup
2015-08-28 14:39:09 +02:00
llogiq
621818e606 rustup, the ExpnInfo stuff changed 2015-08-28 14:35:20 +02:00
Manish Goregaokar
2606f34bcb Merge pull request #247 from Manishearth/links
added the rest of the link help messages
2015-08-28 01:43:53 +05:30
llogiq
e0816e7959 Merge branch 'master' of https://github.com/Manishearth/rust-clippy into links 2015-08-27 15:53:07 +02:00
Manish Goregaokar
c3d4eb5bbd Merge branch 'pr-228'
Conflicts:
	README.md
	src/methods.rs
2015-08-27 15:25:56 +02:00
Manish Goregaokar
193e71be61 Merge branch 'pr-228'
Conflicts:
	README.md
	src/methods.rs
2015-08-27 11:09:40 +05:30
llogiq
ac8ab4eb8e Merge pull request #246 from Manishearth/macro
Improve macro checks
2015-08-27 05:27:53 +02:00
Manish Goregaokar
5159e034a6 appease the dogfood gods 2015-08-27 04:40:01 +05:30
Manish Goregaokar
9ebcd0bf29 More macro checks 2015-08-27 04:33:59 +05:30
Manish Goregaokar
7a1082d916 Merge pull request #239 from jedisct1/nightly
Changes for rust-nightly after #27856
2015-08-27 03:44:30 +05:30
Manish Goregaokar
b29a60226b Merge pull request #242 from Manishearth/autolink
Added automatic links to wiki for all lints.
2015-08-26 23:21:03 +05:30
llogiq
297d09906d Merge pull request #245 from birkenfeld/eta_unsafe
eta_reduction: fix false positive for unsafe fns (fixes #243)
2015-08-26 17:12:50 +02:00
Georg Brandl
bb552dc96f eta_reduction: fix false positive for unsafe fns (fixes #243) 2015-08-26 17:09:51 +02:00
llogiq
9461a480bd Added automatic links to wiki for all lints. 2015-08-26 16:04:50 +02:00
Manish Goregaokar
bb3b47de6f Merge pull request #241 from Manishearth/links
added helpful links to lints that have wiki entries
2015-08-26 19:32:03 +05:30
llogiq
6984d2bc09 added helpful links to lints that have wiki entries 2015-08-26 14:33:51 +02:00
llogiq
5e341715cd Merge pull request #240 from Manishearth/shadow_scope
correct scoping for shadow lints
2015-08-25 23:56:57 +02:00
llogiq
51a211503d correct scoping for shadow lints 2015-08-25 23:48:22 +02:00
Manish Goregaokar
c9b849bdc8 Merge pull request #237 from birkenfeld/iter_fix
loops: use a whitelist for the "x.iter() -> &x" lint (fixes #236)
2015-08-26 03:16:49 +05:30
Frank Denis
92db00863f Changes for rust-nightly after #27856 2015-08-25 23:21:38 +02:00
Manish Goregaokar
6df102cdab Merge pull request #238 from birkenfeld/to_string_fix
methods: suggest correct replacement for `to_string()` (fixes #232)
2015-08-26 02:43:19 +05:30
Manish Goregaokar
15240a361b Merge pull request #224 from Manishearth/shadow
Name Shadowing Lint
2015-08-26 02:42:22 +05:30
llogiq
9012d8f197 fixed false positives on structs/enum variants 2015-08-25 20:11:03 +02:00
llogiq
56cdd58ad2 Merge branch 'master' of https://github.com/Manishearth/rust-clippy into shadow 2015-08-25 20:09:50 +02:00
llogiq
974ceefc1e shadowing detection 2015-08-25 20:06:09 +02:00
llogiq
544c14f3ef Merge pull request #230 from birkenfeld/eq_op_fix
eq_op: cut back to expressions that are guaranteed side effect free
2015-08-25 19:32:12 +02:00