11error: usage of a legacy numeric constant
2- --> $DIR/legacy_numeric_constants.rs:14 :5
2+ --> $DIR/legacy_numeric_constants.rs:15 :5
33 |
44LL | std::f32::EPSILON;
55 | ^^^^^^^^^^^^^^^^^ help: use the associated constant instead: `f32::EPSILON`
66 |
77 = note: `-D clippy::legacy-numeric-constants` implied by `-D warnings`
88
99error: usage of a legacy numeric constant
10- --> $DIR/legacy_numeric_constants.rs:15 :5
10+ --> $DIR/legacy_numeric_constants.rs:16 :5
1111 |
1212LL | std::u8::MIN;
1313 | ^^^^^^^^^^^^ help: use the associated constant instead: `u8::MIN`
1414
1515error: usage of a legacy numeric constant
16- --> $DIR/legacy_numeric_constants.rs:16 :5
16+ --> $DIR/legacy_numeric_constants.rs:17 :5
1717 |
1818LL | std::usize::MIN;
1919 | ^^^^^^^^^^^^^^^ help: use the associated constant instead: `usize::MIN`
2020
2121error: usage of a legacy numeric constant
22- --> $DIR/legacy_numeric_constants.rs:17 :5
22+ --> $DIR/legacy_numeric_constants.rs:18 :5
2323 |
2424LL | std::u32::MAX;
2525 | ^^^^^^^^^^^^^ help: use the associated constant instead: `u32::MAX`
2626
2727error: usage of a legacy numeric constant
28- --> $DIR/legacy_numeric_constants.rs:18 :5
28+ --> $DIR/legacy_numeric_constants.rs:19 :5
2929 |
3030LL | core::u32::MAX;
3131 | ^^^^^^^^^^^^^^ help: use the associated constant instead: `u32::MAX`
@@ -36,89 +36,53 @@ error: usage of a legacy numeric constant
3636LL | MAX;
3737 | ^^^ help: use the associated constant instead: `u32::MAX`
3838
39- error: usage of a legacy numeric constant
40- --> $DIR/legacy_numeric_constants.rs:22:5
41- |
42- LL | u32::MAX;
43- | ^^^^^^^^ help: use the associated constant instead: `u32::MAX`
44- |
45- note: you may need to remove one of the following `use` statements
46- --> $DIR/legacy_numeric_constants.rs:20:5
47- |
48- LL | use std::u32::MAX;
49- | ^^^^^^^^^^^^^^^^^^
50-
5139error: usage of a legacy numeric method
52- --> $DIR/legacy_numeric_constants.rs:23 :10
40+ --> $DIR/legacy_numeric_constants.rs:22 :10
5341 |
5442LL | u32::max_value();
5543 | ^^^^^^^^^^^ help: use the associated constant instead: `MAX`
5644
5745error: usage of a legacy numeric method
58- --> $DIR/legacy_numeric_constants.rs:24 :9
46+ --> $DIR/legacy_numeric_constants.rs:23 :9
5947 |
6048LL | u8::max_value();
6149 | ^^^^^^^^^^^ help: use the associated constant instead: `MAX`
6250
6351error: usage of a legacy numeric method
64- --> $DIR/legacy_numeric_constants.rs:25 :9
52+ --> $DIR/legacy_numeric_constants.rs:24 :9
6553 |
6654LL | u8::min_value();
6755 | ^^^^^^^^^^^ help: use the associated constant instead: `MIN`
6856
6957error: usage of a legacy numeric method
70- --> $DIR/legacy_numeric_constants.rs:28 :27
58+ --> $DIR/legacy_numeric_constants.rs:27 :27
7159 |
7260LL | ::std::primitive::u8::min_value();
7361 | ^^^^^^^^^^^ help: use the associated constant instead: `MIN`
7462
7563error: usage of a legacy numeric method
76- --> $DIR/legacy_numeric_constants.rs:29 :26
64+ --> $DIR/legacy_numeric_constants.rs:28 :26
7765 |
7866LL | std::primitive::u32::max_value();
7967 | ^^^^^^^^^^^ help: use the associated constant instead: `MAX`
8068
8169error: usage of a legacy numeric constant
82- --> $DIR/legacy_numeric_constants.rs:31:5
83- |
84- LL | f64::MAX;
85- | ^^^^^^^^ help: use the associated constant instead: `f64::MAX`
86- |
87- note: you may need to remove one of the following `use` statements
88- --> $DIR/legacy_numeric_constants.rs:30:5
89- |
90- LL | use std::f64;
91- | ^^^^^^^^^^^^^
92-
93- error: usage of a legacy numeric constant
94- --> $DIR/legacy_numeric_constants.rs:32:5
70+ --> $DIR/legacy_numeric_constants.rs:29:5
9571 |
9672LL | self::a::u128::MAX;
9773 | ^^^^^^^^^^^^^^^^^^ help: use the associated constant instead: `u128::MAX`
9874
9975error: usage of a legacy numeric constant
100- --> $DIR/legacy_numeric_constants.rs:35:5
101- |
102- LL | f32::EPSILON;
103- | ^^^^^^^^^^^^ help: use the associated constant instead: `f32::EPSILON`
104- |
105- note: you may need to remove one of the following `use` statements
106- --> $DIR/legacy_numeric_constants.rs:38:5
107- |
108- LL | use std::f32;
109- | ^^^^^^^^^^^^^
110-
111- error: usage of a legacy numeric constant
112- --> $DIR/legacy_numeric_constants.rs:50:5
76+ --> $DIR/legacy_numeric_constants.rs:46:5
11377 |
11478LL | std::u32::MAX;
11579 | ^^^^^^^^^^^^^ help: use the associated constant instead: `u32::MAX`
11680
11781error: usage of a legacy numeric constant
118- --> $DIR/legacy_numeric_constants.rs:55 :5
82+ --> $DIR/legacy_numeric_constants.rs:51 :5
11983 |
12084LL | std::u32::MAX;
12185 | ^^^^^^^^^^^^^ help: use the associated constant instead: `u32::MAX`
12286
123- error: aborting due to 17 previous errors
87+ error: aborting due to 14 previous errors
12488
0 commit comments