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