about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2015-08-27Merge pull request #239 from jedisct1/nightlyManish Goregaokar-1/+3
Changes for rust-nightly after #27856
2015-08-26eta_reduction: fix false positive for unsafe fns (fixes #243)Georg Brandl-6/+16
2015-08-26added helpful links to lints that have wiki entriesllogiq-83/+150
2015-08-25Merge pull request #240 from Manishearth/shadow_scopellogiq-1/+4
correct scoping for shadow lints
2015-08-25correct scoping for shadow lintsllogiq-1/+4
2015-08-26Merge pull request #237 from birkenfeld/iter_fixManish Goregaokar-14/+37
loops: use a whitelist for the "x.iter() -> &x" lint (fixes #236)
2015-08-25Changes for rust-nightly after #27856Frank Denis-1/+3
2015-08-26Merge pull request #238 from birkenfeld/to_string_fixManish Goregaokar-3/+24
methods: suggest correct replacement for `to_string()` (fixes #232)
2015-08-25fixed false positives on structs/enum variantsllogiq-1/+8
2015-08-25Merge branch 'master' of https://github.com/Manishearth/rust-clippy into shadowllogiq-185/+26
2015-08-25shadowing detectionllogiq-0/+2
2015-08-25Merge pull request #230 from birkenfeld/eq_op_fixllogiq-185/+26
eq_op: cut back to expressions that are guaranteed side effect free
2015-08-25methods: suggest correct replacement for `to_string()` (fixes #232)Georg Brandl-3/+24
2015-08-25loops: use a whitelist for the "x.iter() -> &x" lint (fixes #236)Georg Brandl-14/+37
2015-08-25shadowing detectionllogiq-24/+43
2015-08-25all: remove unneeded deref and/or ref operationsGeorg Brandl-37/+33
2015-08-25collapsible_if: remove extraneous note outputGeorg Brandl-1/+0
This was probably a debug addition.
2015-08-25all: remove unneeded deref and/or ref operationsGeorg Brandl-37/+33
2015-08-25shadowing detectionllogiq-60/+91
2015-08-25collapsible_if: remove extraneous note outputGeorg Brandl-1/+0
This was probably a debug addition.
2015-08-25methods: people might be using to_string() to make a copy; add a hint for thatGeorg Brandl-1/+2
2015-08-25eq_op: cut back to expressions that are guaranteed side effect freeGeorg Brandl-185/+26
fixes #229
2015-08-25new lint: inherent methods that should be trait impls (fixes #218)Georg Brandl-2/+117
2015-08-24shadowing detectionllogiq-4/+239
2015-08-24Merge pull request #226 from birkenfeld/fixesllogiq-13/+19
Two small fixes/refactorings
2015-08-23ranges: remove unneeded as_str()Georg Brandl-1/+1
2015-08-23utils: extract utility method for matching trait method calls from loopsGeorg Brandl-12/+18
2015-08-23Refactored CastPass.R.Chavignat-73/+70
2015-08-23Merge branch 'master' into cast_iusize_improvementsR.Chavignat-213/+334
2015-08-22Completed the implementation of *size handling.R.Chavignat-20/+67
Added some more cases to the test, and implemented a new lint, cast_possible_wrap, triggered when casting from an unsigned type to a signed type of the same size.
2015-08-22Merge pull request #216 from birkenfeld/match_passllogiq-99/+126
new lint: using &Ref patterns instead of matching on *expr (fixes #187)
2015-08-22matches: special message for this caseGeorg Brandl-13/+14
match &e { &Pat1 => {}, &Pat2 => {}, ... } (inspired by dogfood fixes)
2015-08-22&-matches: dogfood fixes!Georg Brandl-35/+35
2015-08-22new lint: using &Ref patterns instead of matching on *expr (fixes #187)Georg Brandl-3/+28
2015-08-22matches: new module, move single_match lint thereGeorg Brandl-64/+65
2015-08-22types: check for macros in type complexity checkGeorg Brandl-0/+1
2015-08-22Fix doubleborrow of refcell in consts.rsManish Goregaokar-0/+5
2015-08-22new lint: type complexity (fixes #93)Georg Brandl-0/+127
Still very naive, but it's a start.
2015-08-22ptr_arg: fix panic when pattern type is not in tcxGeorg Brandl-14/+12
2015-08-22Casts : work in progress handling *size separatelyR.Chavignat-9/+28
2015-08-21utils: add match_type() helper functionGeorg Brandl-63/+53
which saves one level of matching when checking for type paths
2015-08-21all: put often used DefPaths into utils as constsGeorg Brandl-27/+19
Also remove the "use xxx;" blocks to ensure import paths don't change. They don't work anyway since stuff may still be re-exported at the old location, while we need the "canonical" location for the type checks. Plus, the test suite catches all these cases.
2015-08-21types: use middle::ty types instead of ast typesGeorg Brandl-48/+23
This gets rid of the match_ty_unwrap function.
2015-08-21ptr_arg improvements (fixes #214)Georg Brandl-19/+26
* do not trigger on mutable references * use "real" type from ty, not AST type
2015-08-21Merge pull request #212 from Manishearth/eq_op_constllogiq-69/+75
Eq op const
2015-08-21const folding for eq_opllogiq-2/+3
2015-08-21const folding for eq_opllogiq-68/+73
2015-08-21Added support for isize/usize in the CastPass lint pass.R.Chavignat-18/+18
Extracted the match that determines an integer types's size in a utility function and implemented support for usize/isize. Added a needed feature to the crate root. Added some tests to cover those cases, and a test I previously forgot. Silenced two errors signaled by dogfood.sh in unicode.rs.
2015-08-20Reworked the error messages for more heplfulness.R.Chavignat-12/+13
Renamed the cast_possible_overflow lint to cast_possible_truncation, and updated the error message, readme and crate root accordingly. Added some more information to the message for the cast_precision_loss lint. Updated the test case to reflect changes.
2015-08-20Refactored the CastPass lints.R.Chavignat-86/+35