Commit 6fb7026
committed
Work around prelude redundant import warnings
rust-lang/rust#117772
warning: the item `String` is imported redundantly
--> src/de.rs:8:5
|
8 | use alloc::string::String;
| ^^^^^^^^^^^^^^^^^^^^^
|
::: nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/prelude/mod.rs:125:13
|
125 | pub use super::v1::*;
| --------- the item `String` is already defined here
|
= note: `#[warn(unused_imports)]` on by default
warning: the item `Vec` is imported redundantly
--> src/de.rs:9:5
|
9 | use alloc::vec::Vec;
| ^^^^^^^^^^^^^^^
|
::: nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/prelude/mod.rs:125:13
|
125 | pub use super::v1::*;
| --------- the item `Vec` is already defined here
warning: the item `Box` is imported redundantly
--> src/error.rs:4:5
|
4 | use alloc::boxed::Box;
| ^^^^^^^^^^^^^^^^^
|
::: nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/prelude/mod.rs:125:13
|
125 | pub use super::v1::*;
| --------- the item `Box` is already defined here
warning: the item `String` is imported redundantly
--> src/error.rs:5:21
|
5 | use alloc::string::{String, ToString};
| ^^^^^^
|
::: nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/prelude/mod.rs:125:13
|
125 | pub use super::v1::*;
| --------- the item `String` is already defined here
warning: the item `ToString` is imported redundantly
--> src/error.rs:5:29
|
5 | use alloc::string::{String, ToString};
| ^^^^^^^^
|
::: nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/prelude/mod.rs:125:13
|
125 | pub use super::v1::*;
| --------- the item `ToString` is already defined here
warning: the item `String` is imported redundantly
--> src/map.rs:10:5
|
10 | use alloc::string::String;
| ^^^^^^^^^^^^^^^^^^^^^
|
::: nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/prelude/mod.rs:125:13
|
125 | pub use super::v1::*;
| --------- the item `String` is already defined here
warning: the item `indexmap` is imported redundantly
--> src/map.rs:23:16
|
23 | use indexmap::{self, IndexMap};
| ^^^^ the item `indexmap` is already defined here
|
= note: `#[warn(unused_imports)]` on by default
warning: the item `String` is imported redundantly
--> src/ser.rs:5:21
|
5 | use alloc::string::{String, ToString};
| ^^^^^^
|
::: nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/prelude/mod.rs:125:13
|
125 | pub use super::v1::*;
| --------- the item `String` is already defined here
warning: the item `ToString` is imported redundantly
--> src/ser.rs:5:29
|
5 | use alloc::string::{String, ToString};
| ^^^^^^^^
|
::: nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/prelude/mod.rs:125:13
|
125 | pub use super::v1::*;
| --------- the item `ToString` is already defined here
warning: the item `Vec` is imported redundantly
--> src/ser.rs:6:5
|
6 | use alloc::vec::Vec;
| ^^^^^^^^^^^^^^^
|
::: nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/prelude/mod.rs:125:13
|
125 | pub use super::v1::*;
| --------- the item `Vec` is already defined here
warning: the item `String` is imported redundantly
--> src/value/mod.rs:95:5
|
95 | use alloc::string::String;
| ^^^^^^^^^^^^^^^^^^^^^
|
::: nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/prelude/mod.rs:125:13
|
125 | pub use super::v1::*;
| --------- the item `String` is already defined here
warning: the item `Vec` is imported redundantly
--> src/value/mod.rs:96:5
|
96 | use alloc::vec::Vec;
| ^^^^^^^^^^^^^^^
|
::: nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/prelude/mod.rs:125:13
|
125 | pub use super::v1::*;
| --------- the item `Vec` is already defined here
warning: the item `ToOwned` is imported redundantly
--> src/value/de.rs:5:26
|
5 | use alloc::borrow::{Cow, ToOwned};
| ^^^^^^^
|
::: nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/prelude/mod.rs:125:13
|
125 | pub use super::v1::*;
| --------- the item `ToOwned` is already defined here
warning: the item `String` is imported redundantly
--> src/value/de.rs:6:5
|
6 | use alloc::string::String;
| ^^^^^^^^^^^^^^^^^^^^^
|
::: nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/prelude/mod.rs:125:13
|
125 | pub use super::v1::*;
| --------- the item `String` is already defined here
warning: the item `Vec` is imported redundantly
--> src/value/de.rs:9:24
|
9 | use alloc::vec::{self, Vec};
| ^^^
|
::: nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/prelude/mod.rs:125:13
|
125 | pub use super::v1::*;
| --------- the item `Vec` is already defined here
warning: the item `String` is imported redundantly
--> src/value/from.rs:5:21
|
5 | use alloc::string::{String, ToString};
| ^^^^^^
|
::: nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/prelude/mod.rs:125:13
|
125 | pub use super::v1::*;
| --------- the item `String` is already defined here
warning: the item `ToString` is imported redundantly
--> src/value/from.rs:5:29
|
5 | use alloc::string::{String, ToString};
| ^^^^^^^^
|
::: nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/prelude/mod.rs:125:13
|
125 | pub use super::v1::*;
| --------- the item `ToString` is already defined here
warning: the item `Vec` is imported redundantly
--> src/value/from.rs:6:5
|
6 | use alloc::vec::Vec;
| ^^^^^^^^^^^^^^^
|
::: nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/prelude/mod.rs:125:13
|
125 | pub use super::v1::*;
| --------- the item `Vec` is already defined here
warning: the item `ToOwned` is imported redundantly
--> src/value/index.rs:3:5
|
3 | use alloc::borrow::ToOwned;
| ^^^^^^^^^^^^^^^^^^^^^^
|
::: nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/prelude/mod.rs:125:13
|
125 | pub use super::v1::*;
| --------- the item `ToOwned` is already defined here
warning: the item `String` is imported redundantly
--> src/value/index.rs:4:5
|
4 | use alloc::string::String;
| ^^^^^^^^^^^^^^^^^^^^^
|
::: nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/prelude/mod.rs:125:13
|
125 | pub use super::v1::*;
| --------- the item `String` is already defined here
warning: the item `String` is imported redundantly
--> src/value/partial_eq.rs:2:5
|
2 | use alloc::string::String;
| ^^^^^^^^^^^^^^^^^^^^^
|
::: nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/prelude/mod.rs:125:13
|
125 | pub use super::v1::*;
| --------- the item `String` is already defined here
warning: the item `ToOwned` is imported redundantly
--> src/value/ser.rs:4:5
|
4 | use alloc::borrow::ToOwned;
| ^^^^^^^^^^^^^^^^^^^^^^
|
::: nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/prelude/mod.rs:125:13
|
125 | pub use super::v1::*;
| --------- the item `ToOwned` is already defined here
warning: the item `String` is imported redundantly
--> src/value/ser.rs:5:21
|
5 | use alloc::string::{String, ToString};
| ^^^^^^
|
::: nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/prelude/mod.rs:125:13
|
125 | pub use super::v1::*;
| --------- the item `String` is already defined here
warning: the item `ToString` is imported redundantly
--> src/value/ser.rs:5:29
|
5 | use alloc::string::{String, ToString};
| ^^^^^^^^
|
::: nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/prelude/mod.rs:125:13
|
125 | pub use super::v1::*;
| --------- the item `ToString` is already defined here
warning: the item `Vec` is imported redundantly
--> src/value/ser.rs:6:5
|
6 | use alloc::vec::Vec;
| ^^^^^^^^^^^^^^^
|
::: nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/prelude/mod.rs:125:13
|
125 | pub use super::v1::*;
| --------- the item `Vec` is already defined here
warning: the item `Vec` is imported redundantly
--> src/read.rs:2:5
|
2 | use alloc::vec::Vec;
| ^^^^^^^^^^^^^^^
|
::: nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/prelude/mod.rs:125:13
|
125 | pub use super::v1::*;
| --------- the item `Vec` is already defined here
warning: the item `ToString` is imported redundantly
--> tests/test.rs:46:5
|
46 | use std::string::ToString;
| ^^^^^^^^^^^^^^^^^^^^^
|
::: nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/prelude/mod.rs:125:13
|
125 | pub use super::v1::*;
| --------- the item `ToString` is already defined here
|
= note: `#[warn(unused_imports)]` on by default
warning: the item `Vec` is imported redundantly
--> tests/../src/lexical/bignum.rs:6:5
|
6 | use alloc::vec::Vec;
| ^^^^^^^^^^^^^^^
|
::: nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/prelude/mod.rs:125:13
|
125 | pub use super::v1::*;
| --------- the item `Vec` is already defined here
|
= note: `#[warn(unused_imports)]` on by default1 parent 34a04c5 commit 6fb7026
5 files changed
+16
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
360 | 360 | | |
361 | 361 | | |
362 | 362 | | |
363 | | - | |
| 363 | + | |
364 | 364 | | |
365 | 365 | | |
366 | 366 | | |
367 | 367 | | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
368 | 371 | | |
369 | 372 | | |
370 | 373 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
| 179 | + | |
| 180 | + | |
179 | 181 | | |
180 | 182 | | |
181 | 183 | | |
| |||
192 | 194 | | |
193 | 195 | | |
194 | 196 | | |
| 197 | + | |
| 198 | + | |
195 | 199 | | |
196 | 200 | | |
197 | 201 | | |
| |||
208 | 212 | | |
209 | 213 | | |
210 | 214 | | |
| 215 | + | |
| 216 | + | |
211 | 217 | | |
212 | 218 | | |
213 | 219 | | |
| |||
224 | 230 | | |
225 | 231 | | |
226 | 232 | | |
| 233 | + | |
| 234 | + | |
227 | 235 | | |
228 | 236 | | |
229 | 237 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
17 | 19 | | |
18 | 20 | | |
19 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
47 | 46 | | |
48 | 47 | | |
49 | 48 | | |
| |||
0 commit comments