rust/clippy_utils/src
bors bbc22e2ef3 Auto merge of #7083 - GuillaumeGomez:bool-assert-eq, r=camsteffen
Add lint to check for boolean comparison in assert macro calls

This PR adds a lint to check if an assert macro is using a boolean as "comparison value". For example:

```rust
assert_eq!("a".is_empty(), false);
```

Could be rewritten as:

```rust
assert!(!"a".is_empty());
```

PS: The dev guidelines are amazing. Thanks a lot for writing them!

changelog: Add `bool_assert_comparison` lint
2021-04-21 13:58:53 +00:00
..
ast_utils Merge commit '928e72dd10' into clippyup 2021-02-25 11:25:22 +01:00
ast_utils.rs Add lint to check for boolean comparison in assert macro calls 2021-04-19 22:15:51 +02:00
attrs.rs Add flat_map_option lint 2021-04-16 15:23:49 -05:00
camel_case.rs Merge commit '6ed6f1e6a1' into clippyup 2021-03-12 15:30:50 +01:00
comparisons.rs Merge commit '928e72dd10' into clippyup 2021-02-25 11:25:22 +01:00
consts.rs Merge remote-tracking branch 'upstream/master' into rustup 2021-04-08 17:36:41 +02:00
diagnostics.rs Added documentation to the multispan_sugg method 2021-04-05 13:33:45 +02:00
eager_or_lazy.rs Merge commit '0e87918536' into clippyup 2021-03-25 19:29:11 +01:00
higher.rs ast/hir: Rename field-related structures 2021-03-16 11:41:24 +03:00
hir_utils.rs Auto merge of #7075 - xFrednet:7054-fp-branches-sharing-code, r=camsteffen,flip1995 2021-04-16 18:33:45 +00:00
lib.rs Auto merge of #7075 - xFrednet:7054-fp-branches-sharing-code, r=camsteffen,flip1995 2021-04-16 18:33:45 +00:00
numeric_literal.rs Use iter::zip in src/tools/clippy/ 2021-03-26 09:33:38 -07:00
paths.rs Auto merge of #6937 - Jarcho:map_entry_suggestion, r=giraffate 2021-04-16 13:23:23 +00:00
ptr.rs Merge commit '0e87918536' into clippyup 2021-03-25 19:29:11 +01:00
qualify_min_const_fn.rs Fix a FP in missing_const_for_fn 2021-04-14 09:23:44 +12:00
source.rs Improve map_entry lint 2021-04-15 08:19:40 -04:00
sugg.rs clippy_utils: fix needless parenthesis output from sugg::Sugg::maybe_par 2021-04-01 10:40:44 +09:00
sym_helper.rs Merge commit '928e72dd10' into clippyup 2021-02-25 11:25:22 +01:00
ty.rs Add cloned_instead_of_copied lint 2021-04-16 11:39:31 -05:00
usage.rs Use DefIdMap and similar aliases 2021-04-03 18:02:49 -05:00
visitors.rs Merge commit '928e72dd10' into clippyup 2021-02-25 11:25:22 +01:00