1 error: using `ATOMIC_BOOL_INIT`
2 --> $DIR/replace_consts.rs:14:17
4 14 | { let foo = ATOMIC_BOOL_INIT; };
5 | ^^^^^^^^^^^^^^^^ help: try this: `AtomicBool::new(false)`
7 note: lint level defined here
8 --> $DIR/replace_consts.rs:5:9
10 5 | #![deny(clippy::replace_consts)]
11 | ^^^^^^^^^^^^^^^^^^^^^^
13 error: using `ATOMIC_ISIZE_INIT`
14 --> $DIR/replace_consts.rs:15:17
16 15 | { let foo = ATOMIC_ISIZE_INIT; };
17 | ^^^^^^^^^^^^^^^^^ help: try this: `AtomicIsize::new(0)`
19 error: using `ATOMIC_I8_INIT`
20 --> $DIR/replace_consts.rs:16:17
22 16 | { let foo = ATOMIC_I8_INIT; };
23 | ^^^^^^^^^^^^^^ help: try this: `AtomicI8::new(0)`
25 error: using `ATOMIC_I16_INIT`
26 --> $DIR/replace_consts.rs:17:17
28 17 | { let foo = ATOMIC_I16_INIT; };
29 | ^^^^^^^^^^^^^^^ help: try this: `AtomicI16::new(0)`
31 error: using `ATOMIC_I32_INIT`
32 --> $DIR/replace_consts.rs:18:17
34 18 | { let foo = ATOMIC_I32_INIT; };
35 | ^^^^^^^^^^^^^^^ help: try this: `AtomicI32::new(0)`
37 error: using `ATOMIC_I64_INIT`
38 --> $DIR/replace_consts.rs:19:17
40 19 | { let foo = ATOMIC_I64_INIT; };
41 | ^^^^^^^^^^^^^^^ help: try this: `AtomicI64::new(0)`
43 error: using `ATOMIC_USIZE_INIT`
44 --> $DIR/replace_consts.rs:20:17
46 20 | { let foo = ATOMIC_USIZE_INIT; };
47 | ^^^^^^^^^^^^^^^^^ help: try this: `AtomicUsize::new(0)`
49 error: using `ATOMIC_U8_INIT`
50 --> $DIR/replace_consts.rs:21:17
52 21 | { let foo = ATOMIC_U8_INIT; };
53 | ^^^^^^^^^^^^^^ help: try this: `AtomicU8::new(0)`
55 error: using `ATOMIC_U16_INIT`
56 --> $DIR/replace_consts.rs:22:17
58 22 | { let foo = ATOMIC_U16_INIT; };
59 | ^^^^^^^^^^^^^^^ help: try this: `AtomicU16::new(0)`
61 error: using `ATOMIC_U32_INIT`
62 --> $DIR/replace_consts.rs:23:17
64 23 | { let foo = ATOMIC_U32_INIT; };
65 | ^^^^^^^^^^^^^^^ help: try this: `AtomicU32::new(0)`
67 error: using `ATOMIC_U64_INIT`
68 --> $DIR/replace_consts.rs:24:17
70 24 | { let foo = ATOMIC_U64_INIT; };
71 | ^^^^^^^^^^^^^^^ help: try this: `AtomicU64::new(0)`
74 --> $DIR/replace_consts.rs:26:17
76 26 | { let foo = std::isize::MIN; };
77 | ^^^^^^^^^^^^^^^ help: try this: `isize::min_value()`
80 --> $DIR/replace_consts.rs:27:17
82 27 | { let foo = std::i8::MIN; };
83 | ^^^^^^^^^^^^ help: try this: `i8::min_value()`
86 --> $DIR/replace_consts.rs:28:17
88 28 | { let foo = std::i16::MIN; };
89 | ^^^^^^^^^^^^^ help: try this: `i16::min_value()`
92 --> $DIR/replace_consts.rs:29:17
94 29 | { let foo = std::i32::MIN; };
95 | ^^^^^^^^^^^^^ help: try this: `i32::min_value()`
98 --> $DIR/replace_consts.rs:30:17
100 30 | { let foo = std::i64::MIN; };
101 | ^^^^^^^^^^^^^ help: try this: `i64::min_value()`
104 --> $DIR/replace_consts.rs:31:17
106 31 | { let foo = std::i128::MIN; };
107 | ^^^^^^^^^^^^^^ help: try this: `i128::min_value()`
110 --> $DIR/replace_consts.rs:32:17
112 32 | { let foo = std::usize::MIN; };
113 | ^^^^^^^^^^^^^^^ help: try this: `usize::min_value()`
116 --> $DIR/replace_consts.rs:33:17
118 33 | { let foo = std::u8::MIN; };
119 | ^^^^^^^^^^^^ help: try this: `u8::min_value()`
122 --> $DIR/replace_consts.rs:34:17
124 34 | { let foo = std::u16::MIN; };
125 | ^^^^^^^^^^^^^ help: try this: `u16::min_value()`
128 --> $DIR/replace_consts.rs:35:17
130 35 | { let foo = std::u32::MIN; };
131 | ^^^^^^^^^^^^^ help: try this: `u32::min_value()`
134 --> $DIR/replace_consts.rs:36:17
136 36 | { let foo = std::u64::MIN; };
137 | ^^^^^^^^^^^^^ help: try this: `u64::min_value()`
140 --> $DIR/replace_consts.rs:37:17
142 37 | { let foo = std::u128::MIN; };
143 | ^^^^^^^^^^^^^^ help: try this: `u128::min_value()`
146 --> $DIR/replace_consts.rs:39:17
148 39 | { let foo = std::isize::MAX; };
149 | ^^^^^^^^^^^^^^^ help: try this: `isize::max_value()`
152 --> $DIR/replace_consts.rs:40:17
154 40 | { let foo = std::i8::MAX; };
155 | ^^^^^^^^^^^^ help: try this: `i8::max_value()`
158 --> $DIR/replace_consts.rs:41:17
160 41 | { let foo = std::i16::MAX; };
161 | ^^^^^^^^^^^^^ help: try this: `i16::max_value()`
164 --> $DIR/replace_consts.rs:42:17
166 42 | { let foo = std::i32::MAX; };
167 | ^^^^^^^^^^^^^ help: try this: `i32::max_value()`
170 --> $DIR/replace_consts.rs:43:17
172 43 | { let foo = std::i64::MAX; };
173 | ^^^^^^^^^^^^^ help: try this: `i64::max_value()`
176 --> $DIR/replace_consts.rs:44:17
178 44 | { let foo = std::i128::MAX; };
179 | ^^^^^^^^^^^^^^ help: try this: `i128::max_value()`
182 --> $DIR/replace_consts.rs:45:17
184 45 | { let foo = std::usize::MAX; };
185 | ^^^^^^^^^^^^^^^ help: try this: `usize::max_value()`
188 --> $DIR/replace_consts.rs:46:17
190 46 | { let foo = std::u8::MAX; };
191 | ^^^^^^^^^^^^ help: try this: `u8::max_value()`
194 --> $DIR/replace_consts.rs:47:17
196 47 | { let foo = std::u16::MAX; };
197 | ^^^^^^^^^^^^^ help: try this: `u16::max_value()`
200 --> $DIR/replace_consts.rs:48:17
202 48 | { let foo = std::u32::MAX; };
203 | ^^^^^^^^^^^^^ help: try this: `u32::max_value()`
206 --> $DIR/replace_consts.rs:49:17
208 49 | { let foo = std::u64::MAX; };
209 | ^^^^^^^^^^^^^ help: try this: `u64::max_value()`
212 --> $DIR/replace_consts.rs:50:17
214 50 | { let foo = std::u128::MAX; };
215 | ^^^^^^^^^^^^^^ help: try this: `u128::max_value()`
217 error: aborting due to 35 previous errors