diff options
| author | Scott Schafer <schaferjscott@gmail.com> | 2025-08-27 20:33:50 -0600 |
|---|---|---|
| committer | Scott Schafer <schaferjscott@gmail.com> | 2025-09-04 17:42:13 -0600 |
| commit | b307a1146b4af3b5808510e44a13f56f2b0252e9 (patch) | |
| tree | a36a76fad1e97c81e6ae7cdda470d4a1824a98ee /src | |
| parent | f196f50d6609eecfe94989a317a8779637288d94 (diff) | |
| download | rust-b307a1146b4af3b5808510e44a13f56f2b0252e9.tar.gz rust-b307a1146b4af3b5808510e44a13f56f2b0252e9.zip | |
fix: Filter suggestion parts that match existing code
Diffstat (limited to 'src')
| -rw-r--r-- | src/tools/clippy/tests/ui/bool_assert_comparison.stderr | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/tools/clippy/tests/ui/bool_assert_comparison.stderr b/src/tools/clippy/tests/ui/bool_assert_comparison.stderr index f823f08f31d..72aa6303a20 100644 --- a/src/tools/clippy/tests/ui/bool_assert_comparison.stderr +++ b/src/tools/clippy/tests/ui/bool_assert_comparison.stderr @@ -272,10 +272,8 @@ LL | assert_eq!(a!(), true); | help: replace it with `assert!(..)` | -LL | true -... -LL | -LL ~ assert!(a!()); +LL - assert_eq!(a!(), true); +LL + assert!(a!()); | error: used `assert_eq!` with a literal bool @@ -286,10 +284,8 @@ LL | assert_eq!(true, b!()); | help: replace it with `assert!(..)` | -LL | true -... -LL | -LL ~ assert!(b!()); +LL - assert_eq!(true, b!()); +LL + assert!(b!()); | error: used `debug_assert_eq!` with a literal bool |
