a61126cef6
fixes #117448 For example unnecessary imports in std::prelude that can be eliminated: ```rust use std::option::Option::Some;//~ WARNING the item `Some` is imported redundantly use std::option::Option::None; //~ WARNING the item `None` is imported redundantly ```
27 lines
734 B
Plaintext
27 lines
734 B
Plaintext
warning: the item `TryFrom` is imported redundantly
|
|
--> $DIR/use-redundant-prelude-rust-2021.rs:5:5
|
|
|
|
|
LL | use std::convert::TryFrom;
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
|
--> $SRC_DIR/std/src/prelude/mod.rs:LL:COL
|
|
|
|
|
= note: the item `TryFrom` is already defined here
|
|
|
|
|
note: the lint level is defined here
|
|
--> $DIR/use-redundant-prelude-rust-2021.rs:3:9
|
|
|
|
|
LL | #![warn(unused_imports)]
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
warning: the item `TryInto` is imported redundantly
|
|
--> $DIR/use-redundant-prelude-rust-2021.rs:6:5
|
|
|
|
|
LL | use std::convert::TryInto;
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
|
--> $SRC_DIR/std/src/prelude/mod.rs:LL:COL
|
|
|
|
|
= note: the item `TryInto` is already defined here
|
|
|
|
warning: 2 warnings emitted
|
|
|