@@ -100,37 +100,49 @@ error: used `assert_eq!` with a literal bool
100
100
--> $DIR/bool_assert_comparison.rs:111:5
101
101
|
102
102
LL | 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 )`
104
104
105
105
error: used `assert_eq!` with a literal bool
106
106
--> $DIR/bool_assert_comparison.rs:112:5
107
107
|
108
108
LL | 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 )`
110
110
111
111
error: used `assert_eq!` with a literal bool
112
112
--> $DIR/bool_assert_comparison.rs:113:5
113
113
|
114
114
LL | 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)`
116
122
117
123
error: used `debug_assert_eq!` with a literal bool
118
- --> $DIR/bool_assert_comparison.rs:118 :5
124
+ --> $DIR/bool_assert_comparison.rs:119 :5
119
125
|
120
126
LL | 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 )`
122
128
123
129
error: used `debug_assert_eq!` with a literal bool
124
- --> $DIR/bool_assert_comparison.rs:119 :5
130
+ --> $DIR/bool_assert_comparison.rs:120 :5
125
131
|
126
132
LL | 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 )`
128
134
129
135
error: used `debug_assert_eq!` with a literal bool
130
- --> $DIR/bool_assert_comparison.rs:120 :5
136
+ --> $DIR/bool_assert_comparison.rs:121 :5
131
137
|
132
138
LL | 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")`
134
146
135
- error: aborting due to 22 previous errors
147
+ error: aborting due to 24 previous errors
136
148
0 commit comments