2018-01-09 22:42:07 -06:00
|
|
|
error: using `ATOMIC_BOOL_INIT`
|
2018-12-09 23:27:19 -06:00
|
|
|
--> $DIR/replace_consts.rs:22:17
|
2018-01-09 22:42:07 -06:00
|
|
|
|
|
2018-12-09 23:27:19 -06:00
|
|
|
22 | { let foo = ATOMIC_BOOL_INIT; };
|
2018-01-09 22:42:07 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^ help: try this: `AtomicBool::new(false)`
|
|
|
|
|
|
|
|
|
note: lint level defined here
|
2018-12-09 23:27:19 -06:00
|
|
|
--> $DIR/replace_consts.rs:12:9
|
2018-01-09 22:42:07 -06:00
|
|
|
|
|
2018-12-09 23:27:19 -06:00
|
|
|
12 | #![deny(clippy::replace_consts)]
|
2018-08-01 09:30:44 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
2018-03-25 21:26:10 -05:00
|
|
|
|
2018-01-09 22:42:07 -06:00
|
|
|
error: using `ATOMIC_ISIZE_INIT`
|
2018-12-09 23:27:19 -06:00
|
|
|
--> $DIR/replace_consts.rs:23:17
|
2018-01-09 22:42:07 -06:00
|
|
|
|
|
2018-12-09 23:27:19 -06:00
|
|
|
23 | { let foo = ATOMIC_ISIZE_INIT; };
|
2018-01-09 22:42:07 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^ help: try this: `AtomicIsize::new(0)`
|
2018-03-25 21:26:10 -05:00
|
|
|
|
2018-01-09 22:42:07 -06:00
|
|
|
error: using `ATOMIC_I8_INIT`
|
2018-12-09 23:27:19 -06:00
|
|
|
--> $DIR/replace_consts.rs:24:17
|
2018-01-09 22:42:07 -06:00
|
|
|
|
|
2018-12-09 23:27:19 -06:00
|
|
|
24 | { let foo = ATOMIC_I8_INIT; };
|
2018-01-09 22:42:07 -06:00
|
|
|
| ^^^^^^^^^^^^^^ help: try this: `AtomicI8::new(0)`
|
2018-03-25 21:26:10 -05:00
|
|
|
|
2018-01-09 22:42:07 -06:00
|
|
|
error: using `ATOMIC_I16_INIT`
|
2018-12-09 23:27:19 -06:00
|
|
|
--> $DIR/replace_consts.rs:25:17
|
2018-01-09 22:42:07 -06:00
|
|
|
|
|
2018-12-09 23:27:19 -06:00
|
|
|
25 | { let foo = ATOMIC_I16_INIT; };
|
2018-01-09 22:42:07 -06:00
|
|
|
| ^^^^^^^^^^^^^^^ help: try this: `AtomicI16::new(0)`
|
2018-03-25 21:26:10 -05:00
|
|
|
|
2018-01-09 22:42:07 -06:00
|
|
|
error: using `ATOMIC_I32_INIT`
|
2018-12-09 23:27:19 -06:00
|
|
|
--> $DIR/replace_consts.rs:26:17
|
2018-01-09 22:42:07 -06:00
|
|
|
|
|
2018-12-09 23:27:19 -06:00
|
|
|
26 | { let foo = ATOMIC_I32_INIT; };
|
2018-01-09 22:42:07 -06:00
|
|
|
| ^^^^^^^^^^^^^^^ help: try this: `AtomicI32::new(0)`
|
2018-03-25 21:26:10 -05:00
|
|
|
|
2018-01-09 22:42:07 -06:00
|
|
|
error: using `ATOMIC_I64_INIT`
|
2018-12-09 23:27:19 -06:00
|
|
|
--> $DIR/replace_consts.rs:27:17
|
2018-01-09 22:42:07 -06:00
|
|
|
|
|
2018-12-09 23:27:19 -06:00
|
|
|
27 | { let foo = ATOMIC_I64_INIT; };
|
2018-01-09 22:42:07 -06:00
|
|
|
| ^^^^^^^^^^^^^^^ help: try this: `AtomicI64::new(0)`
|
2018-03-25 21:26:10 -05:00
|
|
|
|
2018-01-09 22:42:07 -06:00
|
|
|
error: using `ATOMIC_USIZE_INIT`
|
2018-12-09 23:27:19 -06:00
|
|
|
--> $DIR/replace_consts.rs:28:17
|
2018-01-09 22:42:07 -06:00
|
|
|
|
|
2018-12-09 23:27:19 -06:00
|
|
|
28 | { let foo = ATOMIC_USIZE_INIT; };
|
2018-01-09 22:42:07 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^ help: try this: `AtomicUsize::new(0)`
|
2018-03-25 21:26:10 -05:00
|
|
|
|
2018-01-09 22:42:07 -06:00
|
|
|
error: using `ATOMIC_U8_INIT`
|
2018-12-09 23:27:19 -06:00
|
|
|
--> $DIR/replace_consts.rs:29:17
|
2018-01-09 22:42:07 -06:00
|
|
|
|
|
2018-12-09 23:27:19 -06:00
|
|
|
29 | { let foo = ATOMIC_U8_INIT; };
|
2018-01-09 22:42:07 -06:00
|
|
|
| ^^^^^^^^^^^^^^ help: try this: `AtomicU8::new(0)`
|
2018-03-25 21:26:10 -05:00
|
|
|
|
2018-01-09 22:42:07 -06:00
|
|
|
error: using `ATOMIC_U16_INIT`
|
2018-12-09 23:27:19 -06:00
|
|
|
--> $DIR/replace_consts.rs:30:17
|
2018-01-09 22:42:07 -06:00
|
|
|
|
|
2018-12-09 23:27:19 -06:00
|
|
|
30 | { let foo = ATOMIC_U16_INIT; };
|
2018-01-09 22:42:07 -06:00
|
|
|
| ^^^^^^^^^^^^^^^ help: try this: `AtomicU16::new(0)`
|
2018-03-25 21:26:10 -05:00
|
|
|
|
2018-01-09 22:42:07 -06:00
|
|
|
error: using `ATOMIC_U32_INIT`
|
2018-12-09 23:27:19 -06:00
|
|
|
--> $DIR/replace_consts.rs:31:17
|
2018-01-09 22:42:07 -06:00
|
|
|
|
|
2018-12-09 23:27:19 -06:00
|
|
|
31 | { let foo = ATOMIC_U32_INIT; };
|
2018-01-09 22:42:07 -06:00
|
|
|
| ^^^^^^^^^^^^^^^ help: try this: `AtomicU32::new(0)`
|
2018-03-25 21:26:10 -05:00
|
|
|
|
2018-01-09 22:42:07 -06:00
|
|
|
error: using `ATOMIC_U64_INIT`
|
2018-12-09 23:27:19 -06:00
|
|
|
--> $DIR/replace_consts.rs:32:17
|
2018-01-09 22:42:07 -06:00
|
|
|
|
|
2018-12-09 23:27:19 -06:00
|
|
|
32 | { let foo = ATOMIC_U64_INIT; };
|
2018-01-09 22:42:07 -06:00
|
|
|
| ^^^^^^^^^^^^^^^ help: try this: `AtomicU64::new(0)`
|
2018-03-25 21:26:10 -05:00
|
|
|
|
2018-01-09 22:42:07 -06:00
|
|
|
error: using `MIN`
|
2018-12-09 23:27:19 -06:00
|
|
|
--> $DIR/replace_consts.rs:34:17
|
2018-01-09 22:42:07 -06:00
|
|
|
|
|
2018-12-09 23:27:19 -06:00
|
|
|
34 | { let foo = std::isize::MIN; };
|
2018-01-09 22:42:07 -06:00
|
|
|
| ^^^^^^^^^^^^^^^ help: try this: `isize::min_value()`
|
2018-03-25 21:26:10 -05:00
|
|
|
|
2018-01-09 22:42:07 -06:00
|
|
|
error: using `MIN`
|
2018-12-09 23:27:19 -06:00
|
|
|
--> $DIR/replace_consts.rs:35:17
|
2018-01-09 22:42:07 -06:00
|
|
|
|
|
2018-12-09 23:27:19 -06:00
|
|
|
35 | { let foo = std::i8::MIN; };
|
2018-01-09 22:42:07 -06:00
|
|
|
| ^^^^^^^^^^^^ help: try this: `i8::min_value()`
|
2018-03-25 21:26:10 -05:00
|
|
|
|
2018-01-09 22:42:07 -06:00
|
|
|
error: using `MIN`
|
2018-12-09 23:27:19 -06:00
|
|
|
--> $DIR/replace_consts.rs:36:17
|
2018-01-09 22:42:07 -06:00
|
|
|
|
|
2018-12-09 23:27:19 -06:00
|
|
|
36 | { let foo = std::i16::MIN; };
|
2018-01-09 22:42:07 -06:00
|
|
|
| ^^^^^^^^^^^^^ help: try this: `i16::min_value()`
|
2018-03-25 21:26:10 -05:00
|
|
|
|
2018-01-09 22:42:07 -06:00
|
|
|
error: using `MIN`
|
2018-12-09 23:27:19 -06:00
|
|
|
--> $DIR/replace_consts.rs:37:17
|
2018-01-09 22:42:07 -06:00
|
|
|
|
|
2018-12-09 23:27:19 -06:00
|
|
|
37 | { let foo = std::i32::MIN; };
|
2018-01-09 22:42:07 -06:00
|
|
|
| ^^^^^^^^^^^^^ help: try this: `i32::min_value()`
|
2018-03-25 21:26:10 -05:00
|
|
|
|
2018-01-09 22:42:07 -06:00
|
|
|
error: using `MIN`
|
2018-12-09 23:27:19 -06:00
|
|
|
--> $DIR/replace_consts.rs:38:17
|
2018-01-09 22:42:07 -06:00
|
|
|
|
|
2018-12-09 23:27:19 -06:00
|
|
|
38 | { let foo = std::i64::MIN; };
|
2018-01-09 22:42:07 -06:00
|
|
|
| ^^^^^^^^^^^^^ help: try this: `i64::min_value()`
|
2018-03-25 21:26:10 -05:00
|
|
|
|
2018-01-09 22:42:07 -06:00
|
|
|
error: using `MIN`
|
2018-12-09 23:27:19 -06:00
|
|
|
--> $DIR/replace_consts.rs:39:17
|
2018-01-09 22:42:07 -06:00
|
|
|
|
|
2018-12-09 23:27:19 -06:00
|
|
|
39 | { let foo = std::i128::MIN; };
|
2018-01-09 22:42:07 -06:00
|
|
|
| ^^^^^^^^^^^^^^ help: try this: `i128::min_value()`
|
2018-03-25 21:26:10 -05:00
|
|
|
|
2018-01-09 22:42:07 -06:00
|
|
|
error: using `MIN`
|
2018-12-09 23:27:19 -06:00
|
|
|
--> $DIR/replace_consts.rs:40:17
|
2018-01-09 22:42:07 -06:00
|
|
|
|
|
2018-12-09 23:27:19 -06:00
|
|
|
40 | { let foo = std::usize::MIN; };
|
2018-01-09 22:42:07 -06:00
|
|
|
| ^^^^^^^^^^^^^^^ help: try this: `usize::min_value()`
|
2018-03-25 21:26:10 -05:00
|
|
|
|
2018-01-09 22:42:07 -06:00
|
|
|
error: using `MIN`
|
2018-12-09 23:27:19 -06:00
|
|
|
--> $DIR/replace_consts.rs:41:17
|
2018-01-09 22:42:07 -06:00
|
|
|
|
|
2018-12-09 23:27:19 -06:00
|
|
|
41 | { let foo = std::u8::MIN; };
|
2018-01-09 22:42:07 -06:00
|
|
|
| ^^^^^^^^^^^^ help: try this: `u8::min_value()`
|
2018-03-25 21:26:10 -05:00
|
|
|
|
2018-01-09 22:42:07 -06:00
|
|
|
error: using `MIN`
|
2018-12-09 23:27:19 -06:00
|
|
|
--> $DIR/replace_consts.rs:42:17
|
2018-01-09 22:42:07 -06:00
|
|
|
|
|
2018-12-09 23:27:19 -06:00
|
|
|
42 | { let foo = std::u16::MIN; };
|
2018-01-09 22:42:07 -06:00
|
|
|
| ^^^^^^^^^^^^^ help: try this: `u16::min_value()`
|
2018-03-25 21:26:10 -05:00
|
|
|
|
2018-01-09 22:42:07 -06:00
|
|
|
error: using `MIN`
|
2018-12-09 23:27:19 -06:00
|
|
|
--> $DIR/replace_consts.rs:43:17
|
2018-01-09 22:42:07 -06:00
|
|
|
|
|
2018-12-09 23:27:19 -06:00
|
|
|
43 | { let foo = std::u32::MIN; };
|
2018-01-09 22:42:07 -06:00
|
|
|
| ^^^^^^^^^^^^^ help: try this: `u32::min_value()`
|
2018-03-25 21:26:10 -05:00
|
|
|
|
2018-01-09 22:42:07 -06:00
|
|
|
error: using `MIN`
|
2018-12-09 23:27:19 -06:00
|
|
|
--> $DIR/replace_consts.rs:44:17
|
2018-01-09 22:42:07 -06:00
|
|
|
|
|
2018-12-09 23:27:19 -06:00
|
|
|
44 | { let foo = std::u64::MIN; };
|
2018-01-09 22:42:07 -06:00
|
|
|
| ^^^^^^^^^^^^^ help: try this: `u64::min_value()`
|
2018-03-25 21:26:10 -05:00
|
|
|
|
2018-01-09 22:42:07 -06:00
|
|
|
error: using `MIN`
|
2018-12-09 23:27:19 -06:00
|
|
|
--> $DIR/replace_consts.rs:45:17
|
2018-01-09 22:42:07 -06:00
|
|
|
|
|
2018-12-09 23:27:19 -06:00
|
|
|
45 | { let foo = std::u128::MIN; };
|
2018-01-09 22:42:07 -06:00
|
|
|
| ^^^^^^^^^^^^^^ help: try this: `u128::min_value()`
|
2018-03-25 21:26:10 -05:00
|
|
|
|
2018-01-09 22:42:07 -06:00
|
|
|
error: using `MAX`
|
2018-12-09 23:27:19 -06:00
|
|
|
--> $DIR/replace_consts.rs:47:17
|
2018-01-09 22:42:07 -06:00
|
|
|
|
|
2018-12-09 23:27:19 -06:00
|
|
|
47 | { let foo = std::isize::MAX; };
|
2018-01-09 22:42:07 -06:00
|
|
|
| ^^^^^^^^^^^^^^^ help: try this: `isize::max_value()`
|
2018-03-25 21:26:10 -05:00
|
|
|
|
2018-01-09 22:42:07 -06:00
|
|
|
error: using `MAX`
|
2018-12-09 23:27:19 -06:00
|
|
|
--> $DIR/replace_consts.rs:48:17
|
2018-01-09 22:42:07 -06:00
|
|
|
|
|
2018-12-09 23:27:19 -06:00
|
|
|
48 | { let foo = std::i8::MAX; };
|
2018-01-09 22:42:07 -06:00
|
|
|
| ^^^^^^^^^^^^ help: try this: `i8::max_value()`
|
2018-03-25 21:26:10 -05:00
|
|
|
|
2018-01-09 22:42:07 -06:00
|
|
|
error: using `MAX`
|
2018-12-09 23:27:19 -06:00
|
|
|
--> $DIR/replace_consts.rs:49:17
|
2018-01-09 22:42:07 -06:00
|
|
|
|
|
2018-12-09 23:27:19 -06:00
|
|
|
49 | { let foo = std::i16::MAX; };
|
2018-01-09 22:42:07 -06:00
|
|
|
| ^^^^^^^^^^^^^ help: try this: `i16::max_value()`
|
2018-03-25 21:26:10 -05:00
|
|
|
|
2018-01-09 22:42:07 -06:00
|
|
|
error: using `MAX`
|
2018-12-09 23:27:19 -06:00
|
|
|
--> $DIR/replace_consts.rs:50:17
|
2018-01-09 22:42:07 -06:00
|
|
|
|
|
2018-12-09 23:27:19 -06:00
|
|
|
50 | { let foo = std::i32::MAX; };
|
2018-01-09 22:42:07 -06:00
|
|
|
| ^^^^^^^^^^^^^ help: try this: `i32::max_value()`
|
2018-03-25 21:26:10 -05:00
|
|
|
|
2018-01-09 22:42:07 -06:00
|
|
|
error: using `MAX`
|
2018-12-09 23:27:19 -06:00
|
|
|
--> $DIR/replace_consts.rs:51:17
|
2018-01-09 22:42:07 -06:00
|
|
|
|
|
2018-12-09 23:27:19 -06:00
|
|
|
51 | { let foo = std::i64::MAX; };
|
2018-01-09 22:42:07 -06:00
|
|
|
| ^^^^^^^^^^^^^ help: try this: `i64::max_value()`
|
2018-03-25 21:26:10 -05:00
|
|
|
|
2018-01-09 22:42:07 -06:00
|
|
|
error: using `MAX`
|
2018-12-09 23:27:19 -06:00
|
|
|
--> $DIR/replace_consts.rs:52:17
|
2018-01-09 22:42:07 -06:00
|
|
|
|
|
2018-12-09 23:27:19 -06:00
|
|
|
52 | { let foo = std::i128::MAX; };
|
2018-01-09 22:42:07 -06:00
|
|
|
| ^^^^^^^^^^^^^^ help: try this: `i128::max_value()`
|
2018-03-25 21:26:10 -05:00
|
|
|
|
2018-01-09 22:42:07 -06:00
|
|
|
error: using `MAX`
|
2018-12-09 23:27:19 -06:00
|
|
|
--> $DIR/replace_consts.rs:53:17
|
2018-01-09 22:42:07 -06:00
|
|
|
|
|
2018-12-09 23:27:19 -06:00
|
|
|
53 | { let foo = std::usize::MAX; };
|
2018-01-09 22:42:07 -06:00
|
|
|
| ^^^^^^^^^^^^^^^ help: try this: `usize::max_value()`
|
2018-03-25 21:26:10 -05:00
|
|
|
|
2018-01-09 22:42:07 -06:00
|
|
|
error: using `MAX`
|
2018-12-09 23:27:19 -06:00
|
|
|
--> $DIR/replace_consts.rs:54:17
|
2018-01-09 22:42:07 -06:00
|
|
|
|
|
2018-12-09 23:27:19 -06:00
|
|
|
54 | { let foo = std::u8::MAX; };
|
2018-01-09 22:42:07 -06:00
|
|
|
| ^^^^^^^^^^^^ help: try this: `u8::max_value()`
|
2018-03-25 21:26:10 -05:00
|
|
|
|
2018-01-09 22:42:07 -06:00
|
|
|
error: using `MAX`
|
2018-12-09 23:27:19 -06:00
|
|
|
--> $DIR/replace_consts.rs:55:17
|
2018-01-09 22:42:07 -06:00
|
|
|
|
|
2018-12-09 23:27:19 -06:00
|
|
|
55 | { let foo = std::u16::MAX; };
|
2018-01-09 22:42:07 -06:00
|
|
|
| ^^^^^^^^^^^^^ help: try this: `u16::max_value()`
|
2018-03-25 21:26:10 -05:00
|
|
|
|
2018-01-09 22:42:07 -06:00
|
|
|
error: using `MAX`
|
2018-12-09 23:27:19 -06:00
|
|
|
--> $DIR/replace_consts.rs:56:17
|
2018-01-09 22:42:07 -06:00
|
|
|
|
|
2018-12-09 23:27:19 -06:00
|
|
|
56 | { let foo = std::u32::MAX; };
|
2018-01-09 22:42:07 -06:00
|
|
|
| ^^^^^^^^^^^^^ help: try this: `u32::max_value()`
|
2018-03-25 21:26:10 -05:00
|
|
|
|
2018-01-09 22:42:07 -06:00
|
|
|
error: using `MAX`
|
2018-12-09 23:27:19 -06:00
|
|
|
--> $DIR/replace_consts.rs:57:17
|
2018-01-09 22:42:07 -06:00
|
|
|
|
|
2018-12-09 23:27:19 -06:00
|
|
|
57 | { let foo = std::u64::MAX; };
|
2018-01-09 22:42:07 -06:00
|
|
|
| ^^^^^^^^^^^^^ help: try this: `u64::max_value()`
|
2018-03-25 21:26:10 -05:00
|
|
|
|
2018-01-09 22:42:07 -06:00
|
|
|
error: using `MAX`
|
2018-12-09 23:27:19 -06:00
|
|
|
--> $DIR/replace_consts.rs:58:17
|
2018-01-09 22:42:07 -06:00
|
|
|
|
|
2018-12-09 23:27:19 -06:00
|
|
|
58 | { let foo = std::u128::MAX; };
|
2018-01-09 22:42:07 -06:00
|
|
|
| ^^^^^^^^^^^^^^ help: try this: `u128::max_value()`
|
2018-03-25 21:26:10 -05:00
|
|
|
|
2018-01-16 10:06:27 -06:00
|
|
|
error: aborting due to 35 previous errors
|
2018-03-25 21:26:10 -05:00
|
|
|
|