[INFO] cloning repository https://github.com/afshin-dev/rust-sample [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/afshin-dev/rust-sample" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fafshin-dev%2Frust-sample", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fafshin-dev%2Frust-sample'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 55006905b7ae877a0f545833a30a1297b0221a08 [INFO] testing afshin-dev/rust-sample against master#733b47ea4b1b86216f14ef56e49440c33933f230+rustflags=-Copt-level=3 for pr-138759 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fafshin-dev%2Frust-sample" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/afshin-dev/rust-sample [INFO] finished tweaking git repo https://github.com/afshin-dev/rust-sample [INFO] tweaked toml for git repo https://github.com/afshin-dev/rust-sample written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/afshin-dev/rust-sample on toolchain 733b47ea4b1b86216f14ef56e49440c33933f230 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+733b47ea4b1b86216f14ef56e49440c33933f230" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/afshin-dev/rust-sample 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" "+733b47ea4b1b86216f14ef56e49440c33933f230" "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 [ERROR] error running command: no output for 300 seconds [INFO] testing afshin-dev/rust-sample against master#733b47ea4b1b86216f14ef56e49440c33933f230+rustflags=-Copt-level=3 for pr-138759 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fafshin-dev%2Frust-sample" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/afshin-dev/rust-sample [INFO] finished tweaking git repo https://github.com/afshin-dev/rust-sample [INFO] tweaked toml for git repo https://github.com/afshin-dev/rust-sample written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/afshin-dev/rust-sample on toolchain 733b47ea4b1b86216f14ef56e49440c33933f230 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+733b47ea4b1b86216f14ef56e49440c33933f230" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/afshin-dev/rust-sample 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" "+733b47ea4b1b86216f14ef56e49440c33933f230" "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-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+733b47ea4b1b86216f14ef56e49440c33933f230" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 77ec2c609dfbf650de0633f47a1e4ef9d845688be448e2aee3ca815627f515c7 [INFO] running `Command { std: "docker" "start" "-a" "77ec2c609dfbf650de0633f47a1e4ef9d845688be448e2aee3ca815627f515c7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "77ec2c609dfbf650de0633f47a1e4ef9d845688be448e2aee3ca815627f515c7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "77ec2c609dfbf650de0633f47a1e4ef9d845688be448e2aee3ca815627f515c7", kill_on_drop: false }` [INFO] [stdout] 77ec2c609dfbf650de0633f47a1e4ef9d845688be448e2aee3ca815627f515c7 [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 -Copt-level=3" "-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+733b47ea4b1b86216f14ef56e49440c33933f230" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e9f5c5639a4fbf361bc5abdf73845c58b5f8a43eb4a9c488d52c7f14276deb8f [INFO] running `Command { std: "docker" "start" "-a" "e9f5c5639a4fbf361bc5abdf73845c58b5f8a43eb4a9c488d52c7f14276deb8f", kill_on_drop: false }` [INFO] [stderr] Compiling crossbeam-utils v0.8.14 [INFO] [stderr] Compiling crossbeam-channel v0.5.6 [INFO] [stderr] Compiling rust-sample v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> src/bin/rc-01.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 4 | struct Parent { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 5 | name: String , [INFO] [stdout] 6 | id : i128, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> src/bin/rc-01.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 9 | struct Child { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 10 | name: String, [INFO] [stdout] 11 | id: i128, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/bin/conversion-from.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | Failed(u8), // u8 = code number [INFO] [stdout] | ------ ^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `RetrunCode` 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] 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] 17 - Failed(u8), // u8 = code number [INFO] [stdout] 17 + Failed(()), // u8 = code number [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Intermediate` and `Professinal` are never constructed [INFO] [stdout] --> src/bin/compare-enum.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 2 | enum Degree { [INFO] [stdout] | ------ variants in this enum [INFO] [stdout] 3 | Beginner, // 1 [INFO] [stdout] 4 | Intermediate, // 2 [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 5 | Advanced, // 3 [INFO] [stdout] 6 | Professinal, // 4 [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Degree` 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 `f1`, `f2`, `f3`, `f4`, and `f5` are never read [INFO] [stdout] --> src/bin/struct-update-syntax.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 3 | struct Stc { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] 4 | f1: i32, [INFO] [stdout] | ^^ [INFO] [stdout] 5 | f2: bool, [INFO] [stdout] | ^^ [INFO] [stdout] 6 | f3: u8, [INFO] [stdout] | ^^ [INFO] [stdout] 7 | f4: String, [INFO] [stdout] | ^^ [INFO] [stdout] 8 | f5: u128, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `Stc` 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: variants `Fire`, `Water`, and `Soil` are never constructed [INFO] [stdout] --> src/bin/match-guard-with-enum.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 1 | enum Element { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 2 | Fire, [INFO] [stdout] | ^^^^ [INFO] [stdout] 3 | Water, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 4 | Soil, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Trait1` is never used [INFO] [stdout] --> src/bin/generic-structure.rs:5:7 [INFO] [stdout] | [INFO] [stdout] 5 | trait Trait1 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Trait2` is never used [INFO] [stdout] --> src/bin/generic-structure.rs:9:7 [INFO] [stdout] | [INFO] [stdout] 9 | trait Trait2 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Trait3` is never used [INFO] [stdout] --> src/bin/generic-structure.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | trait Trait3 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Struct` is never constructed [INFO] [stdout] --> src/bin/generic-structure.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | struct Struct [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused label [INFO] [stdout] --> src/bin/loop-label.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | 'inner: loop { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_labels)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Developer` and `DevOpsEngineer` are never constructed [INFO] [stdout] --> src/bin/if-let.rs:16:2 [INFO] [stdout] | [INFO] [stdout] 13 | enum Role { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 16 | Developer, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 17 | DevOpsEngineer [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Role` 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: function `show_default` is never used [INFO] [stdout] --> src/bin/show-defaut.rs:7:4 [INFO] [stdout] | [INFO] [stdout] 7 | fn show_default(o: T) -> i32 [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `health` and `soul_type` are never read [INFO] [stdout] --> src/bin/type-state-01.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct Body { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 19 | pub name: String, [INFO] [stdout] 20 | pub health : i32 , [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 21 | pub soul_type : SoulType, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add` is never used [INFO] [stdout] --> src/bin/look-at-test-01.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn add (x: i32 , y: i32) -> i32 { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: couldn't read `src/bin/../../cargo.toml`: No such file or directory (os error 2) [INFO] [stdout] --> src/bin/print-cargo-config.rs:1:30 [INFO] [stdout] | [INFO] [stdout] 1 | const CONFIG: &'static str = include_str!("../../cargo.toml"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-sample` (bin "print-cargo-config") due to 1 previous error [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: field `duration` is never read [INFO] [stdout] --> src/bin/impl-generic.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 30 | struct Football { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 31 | duration: i64 , // in min [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `round` is never read [INFO] [stdout] --> src/bin/impl-generic.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 41 | struct Tenis { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 42 | round: i32 , [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "e9f5c5639a4fbf361bc5abdf73845c58b5f8a43eb4a9c488d52c7f14276deb8f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e9f5c5639a4fbf361bc5abdf73845c58b5f8a43eb4a9c488d52c7f14276deb8f", kill_on_drop: false }` [INFO] [stdout] e9f5c5639a4fbf361bc5abdf73845c58b5f8a43eb4a9c488d52c7f14276deb8f