rust-clippy/tests/ui/legacy_numeric_constants_unfixable.stderr
2024-03-21 17:10:02 -06:00

83 lines
2.7 KiB
Text

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