Skip to content

Commit e2d7ef9

Browse files
committed
attempt fix stderr
1 parent f25d4fd commit e2d7ef9

File tree

1 file changed

+70
-106
lines changed

1 file changed

+70
-106
lines changed

tests/ui/replace_consts.stderr

Lines changed: 70 additions & 106 deletions
Original file line numberDiff line numberDiff line change
@@ -1,218 +1,182 @@
11
error: using `ATOMIC_BOOL_INIT`
2-
--> $DIR/replace_consts.rs:11:17
2+
--> $DIR/replace_consts.rs:16:17
33
|
4-
11 | { let foo = ATOMIC_BOOL_INIT; };
4+
16 | { let foo = ATOMIC_BOOL_INIT; };
55
| ^^^^^^^^^^^^^^^^ help: try this: `AtomicBool::new(false)`
66
|
77
note: lint level defined here
88
--> $DIR/replace_consts.rs:3:9
99
|
1010
3 | #![deny(replace_consts)]
1111
| ^^^^^^^^^^^^^^
12-
1312
error: using `ATOMIC_ISIZE_INIT`
14-
--> $DIR/replace_consts.rs:12:17
13+
--> $DIR/replace_consts.rs:17:17
1514
|
16-
12 | { let foo = ATOMIC_ISIZE_INIT; };
15+
17 | { let foo = ATOMIC_ISIZE_INIT; };
1716
| ^^^^^^^^^^^^^^^^^ help: try this: `AtomicIsize::new(0)`
18-
1917
error: using `ATOMIC_I8_INIT`
20-
--> $DIR/replace_consts.rs:13:17
18+
--> $DIR/replace_consts.rs:18:17
2119
|
22-
13 | { let foo = ATOMIC_I8_INIT; };
20+
18 | { let foo = ATOMIC_I8_INIT; };
2321
| ^^^^^^^^^^^^^^ help: try this: `AtomicI8::new(0)`
24-
2522
error: using `ATOMIC_I16_INIT`
26-
--> $DIR/replace_consts.rs:14:17
23+
--> $DIR/replace_consts.rs:19:17
2724
|
28-
14 | { let foo = ATOMIC_I16_INIT; };
25+
19 | { let foo = ATOMIC_I16_INIT; };
2926
| ^^^^^^^^^^^^^^^ help: try this: `AtomicI16::new(0)`
30-
3127
error: using `ATOMIC_I32_INIT`
32-
--> $DIR/replace_consts.rs:15:17
28+
--> $DIR/replace_consts.rs:20:17
3329
|
34-
15 | { let foo = ATOMIC_I32_INIT; };
30+
20 | { let foo = ATOMIC_I32_INIT; };
3531
| ^^^^^^^^^^^^^^^ help: try this: `AtomicI32::new(0)`
36-
3732
error: using `ATOMIC_I64_INIT`
38-
--> $DIR/replace_consts.rs:16:17
33+
--> $DIR/replace_consts.rs:21:17
3934
|
40-
16 | { let foo = ATOMIC_I64_INIT; };
35+
21 | { let foo = ATOMIC_I64_INIT; };
4136
| ^^^^^^^^^^^^^^^ help: try this: `AtomicI64::new(0)`
42-
4337
error: using `ATOMIC_USIZE_INIT`
44-
--> $DIR/replace_consts.rs:17:17
38+
--> $DIR/replace_consts.rs:22:17
4539
|
46-
17 | { let foo = ATOMIC_USIZE_INIT; };
40+
22 | { let foo = ATOMIC_USIZE_INIT; };
4741
| ^^^^^^^^^^^^^^^^^ help: try this: `AtomicUsize::new(0)`
48-
4942
error: using `ATOMIC_U8_INIT`
50-
--> $DIR/replace_consts.rs:18:17
43+
--> $DIR/replace_consts.rs:23:17
5144
|
52-
18 | { let foo = ATOMIC_U8_INIT; };
45+
23 | { let foo = ATOMIC_U8_INIT; };
5346
| ^^^^^^^^^^^^^^ help: try this: `AtomicU8::new(0)`
54-
5547
error: using `ATOMIC_U16_INIT`
56-
--> $DIR/replace_consts.rs:19:17
48+
--> $DIR/replace_consts.rs:24:17
5749
|
58-
19 | { let foo = ATOMIC_U16_INIT; };
50+
24 | { let foo = ATOMIC_U16_INIT; };
5951
| ^^^^^^^^^^^^^^^ help: try this: `AtomicU16::new(0)`
60-
6152
error: using `ATOMIC_U32_INIT`
62-
--> $DIR/replace_consts.rs:20:17
53+
--> $DIR/replace_consts.rs:25:17
6354
|
64-
20 | { let foo = ATOMIC_U32_INIT; };
55+
25 | { let foo = ATOMIC_U32_INIT; };
6556
| ^^^^^^^^^^^^^^^ help: try this: `AtomicU32::new(0)`
66-
6757
error: using `ATOMIC_U64_INIT`
68-
--> $DIR/replace_consts.rs:21:17
58+
--> $DIR/replace_consts.rs:26:17
6959
|
70-
21 | { let foo = ATOMIC_U64_INIT; };
60+
26 | { let foo = ATOMIC_U64_INIT; };
7161
| ^^^^^^^^^^^^^^^ help: try this: `AtomicU64::new(0)`
72-
7362
error: using `MIN`
74-
--> $DIR/replace_consts.rs:23:17
63+
--> $DIR/replace_consts.rs:28:17
7564
|
76-
23 | { let foo = std::isize::MIN; };
65+
28 | { let foo = std::isize::MIN; };
7766
| ^^^^^^^^^^^^^^^ help: try this: `isize::min_value()`
78-
7967
error: using `MIN`
80-
--> $DIR/replace_consts.rs:24:17
68+
--> $DIR/replace_consts.rs:29:17
8169
|
82-
24 | { let foo = std::i8::MIN; };
70+
29 | { let foo = std::i8::MIN; };
8371
| ^^^^^^^^^^^^ help: try this: `i8::min_value()`
84-
8572
error: using `MIN`
86-
--> $DIR/replace_consts.rs:25:17
73+
--> $DIR/replace_consts.rs:30:17
8774
|
88-
25 | { let foo = std::i16::MIN; };
75+
30 | { let foo = std::i16::MIN; };
8976
| ^^^^^^^^^^^^^ help: try this: `i16::min_value()`
90-
9177
error: using `MIN`
92-
--> $DIR/replace_consts.rs:26:17
78+
--> $DIR/replace_consts.rs:31:17
9379
|
94-
26 | { let foo = std::i32::MIN; };
80+
31 | { let foo = std::i32::MIN; };
9581
| ^^^^^^^^^^^^^ help: try this: `i32::min_value()`
96-
9782
error: using `MIN`
98-
--> $DIR/replace_consts.rs:27:17
83+
--> $DIR/replace_consts.rs:32:17
9984
|
100-
27 | { let foo = std::i64::MIN; };
85+
32 | { let foo = std::i64::MIN; };
10186
| ^^^^^^^^^^^^^ help: try this: `i64::min_value()`
102-
10387
error: using `MIN`
104-
--> $DIR/replace_consts.rs:28:17
88+
--> $DIR/replace_consts.rs:33:17
10589
|
106-
28 | { let foo = std::i128::MIN; };
90+
33 | { let foo = std::i128::MIN; };
10791
| ^^^^^^^^^^^^^^ help: try this: `i128::min_value()`
108-
10992
error: using `MIN`
110-
--> $DIR/replace_consts.rs:29:17
93+
--> $DIR/replace_consts.rs:34:17
11194
|
112-
29 | { let foo = std::usize::MIN; };
95+
34 | { let foo = std::usize::MIN; };
11396
| ^^^^^^^^^^^^^^^ help: try this: `usize::min_value()`
114-
11597
error: using `MIN`
116-
--> $DIR/replace_consts.rs:30:17
98+
--> $DIR/replace_consts.rs:35:17
11799
|
118-
30 | { let foo = std::u8::MIN; };
100+
35 | { let foo = std::u8::MIN; };
119101
| ^^^^^^^^^^^^ help: try this: `u8::min_value()`
120-
121102
error: using `MIN`
122-
--> $DIR/replace_consts.rs:31:17
103+
--> $DIR/replace_consts.rs:36:17
123104
|
124-
31 | { let foo = std::u16::MIN; };
105+
36 | { let foo = std::u16::MIN; };
125106
| ^^^^^^^^^^^^^ help: try this: `u16::min_value()`
126-
127107
error: using `MIN`
128-
--> $DIR/replace_consts.rs:32:17
108+
--> $DIR/replace_consts.rs:37:17
129109
|
130-
32 | { let foo = std::u32::MIN; };
110+
37 | { let foo = std::u32::MIN; };
131111
| ^^^^^^^^^^^^^ help: try this: `u32::min_value()`
132-
133112
error: using `MIN`
134-
--> $DIR/replace_consts.rs:33:17
113+
--> $DIR/replace_consts.rs:38:17
135114
|
136-
33 | { let foo = std::u64::MIN; };
115+
38 | { let foo = std::u64::MIN; };
137116
| ^^^^^^^^^^^^^ help: try this: `u64::min_value()`
138-
139117
error: using `MIN`
140-
--> $DIR/replace_consts.rs:34:17
118+
--> $DIR/replace_consts.rs:39:17
141119
|
142-
34 | { let foo = std::u128::MIN; };
120+
39 | { let foo = std::u128::MIN; };
143121
| ^^^^^^^^^^^^^^ help: try this: `u128::min_value()`
144-
145122
error: using `MAX`
146-
--> $DIR/replace_consts.rs:36:17
123+
--> $DIR/replace_consts.rs:41:17
147124
|
148-
36 | { let foo = std::isize::MAX; };
125+
41 | { let foo = std::isize::MAX; };
149126
| ^^^^^^^^^^^^^^^ help: try this: `isize::max_value()`
150-
151127
error: using `MAX`
152-
--> $DIR/replace_consts.rs:37:17
128+
--> $DIR/replace_consts.rs:42:17
153129
|
154-
37 | { let foo = std::i8::MAX; };
130+
42 | { let foo = std::i8::MAX; };
155131
| ^^^^^^^^^^^^ help: try this: `i8::max_value()`
156-
157132
error: using `MAX`
158-
--> $DIR/replace_consts.rs:38:17
133+
--> $DIR/replace_consts.rs:43:17
159134
|
160-
38 | { let foo = std::i16::MAX; };
135+
43 | { let foo = std::i16::MAX; };
161136
| ^^^^^^^^^^^^^ help: try this: `i16::max_value()`
162-
163137
error: using `MAX`
164-
--> $DIR/replace_consts.rs:39:17
138+
--> $DIR/replace_consts.rs:44:17
165139
|
166-
39 | { let foo = std::i32::MAX; };
140+
44 | { let foo = std::i32::MAX; };
167141
| ^^^^^^^^^^^^^ help: try this: `i32::max_value()`
168-
169142
error: using `MAX`
170-
--> $DIR/replace_consts.rs:40:17
143+
--> $DIR/replace_consts.rs:45:17
171144
|
172-
40 | { let foo = std::i64::MAX; };
145+
45 | { let foo = std::i64::MAX; };
173146
| ^^^^^^^^^^^^^ help: try this: `i64::max_value()`
174-
175147
error: using `MAX`
176-
--> $DIR/replace_consts.rs:41:17
148+
--> $DIR/replace_consts.rs:46:17
177149
|
178-
41 | { let foo = std::i128::MAX; };
150+
46 | { let foo = std::i128::MAX; };
179151
| ^^^^^^^^^^^^^^ help: try this: `i128::max_value()`
180-
181152
error: using `MAX`
182-
--> $DIR/replace_consts.rs:42:17
153+
--> $DIR/replace_consts.rs:47:17
183154
|
184-
42 | { let foo = std::usize::MAX; };
155+
47 | { let foo = std::usize::MAX; };
185156
| ^^^^^^^^^^^^^^^ help: try this: `usize::max_value()`
186-
187157
error: using `MAX`
188-
--> $DIR/replace_consts.rs:43:17
158+
--> $DIR/replace_consts.rs:48:17
189159
|
190-
43 | { let foo = std::u8::MAX; };
160+
48 | { let foo = std::u8::MAX; };
191161
| ^^^^^^^^^^^^ help: try this: `u8::max_value()`
192-
193162
error: using `MAX`
194-
--> $DIR/replace_consts.rs:44:17
163+
--> $DIR/replace_consts.rs:49:17
195164
|
196-
44 | { let foo = std::u16::MAX; };
165+
49 | { let foo = std::u16::MAX; };
197166
| ^^^^^^^^^^^^^ help: try this: `u16::max_value()`
198-
199167
error: using `MAX`
200-
--> $DIR/replace_consts.rs:45:17
168+
--> $DIR/replace_consts.rs:50:17
201169
|
202-
45 | { let foo = std::u32::MAX; };
170+
50 | { let foo = std::u32::MAX; };
203171
| ^^^^^^^^^^^^^ help: try this: `u32::max_value()`
204-
205172
error: using `MAX`
206-
--> $DIR/replace_consts.rs:46:17
173+
--> $DIR/replace_consts.rs:51:17
207174
|
208-
46 | { let foo = std::u64::MAX; };
175+
51 | { let foo = std::u64::MAX; };
209176
| ^^^^^^^^^^^^^ help: try this: `u64::max_value()`
210-
211177
error: using `MAX`
212-
--> $DIR/replace_consts.rs:47:17
178+
--> $DIR/replace_consts.rs:52:17
213179
|
214-
47 | { let foo = std::u128::MAX; };
180+
52 | { let foo = std::u128::MAX; };
215181
| ^^^^^^^^^^^^^^ help: try this: `u128::max_value()`
216-
217182
error: aborting due to 35 previous errors
218-

0 commit comments

Comments
 (0)