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