about summary refs log tree commit diff
path: root/clippy_lints/src/utils/internal_lints.rs
AgeCommit message (Collapse)AuthorLines
2020-01-27Rename `span_note_and_lint` to `span_lint_and_note`Yuki Okushi-1/+1
2020-01-27Rename `span_help_and_lint` to `span_lint_and_help`Yuki Okushi-3/+3
2020-01-18Rustup to rust-lang/rust#68204Yuki Okushi-1/+6
2020-01-15Add lint for default lint descriptionBrad Sherman-4/+49
- Lint for any new lints that have the default lint description from the automation
2020-01-13Rustup to rust-lang/rust#68045Yuki Okushi-1/+1
2020-01-11Rustup to rust-lang/rust#67806Yuki Okushi-2/+2
2020-01-09Rustup to rust-lang/rust#67979Yuki Okushi-2/+5
2020-01-07Rustup to rust-lang/rust#67886Yuki Okushi-3/+3
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-31Rustup to rust-lang/rust#67707Yuki Okushi-1/+1
2019-12-30Rustup to rust-lang/rust#66942Yuki Okushi-2/+2
2019-12-27Rustup to rust-lang/rust#66936Yuki Okushi-3/+3
2019-12-22Add <'_> where necessaryflip1995-2/+2
2019-12-21rustup "Merge `ast::Mutability` and `mir::Mutability`"Lzu Tao-2/+2
2019-12-04Rustup to rust-lang/rust#66878Matthias Krüger-1/+2
2019-11-29fmtPhilipp Hansch-1/+1
2019-11-29Make triggering this lint less likely :paperclip:Philipp Hansch-1/+1
2019-11-29Add custom ICE message that points to Clippy repoPhilipp Hansch-0/+39
This utilizes https://github.com/rust-lang/rust/pull/60584 by setting our own `panic_hook` and pointing to our own issue tracker instead of the rustc issue tracker. This also adds a new internal lint to test the ICE message. **Potential downsides** * This essentially copies rustc's `report_ice` function as `report_clippy_ice`. I think that's how it's meant to be implemented, but maybe @jonas-schievink could have a look as well =) The downside of more-or-less copying this function is that we have to maintain it as well now. The original function can be found [here][original]. * `driver` now depends directly on `rustc` and `rustc_errors` Closes #2734 [original]: https://github.com/rust-lang/rust/blob/59367b074f1523353dddefa678ffe3cac9fd4e50/src/librustc_driver/lib.rs#L1185
2019-11-11MutImmutable -> Immutable, MutMutable -> Mutable, CaptureClause -> CaptureByManish Goregaokar-2/+2
2019-11-06rustup rust-lang/rust#65776Lzu Tao-4/+4
2019-10-24Fix lint_without_lint_pass lintflip1995-20/+19
2019-10-24Fix testsflip1995-3/+1
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-7/+7
2019-08-29Use the spans returned by utils::method_callsflip1995-3/+3
2019-08-16Run rustfmtflip1995-4/+1
2019-08-16Use outer_expn_data instead of outer_expn_infoKRAAI, MATTHEW [VISUS]-17/+16
2019-08-02Doctests: Fix all complexity lint docsPhilipp Hansch-5/+5
cc #4319
2019-07-21Fix breakage due to rust-lang/rust#62705Michael Wright-6/+6
Also rename `OUTER_EXPN_INFO` to `OUTER_EXPN_EXPN_INFO` to match new function names.
2019-06-20Fix warnings about unnecessary lifetime boundsLzu Tao-2/+2
Rustup https://github.com/rust-lang/rust/pull/61172
2019-06-08Add OUTER_EXPN_INFO lintMichael Wright-1/+58
2019-06-06Remove `to_string()`s from CompilerLintFunctionsMichael Wright-8/+8
2019-06-01Make use of new `outer_expn_info()` functionLzu Tao-2/+1
2019-05-18DogfoodOliver Scherer-7/+10
2019-05-17Prevent symbocalypseOliver Scherer-6/+6
2019-05-14Rustfmt all the thingsOliver Scherer-1/+1
2019-05-14Clippy dogfoodOliver Scherer-4/+5
2019-05-14Use symbols instead of stringsOliver Scherer-8/+9
2019-05-03Rustup to rustc 1.36.0-nightly (13fde05b1 2019-05-03)Matthias Krüger-3/+3
2019-04-17Use lint pass macrosMatthew Kraai-40/+9
Fixes #3917.
2019-04-17Fix lint_without_lint_pass internal lintflip1995-1/+7
2019-04-17Use {get,match}_def_path from LateContextflip1995-3/+3
2019-04-15Remove clippy::default_hash_types internal lintflip1995-62/+3
2019-03-07align with rust-lang/rust/#58992ljedrz-2/+1
2019-03-05move lint documentation into macro invocationsAndy Russell-53/+53
2019-03-01align with rust-lang/rust/#58836ljedrz-1/+2
2019-01-27rustup https://github.com/rust-lang/rust/pull/57726Matthias Krüger-0/+15
2019-01-08Remove all copyright license headersPhilipp Hansch-9/+0
Discussion previously happened in https://github.com/rust-lang/rust/pull/43498
2018-12-30rustup https://github.com/rust-lang/rust/pull/56225/Matthias Krüger-1/+1
item.name -> item.ident.name
2018-12-29Remove crate:: prefixes from crate pathsKonrad Borowski-11/+11
This is somewhat misleading, as those are actually external crates, and don't need a crate:: prefix.