rust/tests/ui/legacy_numeric_constants_unfixable.stderr

84 lines
2.7 KiB
Plaintext

error: importing legacy numeric constants
--> tests/ui/legacy_numeric_constants_unfixable.rs:9: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:13: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:29: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:32: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:36: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:40: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:44: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:21: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:76: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