1 error: using `ATOMIC_BOOL_INIT`
2 --> $DIR/replace_consts.rs:16:17
4 16 | { let foo = ATOMIC_BOOL_INIT; };
5 | ^^^^^^^^^^^^^^^^ help: try this: `AtomicBool::new(false)`
7 note: lint level defined here
8 --> $DIR/replace_consts.rs:3:9
10 3 | #![deny(replace_consts)]
12 error: using `ATOMIC_ISIZE_INIT`
13 --> $DIR/replace_consts.rs:17:17
15 17 | { let foo = ATOMIC_ISIZE_INIT; };
16 | ^^^^^^^^^^^^^^^^^ help: try this: `AtomicIsize::new(0)`
17 error: using `ATOMIC_I8_INIT`
18 --> $DIR/replace_consts.rs:18:17
20 18 | { let foo = ATOMIC_I8_INIT; };
21 | ^^^^^^^^^^^^^^ help: try this: `AtomicI8::new(0)`
22 error: using `ATOMIC_I16_INIT`
23 --> $DIR/replace_consts.rs:19:17
25 19 | { let foo = ATOMIC_I16_INIT; };
26 | ^^^^^^^^^^^^^^^ help: try this: `AtomicI16::new(0)`
27 error: using `ATOMIC_I32_INIT`
28 --> $DIR/replace_consts.rs:20:17
30 20 | { let foo = ATOMIC_I32_INIT; };
31 | ^^^^^^^^^^^^^^^ help: try this: `AtomicI32::new(0)`
32 error: using `ATOMIC_I64_INIT`
33 --> $DIR/replace_consts.rs:21:17
35 21 | { let foo = ATOMIC_I64_INIT; };
36 | ^^^^^^^^^^^^^^^ help: try this: `AtomicI64::new(0)`
37 error: using `ATOMIC_USIZE_INIT`
38 --> $DIR/replace_consts.rs:22:17
40 22 | { let foo = ATOMIC_USIZE_INIT; };
41 | ^^^^^^^^^^^^^^^^^ help: try this: `AtomicUsize::new(0)`
42 error: using `ATOMIC_U8_INIT`
43 --> $DIR/replace_consts.rs:23:17
45 23 | { let foo = ATOMIC_U8_INIT; };
46 | ^^^^^^^^^^^^^^ help: try this: `AtomicU8::new(0)`
47 error: using `ATOMIC_U16_INIT`
48 --> $DIR/replace_consts.rs:24:17
50 24 | { let foo = ATOMIC_U16_INIT; };
51 | ^^^^^^^^^^^^^^^ help: try this: `AtomicU16::new(0)`
52 error: using `ATOMIC_U32_INIT`
53 --> $DIR/replace_consts.rs:25:17
55 25 | { let foo = ATOMIC_U32_INIT; };
56 | ^^^^^^^^^^^^^^^ help: try this: `AtomicU32::new(0)`
57 error: using `ATOMIC_U64_INIT`
58 --> $DIR/replace_consts.rs:26:17
60 26 | { let foo = ATOMIC_U64_INIT; };
61 | ^^^^^^^^^^^^^^^ help: try this: `AtomicU64::new(0)`
63 --> $DIR/replace_consts.rs:28:17
65 28 | { let foo = std::isize::MIN; };
66 | ^^^^^^^^^^^^^^^ help: try this: `isize::min_value()`
68 --> $DIR/replace_consts.rs:29:17
70 29 | { let foo = std::i8::MIN; };
71 | ^^^^^^^^^^^^ help: try this: `i8::min_value()`
73 --> $DIR/replace_consts.rs:30:17
75 30 | { let foo = std::i16::MIN; };
76 | ^^^^^^^^^^^^^ help: try this: `i16::min_value()`
78 --> $DIR/replace_consts.rs:31:17
80 31 | { let foo = std::i32::MIN; };
81 | ^^^^^^^^^^^^^ help: try this: `i32::min_value()`
83 --> $DIR/replace_consts.rs:32:17
85 32 | { let foo = std::i64::MIN; };
86 | ^^^^^^^^^^^^^ help: try this: `i64::min_value()`
88 --> $DIR/replace_consts.rs:33:17
90 33 | { let foo = std::i128::MIN; };
91 | ^^^^^^^^^^^^^^ help: try this: `i128::min_value()`
93 --> $DIR/replace_consts.rs:34:17
95 34 | { let foo = std::usize::MIN; };
96 | ^^^^^^^^^^^^^^^ help: try this: `usize::min_value()`
98 --> $DIR/replace_consts.rs:35:17
100 35 | { let foo = std::u8::MIN; };
101 | ^^^^^^^^^^^^ help: try this: `u8::min_value()`
103 --> $DIR/replace_consts.rs:36:17
105 36 | { let foo = std::u16::MIN; };
106 | ^^^^^^^^^^^^^ help: try this: `u16::min_value()`
108 --> $DIR/replace_consts.rs:37:17
110 37 | { let foo = std::u32::MIN; };
111 | ^^^^^^^^^^^^^ help: try this: `u32::min_value()`
113 --> $DIR/replace_consts.rs:38:17
115 38 | { let foo = std::u64::MIN; };
116 | ^^^^^^^^^^^^^ help: try this: `u64::min_value()`
118 --> $DIR/replace_consts.rs:39:17
120 39 | { let foo = std::u128::MIN; };
121 | ^^^^^^^^^^^^^^ help: try this: `u128::min_value()`
123 --> $DIR/replace_consts.rs:41:17
125 41 | { let foo = std::isize::MAX; };
126 | ^^^^^^^^^^^^^^^ help: try this: `isize::max_value()`
128 --> $DIR/replace_consts.rs:42:17
130 42 | { let foo = std::i8::MAX; };
131 | ^^^^^^^^^^^^ help: try this: `i8::max_value()`
133 --> $DIR/replace_consts.rs:43:17
135 43 | { let foo = std::i16::MAX; };
136 | ^^^^^^^^^^^^^ help: try this: `i16::max_value()`
138 --> $DIR/replace_consts.rs:44:17
140 44 | { let foo = std::i32::MAX; };
141 | ^^^^^^^^^^^^^ help: try this: `i32::max_value()`
143 --> $DIR/replace_consts.rs:45:17
145 45 | { let foo = std::i64::MAX; };
146 | ^^^^^^^^^^^^^ help: try this: `i64::max_value()`
148 --> $DIR/replace_consts.rs:46:17
150 46 | { let foo = std::i128::MAX; };
151 | ^^^^^^^^^^^^^^ help: try this: `i128::max_value()`
153 --> $DIR/replace_consts.rs:47:17
155 47 | { let foo = std::usize::MAX; };
156 | ^^^^^^^^^^^^^^^ help: try this: `usize::max_value()`
158 --> $DIR/replace_consts.rs:48:17
160 48 | { let foo = std::u8::MAX; };
161 | ^^^^^^^^^^^^ help: try this: `u8::max_value()`
163 --> $DIR/replace_consts.rs:49:17
165 49 | { let foo = std::u16::MAX; };
166 | ^^^^^^^^^^^^^ help: try this: `u16::max_value()`
168 --> $DIR/replace_consts.rs:50:17
170 50 | { let foo = std::u32::MAX; };
171 | ^^^^^^^^^^^^^ help: try this: `u32::max_value()`
173 --> $DIR/replace_consts.rs:51:17
175 51 | { let foo = std::u64::MAX; };
176 | ^^^^^^^^^^^^^ help: try this: `u64::max_value()`
178 --> $DIR/replace_consts.rs:52:17
180 52 | { let foo = std::u128::MAX; };
181 | ^^^^^^^^^^^^^^ help: try this: `u128::max_value()`
182 error: aborting due to 35 previous errors