[INFO] fetching crate serde_state 0.4.8... [INFO] testing serde_state-0.4.8 against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] extracting crate serde_state 0.4.8 into /workspace/builds/worker-1-tc1/source [INFO] started tweaking crates.io crate serde_state 0.4.8 [INFO] finished tweaking crates.io crate serde_state 0.4.8 [INFO] tweaked toml for crates.io crate serde_state 0.4.8 written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate serde_state 0.4.8 on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "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] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Locking 12 packages to latest compatible versions [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d308db949c3effb75cfe1f8c3156072e32e565f1deba0758bdc11009edda0b1d [INFO] running `Command { std: "docker" "start" "-a" "d308db949c3effb75cfe1f8c3156072e32e565f1deba0758bdc11009edda0b1d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d308db949c3effb75cfe1f8c3156072e32e565f1deba0758bdc11009edda0b1d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d308db949c3effb75cfe1f8c3156072e32e565f1deba0758bdc11009edda0b1d", kill_on_drop: false }` [INFO] [stdout] d308db949c3effb75cfe1f8c3156072e32e565f1deba0758bdc11009edda0b1d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 35e2696ec0f445576ea919632602d2c2e1f8dec6f3f1a26feb55a3dab8d1831c [INFO] running `Command { std: "docker" "start" "-a" "35e2696ec0f445576ea919632602d2c2e1f8dec6f3f1a26feb55a3dab8d1831c", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling serde_state v0.4.8 (/opt/rustwide/workdir) [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/lib.rs:130:13 [INFO] [stdout] | [INFO] [stdout] 130 | #![cfg_attr(feature = "cargo-clippy", allow(doc_markdown))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `alloc`, `default`, `derive`, `playground`, `rc`, `serde_derive`, `std`, and `unstable` [INFO] [stdout] = help: consider adding `cargo-clippy` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/lib.rs:131:13 [INFO] [stdout] | [INFO] [stdout] 131 | #![cfg_attr(feature = "cargo-clippy", allow(linkedlist))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `alloc`, `default`, `derive`, `playground`, `rc`, `serde_derive`, `std`, and `unstable` [INFO] [stdout] = help: consider adding `cargo-clippy` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/lib.rs:132:13 [INFO] [stdout] | [INFO] [stdout] 132 | #![cfg_attr(feature = "cargo-clippy", allow(type_complexity))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `alloc`, `default`, `derive`, `playground`, `rc`, `serde_derive`, `std`, and `unstable` [INFO] [stdout] = help: consider adding `cargo-clippy` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/lib.rs:133:13 [INFO] [stdout] | [INFO] [stdout] 133 | #![cfg_attr(feature = "cargo-clippy", allow(zero_prefixed_literal))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `alloc`, `default`, `derive`, `playground`, `rc`, `serde_derive`, `std`, and `unstable` [INFO] [stdout] = help: consider adding `cargo-clippy` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unused imports: `iter`, `mem`, and `slice` [INFO] [stdout] --> src/lib.rs:159:31 [INFO] [stdout] | [INFO] [stdout] 159 | pub use self::core::{cmp, iter, mem, ops, slice, str}; [INFO] [stdout] | ^^^^ ^^^ ^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/lib.rs:135:23 [INFO] [stdout] | [INFO] [stdout] 135 | #![deny(missing_docs, unused_imports)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unused import: `self` [INFO] [stdout] --> src/lib.rs:165:33 [INFO] [stdout] | [INFO] [stdout] 165 | pub use self::core::clone::{self, Clone}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unused imports: `From` and `self` [INFO] [stdout] --> src/lib.rs:166:35 [INFO] [stdout] | [INFO] [stdout] 166 | pub use self::core::convert::{self, From, Into}; [INFO] [stdout] | ^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unused import: `self` [INFO] [stdout] --> src/lib.rs:167:35 [INFO] [stdout] | [INFO] [stdout] 167 | pub use self::core::default::{self, Default}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unused import: `self` [INFO] [stdout] --> src/lib.rs:169:34 [INFO] [stdout] | [INFO] [stdout] 169 | pub use self::core::marker::{self, PhantomData}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unused import: `self` [INFO] [stdout] --> src/lib.rs:170:34 [INFO] [stdout] | [INFO] [stdout] 170 | pub use self::core::option::{self, Option}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unused import: `self` [INFO] [stdout] --> src/lib.rs:171:34 [INFO] [stdout] | [INFO] [stdout] 171 | pub use self::core::result::{self, Result}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unused import: `net` [INFO] [stdout] --> src/lib.rs:209:26 [INFO] [stdout] | [INFO] [stdout] 209 | pub use std::{error, net}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unused imports: `CStr`, `CString`, `OsStr`, and `OsString` [INFO] [stdout] --> src/lib.rs:214:24 [INFO] [stdout] | [INFO] [stdout] 214 | pub use std::ffi::{CStr, CString, OsStr, OsString}; [INFO] [stdout] | ^^^^ ^^^^^^^ ^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unused imports: `PathBuf` and `Path` [INFO] [stdout] --> src/lib.rs:220:25 [INFO] [stdout] | [INFO] [stdout] 220 | pub use std::path::{Path, PathBuf}; [INFO] [stdout] | ^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unused import: `std::time::Duration` [INFO] [stdout] --> src/lib.rs:224:13 [INFO] [stdout] | [INFO] [stdout] 224 | pub use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/de/seed_impls.rs:157:9 [INFO] [stdout] | [INFO] [stdout] 153 | / fn deserialize(self, deserializer: D) -> Result [INFO] [stdout] 154 | | where [INFO] [stdout] 155 | | D: Deserializer<'de>, [INFO] [stdout] | |_____________________________- move the `impl` block outside of this method `deserialize` [INFO] [stdout] 156 | { [INFO] [stdout] 157 | impl<'de, S, F, T> Visitor<'de> for SeqSeed [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^-------^^^^^^^^^^-------^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | `SeqSeed` is not local [INFO] [stdout] | `Visitor` is not local [INFO] [stdout] | [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/de/seed_impls.rs:269:9 [INFO] [stdout] | [INFO] [stdout] 265 | / fn deserialize(self, deserializer: D) -> Result [INFO] [stdout] 266 | | where [INFO] [stdout] 267 | | D: Deserializer<'de>, [INFO] [stdout] | |_____________________________- move the `impl` block outside of this method `deserialize` [INFO] [stdout] 268 | { [INFO] [stdout] 269 | impl<'de, S> Visitor<'de> for OptionSeed [INFO] [stdout] | ^^^^^^^^^^^^^-------^^^^^^^^^^----------^^^ [INFO] [stdout] | | | [INFO] [stdout] | | `OptionSeed` is not local [INFO] [stdout] | `Visitor` is not local [INFO] [stdout] | [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/private/de.rs:290:23 [INFO] [stdout] | [INFO] [stdout] 290 | fn unexpected(&self) -> Unexpected { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 290 | fn unexpected(&self) -> Unexpected<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `serde_state` (lib) due to 11 previous errors; 7 warnings emitted [INFO] running `Command { std: "docker" "inspect" "35e2696ec0f445576ea919632602d2c2e1f8dec6f3f1a26feb55a3dab8d1831c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "35e2696ec0f445576ea919632602d2c2e1f8dec6f3f1a26feb55a3dab8d1831c", kill_on_drop: false }` [INFO] [stdout] 35e2696ec0f445576ea919632602d2c2e1f8dec6f3f1a26feb55a3dab8d1831c