|
1 | | -error: using `ATOMIC_BOOL_INIT` |
| 1 | +error: using `MIN` |
2 | 2 | --> $DIR/replace_consts.rs:14:17 |
3 | 3 | | |
4 | | -LL | { let foo = ATOMIC_BOOL_INIT; }; |
5 | | - | ^^^^^^^^^^^^^^^^ help: try this: `AtomicBool::new(false)` |
| 4 | +LL | { let foo = std::isize::MIN; }; |
| 5 | + | ^^^^^^^^^^^^^^^ help: try this: `isize::min_value()` |
6 | 6 | | |
7 | 7 | note: lint level defined here |
8 | 8 | --> $DIR/replace_consts.rs:4:9 |
9 | 9 | | |
10 | 10 | LL | #![deny(clippy::replace_consts)] |
11 | 11 | | ^^^^^^^^^^^^^^^^^^^^^^ |
12 | 12 |
|
13 | | -error: using `ATOMIC_ISIZE_INIT` |
14 | | - --> $DIR/replace_consts.rs:15:17 |
15 | | - | |
16 | | -LL | { let foo = ATOMIC_ISIZE_INIT; }; |
17 | | - | ^^^^^^^^^^^^^^^^^ help: try this: `AtomicIsize::new(0)` |
18 | | - |
19 | | -error: using `ATOMIC_I8_INIT` |
20 | | - --> $DIR/replace_consts.rs:16:17 |
21 | | - | |
22 | | -LL | { let foo = ATOMIC_I8_INIT; }; |
23 | | - | ^^^^^^^^^^^^^^ help: try this: `AtomicI8::new(0)` |
24 | | - |
25 | | -error: using `ATOMIC_I16_INIT` |
26 | | - --> $DIR/replace_consts.rs:17:17 |
27 | | - | |
28 | | -LL | { let foo = ATOMIC_I16_INIT; }; |
29 | | - | ^^^^^^^^^^^^^^^ help: try this: `AtomicI16::new(0)` |
30 | | - |
31 | | -error: using `ATOMIC_I32_INIT` |
32 | | - --> $DIR/replace_consts.rs:18:17 |
33 | | - | |
34 | | -LL | { let foo = ATOMIC_I32_INIT; }; |
35 | | - | ^^^^^^^^^^^^^^^ help: try this: `AtomicI32::new(0)` |
36 | | - |
37 | | -error: using `ATOMIC_I64_INIT` |
38 | | - --> $DIR/replace_consts.rs:19:17 |
39 | | - | |
40 | | -LL | { let foo = ATOMIC_I64_INIT; }; |
41 | | - | ^^^^^^^^^^^^^^^ help: try this: `AtomicI64::new(0)` |
42 | | - |
43 | | -error: using `ATOMIC_USIZE_INIT` |
44 | | - --> $DIR/replace_consts.rs:20:17 |
45 | | - | |
46 | | -LL | { let foo = ATOMIC_USIZE_INIT; }; |
47 | | - | ^^^^^^^^^^^^^^^^^ help: try this: `AtomicUsize::new(0)` |
48 | | - |
49 | | -error: using `ATOMIC_U8_INIT` |
50 | | - --> $DIR/replace_consts.rs:21:17 |
51 | | - | |
52 | | -LL | { let foo = ATOMIC_U8_INIT; }; |
53 | | - | ^^^^^^^^^^^^^^ help: try this: `AtomicU8::new(0)` |
54 | | - |
55 | | -error: using `ATOMIC_U16_INIT` |
56 | | - --> $DIR/replace_consts.rs:22:17 |
57 | | - | |
58 | | -LL | { let foo = ATOMIC_U16_INIT; }; |
59 | | - | ^^^^^^^^^^^^^^^ help: try this: `AtomicU16::new(0)` |
60 | | - |
61 | | -error: using `ATOMIC_U32_INIT` |
62 | | - --> $DIR/replace_consts.rs:23:17 |
63 | | - | |
64 | | -LL | { let foo = ATOMIC_U32_INIT; }; |
65 | | - | ^^^^^^^^^^^^^^^ help: try this: `AtomicU32::new(0)` |
66 | | - |
67 | | -error: using `ATOMIC_U64_INIT` |
68 | | - --> $DIR/replace_consts.rs:24:17 |
69 | | - | |
70 | | -LL | { let foo = ATOMIC_U64_INIT; }; |
71 | | - | ^^^^^^^^^^^^^^^ help: try this: `AtomicU64::new(0)` |
72 | | - |
73 | | -error: using `MIN` |
74 | | - --> $DIR/replace_consts.rs:26:17 |
75 | | - | |
76 | | -LL | { let foo = std::isize::MIN; }; |
77 | | - | ^^^^^^^^^^^^^^^ help: try this: `isize::min_value()` |
78 | | - |
79 | 13 | error: using `MIN` |
80 | | - --> $DIR/replace_consts.rs:27:17 |
| 14 | + --> $DIR/replace_consts.rs:15:17 |
81 | 15 | | |
82 | 16 | LL | { let foo = std::i8::MIN; }; |
83 | 17 | | ^^^^^^^^^^^^ help: try this: `i8::min_value()` |
84 | 18 |
|
85 | 19 | error: using `MIN` |
86 | | - --> $DIR/replace_consts.rs:28:17 |
| 20 | + --> $DIR/replace_consts.rs:16:17 |
87 | 21 | | |
88 | 22 | LL | { let foo = std::i16::MIN; }; |
89 | 23 | | ^^^^^^^^^^^^^ help: try this: `i16::min_value()` |
90 | 24 |
|
91 | 25 | error: using `MIN` |
92 | | - --> $DIR/replace_consts.rs:29:17 |
| 26 | + --> $DIR/replace_consts.rs:17:17 |
93 | 27 | | |
94 | 28 | LL | { let foo = std::i32::MIN; }; |
95 | 29 | | ^^^^^^^^^^^^^ help: try this: `i32::min_value()` |
96 | 30 |
|
97 | 31 | error: using `MIN` |
98 | | - --> $DIR/replace_consts.rs:30:17 |
| 32 | + --> $DIR/replace_consts.rs:18:17 |
99 | 33 | | |
100 | 34 | LL | { let foo = std::i64::MIN; }; |
101 | 35 | | ^^^^^^^^^^^^^ help: try this: `i64::min_value()` |
102 | 36 |
|
103 | 37 | error: using `MIN` |
104 | | - --> $DIR/replace_consts.rs:31:17 |
| 38 | + --> $DIR/replace_consts.rs:19:17 |
105 | 39 | | |
106 | 40 | LL | { let foo = std::i128::MIN; }; |
107 | 41 | | ^^^^^^^^^^^^^^ help: try this: `i128::min_value()` |
108 | 42 |
|
109 | 43 | error: using `MIN` |
110 | | - --> $DIR/replace_consts.rs:32:17 |
| 44 | + --> $DIR/replace_consts.rs:20:17 |
111 | 45 | | |
112 | 46 | LL | { let foo = std::usize::MIN; }; |
113 | 47 | | ^^^^^^^^^^^^^^^ help: try this: `usize::min_value()` |
114 | 48 |
|
115 | 49 | error: using `MIN` |
116 | | - --> $DIR/replace_consts.rs:33:17 |
| 50 | + --> $DIR/replace_consts.rs:21:17 |
117 | 51 | | |
118 | 52 | LL | { let foo = std::u8::MIN; }; |
119 | 53 | | ^^^^^^^^^^^^ help: try this: `u8::min_value()` |
120 | 54 |
|
121 | 55 | error: using `MIN` |
122 | | - --> $DIR/replace_consts.rs:34:17 |
| 56 | + --> $DIR/replace_consts.rs:22:17 |
123 | 57 | | |
124 | 58 | LL | { let foo = std::u16::MIN; }; |
125 | 59 | | ^^^^^^^^^^^^^ help: try this: `u16::min_value()` |
126 | 60 |
|
127 | 61 | error: using `MIN` |
128 | | - --> $DIR/replace_consts.rs:35:17 |
| 62 | + --> $DIR/replace_consts.rs:23:17 |
129 | 63 | | |
130 | 64 | LL | { let foo = std::u32::MIN; }; |
131 | 65 | | ^^^^^^^^^^^^^ help: try this: `u32::min_value()` |
132 | 66 |
|
133 | 67 | error: using `MIN` |
134 | | - --> $DIR/replace_consts.rs:36:17 |
| 68 | + --> $DIR/replace_consts.rs:24:17 |
135 | 69 | | |
136 | 70 | LL | { let foo = std::u64::MIN; }; |
137 | 71 | | ^^^^^^^^^^^^^ help: try this: `u64::min_value()` |
138 | 72 |
|
139 | 73 | error: using `MIN` |
140 | | - --> $DIR/replace_consts.rs:37:17 |
| 74 | + --> $DIR/replace_consts.rs:25:17 |
141 | 75 | | |
142 | 76 | LL | { let foo = std::u128::MIN; }; |
143 | 77 | | ^^^^^^^^^^^^^^ help: try this: `u128::min_value()` |
144 | 78 |
|
145 | 79 | error: using `MAX` |
146 | | - --> $DIR/replace_consts.rs:39:17 |
| 80 | + --> $DIR/replace_consts.rs:27:17 |
147 | 81 | | |
148 | 82 | LL | { let foo = std::isize::MAX; }; |
149 | 83 | | ^^^^^^^^^^^^^^^ help: try this: `isize::max_value()` |
150 | 84 |
|
151 | 85 | error: using `MAX` |
152 | | - --> $DIR/replace_consts.rs:40:17 |
| 86 | + --> $DIR/replace_consts.rs:28:17 |
153 | 87 | | |
154 | 88 | LL | { let foo = std::i8::MAX; }; |
155 | 89 | | ^^^^^^^^^^^^ help: try this: `i8::max_value()` |
156 | 90 |
|
157 | 91 | error: using `MAX` |
158 | | - --> $DIR/replace_consts.rs:41:17 |
| 92 | + --> $DIR/replace_consts.rs:29:17 |
159 | 93 | | |
160 | 94 | LL | { let foo = std::i16::MAX; }; |
161 | 95 | | ^^^^^^^^^^^^^ help: try this: `i16::max_value()` |
162 | 96 |
|
163 | 97 | error: using `MAX` |
164 | | - --> $DIR/replace_consts.rs:42:17 |
| 98 | + --> $DIR/replace_consts.rs:30:17 |
165 | 99 | | |
166 | 100 | LL | { let foo = std::i32::MAX; }; |
167 | 101 | | ^^^^^^^^^^^^^ help: try this: `i32::max_value()` |
168 | 102 |
|
169 | 103 | error: using `MAX` |
170 | | - --> $DIR/replace_consts.rs:43:17 |
| 104 | + --> $DIR/replace_consts.rs:31:17 |
171 | 105 | | |
172 | 106 | LL | { let foo = std::i64::MAX; }; |
173 | 107 | | ^^^^^^^^^^^^^ help: try this: `i64::max_value()` |
174 | 108 |
|
175 | 109 | error: using `MAX` |
176 | | - --> $DIR/replace_consts.rs:44:17 |
| 110 | + --> $DIR/replace_consts.rs:32:17 |
177 | 111 | | |
178 | 112 | LL | { let foo = std::i128::MAX; }; |
179 | 113 | | ^^^^^^^^^^^^^^ help: try this: `i128::max_value()` |
180 | 114 |
|
181 | 115 | error: using `MAX` |
182 | | - --> $DIR/replace_consts.rs:45:17 |
| 116 | + --> $DIR/replace_consts.rs:33:17 |
183 | 117 | | |
184 | 118 | LL | { let foo = std::usize::MAX; }; |
185 | 119 | | ^^^^^^^^^^^^^^^ help: try this: `usize::max_value()` |
186 | 120 |
|
187 | 121 | error: using `MAX` |
188 | | - --> $DIR/replace_consts.rs:46:17 |
| 122 | + --> $DIR/replace_consts.rs:34:17 |
189 | 123 | | |
190 | 124 | LL | { let foo = std::u8::MAX; }; |
191 | 125 | | ^^^^^^^^^^^^ help: try this: `u8::max_value()` |
192 | 126 |
|
193 | 127 | error: using `MAX` |
194 | | - --> $DIR/replace_consts.rs:47:17 |
| 128 | + --> $DIR/replace_consts.rs:35:17 |
195 | 129 | | |
196 | 130 | LL | { let foo = std::u16::MAX; }; |
197 | 131 | | ^^^^^^^^^^^^^ help: try this: `u16::max_value()` |
198 | 132 |
|
199 | 133 | error: using `MAX` |
200 | | - --> $DIR/replace_consts.rs:48:17 |
| 134 | + --> $DIR/replace_consts.rs:36:17 |
201 | 135 | | |
202 | 136 | LL | { let foo = std::u32::MAX; }; |
203 | 137 | | ^^^^^^^^^^^^^ help: try this: `u32::max_value()` |
204 | 138 |
|
205 | 139 | error: using `MAX` |
206 | | - --> $DIR/replace_consts.rs:49:17 |
| 140 | + --> $DIR/replace_consts.rs:37:17 |
207 | 141 | | |
208 | 142 | LL | { let foo = std::u64::MAX; }; |
209 | 143 | | ^^^^^^^^^^^^^ help: try this: `u64::max_value()` |
210 | 144 |
|
211 | 145 | error: using `MAX` |
212 | | - --> $DIR/replace_consts.rs:50:17 |
| 146 | + --> $DIR/replace_consts.rs:38:17 |
213 | 147 | | |
214 | 148 | LL | { let foo = std::u128::MAX; }; |
215 | 149 | | ^^^^^^^^^^^^^^ help: try this: `u128::max_value()` |
216 | 150 |
|
217 | | -error: aborting due to 35 previous errors |
| 151 | +error: aborting due to 24 previous errors |
218 | 152 |
|
0 commit comments