about summary refs log tree commit diff
path: root/clippy_lints/src/misc_early.rs
AgeCommit message (Collapse)AuthorLines
2020-02-03Use `checked_sub` to avoid index out of boundsYuki Okushi-3/+11
2020-01-27Rename `span_help_and_lint` to `span_lint_and_help`Yuki Okushi-3/+3
2020-01-13Rustup to rust-lang/rust#68045Yuki Okushi-1/+2
2020-01-11Rustup to rust-lang/rust#67806Yuki Okushi-3/+2
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-24rustup "Add span information to `ExprKind::Assign`"Lzu Tao-1/+1
2019-12-04Rustup to rust-lang/rust#66878Matthias Krüger-1/+2
2019-11-07Rustup to rust-lang/rust#65884flip1995-4/+4
2019-10-15Add a new lint for unused selfJames Wang-2/+2
2019-10-14new lints around `#[must_use]` fnsAndre Bogus-0/+1
`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-09-27Rustup to rust-lang/rust#64813flip1995-24/+24
2019-09-25redundant_closure_call: split tests into fixableManish Goregaokar-8/+6
2019-09-18Add note about refactoringmikerite-0/+4
Co-Authored-By: Philipp Krones <hello@philkrones.com>
2019-09-13Apply review suggestionsMichael Wright-11/+3
Fix grammar errors and use `Pat::is_rest` instead of own function.
2019-09-12Fix lint warningsMichael Wright-55/+60
2019-09-12Add `unneeded-wildcard-pattern` lintMichael Wright-1/+92
2019-09-09Fix regression in case of proc-macro attribute expansionLzu Tao-8/+6
2019-09-05Make it auto fixable lintYuki Okushi-1/+4
2019-09-05Fix `redundant_pattern` false positiveYuki Okushi-1/+38
2019-09-02Fix index out of bound in case of empty snippetLzu Tao-1/+2
2019-08-26Cleaner code for unsep literalsLzu Tao-73/+73
2019-08-19Requested changesJamie McClymont-19/+11
2019-08-19Add autofixable suggestion for unseparated integer literal sufficesJamie McClymont-6/+30
2019-08-16Rustup "Remove `Spanned` from `{ast,hir}::FieldPat`"Lzu Tao-3/+3
2019-08-02Doctests: Fix all complexity lint docsPhilipp Hansch-1/+1
cc #4319
2019-08-01Update formattingMichael Wright-1/+1
2019-04-23Rustup to rustc 1.36.0-nightly (fe0a415b4 2019-04-23)Manish Goregaokar-1/+1
2019-04-17Use lint pass macrosMatthew Kraai-24/+13
Fixes #3917.
2019-03-10Various cosmetic improvements.Alexander Regueiro-1/+1
2019-03-05fix or ignore failing doc testsAndy Russell-2/+3
2019-03-05move lint documentation into macro invocationsAndy Russell-114/+114
2019-01-27rustup https://github.com/rust-lang/rust/pull/57907/Matthias Krüger-3/+3
for file in `fd \.rs$` ; do sed -i s/span_suggestion_with_applicability/span_suggestion/g $file ; done for file in `fd \.rs$` ; do sed -i s/span_suggestion_short_with_applicability/span_suggestion_short/g $file ; done for file in `fd \.rs$` ; do sed -i s/span_suggestions_with_applicability/span_suggestions/g $file ; done
2019-01-27rustup https://github.com/rust-lang/rust/pull/57726Matthias Krüger-0/+4
2019-01-08Remove all copyright license headersPhilipp Hansch-9/+0
Discussion previously happened in https://github.com/rust-lang/rust/pull/43498
2018-12-29Remove crate:: prefixes from crate pathsKonrad Borowski-7/+7
This is somewhat misleading, as those are actually external crates, and don't need a crate:: prefix.
2018-12-14rustup rust-lang/rust#52994flip1995-2/+2
s/trim_left/trim_start/ s/trim_right/trim_end/
2018-11-27Run rustfmt on clippy_lintsflip1995-39/+45
2018-11-15rustup https://github.com/rust-lang/rust/pull/55852/Matthias Krüger-1/+1
2018-11-14Fix `use_self` violationMichael Wright-2/+2
2018-11-14Fix wrong suggestion for `redundant_closure_call`Michael Wright-16/+45
Fixes #1684
2018-10-06Add license header to Rust filesManish Goregaokar-0/+10
2018-09-20Fill in Applicability from review comments by @flip1995Vitaly _Vi Shukela-3/+3
2018-09-20Fix indentsVitaly _Vi Shukela-5/+5
2018-09-20Use span_suggestion_with_applicability instead of span_suggestionVitaly _Vi Shukela-3/+11
2018-09-15Reintroduce `extern crate` for non-Cargo dependencies.Eduard-Mihai Burtescu-6/+6
2018-09-12Change Hash{Map, Set} to FxHash{Map, Set}flip1995-2/+2
2018-08-29Switch to declare_tool_lint macroflip1995-1/+1
2018-08-28Update imports and rustupOliver Schneider-1/+1
2018-08-19codemap -> source_mapManish Goregaokar-2/+2
https://github.com/rust-lang/rust/pull/52953
2018-07-24Inline utils::in_external_macroDale Wijnand-2/+2