about summary refs log tree commit diff
path: root/clippy_lints/src/needless_bool.rs
AgeCommit message (Collapse)AuthorLines
2020-01-13Rustup to rust-lang/rust#68045Yuki Okushi-1/+1
2020-01-11Rustup to rust-lang/rust#67806Yuki Okushi-3/+2
2020-01-07Normalize lint messagesYuki Okushi-1/+1
2020-01-07Rustup to rust-lang/rust#67886Yuki Okushi-1/+1
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-27Rustup to rust-lang/rust#66936Yuki Okushi-7/+7
2019-12-04Rustup to rust-lang/rust#66878Matthias Krüger-1/+2
2019-09-27Rustup to rust-lang/rust#64813flip1995-6/+6
2019-09-24Add a new lint for comparison chainsJames Wang-12/+1
2019-08-22Add examples to some complexity lintsBO41-0/+4
2019-08-19Remove in_macro_or_desugarKRAAI, MATTHEW [VISUS]-2/+2
2019-08-05fmtPhilipp Hansch-7/+3
2019-08-05Fix needless_bool suggestion with if-else-if-elsePhilipp Hansch-6/+8
Closes #4334
2019-08-02Doctests: Fix all complexity lint docsPhilipp Hansch-2/+2
cc #4319
2019-06-25get_parent_node_by_hir_id -> get_parent_nodeManish Goregaokar-1/+1
2019-06-22Fix fallout cause NodeId pruningLzu Tao-1/+1
2019-06-12Typos and minor grammar correctionsmgr-inz-rafal-1/+1
2019-05-11Rename in_macro to in_macro_or_desugarManish Goregaokar-2/+2
2019-05-10Fix needless_bool.rsManish Goregaokar-3/+3
2019-04-17Use lint pass macrosMatthew Kraai-25/+3
Fixes #3917.
2019-03-10Various cosmetic improvements.Alexander Regueiro-2/+2
2019-03-05move lint documentation into macro invocationsAndy Russell-31/+31
2019-02-26Auto merge of #3817 - rust-lang:fix-bool_comparison-on-non-bool, r=oli-obkbors-20/+20
Fix `bool_comparison` with non-`bool` expressions Fixes #3703. It just moves around the type check that was already there for some comparison to all of them, because if one type isn't `bool`, none of those comparison can be simplified.
2019-02-25Fix `bool_comparison` with non-`bool` expressionsmcarton-20/+20
2019-02-24HirIdify some lintsljedrz-2/+2
2019-01-27rustup https://github.com/rust-lang/rust/pull/57726Matthias Krüger-0/+8
2019-01-22Added "make_return" and "blockify" convenience methods in Sugg and used them ↵Grzegorz Bartoszek-8/+6
in "needless_bool".
2019-01-21Auto merge of #3680 - g-bartoszek:needless-bool-else-if-brackets, r=oli-obkbors-1/+18
needless bool lint suggestion is wrapped in brackets if it is an "els… …e" clause of an "if-else" statement
2019-01-21formatting fixGrzegorz Bartoszek-1/+0
2019-01-21Update clippy_lints/src/needless_bool.rsOliver Scherer-1/+1
Co-Authored-By: g-bartoszek <grzegorz.bartoszek@thaumatec.com>
2019-01-21formatting fixGrzegorz Bartoszek-1/+1
2019-01-20needless bool lint suggestion is wrapped in brackets if it is an "else" ↵Grzegorz Bartoszek-1/+19
clause of an "if-else" statement
2019-01-20Fixed breakage due to rust-lang/rust#57489Michael Wright-1/+1
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-6/+6
This is somewhat misleading, as those are actually external crates, and don't need a crate:: prefix.
2018-12-17Changes lint sugg to bitwise and operator `&`Lucas Lois-2/+2
2018-12-16Implements lint for order comparisons against boolLucas Lois-24/+80
2018-12-03Adds inequality cases to bool comparison lintLucas Lois-64/+66
The lint now checks cases like `y != true`
2018-11-27Fix some formatting issuesflip1995-4/+3
2018-11-27Run rustfmt on clippy_lintsflip1995-17/+31
2018-11-27Add applicability level to (nearly) every span_lint_and_sugg functionflip1995-13/+15
2018-11-27Add Applicability::Unspecified to span_lint_and_sugg functionsflip1995-2/+8
2018-11-02clippy: fix pedantic warnings and run clippy::pedantic lints on the codebase.Matthias Krüger-1/+3
Turn on pedantic lints in dogfood and base tests. needless_bool: fix clippy::items-after-statements redundant_pattern_matching: fix clippy::similar-names mods.rs: fix clippy::explicit-iter-loop returns.rs: allow clippy::cast-possible-wrap Fixes #3172
2018-10-29 Fix #3335 rev2: bool_comparison triggers 3 times on same codeGiorgio Gambino-50/+51
2018-10-28Fix #3335: bool_comparison triggers 3 times on same codeGiorgio Gambino-49/+51
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-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