1 error: used `assert_eq!` with a literal bool
2 --> $DIR/bool_assert_comparison.rs:69:5
4 LL | assert_eq!("a".is_empty(), false);
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(..)`
7 = note: `-D clippy::bool-assert-comparison` implied by `-D warnings`
9 error: used `assert_eq!` with a literal bool
10 --> $DIR/bool_assert_comparison.rs:70:5
12 LL | assert_eq!("".is_empty(), true);
13 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(..)`
15 error: used `assert_eq!` with a literal bool
16 --> $DIR/bool_assert_comparison.rs:71:5
18 LL | assert_eq!(true, "".is_empty());
19 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(..)`
21 error: used `assert_eq!` with a literal bool
22 --> $DIR/bool_assert_comparison.rs:76:5
24 LL | assert_eq!(b, true);
25 | ^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(..)`
27 error: used `assert_ne!` with a literal bool
28 --> $DIR/bool_assert_comparison.rs:79:5
30 LL | assert_ne!("a".is_empty(), false);
31 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(..)`
33 error: used `assert_ne!` with a literal bool
34 --> $DIR/bool_assert_comparison.rs:80:5
36 LL | assert_ne!("".is_empty(), true);
37 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(..)`
39 error: used `assert_ne!` with a literal bool
40 --> $DIR/bool_assert_comparison.rs:81:5
42 LL | assert_ne!(true, "".is_empty());
43 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(..)`
45 error: used `assert_ne!` with a literal bool
46 --> $DIR/bool_assert_comparison.rs:86:5
48 LL | assert_ne!(b, true);
49 | ^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(..)`
51 error: used `debug_assert_eq!` with a literal bool
52 --> $DIR/bool_assert_comparison.rs:89:5
54 LL | debug_assert_eq!("a".is_empty(), false);
55 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `debug_assert!(..)`
57 error: used `debug_assert_eq!` with a literal bool
58 --> $DIR/bool_assert_comparison.rs:90:5
60 LL | debug_assert_eq!("".is_empty(), true);
61 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `debug_assert!(..)`
63 error: used `debug_assert_eq!` with a literal bool
64 --> $DIR/bool_assert_comparison.rs:91:5
66 LL | debug_assert_eq!(true, "".is_empty());
67 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `debug_assert!(..)`
69 error: used `debug_assert_eq!` with a literal bool
70 --> $DIR/bool_assert_comparison.rs:96:5
72 LL | debug_assert_eq!(b, true);
73 | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `debug_assert!(..)`
75 error: used `debug_assert_ne!` with a literal bool
76 --> $DIR/bool_assert_comparison.rs:99:5
78 LL | debug_assert_ne!("a".is_empty(), false);
79 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `debug_assert!(..)`
81 error: used `debug_assert_ne!` with a literal bool
82 --> $DIR/bool_assert_comparison.rs:100:5
84 LL | debug_assert_ne!("".is_empty(), true);
85 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `debug_assert!(..)`
87 error: used `debug_assert_ne!` with a literal bool
88 --> $DIR/bool_assert_comparison.rs:101:5
90 LL | debug_assert_ne!(true, "".is_empty());
91 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `debug_assert!(..)`
93 error: used `debug_assert_ne!` with a literal bool
94 --> $DIR/bool_assert_comparison.rs:106:5
96 LL | debug_assert_ne!(b, true);
97 | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `debug_assert!(..)`
99 error: used `assert_eq!` with a literal bool
100 --> $DIR/bool_assert_comparison.rs:111:5
102 LL | assert_eq!("a".is_empty(), false, "tadam {}", 1);
103 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(..)`
105 error: used `assert_eq!` with a literal bool
106 --> $DIR/bool_assert_comparison.rs:112:5
108 LL | assert_eq!("a".is_empty(), false, "tadam {}", true);
109 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(..)`
111 error: used `assert_eq!` with a literal bool
112 --> $DIR/bool_assert_comparison.rs:113:5
114 LL | assert_eq!(false, "a".is_empty(), "tadam {}", true);
115 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(..)`
117 error: used `debug_assert_eq!` with a literal bool
118 --> $DIR/bool_assert_comparison.rs:118:5
120 LL | debug_assert_eq!("a".is_empty(), false, "tadam {}", 1);
121 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `debug_assert!(..)`
123 error: used `debug_assert_eq!` with a literal bool
124 --> $DIR/bool_assert_comparison.rs:119:5
126 LL | debug_assert_eq!("a".is_empty(), false, "tadam {}", true);
127 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `debug_assert!(..)`
129 error: used `debug_assert_eq!` with a literal bool
130 --> $DIR/bool_assert_comparison.rs:120:5
132 LL | debug_assert_eq!(false, "a".is_empty(), "tadam {}", true);
133 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `debug_assert!(..)`
135 error: aborting due to 22 previous errors