[INFO] fetching crate serde_json 1.0.108... [INFO] checking serde_json-1.0.108 against master#020bbe46bdf613c0b8211984eaa8e5fe97d6c92d for pr-122960 [INFO] extracting crate serde_json 1.0.108 into /workspace/builds/worker-4-tc1/source [INFO] validating manifest of crates.io crate serde_json 1.0.108 on toolchain 020bbe46bdf613c0b8211984eaa8e5fe97d6c92d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+020bbe46bdf613c0b8211984eaa8e5fe97d6c92d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate serde_json 1.0.108 [INFO] finished tweaking crates.io crate serde_json 1.0.108 [INFO] tweaked toml for crates.io crate serde_json 1.0.108 written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+020bbe46bdf613c0b8211984eaa8e5fe97d6c92d" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+020bbe46bdf613c0b8211984eaa8e5fe97d6c92d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded trybuild v1.0.90 [INFO] [stderr] Downloaded dissimilar v1.0.7 [INFO] [stderr] Downloaded ref-cast v1.0.22 [INFO] [stderr] Downloaded stacker v0.1.15 [INFO] [stderr] Downloaded termcolor v1.4.1 [INFO] [stderr] Downloaded serde_stacker v0.1.11 [INFO] [stderr] Downloaded automod v1.0.14 [INFO] [stderr] Downloaded indoc v2.0.5 [INFO] [stderr] Downloaded ref-cast-impl v1.0.22 [INFO] [stderr] Downloaded rustversion v1.0.14 [INFO] [stderr] Downloaded psm v0.1.21 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+020bbe46bdf613c0b8211984eaa8e5fe97d6c92d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b967bd0c2b8e0db436d87a1ac08ef5894185ba893e9400b4939b7a23872553a2 [INFO] running `Command { std: "docker" "start" "-a" "b967bd0c2b8e0db436d87a1ac08ef5894185ba893e9400b4939b7a23872553a2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b967bd0c2b8e0db436d87a1ac08ef5894185ba893e9400b4939b7a23872553a2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b967bd0c2b8e0db436d87a1ac08ef5894185ba893e9400b4939b7a23872553a2", kill_on_drop: false }` [INFO] [stdout] b967bd0c2b8e0db436d87a1ac08ef5894185ba893e9400b4939b7a23872553a2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+020bbe46bdf613c0b8211984eaa8e5fe97d6c92d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c766af73a58acdb8a44acd30cf91e5564ed0ae3736d7774e830c3593586fb542 [INFO] running `Command { std: "docker" "start" "-a" "c766af73a58acdb8a44acd30cf91e5564ed0ae3736d7774e830c3593586fb542", kill_on_drop: false }` [INFO] [stderr] Compiling serde v1.0.197 [INFO] [stderr] Compiling cc v1.0.90 [INFO] [stderr] Checking hashbrown v0.14.3 [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Checking equivalent v1.0.1 [INFO] [stderr] Checking winnow v0.6.5 [INFO] [stderr] Compiling syn v2.0.55 [INFO] [stderr] Compiling rustversion v1.0.14 [INFO] [stderr] Compiling ref-cast v1.0.22 [INFO] [stderr] Compiling serde_json v1.0.108 (/opt/rustwide/workdir) [INFO] [stderr] Compiling trybuild v1.0.90 [INFO] [stderr] Checking termcolor v1.4.1 [INFO] [stderr] Checking glob v0.3.1 [INFO] [stderr] Checking indexmap v2.2.6 [INFO] [stderr] Checking dissimilar v1.0.7 [INFO] [stderr] Checking once_cell v1.19.0 [INFO] [stderr] Compiling indoc v2.0.5 [INFO] [stderr] Compiling psm v0.1.21 [INFO] [stderr] Compiling stacker v0.1.15 [INFO] [stderr] Compiling serde_derive v1.0.197 [INFO] [stderr] Compiling ref-cast-impl v1.0.22 [INFO] [stderr] Compiling automod v1.0.14 [INFO] [stderr] Checking serde_spanned v0.6.5 [INFO] [stderr] Checking toml_datetime v0.6.5 [INFO] [stderr] Checking serde_json v1.0.114 [INFO] [stderr] Checking serde_bytes v0.11.14 [INFO] [stderr] Checking serde_stacker v0.1.11 [INFO] [stderr] Checking toml_edit v0.22.9 [INFO] [stdout] warning: the item `String` is imported redundantly [INFO] [stdout] --> src/de.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use alloc::string::String; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/020bbe46bdf613c0b8211984eaa8e5fe97d6c92d/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `String` is already defined here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vec` is imported redundantly [INFO] [stdout] --> src/de.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use alloc::vec::Vec; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/020bbe46bdf613c0b8211984eaa8e5fe97d6c92d/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Vec` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Box` is imported redundantly [INFO] [stdout] --> src/error.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use alloc::boxed::Box; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/020bbe46bdf613c0b8211984eaa8e5fe97d6c92d/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Box` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `String` is imported redundantly [INFO] [stdout] --> src/error.rs:5:21 [INFO] [stdout] | [INFO] [stdout] 5 | use alloc::string::{String, ToString}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] --> /rustc/020bbe46bdf613c0b8211984eaa8e5fe97d6c92d/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `String` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `ToString` is imported redundantly [INFO] [stdout] --> src/error.rs:5:29 [INFO] [stdout] | [INFO] [stdout] 5 | use alloc::string::{String, ToString}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] --> /rustc/020bbe46bdf613c0b8211984eaa8e5fe97d6c92d/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `ToString` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `String` is imported redundantly [INFO] [stdout] --> src/map.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use alloc::string::String; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/020bbe46bdf613c0b8211984eaa8e5fe97d6c92d/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `String` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `String` is imported redundantly [INFO] [stdout] --> src/ser.rs:5:21 [INFO] [stdout] | [INFO] [stdout] 5 | use alloc::string::{String, ToString}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] --> /rustc/020bbe46bdf613c0b8211984eaa8e5fe97d6c92d/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `String` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `ToString` is imported redundantly [INFO] [stdout] --> src/ser.rs:5:29 [INFO] [stdout] | [INFO] [stdout] 5 | use alloc::string::{String, ToString}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] --> /rustc/020bbe46bdf613c0b8211984eaa8e5fe97d6c92d/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `ToString` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vec` is imported redundantly [INFO] [stdout] --> src/ser.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use alloc::vec::Vec; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/020bbe46bdf613c0b8211984eaa8e5fe97d6c92d/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Vec` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `String` is imported redundantly [INFO] [stdout] --> src/value/mod.rs:95:5 [INFO] [stdout] | [INFO] [stdout] 95 | use alloc::string::String; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/020bbe46bdf613c0b8211984eaa8e5fe97d6c92d/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `String` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vec` is imported redundantly [INFO] [stdout] --> src/value/mod.rs:96:5 [INFO] [stdout] | [INFO] [stdout] 96 | use alloc::vec::Vec; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/020bbe46bdf613c0b8211984eaa8e5fe97d6c92d/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Vec` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `ToOwned` is imported redundantly [INFO] [stdout] --> src/value/de.rs:5:26 [INFO] [stdout] | [INFO] [stdout] 5 | use alloc::borrow::{Cow, ToOwned}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] --> /rustc/020bbe46bdf613c0b8211984eaa8e5fe97d6c92d/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `ToOwned` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `String` is imported redundantly [INFO] [stdout] --> src/value/de.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use alloc::string::String; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/020bbe46bdf613c0b8211984eaa8e5fe97d6c92d/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `String` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vec` is imported redundantly [INFO] [stdout] --> src/value/de.rs:9:24 [INFO] [stdout] | [INFO] [stdout] 9 | use alloc::vec::{self, Vec}; [INFO] [stdout] | ^^^ [INFO] [stdout] --> /rustc/020bbe46bdf613c0b8211984eaa8e5fe97d6c92d/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Vec` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `String` is imported redundantly [INFO] [stdout] --> src/value/from.rs:5:21 [INFO] [stdout] | [INFO] [stdout] 5 | use alloc::string::{String, ToString}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] --> /rustc/020bbe46bdf613c0b8211984eaa8e5fe97d6c92d/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `String` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `ToString` is imported redundantly [INFO] [stdout] --> src/value/from.rs:5:29 [INFO] [stdout] | [INFO] [stdout] 5 | use alloc::string::{String, ToString}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] --> /rustc/020bbe46bdf613c0b8211984eaa8e5fe97d6c92d/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `ToString` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vec` is imported redundantly [INFO] [stdout] --> src/value/from.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use alloc::vec::Vec; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/020bbe46bdf613c0b8211984eaa8e5fe97d6c92d/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Vec` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `ToOwned` is imported redundantly [INFO] [stdout] --> src/value/index.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use alloc::borrow::ToOwned; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/020bbe46bdf613c0b8211984eaa8e5fe97d6c92d/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `ToOwned` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `String` is imported redundantly [INFO] [stdout] --> src/value/index.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use alloc::string::String; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/020bbe46bdf613c0b8211984eaa8e5fe97d6c92d/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `String` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `String` is imported redundantly [INFO] [stdout] --> src/value/partial_eq.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use alloc::string::String; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/020bbe46bdf613c0b8211984eaa8e5fe97d6c92d/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `String` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `ToOwned` is imported redundantly [INFO] [stdout] --> src/value/ser.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use alloc::borrow::ToOwned; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/020bbe46bdf613c0b8211984eaa8e5fe97d6c92d/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `ToOwned` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `String` is imported redundantly [INFO] [stdout] --> src/value/ser.rs:5:21 [INFO] [stdout] | [INFO] [stdout] 5 | use alloc::string::{String, ToString}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] --> /rustc/020bbe46bdf613c0b8211984eaa8e5fe97d6c92d/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `String` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `ToString` is imported redundantly [INFO] [stdout] --> src/value/ser.rs:5:29 [INFO] [stdout] | [INFO] [stdout] 5 | use alloc::string::{String, ToString}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] --> /rustc/020bbe46bdf613c0b8211984eaa8e5fe97d6c92d/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `ToString` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vec` is imported redundantly [INFO] [stdout] --> src/value/ser.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use alloc::vec::Vec; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/020bbe46bdf613c0b8211984eaa8e5fe97d6c92d/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Vec` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vec` is imported redundantly [INFO] [stdout] --> src/read.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use alloc::vec::Vec; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/020bbe46bdf613c0b8211984eaa8e5fe97d6c92d/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Vec` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 25 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking toml v0.8.12 [INFO] [stdout] warning: the item `Vec` is imported redundantly [INFO] [stdout] --> tests/../src/lexical/bignum.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use alloc::vec::Vec; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/020bbe46bdf613c0b8211984eaa8e5fe97d6c92d/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Vec` is already defined here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `x` is never read [INFO] [stdout] --> tests/regression/issue795.rs:11:15 [INFO] [stdout] | [INFO] [stdout] 11 | Variant { x: u8 }, [INFO] [stdout] | ------- ^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `i` is never read [INFO] [stdout] --> tests/regression/issue845.rs:63:9 [INFO] [stdout] | [INFO] [stdout] 61 | pub struct Struct { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 62 | #[serde(deserialize_with = "deserialize_integer_or_string")] [INFO] [stdout] 63 | pub i: i64, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `Struct` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `ToString` is imported redundantly [INFO] [stdout] --> tests/test.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | use std::string::ToString; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/020bbe46bdf613c0b8211984eaa8e5fe97d6c92d/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `ToString` is already defined here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `String` is imported redundantly [INFO] [stdout] --> src/de.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use alloc::string::String; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/020bbe46bdf613c0b8211984eaa8e5fe97d6c92d/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `String` is already defined here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vec` is imported redundantly [INFO] [stdout] --> src/de.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use alloc::vec::Vec; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/020bbe46bdf613c0b8211984eaa8e5fe97d6c92d/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Vec` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Box` is imported redundantly [INFO] [stdout] --> src/error.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use alloc::boxed::Box; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/020bbe46bdf613c0b8211984eaa8e5fe97d6c92d/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Box` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `String` is imported redundantly [INFO] [stdout] --> src/error.rs:5:21 [INFO] [stdout] | [INFO] [stdout] 5 | use alloc::string::{String, ToString}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] --> /rustc/020bbe46bdf613c0b8211984eaa8e5fe97d6c92d/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `String` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `ToString` is imported redundantly [INFO] [stdout] --> src/error.rs:5:29 [INFO] [stdout] | [INFO] [stdout] 5 | use alloc::string::{String, ToString}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] --> /rustc/020bbe46bdf613c0b8211984eaa8e5fe97d6c92d/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `ToString` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `String` is imported redundantly [INFO] [stdout] --> src/map.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use alloc::string::String; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/020bbe46bdf613c0b8211984eaa8e5fe97d6c92d/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `String` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `String` is imported redundantly [INFO] [stdout] --> src/ser.rs:5:21 [INFO] [stdout] | [INFO] [stdout] 5 | use alloc::string::{String, ToString}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] --> /rustc/020bbe46bdf613c0b8211984eaa8e5fe97d6c92d/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `String` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `ToString` is imported redundantly [INFO] [stdout] --> src/ser.rs:5:29 [INFO] [stdout] | [INFO] [stdout] 5 | use alloc::string::{String, ToString}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] --> /rustc/020bbe46bdf613c0b8211984eaa8e5fe97d6c92d/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `ToString` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vec` is imported redundantly [INFO] [stdout] --> src/ser.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use alloc::vec::Vec; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/020bbe46bdf613c0b8211984eaa8e5fe97d6c92d/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Vec` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `String` is imported redundantly [INFO] [stdout] --> src/value/mod.rs:95:5 [INFO] [stdout] | [INFO] [stdout] 95 | use alloc::string::String; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/020bbe46bdf613c0b8211984eaa8e5fe97d6c92d/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `String` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vec` is imported redundantly [INFO] [stdout] --> src/value/mod.rs:96:5 [INFO] [stdout] | [INFO] [stdout] 96 | use alloc::vec::Vec; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/020bbe46bdf613c0b8211984eaa8e5fe97d6c92d/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Vec` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `ToOwned` is imported redundantly [INFO] [stdout] --> src/value/de.rs:5:26 [INFO] [stdout] | [INFO] [stdout] 5 | use alloc::borrow::{Cow, ToOwned}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] --> /rustc/020bbe46bdf613c0b8211984eaa8e5fe97d6c92d/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `ToOwned` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `String` is imported redundantly [INFO] [stdout] --> src/value/de.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use alloc::string::String; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/020bbe46bdf613c0b8211984eaa8e5fe97d6c92d/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `String` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vec` is imported redundantly [INFO] [stdout] --> src/value/de.rs:9:24 [INFO] [stdout] | [INFO] [stdout] 9 | use alloc::vec::{self, Vec}; [INFO] [stdout] | ^^^ [INFO] [stdout] --> /rustc/020bbe46bdf613c0b8211984eaa8e5fe97d6c92d/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Vec` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `String` is imported redundantly [INFO] [stdout] --> src/value/from.rs:5:21 [INFO] [stdout] | [INFO] [stdout] 5 | use alloc::string::{String, ToString}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] --> /rustc/020bbe46bdf613c0b8211984eaa8e5fe97d6c92d/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `String` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `ToString` is imported redundantly [INFO] [stdout] --> src/value/from.rs:5:29 [INFO] [stdout] | [INFO] [stdout] 5 | use alloc::string::{String, ToString}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] --> /rustc/020bbe46bdf613c0b8211984eaa8e5fe97d6c92d/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `ToString` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vec` is imported redundantly [INFO] [stdout] --> src/value/from.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use alloc::vec::Vec; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/020bbe46bdf613c0b8211984eaa8e5fe97d6c92d/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Vec` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `ToOwned` is imported redundantly [INFO] [stdout] --> src/value/index.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use alloc::borrow::ToOwned; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/020bbe46bdf613c0b8211984eaa8e5fe97d6c92d/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `ToOwned` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `String` is imported redundantly [INFO] [stdout] --> src/value/index.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use alloc::string::String; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/020bbe46bdf613c0b8211984eaa8e5fe97d6c92d/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `String` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `String` is imported redundantly [INFO] [stdout] --> src/value/partial_eq.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use alloc::string::String; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/020bbe46bdf613c0b8211984eaa8e5fe97d6c92d/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `String` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `ToOwned` is imported redundantly [INFO] [stdout] --> src/value/ser.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use alloc::borrow::ToOwned; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/020bbe46bdf613c0b8211984eaa8e5fe97d6c92d/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `ToOwned` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `String` is imported redundantly [INFO] [stdout] --> src/value/ser.rs:5:21 [INFO] [stdout] | [INFO] [stdout] 5 | use alloc::string::{String, ToString}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] --> /rustc/020bbe46bdf613c0b8211984eaa8e5fe97d6c92d/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `String` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `ToString` is imported redundantly [INFO] [stdout] --> src/value/ser.rs:5:29 [INFO] [stdout] | [INFO] [stdout] 5 | use alloc::string::{String, ToString}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] --> /rustc/020bbe46bdf613c0b8211984eaa8e5fe97d6c92d/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `ToString` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vec` is imported redundantly [INFO] [stdout] --> src/value/ser.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use alloc::vec::Vec; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/020bbe46bdf613c0b8211984eaa8e5fe97d6c92d/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Vec` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vec` is imported redundantly [INFO] [stdout] --> src/read.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use alloc::vec::Vec; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/020bbe46bdf613c0b8211984eaa8e5fe97d6c92d/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Vec` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_sign_negative` is never used [INFO] [stdout] --> tests/../src/lexical/num.rs:251:8 [INFO] [stdout] | [INFO] [stdout] 175 | pub trait Float: Number { [INFO] [stdout] | ----- method in this trait [INFO] [stdout] ... [INFO] [stdout] 251 | fn is_sign_negative(self) -> bool; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 25 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 8.25s [INFO] running `Command { std: "docker" "inspect" "c766af73a58acdb8a44acd30cf91e5564ed0ae3736d7774e830c3593586fb542", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c766af73a58acdb8a44acd30cf91e5564ed0ae3736d7774e830c3593586fb542", kill_on_drop: false }` [INFO] [stdout] c766af73a58acdb8a44acd30cf91e5564ed0ae3736d7774e830c3593586fb542 [INFO] checking serde_json-1.0.108 against try#8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde for pr-122960 [INFO] extracting crate serde_json 1.0.108 into /workspace/builds/worker-4-tc2/source [INFO] validating manifest of crates.io crate serde_json 1.0.108 on toolchain 8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate serde_json 1.0.108 [INFO] finished tweaking crates.io crate serde_json 1.0.108 [INFO] tweaked toml for crates.io crate serde_json 1.0.108 written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 008f3a2e178b495f12b953bc624afaddce11e4bb1a65c9b2da24b1435d6c5f61 [INFO] running `Command { std: "docker" "start" "-a" "008f3a2e178b495f12b953bc624afaddce11e4bb1a65c9b2da24b1435d6c5f61", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "008f3a2e178b495f12b953bc624afaddce11e4bb1a65c9b2da24b1435d6c5f61", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "008f3a2e178b495f12b953bc624afaddce11e4bb1a65c9b2da24b1435d6c5f61", kill_on_drop: false }` [INFO] [stdout] 008f3a2e178b495f12b953bc624afaddce11e4bb1a65c9b2da24b1435d6c5f61 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 000c77a4f2aa56b1012b8735e839b2b038dc555460af687351ca3ddcaaebeb99 [INFO] running `Command { std: "docker" "start" "-a" "000c77a4f2aa56b1012b8735e839b2b038dc555460af687351ca3ddcaaebeb99", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Compiling serde v1.0.197 [INFO] [stderr] Compiling cc v1.0.90 [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Checking hashbrown v0.14.3 [INFO] [stderr] Checking equivalent v1.0.1 [INFO] [stderr] Checking winnow v0.6.5 [INFO] [stderr] Compiling syn v2.0.55 [INFO] [stderr] Compiling ref-cast v1.0.22 [INFO] [stderr] Compiling trybuild v1.0.90 [INFO] [stderr] Compiling rustversion v1.0.14 [INFO] [stderr] Compiling serde_json v1.0.108 (/tmp/fixit) [INFO] [stderr] Migrating build.rs from 2021 edition to 2024 [INFO] [stderr] Checking dissimilar v1.0.7 [INFO] [stderr] Checking glob v0.3.1 [INFO] [stderr] Checking once_cell v1.19.0 [INFO] [stderr] Checking indexmap v2.2.6 [INFO] [stderr] Checking termcolor v1.4.1 [INFO] [stderr] Compiling indoc v2.0.5 [INFO] [stderr] Compiling psm v0.1.21 [INFO] [stderr] Compiling stacker v0.1.15 [INFO] [stderr] Compiling serde_derive v1.0.197 [INFO] [stderr] Compiling ref-cast-impl v1.0.22 [INFO] [stderr] Compiling automod v1.0.14 [INFO] [stderr] Checking serde_spanned v0.6.5 [INFO] [stderr] Checking toml_datetime v0.6.5 [INFO] [stderr] Checking serde_json v1.0.114 [INFO] [stderr] Checking serde_stacker v0.1.11 [INFO] [stderr] Checking serde_bytes v0.11.14 [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] Checking toml_edit v0.22.9 [INFO] [stdout] warning: the item `String` is imported redundantly [INFO] [stdout] --> src/de.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use alloc::string::String; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `String` is already defined here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vec` is imported redundantly [INFO] [stdout] --> src/de.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use alloc::vec::Vec; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Vec` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Box` is imported redundantly [INFO] [stdout] --> src/error.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use alloc::boxed::Box; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Box` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `String` is imported redundantly [INFO] [stdout] --> src/error.rs:5:21 [INFO] [stdout] | [INFO] [stdout] 5 | use alloc::string::{String, ToString}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `String` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `ToString` is imported redundantly [INFO] [stdout] --> src/error.rs:5:29 [INFO] [stdout] | [INFO] [stdout] 5 | use alloc::string::{String, ToString}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `ToString` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `String` is imported redundantly [INFO] [stdout] --> src/map.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use alloc::string::String; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `String` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `String` is imported redundantly [INFO] [stdout] --> src/ser.rs:5:21 [INFO] [stdout] | [INFO] [stdout] 5 | use alloc::string::{String, ToString}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `String` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `ToString` is imported redundantly [INFO] [stdout] --> src/ser.rs:5:29 [INFO] [stdout] | [INFO] [stdout] 5 | use alloc::string::{String, ToString}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `ToString` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vec` is imported redundantly [INFO] [stdout] --> src/ser.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use alloc::vec::Vec; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Vec` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `String` is imported redundantly [INFO] [stdout] --> src/value/mod.rs:95:5 [INFO] [stdout] | [INFO] [stdout] 95 | use alloc::string::String; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `String` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vec` is imported redundantly [INFO] [stdout] --> src/value/mod.rs:96:5 [INFO] [stdout] | [INFO] [stdout] 96 | use alloc::vec::Vec; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Vec` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `ToOwned` is imported redundantly [INFO] [stdout] --> src/value/de.rs:5:26 [INFO] [stdout] | [INFO] [stdout] 5 | use alloc::borrow::{Cow, ToOwned}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `ToOwned` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `String` is imported redundantly [INFO] [stdout] --> src/value/de.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use alloc::string::String; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `String` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vec` is imported redundantly [INFO] [stdout] --> src/value/de.rs:9:24 [INFO] [stdout] | [INFO] [stdout] 9 | use alloc::vec::{self, Vec}; [INFO] [stdout] | ^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Vec` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `String` is imported redundantly [INFO] [stdout] --> src/value/from.rs:5:21 [INFO] [stdout] | [INFO] [stdout] 5 | use alloc::string::{String, ToString}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `String` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `ToString` is imported redundantly [INFO] [stdout] --> src/value/from.rs:5:29 [INFO] [stdout] | [INFO] [stdout] 5 | use alloc::string::{String, ToString}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `ToString` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vec` is imported redundantly [INFO] [stdout] --> src/value/from.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use alloc::vec::Vec; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Vec` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `ToOwned` is imported redundantly [INFO] [stdout] --> src/value/index.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use alloc::borrow::ToOwned; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `ToOwned` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `String` is imported redundantly [INFO] [stdout] --> src/value/index.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use alloc::string::String; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `String` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `String` is imported redundantly [INFO] [stdout] --> src/value/partial_eq.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use alloc::string::String; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `String` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `ToOwned` is imported redundantly [INFO] [stdout] --> src/value/ser.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use alloc::borrow::ToOwned; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `ToOwned` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `String` is imported redundantly [INFO] [stdout] --> src/value/ser.rs:5:21 [INFO] [stdout] | [INFO] [stdout] 5 | use alloc::string::{String, ToString}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `String` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `ToString` is imported redundantly [INFO] [stdout] --> src/value/ser.rs:5:29 [INFO] [stdout] | [INFO] [stdout] 5 | use alloc::string::{String, ToString}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `ToString` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vec` is imported redundantly [INFO] [stdout] --> src/value/ser.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use alloc::vec::Vec; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Vec` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vec` is imported redundantly [INFO] [stdout] --> src/read.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use alloc::vec::Vec; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Vec` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 25 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking toml v0.8.12 [INFO] [stderr] Migrating tests/regression.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/stream.rs from 2021 edition to 2024 [INFO] [stdout] warning: field `x` is never read [INFO] [stdout] --> tests/regression/issue795.rs:11:15 [INFO] [stdout] | [INFO] [stdout] 11 | Variant { x: u8 }, [INFO] [stdout] | ------- ^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `i` is never read [INFO] [stdout] --> tests/regression/issue845.rs:63:9 [INFO] [stdout] | [INFO] [stdout] 61 | pub struct Struct { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 62 | #[serde(deserialize_with = "deserialize_integer_or_string")] [INFO] [stdout] 63 | pub i: i64, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `Struct` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating tests/debug.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/map.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/compiletest.rs from 2021 edition to 2024 [INFO] [stdout] warning: the item `String` is imported redundantly [INFO] [stdout] --> src/de.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use alloc::string::String; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `String` is already defined here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating tests/lexical.rs from 2021 edition to 2024 [INFO] [stdout] warning: the item `Vec` is imported redundantly [INFO] [stdout] --> src/de.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use alloc::vec::Vec; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Vec` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Box` is imported redundantly [INFO] [stdout] --> src/error.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use alloc::boxed::Box; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Box` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `String` is imported redundantly [INFO] [stdout] --> src/error.rs:5:21 [INFO] [stdout] | [INFO] [stdout] 5 | use alloc::string::{String, ToString}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `String` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `ToString` is imported redundantly [INFO] [stdout] --> src/error.rs:5:29 [INFO] [stdout] | [INFO] [stdout] 5 | use alloc::string::{String, ToString}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `ToString` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `String` is imported redundantly [INFO] [stdout] --> src/map.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use alloc::string::String; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `String` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `String` is imported redundantly [INFO] [stdout] --> src/ser.rs:5:21 [INFO] [stdout] | [INFO] [stdout] 5 | use alloc::string::{String, ToString}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `String` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `ToString` is imported redundantly [INFO] [stdout] --> src/ser.rs:5:29 [INFO] [stdout] | [INFO] [stdout] 5 | use alloc::string::{String, ToString}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `ToString` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vec` is imported redundantly [INFO] [stdout] --> src/ser.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use alloc::vec::Vec; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Vec` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `String` is imported redundantly [INFO] [stdout] --> src/value/mod.rs:95:5 [INFO] [stdout] | [INFO] [stdout] 95 | use alloc::string::String; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `String` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vec` is imported redundantly [INFO] [stdout] --> src/value/mod.rs:96:5 [INFO] [stdout] | [INFO] [stdout] 96 | use alloc::vec::Vec; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Vec` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `ToOwned` is imported redundantly [INFO] [stdout] --> src/value/de.rs:5:26 [INFO] [stdout] | [INFO] [stdout] 5 | use alloc::borrow::{Cow, ToOwned}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `ToOwned` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `String` is imported redundantly [INFO] [stdout] --> src/value/de.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use alloc::string::String; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `String` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vec` is imported redundantly [INFO] [stdout] --> src/value/de.rs:9:24 [INFO] [stdout] | [INFO] [stdout] 9 | use alloc::vec::{self, Vec}; [INFO] [stdout] | ^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Vec` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `String` is imported redundantly [INFO] [stdout] --> src/value/from.rs:5:21 [INFO] [stdout] | [INFO] [stdout] 5 | use alloc::string::{String, ToString}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `String` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `ToString` is imported redundantly [INFO] [stdout] --> src/value/from.rs:5:29 [INFO] [stdout] | [INFO] [stdout] 5 | use alloc::string::{String, ToString}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `ToString` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vec` is imported redundantly [INFO] [stdout] --> src/value/from.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use alloc::vec::Vec; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Vec` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `ToOwned` is imported redundantly [INFO] [stdout] --> src/value/index.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use alloc::borrow::ToOwned; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `ToOwned` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `String` is imported redundantly [INFO] [stdout] --> src/value/index.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use alloc::string::String; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `String` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `String` is imported redundantly [INFO] [stdout] --> src/value/partial_eq.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use alloc::string::String; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `String` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `ToOwned` is imported redundantly [INFO] [stdout] --> src/value/ser.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use alloc::borrow::ToOwned; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `ToOwned` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `String` is imported redundantly [INFO] [stdout] --> src/value/ser.rs:5:21 [INFO] [stdout] | [INFO] [stdout] 5 | use alloc::string::{String, ToString}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `String` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `ToString` is imported redundantly [INFO] [stdout] --> src/value/ser.rs:5:29 [INFO] [stdout] | [INFO] [stdout] 5 | use alloc::string::{String, ToString}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `ToString` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vec` is imported redundantly [INFO] [stdout] --> src/value/ser.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use alloc::vec::Vec; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Vec` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vec` is imported redundantly [INFO] [stdout] --> src/read.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use alloc::vec::Vec; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Vec` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 25 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating tests/test.rs from 2021 edition to 2024 [INFO] [stdout] warning: the item `Vec` is imported redundantly [INFO] [stdout] --> tests/../src/lexical/bignum.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use alloc::vec::Vec; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Vec` is already defined here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_sign_negative` is never used [INFO] [stdout] --> tests/../src/lexical/num.rs:251:8 [INFO] [stdout] | [INFO] [stdout] 175 | pub trait Float: Number { [INFO] [stdout] | ----- method in this trait [INFO] [stdout] ... [INFO] [stdout] 251 | fn is_sign_negative(self) -> bool; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `ToString` is imported redundantly [INFO] [stdout] --> tests/test.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | use std::string::ToString; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `ToString` is already defined here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 7.44s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Compiling serde_json v1.0.108 (/tmp/fixit) [INFO] [stdout] warning: the item `String` is imported redundantly [INFO] [stdout] --> src/de.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use alloc::string::String; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:139:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `String` is already defined here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vec` is imported redundantly [INFO] [stdout] --> src/de.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use alloc::vec::Vec; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:139:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Vec` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Box` is imported redundantly [INFO] [stdout] --> src/error.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use alloc::boxed::Box; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:139:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Box` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `String` is imported redundantly [INFO] [stdout] --> src/error.rs:5:21 [INFO] [stdout] | [INFO] [stdout] 5 | use alloc::string::{String, ToString}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:139:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `String` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `ToString` is imported redundantly [INFO] [stdout] --> src/error.rs:5:29 [INFO] [stdout] | [INFO] [stdout] 5 | use alloc::string::{String, ToString}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:139:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `ToString` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `String` is imported redundantly [INFO] [stdout] --> src/map.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use alloc::string::String; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:139:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `String` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `String` is imported redundantly [INFO] [stdout] --> src/de.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use alloc::string::String; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:139:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `String` is already defined here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `String` is imported redundantly [INFO] [stdout] --> src/ser.rs:5:21 [INFO] [stdout] | [INFO] [stdout] 5 | use alloc::string::{String, ToString}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:139:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `String` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vec` is imported redundantly [INFO] [stdout] --> src/de.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use alloc::vec::Vec; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:139:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Vec` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `ToString` is imported redundantly [INFO] [stdout] --> src/ser.rs:5:29 [INFO] [stdout] | [INFO] [stdout] 5 | use alloc::string::{String, ToString}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:139:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `ToString` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vec` is imported redundantly [INFO] [stdout] --> src/ser.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use alloc::vec::Vec; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:139:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Vec` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `String` is imported redundantly [INFO] [stdout] --> src/value/mod.rs:95:5 [INFO] [stdout] | [INFO] [stdout] 95 | use alloc::string::String; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:139:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `String` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vec` is imported redundantly [INFO] [stdout] --> src/value/mod.rs:96:5 [INFO] [stdout] | [INFO] [stdout] 96 | use alloc::vec::Vec; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:139:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Vec` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Box` is imported redundantly [INFO] [stdout] --> src/error.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use alloc::boxed::Box; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:139:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Box` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `String` is imported redundantly [INFO] [stdout] --> src/error.rs:5:21 [INFO] [stdout] | [INFO] [stdout] 5 | use alloc::string::{String, ToString}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:139:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `String` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `ToOwned` is imported redundantly [INFO] [stdout] --> src/value/de.rs:5:26 [INFO] [stdout] | [INFO] [stdout] 5 | use alloc::borrow::{Cow, ToOwned}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:139:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `ToOwned` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `String` is imported redundantly [INFO] [stdout] --> src/value/de.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use alloc::string::String; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:139:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `String` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `ToString` is imported redundantly [INFO] [stdout] --> src/error.rs:5:29 [INFO] [stdout] | [INFO] [stdout] 5 | use alloc::string::{String, ToString}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:139:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `ToString` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vec` is imported redundantly [INFO] [stdout] --> src/value/de.rs:9:24 [INFO] [stdout] | [INFO] [stdout] 9 | use alloc::vec::{self, Vec}; [INFO] [stdout] | ^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:139:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Vec` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `String` is imported redundantly [INFO] [stdout] --> src/map.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use alloc::string::String; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:139:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `String` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `String` is imported redundantly [INFO] [stdout] --> src/ser.rs:5:21 [INFO] [stdout] | [INFO] [stdout] 5 | use alloc::string::{String, ToString}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:139:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `String` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `ToString` is imported redundantly [INFO] [stdout] --> src/ser.rs:5:29 [INFO] [stdout] | [INFO] [stdout] 5 | use alloc::string::{String, ToString}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:139:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `ToString` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vec` is imported redundantly [INFO] [stdout] --> src/ser.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use alloc::vec::Vec; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:139:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Vec` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `String` is imported redundantly [INFO] [stdout] --> src/value/from.rs:5:21 [INFO] [stdout] | [INFO] [stdout] 5 | use alloc::string::{String, ToString}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:139:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `String` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `ToString` is imported redundantly [INFO] [stdout] --> src/value/from.rs:5:29 [INFO] [stdout] | [INFO] [stdout] 5 | use alloc::string::{String, ToString}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:139:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `ToString` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `String` is imported redundantly [INFO] [stdout] --> src/value/mod.rs:95:5 [INFO] [stdout] | [INFO] [stdout] 95 | use alloc::string::String; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:139:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `String` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vec` is imported redundantly [INFO] [stdout] --> src/value/mod.rs:96:5 [INFO] [stdout] | [INFO] [stdout] 96 | use alloc::vec::Vec; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:139:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Vec` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `ToOwned` is imported redundantly [INFO] [stdout] --> src/value/de.rs:5:26 [INFO] [stdout] | [INFO] [stdout] 5 | use alloc::borrow::{Cow, ToOwned}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:139:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `ToOwned` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `String` is imported redundantly [INFO] [stdout] --> src/value/de.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use alloc::string::String; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:139:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `String` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vec` is imported redundantly [INFO] [stdout] --> src/value/from.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use alloc::vec::Vec; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:139:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Vec` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vec` is imported redundantly [INFO] [stdout] --> src/value/de.rs:9:24 [INFO] [stdout] | [INFO] [stdout] 9 | use alloc::vec::{self, Vec}; [INFO] [stdout] | ^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:139:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Vec` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `ToOwned` is imported redundantly [INFO] [stdout] --> src/value/index.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use alloc::borrow::ToOwned; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:139:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `ToOwned` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `String` is imported redundantly [INFO] [stdout] --> src/value/index.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use alloc::string::String; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:139:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `String` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `String` is imported redundantly [INFO] [stdout] --> src/value/partial_eq.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use alloc::string::String; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:139:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `String` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `ToOwned` is imported redundantly [INFO] [stdout] --> src/value/ser.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use alloc::borrow::ToOwned; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:139:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `ToOwned` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `String` is imported redundantly [INFO] [stdout] --> src/value/ser.rs:5:21 [INFO] [stdout] | [INFO] [stdout] 5 | use alloc::string::{String, ToString}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:139:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `String` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `ToString` is imported redundantly [INFO] [stdout] --> src/value/ser.rs:5:29 [INFO] [stdout] | [INFO] [stdout] 5 | use alloc::string::{String, ToString}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:139:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `ToString` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vec` is imported redundantly [INFO] [stdout] --> src/value/ser.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use alloc::vec::Vec; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:139:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Vec` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vec` is imported redundantly [INFO] [stdout] --> src/read.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use alloc::vec::Vec; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:139:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Vec` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `String` is imported redundantly [INFO] [stdout] --> src/value/from.rs:5:21 [INFO] [stdout] | [INFO] [stdout] 5 | use alloc::string::{String, ToString}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:139:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `String` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `ToString` is imported redundantly [INFO] [stdout] --> src/value/from.rs:5:29 [INFO] [stdout] | [INFO] [stdout] 5 | use alloc::string::{String, ToString}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:139:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `ToString` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vec` is imported redundantly [INFO] [stdout] --> src/value/from.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use alloc::vec::Vec; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:139:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Vec` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `ToOwned` is imported redundantly [INFO] [stdout] --> src/value/index.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use alloc::borrow::ToOwned; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:139:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `ToOwned` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `String` is imported redundantly [INFO] [stdout] --> src/value/index.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use alloc::string::String; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:139:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `String` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `String` is imported redundantly [INFO] [stdout] --> src/value/partial_eq.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use alloc::string::String; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:139:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `String` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `ToOwned` is imported redundantly [INFO] [stdout] --> src/value/ser.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use alloc::borrow::ToOwned; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:139:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `ToOwned` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `String` is imported redundantly [INFO] [stdout] --> src/value/ser.rs:5:21 [INFO] [stdout] | [INFO] [stdout] 5 | use alloc::string::{String, ToString}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:139:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `String` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `ToString` is imported redundantly [INFO] [stdout] --> src/value/ser.rs:5:29 [INFO] [stdout] | [INFO] [stdout] 5 | use alloc::string::{String, ToString}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:139:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `ToString` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vec` is imported redundantly [INFO] [stdout] --> src/value/ser.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use alloc::vec::Vec; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:139:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Vec` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vec` is imported redundantly [INFO] [stdout] --> src/read.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use alloc::vec::Vec; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:139:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Vec` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 25 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 25 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vec` is imported redundantly [INFO] [stdout] --> tests/../src/lexical/bignum.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use alloc::vec::Vec; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:139:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Vec` is already defined here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `x` is never read [INFO] [stdout] --> tests/regression/issue795.rs:11:15 [INFO] [stdout] | [INFO] [stdout] 11 | Variant { x: u8 }, [INFO] [stdout] | ------- ^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `i` is never read [INFO] [stdout] --> tests/regression/issue845.rs:63:9 [INFO] [stdout] | [INFO] [stdout] 61 | pub struct Struct { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 62 | #[serde(deserialize_with = "deserialize_integer_or_string")] [INFO] [stdout] 63 | pub i: i64, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `Struct` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `ToString` is imported redundantly [INFO] [stdout] --> tests/test.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | use std::string::ToString; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:139:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `ToString` is already defined here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_sign_negative` is never used [INFO] [stdout] --> tests/../src/lexical/num.rs:251:8 [INFO] [stdout] | [INFO] [stdout] 175 | pub trait Float: Number { [INFO] [stdout] | ----- method in this trait [INFO] [stdout] ... [INFO] [stdout] 251 | fn is_sign_negative(self) -> bool; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.00s [INFO] running `Command { std: "docker" "inspect" "000c77a4f2aa56b1012b8735e839b2b038dc555460af687351ca3ddcaaebeb99", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "000c77a4f2aa56b1012b8735e839b2b038dc555460af687351ca3ddcaaebeb99", kill_on_drop: false }` [INFO] [stdout] 000c77a4f2aa56b1012b8735e839b2b038dc555460af687351ca3ddcaaebeb99