[INFO] cloning repository https://github.com/iftakharhusan/learn-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/iftakharhusan/learn-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fiftakharhusan%2Flearn-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fiftakharhusan%2Flearn-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a63178d2c240b11fb3961bd11de088d52d58d9ff [INFO] checking iftakharhusan/learn-rust against master#158f00a1c5175648af6f6099b075f78d1d014a28 for pr-121251 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fiftakharhusan%2Flearn-rust" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/iftakharhusan/learn-rust on toolchain 158f00a1c5175648af6f6099b075f78d1d014a28 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+158f00a1c5175648af6f6099b075f78d1d014a28" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/iftakharhusan/learn-rust [INFO] finished tweaking git repo https://github.com/iftakharhusan/learn-rust [INFO] tweaked toml for git repo https://github.com/iftakharhusan/learn-rust written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/iftakharhusan/learn-rust 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" "+158f00a1c5175648af6f6099b075f78d1d014a28" "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 [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 iftakharhusan/learn-rust against try#b4fc5dbf0bc33be331f9d893db5b3a794f29724a+rustflags=-Dexplicit_range -Dtrait_impl_range -Wrange_syntax -Wrange_bounds for pr-121251 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fiftakharhusan%2Flearn-rust" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/iftakharhusan/learn-rust on toolchain b4fc5dbf0bc33be331f9d893db5b3a794f29724a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b4fc5dbf0bc33be331f9d893db5b3a794f29724a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/iftakharhusan/learn-rust [INFO] finished tweaking git repo https://github.com/iftakharhusan/learn-rust [INFO] tweaked toml for git repo https://github.com/iftakharhusan/learn-rust written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/iftakharhusan/learn-rust 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" "+b4fc5dbf0bc33be331f9d893db5b3a794f29724a" "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-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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" "+b4fc5dbf0bc33be331f9d893db5b3a794f29724a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 613f7e66deca9b47199e413317fecfd89c433ee49f3f41137679337303b94c56 [INFO] running `Command { std: "docker" "start" "-a" "613f7e66deca9b47199e413317fecfd89c433ee49f3f41137679337303b94c56", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "613f7e66deca9b47199e413317fecfd89c433ee49f3f41137679337303b94c56", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "613f7e66deca9b47199e413317fecfd89c433ee49f3f41137679337303b94c56", kill_on_drop: false }` [INFO] [stdout] 613f7e66deca9b47199e413317fecfd89c433ee49f3f41137679337303b94c56 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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 -Dexplicit_range -Dtrait_impl_range -Wrange_syntax -Wrange_bounds" "-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" "+b4fc5dbf0bc33be331f9d893db5b3a794f29724a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8a1ede55e6f35d2c730b2208193b8f71a44d3c6968eb52b4cec899d55648d52e [INFO] running `Command { std: "docker" "start" "-a" "8a1ede55e6f35d2c730b2208193b8f71a44d3c6968eb52b4cec899d55648d52e", kill_on_drop: false }` [INFO] [stderr] Checking activities v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: struct `User` is never constructed [INFO] [stdout] --> src/bin/a21.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | struct User { [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: function `find_user` is never used [INFO] [stdout] --> src/bin/a21.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn find_user(name: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/bin/a23.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 11 | fn part_1() -> bool { [INFO] [stdout] | ---- expected `bool` because of return type [INFO] [stdout] ... [INFO] [stdout] 16 | maybe_access("admin") [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ expected `bool`, found `Option` [INFO] [stdout] | [INFO] [stdout] = note: expected type `bool` [INFO] [stdout] found enum `Option` [INFO] [stdout] help: use `Option::is_some` to test if the `Option` has a value [INFO] [stdout] | [INFO] [stdout] 16 | maybe_access("admin").is_some() [INFO] [stdout] | ++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ServicePriority` is never used [INFO] [stdout] --> src/bin/a29.rs:13:6 [INFO] [stdout] | [INFO] [stdout] 13 | enum ServicePriority { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ServicePriority` 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] error[E0308]: mismatched types [INFO] [stdout] --> src/bin/a23.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 26 | fn part_3() -> Access { [INFO] [stdout] | ------ expected `Access` because of return type [INFO] [stdout] ... [INFO] [stdout] 29 | maybe_access("Alice") [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ expected `Access`, found `Option` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Access` [INFO] [stdout] found enum `Option` [INFO] [stdout] help: consider using `Option::expect` to unwrap the `Option` value, panicking if the value is an `Option::None` [INFO] [stdout] | [INFO] [stdout] 29 | maybe_access("Alice").expect("REASON") [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Priority` is never used [INFO] [stdout] --> src/bin/a29.rs:18:7 [INFO] [stdout] | [INFO] [stdout] 18 | trait Priority { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ImportantGuest` is never constructed [INFO] [stdout] --> src/bin/a29.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | struct ImportantGuest; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ImportantGuest` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Guest` is never constructed [INFO] [stdout] --> src/bin/a29.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | struct Guest; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Guest` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `activities` (bin "a23") due to 3 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: usage of `Range` range syntax [INFO] [stdout] --> src/bin/a26b.rs:23:35 [INFO] [stdout] | [INFO] [stdout] 23 | if let Some(letter) = msg.get(0..1) { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-W range-syntax` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of `Range` range syntax [INFO] [stdout] --> src/bin/a26b.rs:24:53 [INFO] [stdout] | [INFO] [stdout] 24 | format!("{}{}", letter.to_uppercase(), &msg[1..msg.len()]).into() [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Corporate` is never constructed [INFO] [stdout] --> src/bin/a40.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | struct Corporate; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crossbeam_channel` [INFO] [stdout] --> src/bin/a41.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | use crossbeam_channel::{unbounded, Receiver, Sender}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ use of undeclared crate or module `crossbeam_channel` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of `Range` range syntax [INFO] [stdout] --> src/bin/a41.rs:136:14 [INFO] [stdout] | [INFO] [stdout] 136 | for _ in 0..4 { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-W range-syntax` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StoreFront` is never constructed [INFO] [stdout] --> src/bin/a40.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | struct StoreFront; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stdout] warning: constant `MOCK_DATA` is never used [INFO] [stdout] --> src/bin/a32.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | const MOCK_DATA: &'static str = include_str!("mock-data.csv"); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `activities` (bin "a41") due to 2 previous errors; 1 warning emitted [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of `Range` range syntax [INFO] [stdout] --> src/bin/a26c.rs:24:35 [INFO] [stdout] | [INFO] [stdout] 24 | if let Some(letter) = msg.get(0..1) { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-W range-syntax` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of `Range` range syntax [INFO] [stdout] --> src/bin/a26c.rs:25:53 [INFO] [stdout] | [INFO] [stdout] 25 | format!("{}{}", letter.to_uppercase(), &msg[1..msg.len()]).into() [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "8a1ede55e6f35d2c730b2208193b8f71a44d3c6968eb52b4cec899d55648d52e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8a1ede55e6f35d2c730b2208193b8f71a44d3c6968eb52b4cec899d55648d52e", kill_on_drop: false }` [INFO] [stdout] 8a1ede55e6f35d2c730b2208193b8f71a44d3c6968eb52b4cec899d55648d52e