summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui/bool_assert_comparison.stderr
blob: f57acf520d5f12e111ce76b150fd4ad98768f1c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
error: used `assert_eq!` with a literal bool
  --> $DIR/bool_assert_comparison.rs:16:5
   |
LL |     assert_eq!("a".is_empty(), false);
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(..)`
   |
   = note: `-D clippy::bool-assert-comparison` implied by `-D warnings`

error: used `assert_eq!` with a literal bool
  --> $DIR/bool_assert_comparison.rs:17:5
   |
LL |     assert_eq!("".is_empty(), true);
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(..)`

error: used `assert_eq!` with a literal bool
  --> $DIR/bool_assert_comparison.rs:18:5
   |
LL |     assert_eq!(true, "".is_empty());
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(..)`

error: used `assert_ne!` with a literal bool
  --> $DIR/bool_assert_comparison.rs:24:5
   |
LL |     assert_ne!("a".is_empty(), false);
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(..)`

error: used `assert_ne!` with a literal bool
  --> $DIR/bool_assert_comparison.rs:25:5
   |
LL |     assert_ne!("".is_empty(), true);
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(..)`

error: used `assert_ne!` with a literal bool
  --> $DIR/bool_assert_comparison.rs:26:5
   |
LL |     assert_ne!(true, "".is_empty());
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(..)`

error: used `debug_assert_eq!` with a literal bool
  --> $DIR/bool_assert_comparison.rs:32:5
   |
LL |     debug_assert_eq!("a".is_empty(), false);
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `debug_assert!(..)`

error: used `debug_assert_eq!` with a literal bool
  --> $DIR/bool_assert_comparison.rs:33:5
   |
LL |     debug_assert_eq!("".is_empty(), true);
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `debug_assert!(..)`

error: used `debug_assert_eq!` with a literal bool
  --> $DIR/bool_assert_comparison.rs:34:5
   |
LL |     debug_assert_eq!(true, "".is_empty());
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `debug_assert!(..)`

error: used `debug_assert_ne!` with a literal bool
  --> $DIR/bool_assert_comparison.rs:40:5
   |
LL |     debug_assert_ne!("a".is_empty(), false);
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `debug_assert!(..)`

error: used `debug_assert_ne!` with a literal bool
  --> $DIR/bool_assert_comparison.rs:41:5
   |
LL |     debug_assert_ne!("".is_empty(), true);
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `debug_assert!(..)`

error: used `debug_assert_ne!` with a literal bool
  --> $DIR/bool_assert_comparison.rs:42:5
   |
LL |     debug_assert_ne!(true, "".is_empty());
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `debug_assert!(..)`

error: used `assert_eq!` with a literal bool
  --> $DIR/bool_assert_comparison.rs:50:5
   |
LL |     assert_eq!("a".is_empty(), false, "tadam {}", 1);
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(..)`

error: used `assert_eq!` with a literal bool
  --> $DIR/bool_assert_comparison.rs:51:5
   |
LL |     assert_eq!("a".is_empty(), false, "tadam {}", true);
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(..)`

error: used `assert_eq!` with a literal bool
  --> $DIR/bool_assert_comparison.rs:52:5
   |
LL |     assert_eq!(false, "a".is_empty(), "tadam {}", true);
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(..)`

error: used `debug_assert_eq!` with a literal bool
  --> $DIR/bool_assert_comparison.rs:56:5
   |
LL |     debug_assert_eq!("a".is_empty(), false, "tadam {}", 1);
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `debug_assert!(..)`

error: used `debug_assert_eq!` with a literal bool
  --> $DIR/bool_assert_comparison.rs:57:5
   |
LL |     debug_assert_eq!("a".is_empty(), false, "tadam {}", true);
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `debug_assert!(..)`

error: used `debug_assert_eq!` with a literal bool
  --> $DIR/bool_assert_comparison.rs:58:5
   |
LL |     debug_assert_eq!(false, "a".is_empty(), "tadam {}", true);
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `debug_assert!(..)`

error: aborting due to 18 previous errors