|
1 | 1 | error: used `assert_eq!` with a literal bool
|
2 |
| - --> $DIR/bool_assert_comparison.rs:16:5 |
| 2 | + --> $DIR/bool_assert_comparison.rs:69:5 |
3 | 3 | |
|
4 | 4 | LL | assert_eq!("a".is_empty(), false);
|
5 | 5 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(..)`
|
6 | 6 | |
|
7 | 7 | = note: `-D clippy::bool-assert-comparison` implied by `-D warnings`
|
8 | 8 |
|
9 | 9 | error: used `assert_eq!` with a literal bool
|
10 |
| - --> $DIR/bool_assert_comparison.rs:17:5 |
| 10 | + --> $DIR/bool_assert_comparison.rs:70:5 |
11 | 11 | |
|
12 | 12 | LL | assert_eq!("".is_empty(), true);
|
13 | 13 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(..)`
|
14 | 14 |
|
15 | 15 | error: used `assert_eq!` with a literal bool
|
16 |
| - --> $DIR/bool_assert_comparison.rs:18:5 |
| 16 | + --> $DIR/bool_assert_comparison.rs:71:5 |
17 | 17 | |
|
18 | 18 | LL | assert_eq!(true, "".is_empty());
|
19 | 19 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(..)`
|
20 | 20 |
|
| 21 | +error: used `assert_eq!` with a literal bool |
| 22 | + --> $DIR/bool_assert_comparison.rs:76:5 |
| 23 | + | |
| 24 | +LL | assert_eq!(b, true); |
| 25 | + | ^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(..)` |
| 26 | + |
21 | 27 | error: used `assert_ne!` with a literal bool
|
22 |
| - --> $DIR/bool_assert_comparison.rs:24:5 |
| 28 | + --> $DIR/bool_assert_comparison.rs:79:5 |
23 | 29 | |
|
24 | 30 | LL | assert_ne!("a".is_empty(), false);
|
25 | 31 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(..)`
|
26 | 32 |
|
27 | 33 | error: used `assert_ne!` with a literal bool
|
28 |
| - --> $DIR/bool_assert_comparison.rs:25:5 |
| 34 | + --> $DIR/bool_assert_comparison.rs:80:5 |
29 | 35 | |
|
30 | 36 | LL | assert_ne!("".is_empty(), true);
|
31 | 37 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(..)`
|
32 | 38 |
|
33 | 39 | error: used `assert_ne!` with a literal bool
|
34 |
| - --> $DIR/bool_assert_comparison.rs:26:5 |
| 40 | + --> $DIR/bool_assert_comparison.rs:81:5 |
35 | 41 | |
|
36 | 42 | LL | assert_ne!(true, "".is_empty());
|
37 | 43 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(..)`
|
38 | 44 |
|
| 45 | +error: used `assert_ne!` with a literal bool |
| 46 | + --> $DIR/bool_assert_comparison.rs:86:5 |
| 47 | + | |
| 48 | +LL | assert_ne!(b, true); |
| 49 | + | ^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(..)` |
| 50 | + |
39 | 51 | error: used `debug_assert_eq!` with a literal bool
|
40 |
| - --> $DIR/bool_assert_comparison.rs:32:5 |
| 52 | + --> $DIR/bool_assert_comparison.rs:89:5 |
41 | 53 | |
|
42 | 54 | LL | debug_assert_eq!("a".is_empty(), false);
|
43 | 55 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `debug_assert!(..)`
|
44 | 56 |
|
45 | 57 | error: used `debug_assert_eq!` with a literal bool
|
46 |
| - --> $DIR/bool_assert_comparison.rs:33:5 |
| 58 | + --> $DIR/bool_assert_comparison.rs:90:5 |
47 | 59 | |
|
48 | 60 | LL | debug_assert_eq!("".is_empty(), true);
|
49 | 61 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `debug_assert!(..)`
|
50 | 62 |
|
51 | 63 | error: used `debug_assert_eq!` with a literal bool
|
52 |
| - --> $DIR/bool_assert_comparison.rs:34:5 |
| 64 | + --> $DIR/bool_assert_comparison.rs:91:5 |
53 | 65 | |
|
54 | 66 | LL | debug_assert_eq!(true, "".is_empty());
|
55 | 67 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `debug_assert!(..)`
|
56 | 68 |
|
| 69 | +error: used `debug_assert_eq!` with a literal bool |
| 70 | + --> $DIR/bool_assert_comparison.rs:96:5 |
| 71 | + | |
| 72 | +LL | debug_assert_eq!(b, true); |
| 73 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `debug_assert!(..)` |
| 74 | + |
57 | 75 | error: used `debug_assert_ne!` with a literal bool
|
58 |
| - --> $DIR/bool_assert_comparison.rs:40:5 |
| 76 | + --> $DIR/bool_assert_comparison.rs:99:5 |
59 | 77 | |
|
60 | 78 | LL | debug_assert_ne!("a".is_empty(), false);
|
61 | 79 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `debug_assert!(..)`
|
62 | 80 |
|
63 | 81 | error: used `debug_assert_ne!` with a literal bool
|
64 |
| - --> $DIR/bool_assert_comparison.rs:41:5 |
| 82 | + --> $DIR/bool_assert_comparison.rs:100:5 |
65 | 83 | |
|
66 | 84 | LL | debug_assert_ne!("".is_empty(), true);
|
67 | 85 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `debug_assert!(..)`
|
68 | 86 |
|
69 | 87 | error: used `debug_assert_ne!` with a literal bool
|
70 |
| - --> $DIR/bool_assert_comparison.rs:42:5 |
| 88 | + --> $DIR/bool_assert_comparison.rs:101:5 |
71 | 89 | |
|
72 | 90 | LL | debug_assert_ne!(true, "".is_empty());
|
73 | 91 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `debug_assert!(..)`
|
74 | 92 |
|
| 93 | +error: used `debug_assert_ne!` with a literal bool |
| 94 | + --> $DIR/bool_assert_comparison.rs:106:5 |
| 95 | + | |
| 96 | +LL | debug_assert_ne!(b, true); |
| 97 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `debug_assert!(..)` |
| 98 | + |
75 | 99 | error: used `assert_eq!` with a literal bool
|
76 |
| - --> $DIR/bool_assert_comparison.rs:50:5 |
| 100 | + --> $DIR/bool_assert_comparison.rs:111:5 |
77 | 101 | |
|
78 | 102 | LL | assert_eq!("a".is_empty(), false, "tadam {}", 1);
|
79 | 103 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(..)`
|
80 | 104 |
|
81 | 105 | error: used `assert_eq!` with a literal bool
|
82 |
| - --> $DIR/bool_assert_comparison.rs:51:5 |
| 106 | + --> $DIR/bool_assert_comparison.rs:112:5 |
83 | 107 | |
|
84 | 108 | LL | assert_eq!("a".is_empty(), false, "tadam {}", true);
|
85 | 109 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(..)`
|
86 | 110 |
|
87 | 111 | error: used `assert_eq!` with a literal bool
|
88 |
| - --> $DIR/bool_assert_comparison.rs:52:5 |
| 112 | + --> $DIR/bool_assert_comparison.rs:113:5 |
89 | 113 | |
|
90 | 114 | LL | assert_eq!(false, "a".is_empty(), "tadam {}", true);
|
91 | 115 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(..)`
|
92 | 116 |
|
93 | 117 | error: used `debug_assert_eq!` with a literal bool
|
94 |
| - --> $DIR/bool_assert_comparison.rs:56:5 |
| 118 | + --> $DIR/bool_assert_comparison.rs:118:5 |
95 | 119 | |
|
96 | 120 | LL | debug_assert_eq!("a".is_empty(), false, "tadam {}", 1);
|
97 | 121 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `debug_assert!(..)`
|
98 | 122 |
|
99 | 123 | error: used `debug_assert_eq!` with a literal bool
|
100 |
| - --> $DIR/bool_assert_comparison.rs:57:5 |
| 124 | + --> $DIR/bool_assert_comparison.rs:119:5 |
101 | 125 | |
|
102 | 126 | LL | debug_assert_eq!("a".is_empty(), false, "tadam {}", true);
|
103 | 127 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `debug_assert!(..)`
|
104 | 128 |
|
105 | 129 | error: used `debug_assert_eq!` with a literal bool
|
106 |
| - --> $DIR/bool_assert_comparison.rs:58:5 |
| 130 | + --> $DIR/bool_assert_comparison.rs:120:5 |
107 | 131 | |
|
108 | 132 | LL | debug_assert_eq!(false, "a".is_empty(), "tadam {}", true);
|
109 | 133 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `debug_assert!(..)`
|
110 | 134 |
|
111 |
| -error: aborting due to 18 previous errors |
| 135 | +error: aborting due to 22 previous errors |
112 | 136 |
|
0 commit comments