[INFO] cloning repository https://github.com/itbaiyang/rust-book [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/itbaiyang/rust-book" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fitbaiyang%2Frust-book", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fitbaiyang%2Frust-book'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d30d219e0e460fdcabbf62517b3aba374ef2dfd0 [INFO] checking itbaiyang/rust-book against master#f7b43542838f0a4a6cfdb17fbeadf45002042a77 for pr-138499 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fitbaiyang%2Frust-book" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/itbaiyang/rust-book on toolchain f7b43542838f0a4a6cfdb17fbeadf45002042a77 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f7b43542838f0a4a6cfdb17fbeadf45002042a77" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/itbaiyang/rust-book [INFO] finished tweaking git repo https://github.com/itbaiyang/rust-book [INFO] tweaked toml for git repo https://github.com/itbaiyang/rust-book written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/itbaiyang/rust-book 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" "+f7b43542838f0a4a6cfdb17fbeadf45002042a77" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+f7b43542838f0a4a6cfdb17fbeadf45002042a77" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d23627f0136a905e3f9c4e878b2e44318da6607422bedfcbcc80bd66aec7f6ce [INFO] running `Command { std: "docker" "start" "-a" "d23627f0136a905e3f9c4e878b2e44318da6607422bedfcbcc80bd66aec7f6ce", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d23627f0136a905e3f9c4e878b2e44318da6607422bedfcbcc80bd66aec7f6ce", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d23627f0136a905e3f9c4e878b2e44318da6607422bedfcbcc80bd66aec7f6ce", kill_on_drop: false }` [INFO] [stdout] d23627f0136a905e3f9c4e878b2e44318da6607422bedfcbcc80bd66aec7f6ce [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+f7b43542838f0a4a6cfdb17fbeadf45002042a77" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2c68be80e946bda6eaf9530f7caba851bb739d9913d7bd221ea03c7c00c2d93c [INFO] running `Command { std: "docker" "start" "-a" "2c68be80e946bda6eaf9530f7caba851bb739d9913d7bd221ea03c7c00c2d93c", kill_on_drop: false }` [INFO] [stderr] Checking book v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: fields `id` and `is_good` are never read [INFO] [stdout] --> src/struct_m/struct_test.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 2 | struct User { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 3 | name: String, [INFO] [stdout] 4 | id: i32, [INFO] [stdout] | ^^ [INFO] [stdout] 5 | is_good: bool [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `User` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0`, `1`, `2`, and `3` are never read [INFO] [stdout] --> src/enum_m/enum_test.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | V4(u8,u8,u8,u8), [INFO] [stdout] | -- ^^ ^^ ^^ ^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `IpAddr` 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 - V4(u8,u8,u8,u8), [INFO] [stdout] 3 + V4((),(),(),()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/enum_m/enum_test.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | V6(String), [INFO] [stdout] | -- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `IpAddr` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 4 - V6(String), [INFO] [stdout] 4 + V6(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `y` is never read [INFO] [stdout] --> src/t_m/t_test.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 35 | struct Point { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 36 | x: T, [INFO] [stdout] 37 | y: U, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `Point` 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 `0` and `1` are never read [INFO] [stdout] --> src/ref_m/enum_list.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | 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] 13 - Cons(Rc>, Rc), [INFO] [stdout] 13 + Cons((), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/ref_m/ref_list.rs:7:7 [INFO] [stdout] | [INFO] [stdout] 7 | Cir(i32, RefCell>), [INFO] [stdout] | --- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `CirList` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 7 - Cir(i32, RefCell>), [INFO] [stdout] 7 + Cir((), RefCell>), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `value` and `children` are never read [INFO] [stdout] --> src/ref_m/tree_list.rs:8:3 [INFO] [stdout] | [INFO] [stdout] 7 | struct Node { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 8 | value: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 9 | parent: RefCell>, [INFO] [stdout] 10 | children: RefCell>>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Node` 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 `width`, `height`, and `label` are never read [INFO] [stdout] --> src/oop_m/oop_trait.rs:39:3 [INFO] [stdout] | [INFO] [stdout] 38 | struct Button { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 39 | width: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 40 | height: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 41 | label: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Button` 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 `width`, `height`, and `options` are never read [INFO] [stdout] --> src/oop_m/oop_trait.rs:51:3 [INFO] [stdout] | [INFO] [stdout] 50 | struct SelectBox { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 51 | width: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 52 | height: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 53 | options: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SelectBox` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `split_at_mut` is never used [INFO] [stdout] --> src/advanced_m/unsafe_init.rs:58:4 [INFO] [stdout] | [INFO] [stdout] 58 | fn split_at_mut(slice: &mut [i32], mid: usize) -> (&mut [i32], &mut [i32]) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/advanced_m/unsafe_init.rs:94:29 [INFO] [stdout] | [INFO] [stdout] 94 | println!("COUNTER: {}", COUNTER); [INFO] [stdout] | ^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id` and `is_good` are never read [INFO] [stdout] --> src/struct_m/struct_test.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 2 | struct User { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 3 | name: String, [INFO] [stdout] 4 | id: i32, [INFO] [stdout] | ^^ [INFO] [stdout] 5 | is_good: bool [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `User` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0`, `1`, `2`, and `3` are never read [INFO] [stdout] --> src/enum_m/enum_test.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | V4(u8,u8,u8,u8), [INFO] [stdout] | -- ^^ ^^ ^^ ^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `IpAddr` 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 - V4(u8,u8,u8,u8), [INFO] [stdout] 3 + V4((),(),(),()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/enum_m/enum_test.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | V6(String), [INFO] [stdout] | -- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `IpAddr` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 4 - V6(String), [INFO] [stdout] 4 + V6(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `y` is never read [INFO] [stdout] --> src/t_m/t_test.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 35 | struct Point { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 36 | x: T, [INFO] [stdout] 37 | y: U, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `Point` 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 `0` and `1` are never read [INFO] [stdout] --> src/ref_m/enum_list.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | 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] 13 - Cons(Rc>, Rc), [INFO] [stdout] 13 + Cons((), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/ref_m/ref_list.rs:7:7 [INFO] [stdout] | [INFO] [stdout] 7 | Cir(i32, RefCell>), [INFO] [stdout] | --- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `CirList` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 7 - Cir(i32, RefCell>), [INFO] [stdout] 7 + Cir((), RefCell>), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `value` and `children` are never read [INFO] [stdout] --> src/ref_m/tree_list.rs:8:3 [INFO] [stdout] | [INFO] [stdout] 7 | struct Node { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 8 | value: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 9 | parent: RefCell>, [INFO] [stdout] 10 | children: RefCell>>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Node` 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 `width`, `height`, and `label` are never read [INFO] [stdout] --> src/oop_m/oop_trait.rs:39:3 [INFO] [stdout] | [INFO] [stdout] 38 | struct Button { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 39 | width: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 40 | height: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 41 | label: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Button` 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 `width`, `height`, and `options` are never read [INFO] [stdout] --> src/oop_m/oop_trait.rs:51:3 [INFO] [stdout] | [INFO] [stdout] 50 | struct SelectBox { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 51 | width: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 52 | height: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 53 | options: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SelectBox` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `split_at_mut` is never used [INFO] [stdout] --> src/advanced_m/unsafe_init.rs:58:4 [INFO] [stdout] | [INFO] [stdout] 58 | fn split_at_mut(slice: &mut [i32], mid: usize) -> (&mut [i32], &mut [i32]) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/advanced_m/unsafe_init.rs:94:29 [INFO] [stdout] | [INFO] [stdout] 94 | println!("COUNTER: {}", COUNTER); [INFO] [stdout] | ^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.20s [INFO] running `Command { std: "docker" "inspect" "2c68be80e946bda6eaf9530f7caba851bb739d9913d7bd221ea03c7c00c2d93c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2c68be80e946bda6eaf9530f7caba851bb739d9913d7bd221ea03c7c00c2d93c", kill_on_drop: false }` [INFO] [stdout] 2c68be80e946bda6eaf9530f7caba851bb739d9913d7bd221ea03c7c00c2d93c