[INFO] cloning repository https://github.com/lng2020/rustByExample [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/lng2020/rustByExample" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flng2020%2FrustByExample", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flng2020%2FrustByExample'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1f066ae79581755e868e248d3c3288fc3a4e60d7 [INFO] checking lng2020/rustByExample against try#ef5216c337126ffe24d074826f4023948c4a9b8e for pr-137033 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flng2020%2FrustByExample" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/lng2020/rustByExample on toolchain ef5216c337126ffe24d074826f4023948c4a9b8e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ef5216c337126ffe24d074826f4023948c4a9b8e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/lng2020/rustByExample [INFO] finished tweaking git repo https://github.com/lng2020/rustByExample [INFO] tweaked toml for git repo https://github.com/lng2020/rustByExample written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/lng2020/rustByExample 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" "+ef5216c337126ffe24d074826f4023948c4a9b8e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] warning: /workspace/builds/worker-5-tc2/source/ch18/Cargo.toml: file `/workspace/builds/worker-5-tc2/source/ch18/question_mark.rs` found to be present in multiple build targets: [INFO] [stderr] * `bin` target `define_err` [INFO] [stderr] * `bin` target `question_mark` [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-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+ef5216c337126ffe24d074826f4023948c4a9b8e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 566d11374b7b00dab725b09ce019c8ca358e813076d1a66d8e9216fa2d92fcd0 [INFO] running `Command { std: "docker" "start" "-a" "566d11374b7b00dab725b09ce019c8ca358e813076d1a66d8e9216fa2d92fcd0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "566d11374b7b00dab725b09ce019c8ca358e813076d1a66d8e9216fa2d92fcd0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "566d11374b7b00dab725b09ce019c8ca358e813076d1a66d8e9216fa2d92fcd0", kill_on_drop: false }` [INFO] [stdout] 566d11374b7b00dab725b09ce019c8ca358e813076d1a66d8e9216fa2d92fcd0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+ef5216c337126ffe24d074826f4023948c4a9b8e" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c413eca5e3e693487f4aff9ee265b8820e8eb15aa94d01d9fdddbaa6f6aff88a [INFO] running `Command { std: "docker" "start" "-a" "c413eca5e3e693487f4aff9ee265b8820e8eb15aa94d01d9fdddbaa6f6aff88a", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] warning: /opt/rustwide/workdir/ch18/Cargo.toml: file `/opt/rustwide/workdir/ch18/question_mark.rs` found to be present in multiple build targets: [INFO] [stderr] * `bin` target `define_err` [INFO] [stderr] * `bin` target `question_mark` [INFO] [stderr] Checking ch3 v0.1.0 (/opt/rustwide/workdir/ch3) [INFO] [stderr] Checking ch8 v0.1.0 (/opt/rustwide/workdir/ch8) [INFO] [stderr] Checking ch15 v0.1.0 (/opt/rustwide/workdir/ch15) [INFO] [stderr] Checking ch14 v0.1.0 (/opt/rustwide/workdir/ch14) [INFO] [stderr] Checking ch17 v0.1.0 (/opt/rustwide/workdir/ch17) [INFO] [stderr] Checking ch16 v0.1.0 (/opt/rustwide/workdir/ch16) [INFO] [stderr] Checking ch18 v0.1.0 (/opt/rustwide/workdir/ch18) [INFO] [stderr] Checking ch2 v0.1.0 (/opt/rustwide/workdir/ch2) [INFO] [stderr] Checking ch5 v0.1.0 (/opt/rustwide/workdir/ch5) [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> ch15/bounds.rs:4:23 [INFO] [stdout] | [INFO] [stdout] 4 | struct Ref<'a, T: 'a>(&'a T); [INFO] [stdout] | --- ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `Ref` 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] [stderr] Checking ch7 v0.1.0 (/opt/rustwide/workdir/ch7) [INFO] [stderr] Checking ch9 v0.1.0 (/opt/rustwide/workdir/ch9) [INFO] [stdout] warning: fields `0`, `1`, `2`, and `3` are never read [INFO] [stdout] --> ch2/tuple.rs:7:15 [INFO] [stdout] | [INFO] [stdout] 7 | struct Matrix(f32, f32, f32, f32); [INFO] [stdout] | ------ ^^^ ^^^ ^^^ ^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing these fields [INFO] [stdout] = note: `Matrix` 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] [stderr] Checking ch6 v0.1.0 (/opt/rustwide/workdir/ch6) [INFO] [stdout] warning: field `contents` is never read [INFO] [stdout] --> ch9/struct_visibility.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct ClosedBox { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 7 | contents: T, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> ch15/structs.rs:2:21 [INFO] [stdout] | [INFO] [stdout] 2 | struct Borrowed<'a>(&'a i32); [INFO] [stdout] | -------- ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `Borrowed` 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: field `0` is never read [INFO] [stdout] --> ch15/structs.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | Num(i32), [INFO] [stdout] | --- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Either` 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] 13 - Num(i32), [INFO] [stdout] 13 + Num(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> ch15/structs.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | Ref(&'a i32), [INFO] [stdout] | --- ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Either` 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] 14 - Ref(&'a i32), [INFO] [stdout] 14 + Ref(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `value` is never read [INFO] [stdout] --> ch6/from_and_into.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | struct Number { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 5 | value: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Number` 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: field `0` is never read [INFO] [stdout] --> ch16/derive.rs:14:16 [INFO] [stdout] | [INFO] [stdout] 14 | struct Seconds(i32); [INFO] [stdout] | ------- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> ch15/drop.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let x = ToDrop; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: couldn't read `ch3/type_alias.rs`: No such file or directory (os error 2) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `ch3` (bin "type_alias" test) due to 1 previous error [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> ch15/structs.rs:2:21 [INFO] [stdout] | [INFO] [stdout] 2 | struct Borrowed<'a>(&'a i32); [INFO] [stdout] | -------- ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `Borrowed` 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: field `0` is never read [INFO] [stdout] --> ch15/structs.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | Num(i32), [INFO] [stdout] | --- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Either` 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] 13 - Num(i32), [INFO] [stdout] 13 + Num(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> ch15/structs.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | Ref(&'a i32), [INFO] [stdout] | --- ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Either` 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] 14 - Ref(&'a i32), [INFO] [stdout] 14 + Ref(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `number` is never read [INFO] [stdout] --> ch18/unpacking.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 11 | struct PhoneNumber { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 12 | area_code: Option, [INFO] [stdout] 13 | number: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PhoneNumber` has a derived impl for the trait `Clone`, 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] --> ch2/tuple.rs:7:15 [INFO] [stdout] | [INFO] [stdout] 7 | struct Matrix(f32, f32, f32, f32); [INFO] [stdout] | ------ ^^^ ^^^ ^^^ ^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing these fields [INFO] [stdout] = note: `Matrix` 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] running `Command { std: "docker" "inspect" "c413eca5e3e693487f4aff9ee265b8820e8eb15aa94d01d9fdddbaa6f6aff88a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c413eca5e3e693487f4aff9ee265b8820e8eb15aa94d01d9fdddbaa6f6aff88a", kill_on_drop: false }` [INFO] [stdout] c413eca5e3e693487f4aff9ee265b8820e8eb15aa94d01d9fdddbaa6f6aff88a