about summary refs log tree commit diff
path: root/src/tools/clippy
AgeCommit message (Collapse)AuthorLines
2020-04-05submodules: update clippy from 326b2204 to 7907abeaMatthias Krüger-11/+18
Changes: ```` Rustup to rust-lang/rust#70634 Update clippy_lints/src/types.rs Update types.rs Update types.rs Improve docs for option_option useless Rc<Rc<T>>, Rc<Box<T>>, Rc<&T>, Box<&T> Allow let_underscore Update option_option ui test Test for ignoring let_underscore_must_use Downgrade option_option to pedantic ```` Fixes #70709
2020-04-01Update Clippyflip1995-7/+9
2020-03-30submodules: update clippy from 70b93aab to e170c849Matthias Krüger-12/+8
Changes: ```` rustup https://github.com/rust-lang/rust/pull/70536 Rustup to https://github.com/rust-lang/rust/pull/70449 readme: move "how to run single lint" instructions to "Allowing/denying lints" section. git attribute macros not allowed in submodules Deprecate REPLACE_CONSTS lint Bump itertools ```` Fixes #70554
2020-03-27submodules: update clippy from 1ff81c1b to 70b93aabMatthias Krüger-10/+10
Changes: ```` remove redundant import rustup https://github.com/rust-lang/rust/pull/68404 rustup https://github.com/rust-lang/rust/pull/69644 rustup https://github.com/rust-lang/rust/pull/70344 Move verbose_file_reads to restriction move redundant_pub_crate to nursery readme: explain how to run only a single lint on a codebase Remove dependency on `matches` crate Move useless_transmute to nursery nursery group -> style Update for PR feedback Auto merge of #5314 - ehuss:remove-git2, r=flip1995 Lint for `pub(crate)` items that are not crate visible due to the visibility of the module that contains them ```` Fixes #70456
2020-03-23submodules: update clippy from d8e6e4cf to 1ff81c1bMatthias Krüger-17/+10
Changes: ```` rustup https://github.com/rust-lang/rust/pull/69968/ Fix documentation generation for configurable lints Fix single binding in closure Improvement: Don't show function body in needless_lifetimes ````
2020-03-19Update Clippyflip1995-7/+18
2020-03-16submodules: update clippy from 8485d40a to 23549a8cMatthias Krüger-12/+8
Changes: ```` rustup https://github.com/rust-lang/rust/pull/69738 rustup https://github.com/rust-lang/rust/pull/68944 Make use of `or_patterns` feature rustup https://github.com/rust-lang/rust/pull/69589/ Rustup to rust-lang/rust#69076 Don't convert Path to lossy str Use `into_path` Use pattern matching instead of manually checking condition Fix typo Remove git2 dependency. Document that wildcard_imports doesn't warn about `use ...::prelude::*;` Change changelog formatting Update changelog_update doc to reflect the actual ordering of the changelog Update CHANGELOG.md ```` Fixes #70007
2020-03-12submodules: update clippy from 329923ed to 8485d40aMatthias Krüger-10/+10
Changes: ```` Rustup to rust-lang/rust#69674 Use visit_place Check for mutation Only fires on temporaries Extend `redundant_clone` to the case that cloned value is not consumed add CR feedback Improve documentation Use `edition:2018` flag more widely Update tests/ui/needless_doc_main.rs Move links to the end of each chapter on adding_lints Move links to the end of each chapter on CONTRIBUTING Clean-up adding_lints.md Clean-up CONTRIBUTING.md needless_doc_main: only check rust code Use `node_type_opt` over `node_type` Fix doc Fix ICE with trivial_bounds feature clippy_lints: readme: don't mention crates.io since it is no longer used to publish clippy. update rust-lang.github.io to rustc-dev-guide.rust-lang.org Improve placeholder in map_unit_fn Fix match single binding when in a let stmt Improve error messages for {option,result}_map_unit_fn Mention the setup instructions in CONTRIBUTING redundant_pattern: take binding (ref, ref mut) into account in suggestion. check_pat: delay creation of the "normal" vec until we reach the branch where is is actually needed deps: bump itertools 0.8 -> 0.9 add lint on File::read_to_string and File::read_to_end transition rustc-guide to rustc-dev-guide Rename macro_use_import -> macro_use_imports warn on macro_use attr Fix deploy script for tag deploys ```` Fixes #69957
2020-03-04submodules: update clippy from 8b7f7e66 to 329923edMatthias Krüger-7/+11
Changes: ```` Apply suggestions from code review Simplify if_chain. Move NumericLiteral to its own module. Included binary and octal cases. Resolve false positives for hex int cast. Test for unnecessary_cast of hex int literal. run-rustfix Lint `if let Some` in question_mark lint Add restrictive pat use in full binded struct Update test case answers to match cargo dev fmt Ran cargo dev fmt Rustup to rust-lang/rust#69506 Recommended changes from flip1995 Revive rls integration test use question mark operator Add regression test Use `try_eval_usize` over `eval_usize` Add path for display trait Use lang items instead of get_trait_def_id where possible Update stderr Don't lint debug formatting in debug impl Whitelist unused attribute for use items. Fix one last test issue Refactor suggested by krishna-veerareddy Fixed compile error from merging Changed test output to reflect cargo fmt Run cargo dev fmt Finished checking for cases of absolute values add test for #5238 Some bugfixing Created floating point abs lint and test, but not yet run ````
2020-03-02Update cargo, clippyEric Huss-7/+7
2020-02-24Update Clippyflip1995-10/+8
2020-02-21Update Clippyflip1995-8/+10
2020-02-19submodules: update clippy from b91ae16e to 2855b214Matthias Krüger-9/+7
Changes: ```` Rustup to rust-lang/rust#69194 Rustup to rust-lang/rust#69181 Add `LOG2_10` and `LOG10_2` to `approx_const` lint Clean up imports Use `Vec::with_capacity()` as possible needless_doctest_main: False positive for async fn Remove use of `TyKind`. Use `if_chain`. Fix ICE. Add tests and improve checks. Add `Future` detection for `missing_errors_doc`. ```` Fixes #69269
2020-02-17Update ClippyYuki Okushi-8/+8
2020-02-12Update clippyLzu Tao-7/+9
2020-02-02Update ClippyYuki Okushi-7/+7
2020-01-29Update ClippyYuki Okushi-9/+7
2020-01-26Don't use ExpnKind::descr to get the name of a bang macro.Eduard-Mihai Burtescu-7/+9
2020-01-22Update ClippyYuki Okushi-12/+8
2020-01-19submodules: update clippy from a8d90f6a to fd0428f6Matthias Krüger-8/+12
Changes: ```` Treat more strange pattern Split up `if_same_then_else` ui test Apply review comments Run `update_lints` Reduce span range Rename `ok_if_let` to `if_let_some_result` Apply review comments Add suggestion in `if_let_some_result` rustup https://github.com/rust-lang/rust/pull/67712 Allow `unused_self` lint at the function level Downgrade range_plus_one to pedantic Rustup to rust-lang/rust#68204 Add lifetimes to `LateLintPass` Fix rustc lint import paths generated by `new_lint` Add lint for default lint description Update documentation for adding new lints Generate new lints easily Split up `booleans` ui test Fix the ordering on `nonminimal_bool` ````
2020-01-16Update Clippyflip1995-9/+7
2020-01-13Update ClippyYuki Okushi-8/+8
2020-01-10Update ClippyYuki Okushi-7/+9
2020-01-07Update ClippyYuki Okushi-7/+7
2020-01-05Update ClippyYuki Okushi-9/+7
2019-12-31Update ClippyYuki Okushi-7/+9
2019-12-29Update ClippyYuki Okushi-8/+7
2019-12-21submodules: update clippy from 69f99e74 to cfb33200Matthias Krüger-5/+11
Changes: ```` rustup "Merge `ast::Mutability` and `mir::Mutability`" rustup https://github.com/rust-lang/rust/pull/67130 rustup https://github.com/rust-lang/rust/pull/67455 There are no per-file copyright headers anymore Update lints for `iterator_step_by_zero` changes Fix 'redudant' spelling in redundant_clone docs Fix documentation example for unnecessary_filter_map. Fix `expect_fun_call` false negative on references Fix `iterator_step_by_zero` description in declaration Fix `iterator_step_by_zero` definition Correct `iterator_step_by_zero` documentation Update iterator_step_by_zero Prevent `cmp_nan` when inside constants Detect comparisons with NAN constants Fix clippy build failure ````
2019-12-14update clippy to the rustc-pr-67224 branchNiko Matsakis-13/+5
Actually to commit <69f99e74ac2266dff4b5adc7c59b35236f0abef1>.
2019-12-04Update Clippyflip1995-10/+9
2019-12-02submodules: update clippy from 7b8e8293 to 7a943a9dMatthias Krüger-11/+9
Changes: ```` Normalize custom ICE test Rustup to rust-lang/rust#64736 Use assert_crate_local for a more explicit error Rustup to https://github.com/rust-lang/rust/pull/66789 account for external macro in MISSING_INLINE_IN_PUBLIC_ITEMS lint build(tests/fmt): use shared target dir chore: fix and split some ui tests on 32bit system build: set up build job for i686 targets remove needless my_lint ui test git quiet deploy: cd to out/ before adding files to git Less needless_doctest_main false positives fmt Feed the dog Use rustc_env instead of exec_env for test Make triggering this lint less likely :paperclip: Use exec_env to set backtrace level and normalize output Update custom ICE function with latest rustc Use Clippy version in ICE message Add custom ICE message that points to Clippy repo Fix master deployment Run update_lints Add projections check to EUV for escape analysis Use infer_ctxt Move use_self to nursery Use `println!` on success instead of `eprintln!` Revert "Disable chalk integration test. Output too large" Remove the old integration-tests.sh script Use rust implementation for integration tests in CI Rust implementation of integration test Don't error on clippy.toml of dependencies Fix categorizations Fix arguments on ExprUseVisitor::new euv moved from middle to typeck cmt_ -> Place build: check if RTIM is not installed make use of Result::map_or trigger string_lit_as_bytes when literal has escapes Remove negative float literal checks. Enable deny-warnings feature everywhere in CI Remove unused debugging feature implemented `as_conversions` lint fixing a typo [comparison_chain] #4827 Check `core::cmp::Ord` is implemented add a good example for the approx_const lint Add suggested good cases in docs for lifetimes lint ````
2019-11-27Update clippyManish Goregaokar-14/+11
2019-11-23Update Clippyflip1995-7/+16
2019-11-14Update ClippyYuki Okushi-7/+7
2019-11-11Update clippyManish Goregaokar-7/+7
2019-11-11Update clippyManish Goregaokar-11/+7
2019-10-28submodules: update clippy from 66df92ae to c8e3cfbdMatthias Krüger-7/+11
Changes: ```` travis: temporarily disable rustfmt ci check until #4742 is resolved rustup https://github.com/rust-lang/rust/pull/65792/ Fix ICE #4579 Add regression test for ICE #4579 Run update_lints for Unicode lint Re-add false positive check Add raw string regression test for useless_format lint Re-factor useless_format lint Update Unicode lint tests [Backported] Rustup to https://github.com/rust-lang/rust/pull/59545 ```` Fixes ##65888
2019-10-26Update Clippyflip1995-13/+7
2019-10-24Update clippyManish Goregaokar-21/+16
2019-10-22Update Clippyflip1995-15/+21
2019-10-19Update clippyManish Goregaokar-7/+12
2019-10-17Update clippyManish Goregaokar-7/+7
2019-10-15Update clippyManish Goregaokar-11/+7
2019-10-08Update ClippyMateusz Mikuła-18/+13
2019-10-01Update clippyManish Goregaokar-11/+18
2019-09-27submodules: update clippy from 68ff8b19 to edd90473Matthias Krüger-7/+9
Changes: ```` Remove clippy::author attribute from trailing_zeroes test Move author issue test to author subdir Fix author lint Rustup to rust-lang/rust#64813 Refactor `booleans` Detect assignment ops in integer_arithmetic ````
2019-09-26Update clippyManish Goregaokar-11/+7
2019-09-25Update clippyManish Goregaokar-14/+10
2019-09-22Update clippyLzu Tao-9/+15
2019-09-09Update clippyLzu Tao-8/+8