[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] testing itbaiyang/rust-book against try#8de4c7234dd9b97c9d76b58671343fdbbc9a433e+target=x86_64-unknown-linux-musl for musl_upgrade_1_2_5_with_libc_patch_0 [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] 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] validating manifest of git repo https://github.com/itbaiyang/rust-book on toolchain 8de4c7234dd9b97c9d76b58671343fdbbc9a433e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d22671f8d3e9545c4c38667938e4a7bd87c294a73b7d43db6858da1c390e8a8d [INFO] running `Command { std: "docker" "start" "-a" "d22671f8d3e9545c4c38667938e4a7bd87c294a73b7d43db6858da1c390e8a8d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d22671f8d3e9545c4c38667938e4a7bd87c294a73b7d43db6858da1c390e8a8d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d22671f8d3e9545c4c38667938e4a7bd87c294a73b7d43db6858da1c390e8a8d", kill_on_drop: false }` [INFO] [stdout] d22671f8d3e9545c4c38667938e4a7bd87c294a73b7d43db6858da1c390e8a8d [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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "build" "--frozen" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 0a9d7649a26929355c88a22740437164f7cfea48404132e65af261ad88cacdfd [INFO] running `Command { std: "docker" "start" "-a" "0a9d7649a26929355c88a22740437164f7cfea48404132e65af261ad88cacdfd", kill_on_drop: false }` [INFO] [stderr] Compiling 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 [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 1.31s [INFO] running `Command { std: "docker" "inspect" "0a9d7649a26929355c88a22740437164f7cfea48404132e65af261ad88cacdfd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0a9d7649a26929355c88a22740437164f7cfea48404132e65af261ad88cacdfd", kill_on_drop: false }` [INFO] [stdout] 0a9d7649a26929355c88a22740437164f7cfea48404132e65af261ad88cacdfd [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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--no-run" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 8fbf140f57649caf261e779bb73270925bec63e1ec12062457a5ed39df0e354e [INFO] running `Command { std: "docker" "start" "-a" "8fbf140f57649caf261e779bb73270925bec63e1ec12062457a5ed39df0e354e", kill_on_drop: false }` [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] [stderr] Compiling book v0.1.0 (/opt/rustwide/workdir) [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 [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 [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 `test` profile [unoptimized + debuginfo] target(s) in 0.81s [INFO] running `Command { std: "docker" "inspect" "8fbf140f57649caf261e779bb73270925bec63e1ec12062457a5ed39df0e354e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8fbf140f57649caf261e779bb73270925bec63e1ec12062457a5ed39df0e354e", kill_on_drop: false }` [INFO] [stdout] 8fbf140f57649caf261e779bb73270925bec63e1ec12062457a5ed39df0e354e [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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 19e7d8cabc0a9fbfc398fa320a9b6562b10f764b5f90c161a90d2ee3cdf7bcb2 [INFO] running `Command { std: "docker" "start" "-a" "19e7d8cabc0a9fbfc398fa320a9b6562b10f764b5f90c161a90d2ee3cdf7bcb2", kill_on_drop: false }` [INFO] [stderr] warning: fields `id` and `is_good` are never read [INFO] [stderr] --> src/struct_m/struct_test.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 2 | struct User { [INFO] [stderr] | ---- fields in this struct [INFO] [stderr] 3 | name: String, [INFO] [stderr] 4 | id: i32, [INFO] [stderr] | ^^ [INFO] [stderr] 5 | is_good: bool [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `User` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: fields `0`, `1`, `2`, and `3` are never read [INFO] [stderr] --> src/enum_m/enum_test.rs:3:8 [INFO] [stderr] | [INFO] [stderr] 3 | V4(u8,u8,u8,u8), [INFO] [stderr] | -- ^^ ^^ ^^ ^^ [INFO] [stderr] | | [INFO] [stderr] | fields in this variant [INFO] [stderr] | [INFO] [stderr] = note: `IpAddr` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stderr] | [INFO] [stderr] 3 - V4(u8,u8,u8,u8), [INFO] [stderr] 3 + V4((),(),(),()), [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: field `0` is never read [INFO] [stderr] --> src/enum_m/enum_test.rs:4:8 [INFO] [stderr] | [INFO] [stderr] 4 | V6(String), [INFO] [stderr] | -- ^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | field in this variant [INFO] [stderr] | [INFO] [stderr] = note: `IpAddr` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stderr] | [INFO] [stderr] 4 - V6(String), [INFO] [stderr] 4 + V6(()), [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: field `y` is never read [INFO] [stderr] --> src/t_m/t_test.rs:37:5 [INFO] [stderr] | [INFO] [stderr] 35 | struct Point { [INFO] [stderr] | ----- field in this struct [INFO] [stderr] 36 | x: T, [INFO] [stderr] 37 | y: U, [INFO] [stderr] | ^ [INFO] [stderr] | [INFO] [stderr] = note: `Point` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: fields `0` and `1` are never read [INFO] [stderr] --> src/ref_m/enum_list.rs:13:8 [INFO] [stderr] | [INFO] [stderr] 13 | Cons(Rc>, Rc), [INFO] [stderr] | ---- ^^^^^^^^^^^^^^^^ ^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | fields in this variant [INFO] [stderr] | [INFO] [stderr] = note: `List` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stderr] | [INFO] [stderr] 13 - Cons(Rc>, Rc), [INFO] [stderr] 13 + Cons((), ()), [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: field `0` is never read [INFO] [stderr] --> src/ref_m/ref_list.rs:7:7 [INFO] [stderr] | [INFO] [stderr] 7 | Cir(i32, RefCell>), [INFO] [stderr] | --- ^^^ [INFO] [stderr] | | [INFO] [stderr] | field in this variant [INFO] [stderr] | [INFO] [stderr] = note: `CirList` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stderr] | [INFO] [stderr] 7 - Cir(i32, RefCell>), [INFO] [stderr] 7 + Cir((), RefCell>), [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: fields `value` and `children` are never read [INFO] [stderr] --> src/ref_m/tree_list.rs:8:3 [INFO] [stderr] | [INFO] [stderr] 7 | struct Node { [INFO] [stderr] | ---- fields in this struct [INFO] [stderr] 8 | value: i32, [INFO] [stderr] | ^^^^^ [INFO] [stderr] 9 | parent: RefCell>, [INFO] [stderr] 10 | children: RefCell>>, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Node` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: fields `width`, `height`, and `label` are never read [INFO] [stderr] --> src/oop_m/oop_trait.rs:39:3 [INFO] [stderr] | [INFO] [stderr] 38 | struct Button { [INFO] [stderr] | ------ fields in this struct [INFO] [stderr] 39 | width: u32, [INFO] [stderr] | ^^^^^ [INFO] [stderr] 40 | height: u32, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] 41 | label: String, [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Button` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: fields `width`, `height`, and `options` are never read [INFO] [stderr] --> src/oop_m/oop_trait.rs:51:3 [INFO] [stderr] | [INFO] [stderr] 50 | struct SelectBox { [INFO] [stderr] | --------- fields in this struct [INFO] [stderr] 51 | width: u32, [INFO] [stderr] | ^^^^^ [INFO] [stderr] 52 | height: u32, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] 53 | options: Vec, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `SelectBox` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: function `split_at_mut` is never used [INFO] [stderr] --> src/advanced_m/unsafe_init.rs:58:4 [INFO] [stderr] | [INFO] [stderr] 58 | fn split_at_mut(slice: &mut [i32], mid: usize) -> (&mut [i32], &mut [i32]) { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/advanced_m/unsafe_init.rs:94:29 [INFO] [stderr] | [INFO] [stderr] 94 | println!("COUNTER: {}", COUNTER); [INFO] [stderr] | ^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `book` (lib) generated 11 warnings [INFO] [stderr] warning: `book` (lib test) generated 11 warnings (11 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.04s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/book-944c0fbfa30d932b) [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/book-35114f458e3019af) [INFO] [stdout] [INFO] [stdout] running 3 tests [INFO] [stdout] test iter_m::iter_test::lazy_iter ... ok [INFO] [stdout] test closures_m::closures_test::call_with_different_values ... ok [INFO] [stdout] test iter_m::iter_test::name ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Running tests/closures_test.rs (/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/closures_test-f59a5118d998d24c) [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test c_test ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 2.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "19e7d8cabc0a9fbfc398fa320a9b6562b10f764b5f90c161a90d2ee3cdf7bcb2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "19e7d8cabc0a9fbfc398fa320a9b6562b10f764b5f90c161a90d2ee3cdf7bcb2", kill_on_drop: false }` [INFO] [stdout] 19e7d8cabc0a9fbfc398fa320a9b6562b10f764b5f90c161a90d2ee3cdf7bcb2