@@ -2,7 +2,7 @@ error: used `assert_eq!` with a literal bool
22 --> $DIR/bool_assert_comparison.rs:69:5
33 |
44LL | assert_eq!("a".is_empty(), false);
5- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(!( "a".is_empty() ))`
5+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(!"a".is_empty())`
66 |
77 = note: `-D clippy::bool-assert-comparison` implied by `-D warnings`
88
@@ -34,25 +34,25 @@ error: used `assert_ne!` with a literal bool
3434 --> $DIR/bool_assert_comparison.rs:80:5
3535 |
3636LL | assert_ne!("".is_empty(), true);
37- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(!( "".is_empty() ))`
37+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(!"".is_empty())`
3838
3939error: used `assert_ne!` with a literal bool
4040 --> $DIR/bool_assert_comparison.rs:81:5
4141 |
4242LL | assert_ne!(true, "".is_empty());
43- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(!( "".is_empty() ))`
43+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(!"".is_empty())`
4444
4545error: used `assert_ne!` with a literal bool
4646 --> $DIR/bool_assert_comparison.rs:86:5
4747 |
4848LL | assert_ne!(b, true);
49- | ^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(!(b) )`
49+ | ^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(!b )`
5050
5151error: used `debug_assert_eq!` with a literal bool
5252 --> $DIR/bool_assert_comparison.rs:89:5
5353 |
5454LL | debug_assert_eq!("a".is_empty(), false);
55- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `debug_assert!(!( "a".is_empty() ))`
55+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `debug_assert!(!"a".is_empty())`
5656
5757error: used `debug_assert_eq!` with a literal bool
5858 --> $DIR/bool_assert_comparison.rs:90:5
@@ -82,55 +82,55 @@ error: used `debug_assert_ne!` with a literal bool
8282 --> $DIR/bool_assert_comparison.rs:100:5
8383 |
8484LL | debug_assert_ne!("".is_empty(), true);
85- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `debug_assert!(!( "".is_empty() ))`
85+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `debug_assert!(!"".is_empty())`
8686
8787error: used `debug_assert_ne!` with a literal bool
8888 --> $DIR/bool_assert_comparison.rs:101:5
8989 |
9090LL | debug_assert_ne!(true, "".is_empty());
91- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `debug_assert!(!( "".is_empty() ))`
91+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `debug_assert!(!"".is_empty())`
9292
9393error: used `debug_assert_ne!` with a literal bool
9494 --> $DIR/bool_assert_comparison.rs:106:5
9595 |
9696LL | debug_assert_ne!(b, true);
97- | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `debug_assert!(!(b) )`
97+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `debug_assert!(!b )`
9898
9999error: 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())`
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())`
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())`
116116
117117error: used `debug_assert_eq!` with a literal bool
118118 --> $DIR/bool_assert_comparison.rs:118:5
119119 |
120120LL | debug_assert_eq!("a".is_empty(), false, "tadam {}", 1);
121- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `debug_assert!(!( "a".is_empty() ))`
121+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `debug_assert!(!"a".is_empty())`
122122
123123error: used `debug_assert_eq!` with a literal bool
124124 --> $DIR/bool_assert_comparison.rs:119:5
125125 |
126126LL | debug_assert_eq!("a".is_empty(), false, "tadam {}", true);
127- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `debug_assert!(!( "a".is_empty() ))`
127+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `debug_assert!(!"a".is_empty())`
128128
129129error: used `debug_assert_eq!` with a literal bool
130130 --> $DIR/bool_assert_comparison.rs:120:5
131131 |
132132LL | debug_assert_eq!(false, "a".is_empty(), "tadam {}", true);
133- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `debug_assert!(!( "a".is_empty() ))`
133+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `debug_assert!(!"a".is_empty())`
134134
135135error: aborting due to 22 previous errors
136136
0 commit comments