about summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui/legacy_numeric_constants_unfixable.stderr
blob: 96e6c9ef9759857b419dfd591c4be0de45115cdf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
error: importing legacy numeric constants
  --> tests/ui/legacy_numeric_constants_unfixable.rs:10:5
   |
LL | use std::u128 as _;
   |     ^^^^^^^^^
   |
   = help: remove this import
   = note: `-D clippy::legacy-numeric-constants` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::legacy_numeric_constants)]`

error: importing legacy numeric constants
  --> tests/ui/legacy_numeric_constants_unfixable.rs:14:24
   |
LL |     pub use std::{mem, u128};
   |                        ^^^^
   |
   = help: remove this import
   = note: then `u128::<CONST>` will resolve to the respective associated constant

error: importing a legacy numeric constant
  --> tests/ui/legacy_numeric_constants_unfixable.rs:30:9
   |
LL |     use std::u32::MAX;
   |         ^^^^^^^^^^^^^
   |
   = help: remove this import and use the associated constant `u32::MAX` from the primitive type instead

error: importing a legacy numeric constant
  --> tests/ui/legacy_numeric_constants_unfixable.rs:33:9
   |
LL |     use std::u8::MIN;
   |         ^^^^^^^^^^^^
   |
   = help: remove this import and use the associated constant `u8::MIN` from the primitive type instead

error: importing legacy numeric constants
  --> tests/ui/legacy_numeric_constants_unfixable.rs:37:9
   |
LL |     use std::u32;
   |         ^^^^^^^^
   |
   = help: remove this import
   = note: then `u32::<CONST>` will resolve to the respective associated constant

error: importing a legacy numeric constant
  --> tests/ui/legacy_numeric_constants_unfixable.rs:41:9
   |
LL |     use std::f32::MIN_POSITIVE;
   |         ^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: remove this import and use the associated constant `f32::MIN_POSITIVE` from the primitive type instead

error: importing legacy numeric constants
  --> tests/ui/legacy_numeric_constants_unfixable.rs:45:9
   |
LL |     use std::i16::*;
   |         ^^^^^^^^
   |
   = help: remove this import and use associated constants `i16::<CONST>` from the primitive type instead

error: importing legacy numeric constants
  --> tests/ui/legacy_numeric_constants_unfixable.rs:22:17
   |
LL |             use std::u32;
   |                 ^^^^^^^^
...
LL |     b!();
   |     ---- in this macro invocation
   |
   = help: remove this import
   = note: then `u32::<CONST>` will resolve to the respective associated constant
   = note: this error originates in the macro `b` (in Nightly builds, run with -Z macro-backtrace for more info)

error: importing a legacy numeric constant
  --> tests/ui/legacy_numeric_constants_unfixable.rs:77:9
   |
LL |     use std::u32::MAX;
   |         ^^^^^^^^^^^^^
   |
   = help: remove this import and use the associated constant `u32::MAX` from the primitive type instead

error: aborting due to 9 previous errors