[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 try#173780a87744406b7489b28349c0176f14bb3881 for pr-135841 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKBeKind%2Frust-basics" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/KBeKind/rust-basics on toolchain 173780a87744406b7489b28349c0176f14bb3881 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+173780a87744406b7489b28349c0176f14bb3881" "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-1-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" "+173780a87744406b7489b28349c0176f14bb3881" "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-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:c80049f3b88b82089a44e0f06d0d6029d44b96b7257e55a1cd63dbc9f4c33334" "/opt/rustwide/cargo-home/bin/cargo" "+173780a87744406b7489b28349c0176f14bb3881" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0ab07f5f43a8da6b50f8af04126120755348edc7fc67e0673361804a0acdeb5d [INFO] running `Command { std: "docker" "start" "-a" "0ab07f5f43a8da6b50f8af04126120755348edc7fc67e0673361804a0acdeb5d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0ab07f5f43a8da6b50f8af04126120755348edc7fc67e0673361804a0acdeb5d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0ab07f5f43a8da6b50f8af04126120755348edc7fc67e0673361804a0acdeb5d", kill_on_drop: false }` [INFO] [stdout] 0ab07f5f43a8da6b50f8af04126120755348edc7fc67e0673361804a0acdeb5d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:c80049f3b88b82089a44e0f06d0d6029d44b96b7257e55a1cd63dbc9f4c33334" "/opt/rustwide/cargo-home/bin/cargo" "+173780a87744406b7489b28349c0176f14bb3881" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 782b3f2b577cbf3144b51ab237a6b8daac76171a6c72f40a1474913b3c9155c3 [INFO] running `Command { std: "docker" "start" "-a" "782b3f2b577cbf3144b51ab237a6b8daac76171a6c72f40a1474913b3c9155c3", 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 `{` and any tokens following [INFO] [stdout] --> /rustc/173780a87744406b7489b28349c0176f14bb3881/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 `{` and any tokens following [INFO] [stdout] --> /rustc/173780a87744406b7489b28349c0176f14bb3881/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] 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] 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 6 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 6 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "782b3f2b577cbf3144b51ab237a6b8daac76171a6c72f40a1474913b3c9155c3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "782b3f2b577cbf3144b51ab237a6b8daac76171a6c72f40a1474913b3c9155c3", kill_on_drop: false }` [INFO] [stdout] 782b3f2b577cbf3144b51ab237a6b8daac76171a6c72f40a1474913b3c9155c3