about summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorScott Schafer <schaferjscott@gmail.com>2025-08-27 20:33:50 -0600
committerScott Schafer <schaferjscott@gmail.com>2025-09-04 17:42:13 -0600
commitb2eb28da2342e60779a6d78d19c991c99e1b5c37 (patch)
tree7caa4173bd3d167be7a81dad677cb51c19c5a5e8 /tests
parent2a6b3b61f0226435bfee3b99172c1837a9067031 (diff)
downloadrust-b2eb28da2342e60779a6d78d19c991c99e1b5c37.tar.gz
rust-b2eb28da2342e60779a6d78d19c991c99e1b5c37.zip
fix: Filter suggestion parts that match existing code
Diffstat (limited to 'tests')
-rw-r--r--tests/ui/bool_assert_comparison.stderr12
1 files changed, 4 insertions, 8 deletions
diff --git a/tests/ui/bool_assert_comparison.stderr b/tests/ui/bool_assert_comparison.stderr
index f823f08f31d..72aa6303a20 100644
--- a/tests/ui/bool_assert_comparison.stderr
+++ b/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