about summary refs log tree commit diff
path: root/clippy_lints/src/utils/paths.rs
AgeCommit message (Collapse)AuthorLines
2020-01-30lint all guard types, not just lock functionsAreredify-3/+3
2020-01-30add lintMikhail Babenko-0/+3
2020-01-23add `option_as_ref_deref` lintAreredify-0/+8
2020-01-12Add lint logic.xiongmao86-0/+1
2019-12-31Rustup to rust-lang/rust#67707Yuki Okushi-1/+1
2019-12-04Rustup to rust-lang/rust#66878Matthias Krüger-1/+1
2019-11-07Add lint for exitHeinz N. Gies-0/+1
2019-10-24Fix lint_without_lint_pass lintflip1995-1/+0
2019-09-20new lint: mem-replace-with-uninitAndre Bogus-0/+2
2019-09-03lint against `MaybeUninit::uninit().assume_init()`Andre Bogus-0/+2
2019-08-23Re-factor useless_format lintLzu Tao-2/+3
2019-08-21Fix `temporary_cstring_as_ptr` false negativeMichael Wright-1/+1
Fixes #4375. Changes the check to test when `.unwrap().as_ptr()` is called on any `Result<CString, _>` as suggested by @flip1995 (https://github.com/rust-lang/rust-clippy/issues/4375#issuecomment-520724123).
2019-08-11Handle calls with 'std::convert::identity'Jeremy Stucki-0/+1
2019-08-11deprecate invalid_ref lintRalf Jung-4/+0
2019-06-23PR commentsJoe Frikker-0/+1
2019-06-08Add OUTER_EXPN_INFO lintMichael Wright-0/+1
2019-05-18DogfoodOliver Scherer-2/+2
2019-05-17Prevent symbocalypseOliver Scherer-120/+112
2019-05-14Rustfmt all the thingsOliver Scherer-111/+113
2019-05-14Use symbols instead of stringsOliver Scherer-108/+118
2019-02-20Fixed formatting and typobzzzz-1/+1
2019-02-20Make needless_range_loop not applicable to structures without iter methodbzzzz-0/+2
2019-02-17Add a lint to warn on `T: Drop` boundsMichael Howell-0/+1
**What it does:** Checks for generics with `std::ops::Drop` as bounds. **Why is this bad?** `Drop` bounds do not really accomplish anything. A type may have compiler-generated drop glue without implementing the `Drop` trait itself. The `Drop` trait also only has one method, `Drop::drop`, and that function is by fiat not callable in user code. So there is really no use case for using `Drop` in trait bounds. **Known problems:** None. **Example:** ```rust fn foo<T: Drop>() {} ```
2019-01-28Update more changed iterator pathsOliver Scherer-1/+1
2019-01-28Update changed iterator pathsOliver Scherer-1/+1
2019-01-19Catch up with `format_args` changeShotaro Yamada-0/+1
Catches up with a change in rust-lang/rust#57537 Happened to fix a bug in `expect_fun_call`, that is the lint ignores more than one arguments to `format`.
2019-01-08Remove all copyright license headersPhilipp Hansch-9/+0
Discussion previously happened in https://github.com/rust-lang/rust/pull/43498
2019-01-05Revert "Auto merge of #3603 - xfix:random-state-lint, r=phansch"Matthias Krüger-1/+0
This reverts commit 0a6593cd1b12c06d4ff2f2ad0ccf20e77f1ec5f6, reversing changes made to 5277a1fb6c1be42ec0c57a6f60d82fc18a962259. This hopefully fixes #3628
2018-12-30random_state lintKonrad Borowski-0/+1
2018-12-08Fix c_void false positive caused by libc refactoringPhilipp Hansch-2/+0
The path of `libc::c_void` has changes in https://github.com/rust-lang/libc/commit/5c1a6b8a6d558882927a0816d91c01b9c2a88018 The DefId path is now always platform specific like `libc::windows::c_void`. This fixes our c_void detection to only check the first and last elements.
2018-11-27Run rustfmt on clippy_lintsflip1995-1/+0
2018-10-29Rewrite registered lint collectionflip1995-1/+1
2018-10-26Add redundant_clone lintShotaro Yamada-0/+8
2018-10-24Add lint for calling `mem::discriminant` on a non-enum typeHMPerson1-0/+1
2018-10-06Add license header to Rust filesManish Goregaokar-0/+10
2018-10-05Remove unused utilsManish Goregaokar-1/+0
2018-09-19Add lint for `mem::replace(.., None)`.Jay Kickliter-0/+1
Suggest `Option::take()` as an alternative.
2018-09-19Merge pull request #3187 from flip1995/internal_fnPhilipp Hansch-0/+2
New internal lint: compiler_lint_functions
2018-09-17Fix c_void pathflip1995-1/+1
This got changed in rust-lang/rust#53910
2018-09-15Add internal lint compiler_lint_functionsflip1995-0/+2
2018-09-12Fix lint_without_lint_pass lintflip1995-2/+2
2018-08-28Make clippy_lints::{utils,consts} modules private, remove unused items.Corey Farwell-9/+0
2018-07-01RustupOliver Schneider-8/+8
2018-06-14Add default_trait_access lintDaniel Wagner-Hall-0/+1
2018-06-09Add duration_subsec lintMichael Wright-0/+1
Closes #2543
2018-06-03Reduced scope of `nonminimal_bool` so that it doesn't evaluate only ↵Bruno Kirschner-0/+2
partially orded types.
2018-05-03Rustup field -> method transition of ..=Oliver Schneider-0/+2
2018-04-24Make cast_ptr_alignment ignore c_voidDevon Hollowood-0/+2
2018-04-07New lints for write! / writeln! macros.Evan Simmons-0/+1
2018-03-30Rustup to rustc 1.26.0-nightly (ae544ee1c 2018-03-29)Manish Goregaokar-1/+1