[INFO] fetching crate build 0.0.2... [INFO] checking build-0.0.2 against master#350d0ef0ec0493e6d21cfb265cb8211a0e74d766 for pr-145342-1 [INFO] extracting crate build 0.0.2 into /workspace/builds/worker-4-tc1/source [INFO] started tweaking crates.io crate build 0.0.2 [INFO] finished tweaking crates.io crate build 0.0.2 [INFO] tweaked toml for crates.io crate build 0.0.2 written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate build 0.0.2 on toolchain 350d0ef0ec0493e6d21cfb265cb8211a0e74d766 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "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" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 1 package to latest compatible version [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "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] 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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 64d00727552e2c8b150603c75af01225c85aa07c8a671fbb3babe88220456665 [INFO] running `Command { std: "docker" "start" "-a" "64d00727552e2c8b150603c75af01225c85aa07c8a671fbb3babe88220456665", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "64d00727552e2c8b150603c75af01225c85aa07c8a671fbb3babe88220456665", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "64d00727552e2c8b150603c75af01225c85aa07c8a671fbb3babe88220456665", kill_on_drop: false }` [INFO] [stdout] 64d00727552e2c8b150603c75af01225c85aa07c8a671fbb3babe88220456665 [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 56ea175c946c929be70f7ed98cc823daab9f69e329e9bc728e51c82d5186fa42 [INFO] running `Command { std: "docker" "start" "-a" "56ea175c946c929be70f7ed98cc823daab9f69e329e9bc728e51c82d5186fa42", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Checking rustc-serialize v0.3.25 [INFO] [stderr] Checking build v0.0.2 (/opt/rustwide/workdir) [INFO] [stdout] error: cannot find derive macro `RustcEncodable` in this scope [INFO] [stdout] --> src/lib.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | #[derive(RustcEncodable)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `RustcEncodable` in this scope [INFO] [stdout] --> src/lib.rs:34:10 [INFO] [stdout] | [INFO] [stdout] 34 | #[derive(RustcEncodable)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:26:21 [INFO] [stdout] | [INFO] [stdout] 26 | try!(enc.emit_struct_field( "type", 0usize, |enc| p_type.encode(enc))); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:27:21 [INFO] [stdout] | [INFO] [stdout] 27 | try!(enc.emit_struct_field( "id", 1usize, |enc| p_id.encode(enc))); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `RustcEncodable` in this scope [INFO] [stdout] --> src/lib.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | #[derive(RustcEncodable)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `RustcEncodable` in this scope [INFO] [stdout] --> src/lib.rs:34:10 [INFO] [stdout] | [INFO] [stdout] 34 | #[derive(RustcEncodable)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:26:21 [INFO] [stdout] | [INFO] [stdout] 26 | try!(enc.emit_struct_field( "type", 0usize, |enc| p_type.encode(enc))); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:27:21 [INFO] [stdout] | [INFO] [stdout] 27 | try!(enc.emit_struct_field( "id", 1usize, |enc| p_id.encode(enc))); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `encode` found for struct `BuildDetailAttributes` in the current scope [INFO] [stdout] --> src/lib.rs:28:102 [INFO] [stdout] | [INFO] [stdout] 8 | struct BuildDetailAttributes { [INFO] [stdout] | ---------------------------- method `encode` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 28 | return enc.emit_struct_field("attributes", 2usize, |enc| -> _ { (* p_attributes).encode(enc) }); [INFO] [stdout] | ^^^^^^ method not found in `BuildDetailAttributes` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `encode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Encodable` [INFO] [stdout] help: some of the expressions' fields have a method of the same name [INFO] [stdout] | [INFO] [stdout] 28 | return enc.emit_struct_field("attributes", 2usize, |enc| -> _ { (* p_attributes).description.encode(enc) }); [INFO] [stdout] | ++++++++++++ [INFO] [stdout] 28 | return enc.emit_struct_field("attributes", 2usize, |enc| -> _ { (* p_attributes).homepage.encode(enc) }); [INFO] [stdout] | +++++++++ [INFO] [stdout] 28 | return enc.emit_struct_field("attributes", 2usize, |enc| -> _ { (* p_attributes).name.encode(enc) }); [INFO] [stdout] | +++++ [INFO] [stdout] 28 | return enc.emit_struct_field("attributes", 2usize, |enc| -> _ { (* p_attributes).support.encode(enc) }); [INFO] [stdout] | ++++++++ [INFO] [stdout] = and 1 other candidate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Build: Encodable` is not satisfied [INFO] [stdout] --> src/lib.rs:67:32 [INFO] [stdout] | [INFO] [stdout] 67 | let payload = json::encode(&json).unwrap(); [INFO] [stdout] | ------------ ^^^^^ the trait `Encodable` is not implemented for `Build` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `Encodable`: [INFO] [stdout] &'a T [INFO] [stdout] () [INFO] [stdout] (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11) [INFO] [stdout] (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11) [INFO] [stdout] (T10, T11) [INFO] [stdout] (T11,) [INFO] [stdout] (T2, T3, T4, T5, T6, T7, T8, T9, T10, T11) [INFO] [stdout] (T3, T4, T5, T6, T7, T8, T9, T10, T11) [INFO] [stdout] and 76 others [INFO] [stdout] note: required by a bound in `rustc_serialize::json::encode` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/rustc-serialize-0.3.25/src/json.rs:390:18 [INFO] [stdout] | [INFO] [stdout] 390 | pub fn encode(object: &T) -> EncodeResult { [INFO] [stdout] | ^^^^^^^^^^^ required by this bound in `encode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `build` (lib) due to 4 previous errors; 2 warnings emitted [INFO] [stdout] error[E0599]: no method named `encode` found for struct `BuildDetailAttributes` in the current scope [INFO] [stdout] --> src/lib.rs:28:102 [INFO] [stdout] | [INFO] [stdout] 8 | struct BuildDetailAttributes { [INFO] [stdout] | ---------------------------- method `encode` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 28 | return enc.emit_struct_field("attributes", 2usize, |enc| -> _ { (* p_attributes).encode(enc) }); [INFO] [stdout] | ^^^^^^ method not found in `BuildDetailAttributes` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `encode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Encodable` [INFO] [stdout] help: some of the expressions' fields have a method of the same name [INFO] [stdout] | [INFO] [stdout] 28 | return enc.emit_struct_field("attributes", 2usize, |enc| -> _ { (* p_attributes).description.encode(enc) }); [INFO] [stdout] | ++++++++++++ [INFO] [stdout] 28 | return enc.emit_struct_field("attributes", 2usize, |enc| -> _ { (* p_attributes).homepage.encode(enc) }); [INFO] [stdout] | +++++++++ [INFO] [stdout] 28 | return enc.emit_struct_field("attributes", 2usize, |enc| -> _ { (* p_attributes).name.encode(enc) }); [INFO] [stdout] | +++++ [INFO] [stdout] 28 | return enc.emit_struct_field("attributes", 2usize, |enc| -> _ { (* p_attributes).support.encode(enc) }); [INFO] [stdout] | ++++++++ [INFO] [stdout] = and 1 other candidate [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0277]: the trait bound `Build: Encodable` is not satisfied [INFO] [stdout] --> src/lib.rs:67:32 [INFO] [stdout] | [INFO] [stdout] 67 | let payload = json::encode(&json).unwrap(); [INFO] [stdout] | ------------ ^^^^^ the trait `Encodable` is not implemented for `Build` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `Encodable`: [INFO] [stdout] &'a T [INFO] [stdout] () [INFO] [stdout] (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11) [INFO] [stdout] (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11) [INFO] [stdout] (T10, T11) [INFO] [stdout] (T11,) [INFO] [stdout] (T2, T3, T4, T5, T6, T7, T8, T9, T10, T11) [INFO] [stdout] (T3, T4, T5, T6, T7, T8, T9, T10, T11) [INFO] [stdout] and 76 others [INFO] [stdout] note: required by a bound in `rustc_serialize::json::encode` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/rustc-serialize-0.3.25/src/json.rs:390:18 [INFO] [stdout] | [INFO] [stdout] 390 | pub fn encode(object: &T) -> EncodeResult { [INFO] [stdout] | ^^^^^^^^^^^ required by this bound in `encode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `build` (lib test) due to 4 previous errors; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "56ea175c946c929be70f7ed98cc823daab9f69e329e9bc728e51c82d5186fa42", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "56ea175c946c929be70f7ed98cc823daab9f69e329e9bc728e51c82d5186fa42", kill_on_drop: false }` [INFO] [stdout] 56ea175c946c929be70f7ed98cc823daab9f69e329e9bc728e51c82d5186fa42