[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 master#9e293ae9f8abecb0be5105787d181518c9012a19 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-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/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-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Xiaobin0860/rust-demo on toolchain 9e293ae9f8abecb0be5105787d181518c9012a19 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9e293ae9f8abecb0be5105787d181518c9012a19" "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" "+9e293ae9f8abecb0be5105787d181518c9012a19" "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-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+9e293ae9f8abecb0be5105787d181518c9012a19" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 14e1fc17e52a8e6399060170c3d3ffdc7b737f922ead41dfa117233c2c79a84e [INFO] running `Command { std: "docker" "start" "-a" "14e1fc17e52a8e6399060170c3d3ffdc7b737f922ead41dfa117233c2c79a84e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "14e1fc17e52a8e6399060170c3d3ffdc7b737f922ead41dfa117233c2c79a84e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "14e1fc17e52a8e6399060170c3d3ffdc7b737f922ead41dfa117233c2c79a84e", kill_on_drop: false }` [INFO] [stdout] 14e1fc17e52a8e6399060170c3d3ffdc7b737f922ead41dfa117233c2c79a84e [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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+9e293ae9f8abecb0be5105787d181518c9012a19" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f08f72cc53291151a86dee7057293cf7017a90a741d1d2fdcd35e3a2e1f411e7 [INFO] running `Command { std: "docker" "start" "-a" "f08f72cc53291151a86dee7057293cf7017a90a741d1d2fdcd35e3a2e1f411e7", kill_on_drop: false }` [INFO] [stderr] Checking adder v0.1.0 (/opt/rustwide/workdir/adder) [INFO] [stderr] Checking basic v0.1.0 (/opt/rustwide/workdir/basic) [INFO] [stderr] Checking smart-pointer v0.1.0 (/opt/rustwide/workdir/smart-pointer) [INFO] [stderr] Checking common_traits v0.1.0 (/opt/rustwide/workdir/common_traits) [INFO] [stderr] Checking ds v0.1.0 (/opt/rustwide/workdir/ds) [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: 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: 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: 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 `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: 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: 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 `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 `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: 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] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.09s [INFO] running `Command { std: "docker" "inspect" "f08f72cc53291151a86dee7057293cf7017a90a741d1d2fdcd35e3a2e1f411e7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f08f72cc53291151a86dee7057293cf7017a90a741d1d2fdcd35e3a2e1f411e7", kill_on_drop: false }` [INFO] [stdout] f08f72cc53291151a86dee7057293cf7017a90a741d1d2fdcd35e3a2e1f411e7