diff options
| author | bors <bors@rust-lang.org> | 2021-04-21 13:58:53 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-04-21 13:58:53 +0000 |
| commit | bbc22e2ef3081b757d089737e5752b9e413d27ba (patch) | |
| tree | 9b838d685a6435f945a44f692f965ca45a971a01 /src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs | |
| parent | 926286acfeeec25a423d550083c4e2dacb027e51 (diff) | |
| parent | e2e104b993277a8096299a2d2eb99d4641f1e318 (diff) | |
| download | rust-bbc22e2ef3081b757d089737e5752b9e413d27ba.tar.gz rust-bbc22e2ef3081b757d089737e5752b9e413d27ba.zip | |
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
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs')
0 files changed, 0 insertions, 0 deletions
