https://github.com/rust-lang/rust/issues/121621
warning: non-local `impl` definition, they should be avoided as they go against expectation
--> tests/test.rs:2338:5
|
2338 | / impl<'de> Deserialize<'de> for &'de RawMapKey {
2339 | | fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
2340 | | where
2341 | | D: serde::Deserializer<'de>,
... |
2345 | | }
2346 | | }
| |_____^
|
= help: move this `impl` block outside the of the current function `test_raw_value_in_map_key`
= note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block
= note: one exception to the rule are anon-const (`const _: () = { ... }`) at top-level module and anon-const at the same nesting as the trait or type
= note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue <https://github.com/rust-lang/rust/issues/120363>
= note: `#[warn(non_local_definitions)]` on by default
https://github.com/rust-lang/rust/pull/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 default
https://github.com/rust-lang/rust-clippy/issues/12257
warning: current MSRV (Minimum Supported Rust Version) is `1.56.0` but this item is stable since `1.71.0`
--> tests/test.rs:2500:25
|
2500 | assert_ne!(rand.hash_one(k1), rand.hash_one(k2));
| ^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#incompatible_msrv
= note: `-W clippy::incompatible-msrv` implied by `-W clippy::all`
= help: to override `-W clippy::all` add `#[allow(clippy::incompatible_msrv)]`
warning: current MSRV (Minimum Supported Rust Version) is `1.56.0` but this item is stable since `1.71.0`
--> tests/test.rs:2500:44
|
2500 | assert_ne!(rand.hash_one(k1), rand.hash_one(k2));
| ^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#incompatible_msrv
warning: current MSRV (Minimum Supported Rust Version) is `1.56.0` but this item is stable since `1.71.0`
--> tests/test.rs:2503:25
|
2503 | assert_eq!(rand.hash_one(k1), rand.hash_one(k2));
| ^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#incompatible_msrv
warning: current MSRV (Minimum Supported Rust Version) is `1.56.0` but this item is stable since `1.71.0`
--> tests/test.rs:2503:44
|
2503 | assert_eq!(rand.hash_one(k1), rand.hash_one(k2));
| ^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#incompatible_msrv
warning: method `is_sign_negative` is never used
--> src/lexical/num.rs:251:8
|
175 | pub trait Float: Number {
| ----- method in this trait
...
251 | fn is_sign_negative(self) -> bool;
| ^^^^^^^^^^^^^^^^
|
= note: `#[warn(dead_code)]` on by default