[INFO] cloning repository https://github.com/IbrahimBagalwa/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/IbrahimBagalwa/rust-exercises" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FIbrahimBagalwa%2Frust-exercises", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FIbrahimBagalwa%2Frust-exercises'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ced3199f6b7420c2e0de180c9f3f172cd473b5ce [INFO] checking IbrahimBagalwa/rust-exercises against master#2e6fc425411280c658d852813de01c5157255088 for pr-128013 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FIbrahimBagalwa%2Frust-exercises" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/IbrahimBagalwa/rust-exercises on toolchain 2e6fc425411280c658d852813de01c5157255088 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2e6fc425411280c658d852813de01c5157255088" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/IbrahimBagalwa/rust-exercises [INFO] finished tweaking git repo https://github.com/IbrahimBagalwa/rust-exercises [INFO] tweaked toml for git repo https://github.com/IbrahimBagalwa/rust-exercises written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/IbrahimBagalwa/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" "+2e6fc425411280c658d852813de01c5157255088" "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 IbrahimBagalwa/rust-exercises against try#d856f2da3433420b7077c0dc7ee9441455bc1302 for pr-128013 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FIbrahimBagalwa%2Frust-exercises" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/IbrahimBagalwa/rust-exercises on toolchain d856f2da3433420b7077c0dc7ee9441455bc1302 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d856f2da3433420b7077c0dc7ee9441455bc1302" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/IbrahimBagalwa/rust-exercises [INFO] finished tweaking git repo https://github.com/IbrahimBagalwa/rust-exercises [INFO] tweaked toml for git repo https://github.com/IbrahimBagalwa/rust-exercises written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/IbrahimBagalwa/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" "+d856f2da3433420b7077c0dc7ee9441455bc1302" "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-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+d856f2da3433420b7077c0dc7ee9441455bc1302" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 14788b86fbbccb247eb20108fdd0ee8efa4a80a1aae41360575a9cd41fd57153 [INFO] running `Command { std: "docker" "start" "-a" "14788b86fbbccb247eb20108fdd0ee8efa4a80a1aae41360575a9cd41fd57153", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "14788b86fbbccb247eb20108fdd0ee8efa4a80a1aae41360575a9cd41fd57153", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "14788b86fbbccb247eb20108fdd0ee8efa4a80a1aae41360575a9cd41fd57153", kill_on_drop: false }` [INFO] [stdout] 14788b86fbbccb247eb20108fdd0ee8efa4a80a1aae41360575a9cd41fd57153 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+d856f2da3433420b7077c0dc7ee9441455bc1302" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a0533e49088262a05a3d90459b2653a82698af8750137834784f7cfc31aa760d [INFO] running `Command { std: "docker" "start" "-a" "a0533e49088262a05a3d90459b2653a82698af8750137834784f7cfc31aa760d", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.154 [INFO] [stderr] Checking getrandom v0.2.14 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking exercises v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/bin/exercise8.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | _ => println!("Comming sun"), [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Sweet` and `Fruity` are never constructed [INFO] [stdout] --> src/bin/exercise8.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 12 | enum Flavor { [INFO] [stdout] | ------ variants in this enum [INFO] [stdout] 13 | Sparkling, [INFO] [stdout] 14 | Sweet, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 15 | Fruity [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Pink`, `Black`, and `White` are never constructed [INFO] [stdout] --> src/bin/exercise7.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 12 | enum Color{ [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 13 | Blue, [INFO] [stdout] 14 | Pink, [INFO] [stdout] | ^^^^ [INFO] [stdout] 15 | Black, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 16 | 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] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Green` and `Blue` are never constructed [INFO] [stdout] --> src/bin/exercise12.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 13 | enum BoxColor { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 14 | Red, [INFO] [stdout] 15 | Green, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 16 | Blue, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Admin`, `Manager`, and `User` are never constructed [INFO] [stdout] --> src/bin/expressionDemo.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 1 | enum Access{ [INFO] [stdout] | ------ variants in this enum [INFO] [stdout] 2 | Admin, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 3 | Manager, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 4 | User, [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] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `match_expression` is never used [INFO] [stdout] --> src/bin/main.rs:14:4 [INFO] [stdout] | [INFO] [stdout] 14 | fn match_expression(){ [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] [stdout] warning: unused variable: `event` [INFO] [stdout] --> src/bin/advance_match_demo.rs:29:29 [INFO] [stdout] | [INFO] [stdout] 29 | Ticket { price: 50, event } => println!("We have a Rust ticket"), [INFO] [stdout] | ^^^^^ help: try ignoring the field: `event: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `price` [INFO] [stdout] --> src/bin/advance_match_demo.rs:30:17 [INFO] [stdout] | [INFO] [stdout] 30 | Ticket {price, ..} => println!("When we are matchin a struct the two dots means ignore other fields"), [INFO] [stdout] | ^^^^^- [INFO] [stdout] | | [INFO] [stdout] | help: try removing the field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x_value` [INFO] [stdout] --> src/bin/exercise9.rs:14:19 [INFO] [stdout] | [INFO] [stdout] 14 | let (y_value, x_value) = cartesian_coordinate(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_x_value` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Percent` is never constructed [INFO] [stdout] --> src/bin/advance_match_demo.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 1 | enum Discount { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] 2 | Percent(i32), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `All` is never constructed [INFO] [stdout] --> src/bin/exercise18a.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 30 | enum ProtectedLocation { [INFO] [stdout] | ----------------- variant in this enum [INFO] [stdout] 31 | All, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ProtectedLocation` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `All` is never constructed [INFO] [stdout] --> src/bin/exercise18a.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 30 | enum ProtectedLocation { [INFO] [stdout] | ----------------- variant in this enum [INFO] [stdout] 31 | All, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ProtectedLocation` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: Here is my message for `ImportantTrait` is not implemented for `String` type! [INFO] [stdout] --> src/bin/diagnostic_attribut.rs:12:18 [INFO] [stdout] | [INFO] [stdout] 12 | use_my_trait(String::new()); [INFO] [stdout] | ------------ ^^^^^^^^^^^^^ Missing implementation for `ImportantTrait` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the trait `ImportantTrait` is not implemented for `String` [INFO] [stdout] = note: You need to implement MyTrait for this type to use it here. [INFO] [stdout] = note: Note 2 [INFO] [stdout] help: this trait has no implementations, consider adding one [INFO] [stdout] --> src/bin/diagnostic_attribut.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | trait ImportantTrait {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required by a bound in `use_my_trait` [INFO] [stdout] --> src/bin/diagnostic_attribut.rs:9:25 [INFO] [stdout] | [INFO] [stdout] 9 | fn use_my_trait(_: impl ImportantTrait) {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ required by this bound in `use_my_trait` [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 E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `exercises` (bin "diagnostic_attribut" test) due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: variants `Admin`, `Manager`, and `User` are never constructed [INFO] [stdout] --> src/bin/expressionDemo.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 1 | enum Access{ [INFO] [stdout] | ------ variants in this enum [INFO] [stdout] 2 | Admin, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 3 | Manager, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 4 | User, [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" "a0533e49088262a05a3d90459b2653a82698af8750137834784f7cfc31aa760d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a0533e49088262a05a3d90459b2653a82698af8750137834784f7cfc31aa760d", kill_on_drop: false }` [INFO] [stdout] a0533e49088262a05a3d90459b2653a82698af8750137834784f7cfc31aa760d