about summary refs log tree commit diff
path: root/clippy_lints/src/misc.rs
AgeCommit message (Collapse)AuthorLines
2020-01-13Rustup to rust-lang/rust#68045Yuki Okushi-1/+1
2020-01-11Rustup to rust-lang/rust#67806Yuki Okushi-3/+2
2020-01-09Rustup to rust-lang/rust#67979Yuki Okushi-1/+1
2020-01-07Normalize lint messagesYuki Okushi-6/+6
2020-01-07Rustup to rust-lang/rust#67886Yuki Okushi-3/+3
2020-01-04Rustup to https://github.com/rust-lang/rust/pull/67853Philipp Hansch-1/+1
Specifically caused by https://github.com/rust-lang/rust/pull/67786
2019-12-31Rustup to rust-lang/rust#67707Yuki Okushi-1/+1
2019-12-30Rustup to rust-lang/rust#66942Yuki Okushi-2/+2
2019-12-27Rustup to rust-lang/rust#66936Yuki Okushi-11/+11
2019-12-24rustup "Add span information to `ExprKind::Assign`"Lzu Tao-1/+3
2019-12-22Add <'_> where necessaryflip1995-1/+1
2019-12-21rustup "Merge `ast::Mutability` and `mir::Mutability`"Lzu Tao-2/+2
2019-12-17Prevent `cmp_nan` when inside constantsKrishna Veera Reddy-16/+20
`std::{f32,f64}::is_nan` isn't a const fn so prevent `cmp_nan` lint from running within constant comparisons.
2019-12-17Detect comparisons with NAN constantsKrishna Veera Reddy-17/+17
Currently `cmp_nan` lint doesn't detect comparisons with NaN's if the operands are consts variables so to fix this we evaluate the const variables first before testing for NaN.
2019-12-04Rustup to rust-lang/rust#66878Matthias Krüger-1/+2
2019-11-11MutImmutable -> Immutable, MutMutable -> Mutable, CaptureClause -> CaptureByManish Goregaokar-2/+2
2019-10-28rustup https://github.com/rust-lang/rust/pull/65792/Matthias Krüger-1/+1
2019-10-17syntax::ext -> syntax_expandManish Goregaokar-1/+1
2019-10-02Add suggestion for zero-ptr lintLzu Tao-9/+17
2019-09-27Rustup to rust-lang/rust#64813flip1995-17/+17
2019-09-26Rustup https://github.com/rust-lang/rust/pull/64513Lzu Tao-1/+1
2019-09-26Fix macro expansion in toplevel_ref_arg lintLzu Tao-15/+20
2019-09-10New `is_integer_const` to check more const intsAndre Bogus-2/+2
This mostly affects loop checks and the modulo_one lint. Tests were also updated where applicable.
2019-09-05Fix `redundant_pattern` false positiveYuki Okushi-39/+0
2019-08-28Change float_cmp Applicability to `HasPlaceholders`Philipp Hansch-1/+1
The suggestion includes an 'errors' placeholder currently, so it's not `MachineApplicable`
2019-08-22Add example to a perf lintBO41-0/+6
2019-08-19Restore en dashesKRAAI, MATTHEW [VISUS]-2/+2
2019-08-19Remove in_macro_or_desugarKRAAI, MATTHEW [VISUS]-5/+5
2019-08-16Use outer_expn_data instead of outer_expn_infoKRAAI, MATTHEW [VISUS]-3/+7
2019-08-03Doctests: Enable running doc tests for restriction lintsPhilipp Hansch-2/+3
2019-08-03Auto merge of #4327 - phansch:doctests_perf, r=flip1995bors-1/+3
Doctests: Enable running doc tests for perf lints changelog: none This should be possible to merge independently of #4325 cc #4319
2019-08-03Doctests: Enable running doc tests for perf lintsPhilipp Hansch-1/+3
This should be possible to merge independently of #4325 cc #4319
2019-08-02Doctests: Fix all complexity lint docsPhilipp Hansch-1/+1
cc #4319
2019-07-15LintJerry Hardee-4/+2
2019-07-15Fix float_cmp false positive when comparing signumJerry Hardee-0/+27
f1.signum() == f2.signum() f1.signum() != f2.signum() should not trigger a warning.
2019-07-12Rustup `macro expansion and resolution`Lzu Tao-5/+9
2019-06-18rustup https://github.com/rust-lang/rust/pull/61836/Matthias Krüger-1/+1
2019-06-17fix suggestion for floating points inequalityDaniele D'Orazio-1/+5
It should be of the form `(a - b).abs() > error` whereas it was `(a - b).abs() < error` that is instead what should be used for equality.
2019-06-02Rustup for https://github.com/rust-lang/rust/pull/61276Mateusz Mikuła-3/+4
2019-06-01Make use of new `outer_expn_info()` functionLzu Tao-2/+1
2019-05-18Dogfood and rustfmtOliver Scherer-2/+1
2019-05-17Prevent symbocalypseOliver Scherer-4/+3
2019-05-14Rustfmt all the thingsOliver Scherer-1/+2
2019-05-14Use symbols instead of stringsOliver Scherer-3/+4
2019-05-11Rename in_macro to in_macro_or_desugarManish Goregaokar-3/+3
2019-05-03Rustup to rustc 1.36.0-nightly (13fde05b1 2019-05-03)Matthias Krüger-5/+5
2019-04-19Allow allowing of toplevel_ref_arg lintPhilipp Hansch-6/+7
I'm not sure why some lints need the `HirId` to be able to recognize the lint level attributes, but this commit makes the lint level attributes work for `toplevel_ref_arg`.
2019-04-17Use lint pass macrosMatthew Kraai-26/+15
Fixes #3917.
2019-04-14Use _from_hir_id APIsManish Goregaokar-1/+1
2019-03-12Run more doc testsPhilipp Hansch-10/+18
This executes some more doc tests that were ignored before.