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