@@ -2,135 +2,135 @@ 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!(.. )`
5+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(!("a".is_empty()) )`
66 |
77 = note: `-D clippy::bool-assert-comparison` implied by `-D warnings`
88
99error: used `assert_eq!` with a literal bool
1010 --> $DIR/bool_assert_comparison.rs:70:5
1111 |
1212LL | assert_eq!("".is_empty(), true);
13- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(.. )`
13+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!("".is_empty() )`
1414
1515error: used `assert_eq!` with a literal bool
1616 --> $DIR/bool_assert_comparison.rs:71:5
1717 |
1818LL | assert_eq!(true, "".is_empty());
19- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(.. )`
19+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!("".is_empty() )`
2020
2121error: used `assert_eq!` with a literal bool
2222 --> $DIR/bool_assert_comparison.rs:76:5
2323 |
2424LL | assert_eq!(b, true);
25- | ^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(.. )`
25+ | ^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(b )`
2626
2727error: used `assert_ne!` with a literal bool
2828 --> $DIR/bool_assert_comparison.rs:79:5
2929 |
3030LL | assert_ne!("a".is_empty(), false);
31- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(.. )`
31+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(!("a".is_empty()) )`
3232
3333error: 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!(.. )`
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!(.. )`
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!(.. )`
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!(.. )`
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
5959 |
6060LL | debug_assert_eq!("".is_empty(), true);
61- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `debug_assert!(.. )`
61+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `debug_assert!("".is_empty() )`
6262
6363error: used `debug_assert_eq!` with a literal bool
6464 --> $DIR/bool_assert_comparison.rs:91:5
6565 |
6666LL | debug_assert_eq!(true, "".is_empty());
67- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `debug_assert!(.. )`
67+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `debug_assert!("".is_empty() )`
6868
6969error: used `debug_assert_eq!` with a literal bool
7070 --> $DIR/bool_assert_comparison.rs:96:5
7171 |
7272LL | debug_assert_eq!(b, true);
73- | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `debug_assert!(.. )`
73+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `debug_assert!(b )`
7474
7575error: used `debug_assert_ne!` with a literal bool
7676 --> $DIR/bool_assert_comparison.rs:99:5
7777 |
7878LL | debug_assert_ne!("a".is_empty(), false);
79- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `debug_assert!(.. )`
79+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `debug_assert!(!("a".is_empty()) )`
8080
8181error: 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!(.. )`
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!(.. )`
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!(.. )`
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!(.. )`
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!(.. )`
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!(.. )`
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!(.. )`
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!(.. )`
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!(.. )`
133+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `debug_assert!(!("a".is_empty()) )`
134134
135135error: aborting due to 22 previous errors
136136
0 commit comments