1
1
error: usage of a legacy numeric constant
2
- --> $DIR/legacy_numeric_constants.rs:14 :5
2
+ --> $DIR/legacy_numeric_constants.rs:15 :5
3
3
|
4
4
LL | std::f32::EPSILON;
5
5
| ^^^^^^^^^^^^^^^^^ help: use the associated constant instead: `f32::EPSILON`
6
6
|
7
7
= note: `-D clippy::legacy-numeric-constants` implied by `-D warnings`
8
8
9
9
error: usage of a legacy numeric constant
10
- --> $DIR/legacy_numeric_constants.rs:15 :5
10
+ --> $DIR/legacy_numeric_constants.rs:16 :5
11
11
|
12
12
LL | std::u8::MIN;
13
13
| ^^^^^^^^^^^^ help: use the associated constant instead: `u8::MIN`
14
14
15
15
error: usage of a legacy numeric constant
16
- --> $DIR/legacy_numeric_constants.rs:16 :5
16
+ --> $DIR/legacy_numeric_constants.rs:17 :5
17
17
|
18
18
LL | std::usize::MIN;
19
19
| ^^^^^^^^^^^^^^^ help: use the associated constant instead: `usize::MIN`
20
20
21
21
error: usage of a legacy numeric constant
22
- --> $DIR/legacy_numeric_constants.rs:17 :5
22
+ --> $DIR/legacy_numeric_constants.rs:18 :5
23
23
|
24
24
LL | std::u32::MAX;
25
25
| ^^^^^^^^^^^^^ help: use the associated constant instead: `u32::MAX`
26
26
27
27
error: usage of a legacy numeric constant
28
- --> $DIR/legacy_numeric_constants.rs:18 :5
28
+ --> $DIR/legacy_numeric_constants.rs:19 :5
29
29
|
30
30
LL | core::u32::MAX;
31
31
| ^^^^^^^^^^^^^^ help: use the associated constant instead: `u32::MAX`
@@ -36,89 +36,53 @@ error: usage of a legacy numeric constant
36
36
LL | MAX;
37
37
| ^^^ help: use the associated constant instead: `u32::MAX`
38
38
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
-
51
39
error: usage of a legacy numeric method
52
- --> $DIR/legacy_numeric_constants.rs:23 :10
40
+ --> $DIR/legacy_numeric_constants.rs:22 :10
53
41
|
54
42
LL | u32::max_value();
55
43
| ^^^^^^^^^^^ help: use the associated constant instead: `MAX`
56
44
57
45
error: usage of a legacy numeric method
58
- --> $DIR/legacy_numeric_constants.rs:24 :9
46
+ --> $DIR/legacy_numeric_constants.rs:23 :9
59
47
|
60
48
LL | u8::max_value();
61
49
| ^^^^^^^^^^^ help: use the associated constant instead: `MAX`
62
50
63
51
error: usage of a legacy numeric method
64
- --> $DIR/legacy_numeric_constants.rs:25 :9
52
+ --> $DIR/legacy_numeric_constants.rs:24 :9
65
53
|
66
54
LL | u8::min_value();
67
55
| ^^^^^^^^^^^ help: use the associated constant instead: `MIN`
68
56
69
57
error: usage of a legacy numeric method
70
- --> $DIR/legacy_numeric_constants.rs:28 :27
58
+ --> $DIR/legacy_numeric_constants.rs:27 :27
71
59
|
72
60
LL | ::std::primitive::u8::min_value();
73
61
| ^^^^^^^^^^^ help: use the associated constant instead: `MIN`
74
62
75
63
error: usage of a legacy numeric method
76
- --> $DIR/legacy_numeric_constants.rs:29 :26
64
+ --> $DIR/legacy_numeric_constants.rs:28 :26
77
65
|
78
66
LL | std::primitive::u32::max_value();
79
67
| ^^^^^^^^^^^ help: use the associated constant instead: `MAX`
80
68
81
69
error: 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
95
71
|
96
72
LL | self::a::u128::MAX;
97
73
| ^^^^^^^^^^^^^^^^^^ help: use the associated constant instead: `u128::MAX`
98
74
99
75
error: 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
113
77
|
114
78
LL | std::u32::MAX;
115
79
| ^^^^^^^^^^^^^ help: use the associated constant instead: `u32::MAX`
116
80
117
81
error: usage of a legacy numeric constant
118
- --> $DIR/legacy_numeric_constants.rs:55 :5
82
+ --> $DIR/legacy_numeric_constants.rs:51 :5
119
83
|
120
84
LL | std::u32::MAX;
121
85
| ^^^^^^^^^^^^^ help: use the associated constant instead: `u32::MAX`
122
86
123
- error: aborting due to 17 previous errors
87
+ error: aborting due to 14 previous errors
124
88
0 commit comments