[INFO] cloning repository https://github.com/Xiaobin0860/rust-demo [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Xiaobin0860/rust-demo" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FXiaobin0860%2Frust-demo", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FXiaobin0860%2Frust-demo'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] aaabedcb3384c8c5e4ae64556142a966fc3a0ba5 [INFO] checking Xiaobin0860/rust-demo against try#93086cfebfccb79083c59d0d3b2052944bba643c for pr-146440-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FXiaobin0860%2Frust-demo" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Xiaobin0860/rust-demo [INFO] finished tweaking git repo https://github.com/Xiaobin0860/rust-demo [INFO] tweaked toml for git repo https://github.com/Xiaobin0860/rust-demo written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Xiaobin0860/rust-demo on toolchain 93086cfebfccb79083c59d0d3b2052944bba643c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+93086cfebfccb79083c59d0d3b2052944bba643c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Xiaobin0860/rust-demo already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+93086cfebfccb79083c59d0d3b2052944bba643c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+93086cfebfccb79083c59d0d3b2052944bba643c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c5911e839b1f818c59950e75d05e7853fa1f1fa0447e8173602496e6a46d3d60 [INFO] running `Command { std: "docker" "start" "-a" "c5911e839b1f818c59950e75d05e7853fa1f1fa0447e8173602496e6a46d3d60", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c5911e839b1f818c59950e75d05e7853fa1f1fa0447e8173602496e6a46d3d60", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c5911e839b1f818c59950e75d05e7853fa1f1fa0447e8173602496e6a46d3d60", kill_on_drop: false }` [INFO] [stdout] c5911e839b1f818c59950e75d05e7853fa1f1fa0447e8173602496e6a46d3d60 [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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+93086cfebfccb79083c59d0d3b2052944bba643c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 64f6cd52413b35e8e5ef61415869af1b5fa912179e893049ac723de4f101899c [INFO] running `Command { std: "docker" "start" "-a" "64f6cd52413b35e8e5ef61415869af1b5fa912179e893049ac723de4f101899c", kill_on_drop: false }` [INFO] [stderr] Checking adder v0.1.0 (/opt/rustwide/workdir/adder) [INFO] [stderr] Checking common_traits v0.1.0 (/opt/rustwide/workdir/common_traits) [INFO] [stderr] Checking smart-pointer v0.1.0 (/opt/rustwide/workdir/smart-pointer) [INFO] [stderr] Checking ds v0.1.0 (/opt/rustwide/workdir/ds) [INFO] [stderr] Checking basic v0.1.0 (/opt/rustwide/workdir/basic) [INFO] [stdout] warning: fields `x` and `y` are never read [INFO] [stdout] --> common_traits/src/main.rs:65:5 [INFO] [stdout] | [INFO] [stdout] 64 | struct Pointer { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 65 | x: u32, [INFO] [stdout] | ^ [INFO] [stdout] 66 | y: u32, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `Pointer` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name`, `age`, `title`, `role`, and `skills` are never read [INFO] [stdout] --> common_traits/src/dv.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 18 | struct Employee { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 19 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 20 | age: u8, [INFO] [stdout] | ^^^ [INFO] [stdout] 21 | title: Box, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 22 | role: Role, [INFO] [stdout] | ^^^^ [INFO] [stdout] 23 | skills: HashMap, u8>, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Employee` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> ds/src/shap.rs:55:19 [INFO] [stdout] | [INFO] [stdout] 55 | let shapes: [&Shape; 3] = [ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 55 | let shapes: [&dyn Shape; 3] = [ [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: struct `Rect` is never constructed [INFO] [stdout] --> adder/src/lib.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Rect { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `pub` struct has private fields, no public constructor, and is not otherwise reachable through the external API, so consider providing a public constructor or removing it [INFO] [stdout] = note: `#[deny(unused_unconstructable_pub_structs)]` (part of `#[deny(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `v` is never read [INFO] [stdout] --> adder/src/lib.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct Guess { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 23 | v: i32, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `Guess` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `adder` (lib) due to 1 previous error; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> smart-pointer/src/linklist.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | Item(Box, Box), [INFO] [stdout] | ---- ^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Linklist` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 6 - Item(Box, Box), [INFO] [stdout] 6 + Item((), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> smart-pointer/src/rc.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | Item(u32, Rc), [INFO] [stdout] | ---- ^^^ ^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Linklist` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 9 - Item(u32, Rc), [INFO] [stdout] 9 + Item((), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> smart-pointer/src/refcell.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | Cons(Rc>, Rc), [INFO] [stdout] | ---- ^^^^^^^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `List` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 3 - Cons(Rc>, Rc), [INFO] [stdout] 3 + Cons((), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `x` and `y` are never read [INFO] [stdout] --> common_traits/src/main.rs:65:5 [INFO] [stdout] | [INFO] [stdout] 64 | struct Pointer { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 65 | x: u32, [INFO] [stdout] | ^ [INFO] [stdout] 66 | y: u32, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `Pointer` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name`, `age`, `title`, `role`, and `skills` are never read [INFO] [stdout] --> common_traits/src/dv.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 18 | struct Employee { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 19 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 20 | age: u8, [INFO] [stdout] | ^^^ [INFO] [stdout] 21 | title: Box, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 22 | role: Role, [INFO] [stdout] | ^^^^ [INFO] [stdout] 23 | skills: HashMap, u8>, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Employee` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `v` is never read [INFO] [stdout] --> adder/src/lib.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct Guess { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 23 | v: i32, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `Guess` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> ds/src/shap.rs:55:19 [INFO] [stdout] | [INFO] [stdout] 55 | let shapes: [&Shape; 3] = [ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 55 | let shapes: [&dyn Shape; 3] = [ [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name` and `age` are never read [INFO] [stdout] --> basic/src/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 14 | struct Person { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 15 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 16 | age: u8, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Person` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name` and `age` are never read [INFO] [stdout] --> basic/src/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 14 | struct Person { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 15 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 16 | age: u8, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Person` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> smart-pointer/src/linklist.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | Item(Box, Box), [INFO] [stdout] | ---- ^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Linklist` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 6 - Item(Box, Box), [INFO] [stdout] 6 + Item((), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> smart-pointer/src/rc.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | Item(u32, Rc), [INFO] [stdout] | ---- ^^^ ^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Linklist` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 9 - Item(u32, Rc), [INFO] [stdout] 9 + Item((), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> smart-pointer/src/refcell.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | Cons(Rc>, Rc), [INFO] [stdout] | ---- ^^^^^^^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `List` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 3 - Cons(Rc>, Rc), [INFO] [stdout] 3 + Cons((), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "64f6cd52413b35e8e5ef61415869af1b5fa912179e893049ac723de4f101899c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "64f6cd52413b35e8e5ef61415869af1b5fa912179e893049ac723de4f101899c", kill_on_drop: false }` [INFO] [stdout] 64f6cd52413b35e8e5ef61415869af1b5fa912179e893049ac723de4f101899c