[INFO] cloning repository https://github.com/trngdothuy/rust-exercises [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/trngdothuy/rust-exercises" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftrngdothuy%2Frust-exercises", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftrngdothuy%2Frust-exercises'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 89f6787ea4d3fb073d50af81e3a00e794f70b2a2 [INFO] checking trngdothuy/rust-exercises against master#5518eaa946291f00471af8b254b2a1715f234882 for pr-120393 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftrngdothuy%2Frust-exercises" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/trngdothuy/rust-exercises on toolchain 5518eaa946291f00471af8b254b2a1715f234882 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+5518eaa946291f00471af8b254b2a1715f234882" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/trngdothuy/rust-exercises [INFO] finished tweaking git repo https://github.com/trngdothuy/rust-exercises [INFO] tweaked toml for git repo https://github.com/trngdothuy/rust-exercises written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/trngdothuy/rust-exercises 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" "+5518eaa946291f00471af8b254b2a1715f234882" "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 [ERROR] this task or one of its parent failed! [ERROR] no output for 300 seconds [ERROR] note: run with `RUST_BACKTRACE=1` to display a backtrace. [INFO] checking trngdothuy/rust-exercises against try#7622c0f807a4e13c4db886a1681bf343795692df+rustflags=-Dnon_local_definitions for pr-120393 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftrngdothuy%2Frust-exercises" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/trngdothuy/rust-exercises on toolchain 7622c0f807a4e13c4db886a1681bf343795692df [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+7622c0f807a4e13c4db886a1681bf343795692df" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/trngdothuy/rust-exercises [INFO] finished tweaking git repo https://github.com/trngdothuy/rust-exercises [INFO] tweaked toml for git repo https://github.com/trngdothuy/rust-exercises written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/trngdothuy/rust-exercises 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" "+7622c0f807a4e13c4db886a1681bf343795692df" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [INFO] checking trngdothuy/rust-exercises against try#7622c0f807a4e13c4db886a1681bf343795692df+rustflags=-Dnon_local_definitions for pr-120393 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftrngdothuy%2Frust-exercises" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/trngdothuy/rust-exercises on toolchain 7622c0f807a4e13c4db886a1681bf343795692df [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+7622c0f807a4e13c4db886a1681bf343795692df" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/trngdothuy/rust-exercises [INFO] finished tweaking git repo https://github.com/trngdothuy/rust-exercises [INFO] tweaked toml for git repo https://github.com/trngdothuy/rust-exercises written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/trngdothuy/rust-exercises 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" "+7622c0f807a4e13c4db886a1681bf343795692df" "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-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+7622c0f807a4e13c4db886a1681bf343795692df" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7ced44121439a91435d6c402b10a898bdda89612c233260f8861960979352566 [INFO] running `Command { std: "docker" "start" "-a" "7ced44121439a91435d6c402b10a898bdda89612c233260f8861960979352566", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7ced44121439a91435d6c402b10a898bdda89612c233260f8861960979352566", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7ced44121439a91435d6c402b10a898bdda89612c233260f8861960979352566", kill_on_drop: false }` [INFO] [stdout] 7ced44121439a91435d6c402b10a898bdda89612c233260f8861960979352566 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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 -Dnon_local_definitions" "-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+7622c0f807a4e13c4db886a1681bf343795692df" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] efb8042c5d1bb1f12e32dc5dcc8f65928663270839646423839aeca42288cf73 [INFO] running `Command { std: "docker" "start" "-a" "efb8042c5d1bb1f12e32dc5dcc8f65928663270839646423839aeca42288cf73", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.43 [INFO] [stderr] Compiling unicode-ident v1.0.3 [INFO] [stderr] Compiling quote v1.0.21 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling syn v1.0.99 [INFO] [stderr] Compiling libc v0.2.132 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Checking unicode-width v0.1.9 [INFO] [stderr] Compiling unicode-segmentation v1.9.0 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Checking ansi_term v0.12.1 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking vec_map v0.8.2 [INFO] [stderr] Checking strsim v0.8.0 [INFO] [stderr] Checking iana-time-zone v0.1.47 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking time v0.1.44 [INFO] [stderr] Checking clap v2.34.0 [INFO] [stderr] Checking chrono v0.4.22 [INFO] [stderr] Compiling thiserror-impl v1.0.34 [INFO] [stderr] Compiling structopt-derive v0.4.18 [INFO] [stderr] Checking thiserror v1.0.34 [INFO] [stderr] Checking structopt v0.3.26 [INFO] [stderr] Checking activities v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: function `clamp` is never used [INFO] [stdout] --> src/bin/a22.rs:14:4 [INFO] [stdout] | [INFO] [stdout] 14 | fn clamp(n: i32, lower: i32, upper: i32) -> i32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `div` is never used [INFO] [stdout] --> src/bin/a22.rs:25:4 [INFO] [stdout] | [INFO] [stdout] 25 | fn div(a: i32, b: i32) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `concat` is never used [INFO] [stdout] --> src/bin/a22.rs:34:4 [INFO] [stdout] | [INFO] [stdout] 34 | fn concat(first: &str, second: &str) -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0283]: type annotations needed [INFO] [stdout] --> src/bin/a24.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | let data = vec![1, 2, 3, 4, 5] [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | .collect(); [INFO] [stdout] | ------- type must be known at this point [INFO] [stdout] | [INFO] [stdout] = note: cannot satisfy `_: FromIterator` [INFO] [stdout] note: required by a bound in `collect` [INFO] [stdout] --> /rustc/7622c0f807a4e13c4db886a1681bf343795692df/library/core/src/iter/traits/iterator.rs:2050:5 [INFO] [stdout] help: consider giving `data` an explicit type [INFO] [stdout] | [INFO] [stdout] 12 | let data: Vec<_> = vec![1, 2, 3, 4, 5] [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `try_me` [INFO] [stdout] --> src/bin/a18b.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 57 | let try_me = check(staff)?; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_try_me` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `MaintenanceCrews`, `MarketingDepartmentEmployees`, `LineSupervisors`, `KitchenStaff`, and `AssemblyTechnicians` are never constructed [INFO] [stdout] --> src/bin/a18b.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 18 | enum Type { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 19 | MaintenanceCrews, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 20 | MarketingDepartmentEmployees, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 21 | Managers, [INFO] [stdout] 22 | LineSupervisors, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 23 | KitchenStaff, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 24 | AssemblyTechnicians, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Active` is never constructed [INFO] [stdout] --> src/bin/a18b.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 27 | enum Status { [INFO] [stdout] | ------ variant in this enum [INFO] [stdout] 28 | Active, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/bin/a28.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 12 | enum Color { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 13 | Black, [INFO] [stdout] 14 | Blue, [INFO] [stdout] | ^^^^ [INFO] [stdout] 15 | Brown, [INFO] [stdout] 16 | Custom(String), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 17 | Gray, [INFO] [stdout] | ^^^^ [INFO] [stdout] 18 | Green, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 19 | Purple, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 20 | Red, [INFO] [stdout] 21 | White, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 22 | Yellow, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Color` 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] --> src/bin/a28.rs:26:19 [INFO] [stdout] | [INFO] [stdout] 26 | struct ShoesColor(Color); [INFO] [stdout] | ---------- ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = note: `ShoesColor` 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] 26 | struct ShoesColor(()); [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `White` and `Black` are never constructed [INFO] [stdout] --> src/bin/a7.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 8 | enum Color { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 9 | Red, [INFO] [stdout] 10 | White, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 11 | Black, [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] --> src/bin/a28.rs:34:19 [INFO] [stdout] | [INFO] [stdout] 34 | struct ShirtColor(Color); [INFO] [stdout] | ---------- ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = note: `ShirtColor` 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] 34 | struct ShirtColor(()); [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/bin/a28.rs:45:19 [INFO] [stdout] | [INFO] [stdout] 45 | struct PantsColor(Color); [INFO] [stdout] | ---------- ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = note: `PantsColor` 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] 45 | struct PantsColor(()); [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0283]: type annotations needed [INFO] [stdout] --> src/bin/a24.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | let data = vec![1, 2, 3, 4, 5] [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | .collect(); [INFO] [stdout] | ------- type must be known at this point [INFO] [stdout] | [INFO] [stdout] = note: cannot satisfy `_: FromIterator` [INFO] [stdout] note: required by a bound in `collect` [INFO] [stdout] --> /rustc/7622c0f807a4e13c4db886a1681bf343795692df/library/core/src/iter/traits/iterator.rs:2050:5 [INFO] [stdout] help: consider giving `data` an explicit type [INFO] [stdout] | [INFO] [stdout] 12 | let data: Vec<_> = vec![1, 2, 3, 4, 5] [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0283`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0283`. [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/bin/a9.rs:16:11 [INFO] [stdout] | [INFO] [stdout] 16 | let (x, y) = function(); [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] [stderr] error: could not compile `activities` (bin "a24") due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `activities` (bin "a24" test) due to 2 previous errors [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Red` and `White` are never constructed [INFO] [stdout] --> src/bin/a12.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 26 | enum Color { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 27 | Red, [INFO] [stdout] | ^^^ [INFO] [stdout] 28 | Black, [INFO] [stdout] 29 | White, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "efb8042c5d1bb1f12e32dc5dcc8f65928663270839646423839aeca42288cf73", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "efb8042c5d1bb1f12e32dc5dcc8f65928663270839646423839aeca42288cf73", kill_on_drop: false }` [INFO] [stdout] efb8042c5d1bb1f12e32dc5dcc8f65928663270839646423839aeca42288cf73