@@ -100,37 +100,49 @@ error: used `assert_eq!` with a literal bool
100100 --> $DIR/bool_assert_comparison.rs:111:5
101101 |
102102LL | assert_eq!("a".is_empty(), false, "tadam {}", 1);
103- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(!("a".is_empty()))`
103+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(!("a".is_empty()), "tadam {}", 1 )`
104104
105105error: used `assert_eq!` with a literal bool
106106 --> $DIR/bool_assert_comparison.rs:112:5
107107 |
108108LL | assert_eq!("a".is_empty(), false, "tadam {}", true);
109- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(!("a".is_empty()))`
109+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(!("a".is_empty()), "tadam {}", true )`
110110
111111error: used `assert_eq!` with a literal bool
112112 --> $DIR/bool_assert_comparison.rs:113:5
113113 |
114114LL | assert_eq!(false, "a".is_empty(), "tadam {}", true);
115- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(!("a".is_empty()))`
115+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(!("a".is_empty()), "tadam {}", true)`
116+
117+ error: used `assert_eq!` with a literal bool
118+ --> $DIR/bool_assert_comparison.rs:115:5
119+ |
120+ LL | assert_eq!("a".is_empty(), true, "tadam {} {}", false, 6);
121+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!("a".is_empty(), "tadam {} {}", false, 6)`
116122
117123error: used `debug_assert_eq!` with a literal bool
118- --> $DIR/bool_assert_comparison.rs:118 :5
124+ --> $DIR/bool_assert_comparison.rs:119 :5
119125 |
120126LL | debug_assert_eq!("a".is_empty(), false, "tadam {}", 1);
121- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `debug_assert!(!("a".is_empty()))`
127+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `debug_assert!(!("a".is_empty()), "tadam {}", 1 )`
122128
123129error: used `debug_assert_eq!` with a literal bool
124- --> $DIR/bool_assert_comparison.rs:119 :5
130+ --> $DIR/bool_assert_comparison.rs:120 :5
125131 |
126132LL | debug_assert_eq!("a".is_empty(), false, "tadam {}", true);
127- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `debug_assert!(!("a".is_empty()))`
133+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `debug_assert!(!("a".is_empty()), "tadam {}", true )`
128134
129135error: used `debug_assert_eq!` with a literal bool
130- --> $DIR/bool_assert_comparison.rs:120 :5
136+ --> $DIR/bool_assert_comparison.rs:121 :5
131137 |
132138LL | debug_assert_eq!(false, "a".is_empty(), "tadam {}", true);
133- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `debug_assert!(!("a".is_empty()))`
139+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `debug_assert!(!("a".is_empty()), "tadam {}", true)`
140+
141+ error: used `debug_assert_eq!` with a literal bool
142+ --> $DIR/bool_assert_comparison.rs:123:5
143+ |
144+ LL | debug_assert_eq!("a".is_empty(), true, "tadam {} {}", false, "b");
145+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `debug_assert!("a".is_empty(), "tadam {} {}", false, "b")`
134146
135- error: aborting due to 22 previous errors
147+ error: aborting due to 24 previous errors
136148
0 commit comments