about summary refs log tree commit diff
path: root/clippy_lints/src/utils/mod.rs
AgeCommit message (Collapse)AuthorLines
2020-02-02Rustup to rust-lang/rust#68133Yuki Okushi-1/+1
2020-01-26Don't use ExpnKind::descr to get the name of a bang macro.Eduard-Mihai Burtescu-13/+13
2020-01-24don't fire empty_loop in no_std cratesMikhail Babenko-1/+11
2020-01-22Rustup to rust-lang/rust#68140Yuki Okushi-1/+1
2020-01-18Rustup to rust-lang/rust#68204Yuki Okushi-1/+1
2020-01-13Extract visitor to utilsThibsG-0/+8
2020-01-13Rustup to rust-lang/rust#68045Yuki Okushi-1/+1
2020-01-09Rustup to rust-lang/rust#67979Yuki Okushi-2/+5
2020-01-08Fix useless attribute suggestionflip1995-2/+11
2020-01-08Rustup to rust-lang/rust#67970Yuki Okushi-1/+3
2020-01-07Make utils::remove_blocks non-recursiveLzu Tao-6/+5
2020-01-07Rustup to rust-lang/rust#67886Yuki Okushi-9/+9
2020-01-04Rustup to https://github.com/rust-lang/rust/pull/67853Philipp Hansch-2/+2
Specifically caused by https://github.com/rust-lang/rust/pull/67786
2020-01-03No #[no_mangle] must_use_candidate functionsAndre Bogus-6/+9
2020-01-02Move `is_normalizable` into utilsYuki Okushi-0/+9
2019-12-31Rustup to rust-lang/rust#67707Yuki Okushi-1/+1
2019-12-30Rustup to rust-lang/rust#66942Yuki Okushi-10/+10
2019-12-27Rustup to rust-lang/rust#66936Yuki Okushi-29/+39
2019-12-23Auto merge of #4823 - Areredify:must_use_res, r=flip1995bors-1/+69
Add `let_underscore_must_use` lint changelog: closes #4812 , added a new `let_underscore_must_use` lint, moved `is_must_use_ty` to utils, added `is_must_use_fn` util function
2019-12-23a few small cleanupsLzu Tao-11/+7
2019-12-22implemented `let_underscore` lintMikhail Babenko-1/+23
actually add files update lints change to pedantic
2019-12-22move is_must_use_ty to utilsMikhail Babenko-1/+47
2019-12-22Add <'_> where necessaryflip1995-1/+1
2019-11-08dogfoodHMPerson1-2/+2
2019-11-08Rustup rust-lang/rust#66188HMPerson1-3/+3
2019-11-05chore: remove unnecessary parentheses around typeLzu Tao-1/+1
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-14new lints around `#[must_use]` fnsAndre Bogus-0/+4
`must_use_unit` lints unit-returning functions with a `#[must_use]` attribute, suggesting to remove it. `double_must_use` lints functions with a plain `#[must_use]` attribute, but which return a type which is already `#[must_use]`, so the attribute has no benefit. `must_use_candidate` is a pedantic lint that lints functions and methods that return some non-unit type that is not already `#[must_use]` and suggests to add the annotation.
2019-10-10Use match_function_call wherever possibleMatthias Seiffert-6/+1
2019-10-10Move match_function_call to utilsMatthias Seiffert-0/+24
2019-10-05Run util/dev fmtflip1995-1/+1
2019-10-05Get rid of rvalue_promotable_map method callflip1995-5/+7
2019-10-02Add suggestion for zero-ptr lintLzu Tao-1/+1
2019-09-28rustup https://github.com/rust-lang/rust/pull/64781/Matthias Krüger-1/+1
cc https://github.com/rust-lang/rust/issues/64867
2019-09-27Rustup to rust-lang/rust#64813flip1995-32/+32
2019-09-26rustup https://github.com/rust-lang/rust/pull/64515Matthias Krüger-2/+2
changelog: none
2019-09-26Rustup https://github.com/rust-lang/rust/pull/64513Lzu Tao-7/+7
2019-09-26Auto merge of #4569 - james9909:add-comparison-chain, r=oli-obkbors-0/+44
Add a new lint for comparison chains changelog: Adds a new lint: `comparison_chain`. `comparison_chain` lints all `if` conditional chains where all the conditions are binary comparisons on the same two operands and will suggest a rewrite with `match`. Closes #4531.
2019-09-25arm.pats -> arm.patManish Goregaokar-4/+4
2019-09-24Add a new lint for comparison chainsJames Wang-0/+44
2019-09-18Work around qpath_res issueMichael Wright-0/+13
2019-09-11run rustfmtMatthias Krüger-4/+6
2019-09-10New `is_integer_const` to check more const intsAndre Bogus-0/+17
This mostly affects loop checks and the modulo_one lint. Tests were also updated where applicable.
2019-09-09Use diagnostic item forAndre Bogus-0/+8
2019-09-06Auto merge of #4508 - rust-lang:reduced-symbolism, r=phanschbors-3/+2
Simplify `utils::match_def_path`, removing a FIXME changelog: none This removes the `Vec<Symbol>` allocation. We still need to call `cx.get_def_path`, but this should already have been interned, and I don't see how we can keep ergonomics of that function without allocating a `Vec`. r? @phansch
2019-09-06Simplify , removing a FIXMEAndre Bogus-3/+2
2019-09-04Refactor option handlingJeremy Stucki-4/+3
2019-09-04Auto merge of #4454 - BO41:search_is_some, r=flip1995bors-4/+6
Dereference one less on search_is_some and make it auto-fixable Fixes #4453 changelog: none
2019-09-03Try to fix .fixedBO41-1/+1