summary refs log tree commit diff
path: root/src/tools/clippy
AgeCommit message (Collapse)AuthorLines
2018-11-27submodules: update clippy from 754b4c07 to b2601bebMatthias Krüger-14/+14
Changes: ```` Fix NAIVE_BYTECOUNT applicability Fix dogfood error Change Applicability of MISTYPED_LITERAL_SUFFIX Add applicability level to (nearly) every span_lint_and_sugg function Update stderr file Fix bugs and improve documentation Add Applicability::Unspecified to span_lint_and_sugg functions Introduce snippet_with_applicability and hir_with_applicability functions readme: tell how to install clippy on travis from git if it is not shipped with a nightly. constants: add u128 i128 builtin types and fix outdated url Update lints Lint only the first statment/expression after alloc Fix some warnings related to Self Rename some symbols Split lint into slow and unsafe vector initalization Add unsafe set_len initialization Add slow zero-filled vector initialization lint Travis: Remove `sudo: false` Downgrade needless_pass_by_value to allow by default ````
2018-11-23submodules: update clippy from 2f6881c6 to 754b4c07Matthias Krüger-14/+14
Changes: ```` rustup https://github.com/rust-lang/rust/pull/54071/ dependencies: update pulldown-cmark from 0.1 to 0.2 s/file_map/source_map ````
2018-11-22submodules: update clippy from f5d868c9 to 2f6881c6Matthias Krüger-11/+18
```` missed another one in the README run "util/dev update_lints" rust-lang-nursery/rust-clippy => rust-lang/rust-clippy Address 'clippy::single-match' dogfood lint Fix nit Address travis CI lint failure Update trivially_copy_pass_by_ref with Trait stderr output issue#3318 run trivially_copy_pass_by_ref for traits Update trivially_copy_pass_by_ref with Trait examples Fix awkward wording Document how to lint local Clippy changes with locally built Clippy Enable rustup clippy to refer to the correct documentation rustup https://github.com/rust-lang/rust/pull/52591 remove unused allow() attributes, NFC Add regression test Don't emit suggestion when inside of a macro ````
2018-11-15submodules: update clippy from d8b42690 to f5d868c9Matthias Krüger-7/+7
Fixes clippy toolstate. Changes: ```` rustup https://github.com/rust-lang/rust/pull/55852/ Fix "too" -> "foo" typo in format.rs Fix `use_self` violation Fix wrong suggestion for `redundant_closure_call` Check for common metadata Fix `use_self` false positive on `use` statements Fix `use_self` false positive Remove `+` from `has_unary_equivalent` Fix dogfood Update println! formatting Fix false positive in check mode caused by `gen_deprecated` RIIR update lints: Add check mode (update_lints.py rewrite complete) changed into_iter to iter and fixed a lint check Fix `collapsible_if` error Fix `possible_missing_comma` false positives format code fix comment spacing change single char str to char add lint to lintarray macro Revert "small fix" small fix added float support for mistyped literal lints tmp progress ````
2018-11-04submodules: update clippy from 71ec4ff6 to d8b42690Matthias Krüger-18/+11
Fixes clippy toolstate. Changes: ```` rustup https://github.com/rust-lang/rust/pull/55665 (pass contexts by reference) Fix typo Improve clippy_dev help text RIIR update lints: Generate lint group registrations Test clippy_dev on CI and fix test RIIR update lints: Generate modules section ````
2018-11-03submodules: update clippy from a20599ab to 71ec4ff6Matthias Krüger-14/+14
Should fix clippy toolstat. Changes: ```` rustup https://github.com/rust-lang/rust/pull/55330/ Update stderr Rename test files Also lint cfg_attr(.., rustfmt::skip) Add tests from rustfmt::skip test file Run update_lints.py script Add test for non-crate-level inner attributes Differ between inner and outer attributes Add tests Add cfg_attr(rustfmt) lint Addressed comments. Fix dogfood error. Added lints `into_iter_on_ref` and `into_iter_on_array`. Fix #1565. Allow single_match_else Update stderr Add copyright statement© Fix typos Fix dogfood error Fix typo and indentation run update_lints script Add tests for unknwon_clippy_lints lint Add new lint: unknwon_clippy_lintsg clippy: fix pedantic warnings and run clippy::pedantic lints on the codebase. Fix a false-positive of needless_borrow UI test cleanup: Extract match_overlapping_arm tests UI test cleanup: Extract expect_fun_call tests Add missing code of conduct file Use slice patterns instead of padding Fix dogfood and pedantic lints ci: when installing rust-toolchain-installer-master, install it in debug mode to save some time in ci. RIIR update lints: Generate deprecated lints Replace big if/else expression with match ````
2018-11-01Update clippyManish Goregaokar-14/+14
2018-10-30Update clippyManish Goregaokar-14/+14
2018-10-21submodules: update clippy from 5afdf8b7 to b1d03437Matthias Krüger-14/+14
Changes: ```` new_ret_no_self: add sample from #3313 to Known Problems section. Support multiline comments and hopefully fix panic Check for comments in collapsible ifs Resolve ICE in needless range loop lint RIIR update_lints: Update changelog links Rename if_let_redundant_pattern_matching to redundant_pattern_matching Add lint for redundant pattern matching for explicit return boolean Fix issue #3322: reword help message for len_zero Simplify manual_memcpy suggestion in some cases Fix dogfood Update known problems for unnecessary_fold RIIR update_lints: Replace lint count in README.md Rename `active_lints` to `usable_lints` Add comment on WalkDir vs. fs::read_dir sort_by -> sort_by_key Some more documentation for clippy_dev Use `WalkDir` to also gather from subdirectories Avoid linting `boxed_local` on trait implementations. Website: Make lint categories linkable Restore clippy_dummy's placeholder name Swap order of methods in `needless_range_loop` suggestion in some cases Revert "Exclude pattern guards from unnecessary_fold lint" Exclude pattern guards from unnecessary_fold lint ````
2018-10-15submodules: update clippy from 9d337313 to 5afdf8b7Matthias Krüger-5/+19
Changes: ```` fix for rustc master mem_forget: fix syntax error in code sample explicit_counter_loop fix #3308 false positive new_ret_no_self test remove tool lints cfg flag Added new_ret_no_self exception to clippy to pass dogfood tests Removed new_ret_no_self tests from method.rs new_ret_no_self correctly lint impl return Removed unused variables new_ret_no_self fix false positive for impl trait return with associated type self new_ret_no_self corrected panic and added test stderr new_ret_no_self added positive test cases Fix some more `stutter` warnings unused unit lint Install Windows SDK 10.0 on travis cmp_owned refactor cmp_owned correct error message if rhs is deref Add a comment reminding to update README if the default changes Specify which categories are enabled by default Only run markdown linter on linux Move Travis Windows build to allowed failures Add Travis windows build Fix `doc_markdown` lints Fix `stutter` lints Fix `similar_names` warnings cmp_owned current suggestion for multiple deref cmp_owned add test for multiple dereference Corrected single-character string constant used as pattern found in dogfood test Fixes 3289, cmp_owned wording and false positive ````
2018-10-13submodules: update clippy from 32b1d1fc to 9d337313Matthias Krüger-19/+5
Changes: Remove now-useless `allow(unknown_lints)` Stabilize tool lints Use `impl Iterator` in arg position in clippy_dev Fix fn_to_numeric_cast_with_truncation suppression Limit commutative assign op lint to primitive types Clarify code Fix #2937 Fix cast_possible_wrap and cast_sign_loss warnings Fix cast_possible_truncation warnings Fixes #2925 cmp_owned false positive if_let_redundant_pattern_matching: use Span.to() instead of Span.with_hi() to fix crash. Improve diagnostics in case of lifetime elision (closes #3284) Fix items_after_statements for `const`s Fix items_after_statements for sub-functions Fix items_after_statements for `use` statements Don't suggest cloned() for map Box deref Fix excessive_precision false positive Fix FP in `fn_to_numeric_cast_with_truncation` new_without_default should not warn about unsafe new fix command to manually test an example Add license to README Adding more detail to filter_map lint documentation. additional people Add license header to other files Add license header to Rust files Relicense clippy Document relicensing process Fix util/export.py to include lints from methods
2018-10-06submodules: update clippy to 32b1d1fc157f71ed2f10b60fe28abe087a743618 to fix ↵Matthias Krüger-14/+14
tests.
2018-10-03Update clippyManish Goregaokar-14/+14
2018-10-02Update clippyManish Goregaokar-14/+14
2018-09-26update clippy submodule to a72e786cMatthias Krüger-14/+14
Fixes clippy build.
2018-09-17Update Clippyflip1995-14/+14
2018-09-15Update submodules to include rust-lang-nursery/rust-clippy#3189 and ↵Eduard-Mihai Burtescu-14/+14
rust-lang-nursery/rls#1054.
2018-09-14Update Clippyflip1995-14/+14
2018-09-09submodules: update clippy, rls with crate visibility patches, also update cargoMatthias Krüger-14/+14
2018-09-07update clippy submoduleMatthias Krüger-14/+14
updates to cafef7b576203f166add9ed143979d9775c25219
2018-09-02Update clippyManish Goregaokar-5/+19
2018-08-31Add deprecated_name argument to the register lint group functionsflip1995-5/+5
2018-08-29Update clippy submoduleOliver Schneider-19/+5
2018-08-27Update clippyJohn Kåre Alsaker-14/+14
2018-08-23Update clippy againflip1995-14/+14
2018-08-23Update clippyflip1995-14/+14
2018-08-19Update clippyManish Goregaokar-5/+19
2018-08-14Update clippyManish Goregaokar-5/+5
2018-08-08Update clippy submoduleOliver Schneider-5/+5
2018-08-08Update RLS and RustfmtNick Cameron-19/+5
2018-08-05Update rustfmt and RLSNick Cameron-14/+14
2018-08-03Update clippyManish Goregaokar-5/+19
2018-08-02Update Cargo submoduleAlex Crichton-19/+5
Bring in some fixes for `cargo fix` notably
2018-07-26Update clippy to latest masterThomas Gideon-5/+19
2018-07-23Update the clippy submoduleOliver Schneider-5/+5
2018-07-21Don't invent new magic keywordsOliver Schneider-5/+5
2018-07-20Clippy opts out of in_external_macroOliver Schneider-6/+5
2018-07-20Update clippyManish Goregaokar-5/+6
2018-07-18Update clippyManish Goregaokar-8/+5
2018-07-16Update clippyManish Goregaokar-5/+8
Fixes test failures caused by https://github.com/rust-lang/rust/pull/52081
2018-07-16Update the clippy submoduleOliver Schneider-5/+5
2018-07-15Update clippy and rlsOliver Schneider-19/+5
2018-07-06Update RLS, Rustfmt, Cargo, and ClippyNick Cameron-5/+19
2018-07-05Update the clippy submoduleOliver Schneider-4/+4
2018-07-02Update the clippy submoduleOliver Schneider-5/+5
2018-07-02Make sure clippy does not duplicate depenenciesOliver Schneider-5/+5
2018-07-01Update clippy submoduleOliver Schneider-5/+5
2018-07-01Did you mean to block nightlies on clippy?Oliver Schneider-4/+4
2018-05-19Update clippyOliver Schneider-21/+4
2018-05-14Bump clippyOliver Schneider-16/+19