[INFO] cloning repository https://github.com/KBeKind/rust-basics [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/KBeKind/rust-basics" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKBeKind%2Frust-basics", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKBeKind%2Frust-basics'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d4489d8c7714b4ea83d90b96a134da230e23e876 [INFO] checking KBeKind/rust-basics against master#982c6f8721416431ec62bb0b9105c0578a9fc603 for pr-129329 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKBeKind%2Frust-basics" "/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/KBeKind/rust-basics on toolchain 982c6f8721416431ec62bb0b9105c0578a9fc603 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+982c6f8721416431ec62bb0b9105c0578a9fc603" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/KBeKind/rust-basics [INFO] finished tweaking git repo https://github.com/KBeKind/rust-basics [INFO] tweaked toml for git repo https://github.com/KBeKind/rust-basics written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/KBeKind/rust-basics 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" "+982c6f8721416431ec62bb0b9105c0578a9fc603" "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 KBeKind/rust-basics against try#fa63ef4ad80785c0f3f362275f3772bdc67c23e0 for pr-129329 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKBeKind%2Frust-basics" "/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/KBeKind/rust-basics on toolchain fa63ef4ad80785c0f3f362275f3772bdc67c23e0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+fa63ef4ad80785c0f3f362275f3772bdc67c23e0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/KBeKind/rust-basics [INFO] finished tweaking git repo https://github.com/KBeKind/rust-basics [INFO] tweaked toml for git repo https://github.com/KBeKind/rust-basics written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/KBeKind/rust-basics 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" "+fa63ef4ad80785c0f3f362275f3772bdc67c23e0" "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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+fa63ef4ad80785c0f3f362275f3772bdc67c23e0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 068516ddd805af925632f5c2427b204b4cc404b18a8c254290ab96272e7d35e4 [INFO] running `Command { std: "docker" "start" "-a" "068516ddd805af925632f5c2427b204b4cc404b18a8c254290ab96272e7d35e4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "068516ddd805af925632f5c2427b204b4cc404b18a8c254290ab96272e7d35e4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "068516ddd805af925632f5c2427b204b4cc404b18a8c254290ab96272e7d35e4", kill_on_drop: false }` [INFO] [stdout] 068516ddd805af925632f5c2427b204b4cc404b18a8c254290ab96272e7d35e4 [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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+fa63ef4ad80785c0f3f362275f3772bdc67c23e0" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 671e03a839b3596209120f0e465e18964cd81ca46f5906543caeccb504fb7236 [INFO] running `Command { std: "docker" "start" "-a" "671e03a839b3596209120f0e465e18964cd81ca46f5906543caeccb504fb7236", kill_on_drop: false }` [INFO] [stderr] Checking hello v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: expected one of `@` or `|`, found `:` [INFO] [stdout] --> src/main.rs:76:10 [INFO] [stdout] | [INFO] [stdout] 76 | for i: i32 in 0..10 { [INFO] [stdout] | ^ --- specifying the type of a pattern isn't supported [INFO] [stdout] | | [INFO] [stdout] | expected one of `@` or `|` [INFO] [stdout] | [INFO] [stdout] help: maybe write a path separator here [INFO] [stdout] | [INFO] [stdout] 76 | for i::i32 in 0..10 { [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected one of `@` or `|`, found `:` [INFO] [stdout] --> src/main.rs:76:10 [INFO] [stdout] | [INFO] [stdout] 76 | for i: i32 in 0..10 { [INFO] [stdout] | ^ --- specifying the type of a pattern isn't supported [INFO] [stdout] | | [INFO] [stdout] | expected one of `@` or `|` [INFO] [stdout] | [INFO] [stdout] help: maybe write a path separator here [INFO] [stdout] | [INFO] [stdout] 76 | for i::i32 in 0..10 { [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected one of `:`, `@`, or `|`, found `)` [INFO] [stdout] --> src/main.rs:112:32 [INFO] [stdout] | [INFO] [stdout] 112 | fn function_name(parameter_list) -> return_type { [INFO] [stdout] | ^ expected one of `:`, `@`, or `|` [INFO] [stdout] | [INFO] [stdout] = note: anonymous parameters are removed in the 2018 edition (see RFC 1685) [INFO] [stdout] help: if this is a `self` type, give it a parameter name [INFO] [stdout] | [INFO] [stdout] 112 | fn function_name(self: parameter_list) -> return_type { [INFO] [stdout] | +++++ [INFO] [stdout] help: if this is a parameter name, give it a type [INFO] [stdout] | [INFO] [stdout] 112 | fn function_name(parameter_list: TypeName) -> return_type { [INFO] [stdout] | ++++++++++ [INFO] [stdout] help: if this is a type, explicitly ignore the parameter name [INFO] [stdout] | [INFO] [stdout] 112 | fn function_name(_: parameter_list) -> return_type { [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected one of `:`, `@`, or `|`, found `)` [INFO] [stdout] --> src/main.rs:112:32 [INFO] [stdout] | [INFO] [stdout] 112 | fn function_name(parameter_list) -> return_type { [INFO] [stdout] | ^ expected one of `:`, `@`, or `|` [INFO] [stdout] | [INFO] [stdout] = note: anonymous parameters are removed in the 2018 edition (see RFC 1685) [INFO] [stdout] help: if this is a `self` type, give it a parameter name [INFO] [stdout] | [INFO] [stdout] 112 | fn function_name(self: parameter_list) -> return_type { [INFO] [stdout] | +++++ [INFO] [stdout] help: if this is a parameter name, give it a type [INFO] [stdout] | [INFO] [stdout] 112 | fn function_name(parameter_list: TypeName) -> return_type { [INFO] [stdout] | ++++++++++ [INFO] [stdout] help: if this is a type, explicitly ignore the parameter name [INFO] [stdout] | [INFO] [stdout] 112 | fn function_name(_: parameter_list) -> return_type { [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0428]: the name `Rectangle` is defined multiple times [INFO] [stdout] --> src/main.rs:169:1 [INFO] [stdout] | [INFO] [stdout] 157 | struct Rectangle { width: u32, height: u32, [INFO] [stdout] | ---------------- previous definition of the type `Rectangle` here [INFO] [stdout] ... [INFO] [stdout] 169 | struct Rectangle { width: u32, height: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ `Rectangle` redefined here [INFO] [stdout] | [INFO] [stdout] = note: `Rectangle` must be defined only once in the type namespace of this block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: macro expansion ignores token `{` and any following [INFO] [stdout] --> /rustc/fa63ef4ad80785c0f3f362275f3772bdc67c23e0/library/std/src/macros.rs:142:23 [INFO] [stdout] | [INFO] [stdout] ::: src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | println!("The average is {}", average); [INFO] [stdout] | -------------------------------------- caused by the macro expansion here [INFO] [stdout] | [INFO] [stdout] = note: the usage of `println!` is likely invalid in item context [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0428]: the name `Rectangle` is defined multiple times [INFO] [stdout] --> src/main.rs:169:1 [INFO] [stdout] | [INFO] [stdout] 157 | struct Rectangle { width: u32, height: u32, [INFO] [stdout] | ---------------- previous definition of the type `Rectangle` here [INFO] [stdout] ... [INFO] [stdout] 169 | struct Rectangle { width: u32, height: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ `Rectangle` redefined here [INFO] [stdout] | [INFO] [stdout] = note: `Rectangle` must be defined only once in the type namespace of this block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: macro expansion ignores token `{` and any following [INFO] [stdout] --> /rustc/fa63ef4ad80785c0f3f362275f3772bdc67c23e0/library/std/src/macros.rs:142:23 [INFO] [stdout] | [INFO] [stdout] ::: src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | println!("The average is {}", average); [INFO] [stdout] | -------------------------------------- caused by the macro expansion here [INFO] [stdout] | [INFO] [stdout] = note: the usage of `println!` is likely invalid in item context [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `return_type` in this scope [INFO] [stdout] --> src/main.rs:112:37 [INFO] [stdout] | [INFO] [stdout] 112 | fn function_name(parameter_list) -> return_type { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `return_type` in this scope [INFO] [stdout] --> src/main.rs:112:37 [INFO] [stdout] | [INFO] [stdout] 112 | fn function_name(parameter_list) -> return_type { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0592]: duplicate definitions with name `area` [INFO] [stdout] --> src/main.rs:161:18 [INFO] [stdout] | [INFO] [stdout] 161 | impl Rectangle { fn area(&self) -> u32 { self.width * self.height } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ duplicate definitions for `area` [INFO] [stdout] ... [INFO] [stdout] 173 | impl Rectangle { fn area(&self) -> u32 { self.width * self.height } [INFO] [stdout] | --------------------- other definition for `area` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0592]: duplicate definitions with name `area` [INFO] [stdout] --> src/main.rs:161:18 [INFO] [stdout] | [INFO] [stdout] 161 | impl Rectangle { fn area(&self) -> u32 { self.width * self.height } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ duplicate definitions for `area` [INFO] [stdout] ... [INFO] [stdout] 173 | impl Rectangle { fn area(&self) -> u32 { self.width * self.height } [INFO] [stdout] | --------------------- other definition for `area` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> src/main.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | let item: &str = "mango"; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> src/main.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | let item: &str = "mango"; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0428, E0592. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0428, E0592. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `hello` (bin "hello") due to 7 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `hello` (bin "hello" test) due to 7 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "671e03a839b3596209120f0e465e18964cd81ca46f5906543caeccb504fb7236", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "671e03a839b3596209120f0e465e18964cd81ca46f5906543caeccb504fb7236", kill_on_drop: false }` [INFO] [stdout] 671e03a839b3596209120f0e465e18964cd81ca46f5906543caeccb504fb7236