about summary refs log tree commit diff
path: root/clippy_lints/src/enum_variants.rs
AgeCommit message (Collapse)AuthorLines
2020-01-27Rename `span_help_and_lint` to `span_lint_and_help`Yuki Okushi-2/+2
2020-01-13Rustup to rust-lang/rust#68045Yuki Okushi-1/+1
2020-01-11Rustup to rust-lang/rust#67806Yuki Okushi-3/+2
2020-01-04Rustup to https://github.com/rust-lang/rust/pull/67853Philipp Hansch-2/+2
Specifically caused by https://github.com/rust-lang/rust/pull/67786
2019-12-04Rustup to rust-lang/rust#66878Matthias Krüger-1/+2
2019-10-14new lints around `#[must_use]` fnsAndre Bogus-0/+4
`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-2/+2
2019-09-05Rustup "Minimize uses of `LocalInternedString`"Lzu Tao-12/+8
2019-08-19Remove in_macro_or_desugarKRAAI, MATTHEW [VISUS]-2/+2
2019-08-15Rustup to rust-lang/rust#63543flip1995-1/+1
2019-08-06Don't emit enum_variant_names if remainder starts with a numericPhilipp Hansch-0/+4
As [per the reference](https://doc.rust-lang.org/reference/identifiers.html), identifiers must start with a letter. So we don't suggest a better variant naming in these cases. Fixes #739
2019-05-21Rustup to rustc 1.36.0-nightly (dbfe70dfc 2019-05-22)Manish Goregaokar-1/+1
2019-05-11Rename in_macro to in_macro_or_desugarManish Goregaokar-2/+2
2019-04-19Fix false positive in module_name_repetitions lintPhilipp Hansch-2/+2
This lint was triggering on modules inside expanded attrs, like for example `#[cfg(test)]` and possibly more.
2019-04-17Use lint pass macrosMatthew Kraai-15/+7
Fixes #3917.
2019-03-05fix or ignore failing doc testsAndy Russell-1/+1
2019-03-05move lint documentation into macro invocationsAndy Russell-69/+69
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
2019-01-03Make clippy work with parallel rustcJohn Kåre Alsaker-3/+3
2018-12-29Remove crate:: prefixes from crate pathsKonrad Borowski-5/+5
This is somewhat misleading, as those are actually external crates, and don't need a crate:: prefix.
2018-12-17Rename lint to MODULE_NAME_REPETITIONSflip1995-4/+9
2018-12-16chore(moduel_name_repeat): Rename stutter lint to module_name_repeat to ↵Klaus Purer-4/+4
avoid ableist language
2018-11-27Run rustfmt on clippy_lintsflip1995-17/+18
2018-11-17remove unused allow() attributes, NFCMatthias Krüger-2/+0
2018-10-11Fix `stutter` lintsDevon Hollowood-6/+6
2018-10-11Fix `similar_names` warningsDevon Hollowood-0/+1
Most of these are just `#![allow]`ed, because they are things like using l vs r to differentiate left vs right. These would be made less clear by taking the advice of `similar_names`
2018-10-06Add license header to Rust filesManish Goregaokar-0/+10
2018-09-15Reintroduce `extern crate` for non-Cargo dependencies.Eduard-Mihai Burtescu-5/+5
2018-08-29Adapt codebase to the tool_lintsflip1995-1/+1
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-1/+1
https://github.com/rust-lang/rust/pull/52953
2018-07-23RustupOliver Schneider-3/+3
2018-07-19Remove import of rustcManish Goregaokar-0/+1
2018-07-15Ignore spans when comparing expressionsOliver Schneider-1/+1
2018-06-29RustupMateusz Mikuła-2/+2
2018-05-30Run rustfixMateusz Mikuła-2/+2
2018-05-01Merge pull request #2701 from nathan/patch-1Oliver Schneider-0/+2
Add third variant to {pub_,}enum_variant_names examples
2018-04-28Rustup to latest nightlyPhilipp Hansch-3/+3
Due to https://github.com/rust-lang/rust/pull/48995 and https://github.com/rust-lang/rust/pull/49894
2018-04-27Add third variant to {pub_,}enum_variant_names examplesNathan-0/+2
The default value for `enum-variant-name-threshold` is 3, so the old examples (which only have two enum variants) don't actually trigger the lint by default.
2018-04-07Fix compilation for nightly 2018-04-06Michael Wright-1/+1
Breakages for introduced by rust pull request 'AST: Give spans to all identifies' - rust-lang/rust/pull#49154 Closes #2639
2018-03-28Categorize all the lints!Oliver Schneider-8/+8
2018-03-16Apply clippy suggestionsMateusz Mikuła-1/+1
Signed-off-by: Mateusz Mikuła <mati865@gmail.com>
2018-02-23Update Rust to 063deba92eManish Goregaokar-3/+3
2017-11-26Check for word beginning in stutter lintLukas Stevens-1/+10
2017-11-05Cargo fmttopecongiro-2/+5
2017-10-10Don't lint accidental "prefixes" on enum variantsOliver Schneider-1/+2
2017-09-05Run nightly rustfmtOliver Schneider-1/+1
2017-08-21Run Dogfood for `use_self`Oliver Schneider-2/+2