]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/bool_assert_comparison.stderr
Auto merge of #99963 - cjgillot:iter-submodule, r=compiler-errors
[rust.git] / src / tools / clippy / tests / ui / bool_assert_comparison.stderr
1 error: used `assert_eq!` with a literal bool
2   --> $DIR/bool_assert_comparison.rs:69:5
3    |
4 LL |     assert_eq!("a".is_empty(), false);
5    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(..)`
6    |
7    = note: `-D clippy::bool-assert-comparison` implied by `-D warnings`
8
9 error: used `assert_eq!` with a literal bool
10   --> $DIR/bool_assert_comparison.rs:70:5
11    |
12 LL |     assert_eq!("".is_empty(), true);
13    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(..)`
14
15 error: used `assert_eq!` with a literal bool
16   --> $DIR/bool_assert_comparison.rs:71:5
17    |
18 LL |     assert_eq!(true, "".is_empty());
19    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(..)`
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
27 error: used `assert_ne!` with a literal bool
28   --> $DIR/bool_assert_comparison.rs:79:5
29    |
30 LL |     assert_ne!("a".is_empty(), false);
31    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(..)`
32
33 error: used `assert_ne!` with a literal bool
34   --> $DIR/bool_assert_comparison.rs:80:5
35    |
36 LL |     assert_ne!("".is_empty(), true);
37    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(..)`
38
39 error: used `assert_ne!` with a literal bool
40   --> $DIR/bool_assert_comparison.rs:81:5
41    |
42 LL |     assert_ne!(true, "".is_empty());
43    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(..)`
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
51 error: used `debug_assert_eq!` with a literal bool
52   --> $DIR/bool_assert_comparison.rs:89:5
53    |
54 LL |     debug_assert_eq!("a".is_empty(), false);
55    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `debug_assert!(..)`
56
57 error: used `debug_assert_eq!` with a literal bool
58   --> $DIR/bool_assert_comparison.rs:90:5
59    |
60 LL |     debug_assert_eq!("".is_empty(), true);
61    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `debug_assert!(..)`
62
63 error: used `debug_assert_eq!` with a literal bool
64   --> $DIR/bool_assert_comparison.rs:91:5
65    |
66 LL |     debug_assert_eq!(true, "".is_empty());
67    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `debug_assert!(..)`
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
75 error: used `debug_assert_ne!` with a literal bool
76   --> $DIR/bool_assert_comparison.rs:99:5
77    |
78 LL |     debug_assert_ne!("a".is_empty(), false);
79    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `debug_assert!(..)`
80
81 error: used `debug_assert_ne!` with a literal bool
82   --> $DIR/bool_assert_comparison.rs:100:5
83    |
84 LL |     debug_assert_ne!("".is_empty(), true);
85    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `debug_assert!(..)`
86
87 error: used `debug_assert_ne!` with a literal bool
88   --> $DIR/bool_assert_comparison.rs:101:5
89    |
90 LL |     debug_assert_ne!(true, "".is_empty());
91    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `debug_assert!(..)`
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
99 error: used `assert_eq!` with a literal bool
100   --> $DIR/bool_assert_comparison.rs:111:5
101    |
102 LL |     assert_eq!("a".is_empty(), false, "tadam {}", 1);
103    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(..)`
104
105 error: used `assert_eq!` with a literal bool
106   --> $DIR/bool_assert_comparison.rs:112:5
107    |
108 LL |     assert_eq!("a".is_empty(), false, "tadam {}", true);
109    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(..)`
110
111 error: used `assert_eq!` with a literal bool
112   --> $DIR/bool_assert_comparison.rs:113:5
113    |
114 LL |     assert_eq!(false, "a".is_empty(), "tadam {}", true);
115    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(..)`
116
117 error: used `debug_assert_eq!` with a literal bool
118   --> $DIR/bool_assert_comparison.rs:118:5
119    |
120 LL |     debug_assert_eq!("a".is_empty(), false, "tadam {}", 1);
121    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `debug_assert!(..)`
122
123 error: used `debug_assert_eq!` with a literal bool
124   --> $DIR/bool_assert_comparison.rs:119:5
125    |
126 LL |     debug_assert_eq!("a".is_empty(), false, "tadam {}", true);
127    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `debug_assert!(..)`
128
129 error: used `debug_assert_eq!` with a literal bool
130   --> $DIR/bool_assert_comparison.rs:120:5
131    |
132 LL |     debug_assert_eq!(false, "a".is_empty(), "tadam {}", true);
133    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `debug_assert!(..)`
134
135 error: aborting due to 22 previous errors
136