2019-01-28 03:10:27 -06:00
|
|
|
error: using `MIN`
|
2019-07-05 23:04:03 -05:00
|
|
|
--> $DIR/replace_consts.rs:11:17
|
2018-01-09 22:42:07 -06:00
|
|
|
|
|
2019-01-28 03:10:27 -06:00
|
|
|
LL | { let foo = std::isize::MIN; };
|
|
|
|
| ^^^^^^^^^^^^^^^ help: try this: `isize::min_value()`
|
2018-01-09 22:42:07 -06:00
|
|
|
|
|
2020-01-31 13:21:10 -06:00
|
|
|
note: the lint level is defined here
|
2019-01-13 12:38:43 -06:00
|
|
|
--> $DIR/replace_consts.rs:4:9
|
2018-01-09 22:42:07 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | #![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 `MIN`
|
2019-07-05 23:04:03 -05:00
|
|
|
--> $DIR/replace_consts.rs:12:17
|
2018-01-09 22:42:07 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | { 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`
|
2019-07-05 23:04:03 -05:00
|
|
|
--> $DIR/replace_consts.rs:13:17
|
2018-01-09 22:42:07 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | { 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`
|
2019-07-05 23:04:03 -05:00
|
|
|
--> $DIR/replace_consts.rs:14:17
|
2018-01-09 22:42:07 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | { 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`
|
2019-07-05 23:04:03 -05:00
|
|
|
--> $DIR/replace_consts.rs:15:17
|
2018-01-09 22:42:07 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | { 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`
|
2019-07-05 23:04:03 -05:00
|
|
|
--> $DIR/replace_consts.rs:16:17
|
2018-01-09 22:42:07 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | { 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`
|
2019-07-05 23:04:03 -05:00
|
|
|
--> $DIR/replace_consts.rs:17:17
|
2018-01-09 22:42:07 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | { 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`
|
2019-07-05 23:04:03 -05:00
|
|
|
--> $DIR/replace_consts.rs:18:17
|
2018-01-09 22:42:07 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | { 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`
|
2019-07-05 23:04:03 -05:00
|
|
|
--> $DIR/replace_consts.rs:19:17
|
2018-01-09 22:42:07 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | { 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`
|
2019-07-05 23:04:03 -05:00
|
|
|
--> $DIR/replace_consts.rs:20:17
|
2018-01-09 22:42:07 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | { 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`
|
2019-07-05 23:04:03 -05:00
|
|
|
--> $DIR/replace_consts.rs:21:17
|
2018-01-09 22:42:07 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | { 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`
|
2019-07-05 23:04:03 -05:00
|
|
|
--> $DIR/replace_consts.rs:22:17
|
2018-01-09 22:42:07 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | { 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`
|
2019-07-05 23:04:03 -05:00
|
|
|
--> $DIR/replace_consts.rs:24:17
|
2018-01-09 22:42:07 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | { 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`
|
2019-07-05 23:04:03 -05:00
|
|
|
--> $DIR/replace_consts.rs:25:17
|
2018-01-09 22:42:07 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | { 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`
|
2019-07-05 23:04:03 -05:00
|
|
|
--> $DIR/replace_consts.rs:26:17
|
2018-01-09 22:42:07 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | { 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`
|
2019-07-05 23:04:03 -05:00
|
|
|
--> $DIR/replace_consts.rs:27:17
|
2018-01-09 22:42:07 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | { 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`
|
2019-07-05 23:04:03 -05:00
|
|
|
--> $DIR/replace_consts.rs:28:17
|
2018-01-09 22:42:07 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | { 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`
|
2019-07-05 23:04:03 -05:00
|
|
|
--> $DIR/replace_consts.rs:29:17
|
2018-01-09 22:42:07 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | { 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`
|
2019-07-05 23:04:03 -05:00
|
|
|
--> $DIR/replace_consts.rs:30:17
|
2018-01-09 22:42:07 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | { 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`
|
2019-07-05 23:04:03 -05:00
|
|
|
--> $DIR/replace_consts.rs:31:17
|
2018-01-09 22:42:07 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | { 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`
|
2019-07-05 23:04:03 -05:00
|
|
|
--> $DIR/replace_consts.rs:32:17
|
2018-01-09 22:42:07 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | { 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`
|
2019-07-05 23:04:03 -05:00
|
|
|
--> $DIR/replace_consts.rs:33:17
|
2018-01-09 22:42:07 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | { 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`
|
2019-07-05 23:04:03 -05:00
|
|
|
--> $DIR/replace_consts.rs:34:17
|
2018-01-09 22:42:07 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | { 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`
|
2019-07-05 23:04:03 -05:00
|
|
|
--> $DIR/replace_consts.rs:35:17
|
2018-01-09 22:42:07 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | { 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
|
|
|
|
2019-01-28 03:10:27 -06:00
|
|
|
error: aborting due to 24 previous errors
|
2018-03-25 21:26:10 -05:00
|
|
|
|