[INFO] cloning repository https://github.com/r-tutorial-projects/rust-first-steps [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/r-tutorial-projects/rust-first-steps" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fr-tutorial-projects%2Frust-first-steps", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fr-tutorial-projects%2Frust-first-steps'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 588143b279af3c3833cefc59306e7b118f3b440d [INFO] checking r-tutorial-projects/rust-first-steps against master#5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f for pr-87248 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fr-tutorial-projects%2Frust-first-steps" "/workspace/builds/worker-6/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/r-tutorial-projects/rust-first-steps on toolchain 5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/r-tutorial-projects/rust-first-steps [INFO] finished tweaking git repo https://github.com/r-tutorial-projects/rust-first-steps [INFO] tweaked toml for git repo https://github.com/r-tutorial-projects/rust-first-steps written to /workspace/builds/worker-6/source/Cargo.toml [INFO] crate git repo https://github.com/r-tutorial-projects/rust-first-steps already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 501be837cd4d3b6f66ac3f12c55a576b3ff92b36dcbe87e2237031e89bcdce43 [INFO] running `Command { std: "docker" "start" "-a" "501be837cd4d3b6f66ac3f12c55a576b3ff92b36dcbe87e2237031e89bcdce43", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "501be837cd4d3b6f66ac3f12c55a576b3ff92b36dcbe87e2237031e89bcdce43", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "501be837cd4d3b6f66ac3f12c55a576b3ff92b36dcbe87e2237031e89bcdce43", kill_on_drop: false }` [INFO] [stdout] 501be837cd4d3b6f66ac3f12c55a576b3ff92b36dcbe87e2237031e89bcdce43 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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" "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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 528f54a2920071e5bb8f88ef768aaf77ebc073de89fae724bdfdd010569e7b91 [INFO] running `Command { std: "docker" "start" "-a" "528f54a2920071e5bb8f88ef768aaf77ebc073de89fae724bdfdd010569e7b91", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Checking rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: expected one of `!`, `(`, `+`, `::`, `;`, `<`, or `]`, found `,` [INFO] [stdout] --> src/main.rs:20:16 [INFO] [stdout] | [INFO] [stdout] 20 | let a: [i32, 4] = [1, 2, 3, 4]; [INFO] [stdout] | -- ^ expected one of 7 possible tokens [INFO] [stdout] | || [INFO] [stdout] | |help: use `=` if you meant to assign [INFO] [stdout] | while parsing the type for `a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected one of `!`, `(`, `+`, `::`, `;`, `<`, or `]`, found `,` [INFO] [stdout] --> src/main.rs:20:16 [INFO] [stdout] | [INFO] [stdout] 20 | let a: [i32, 4] = [1, 2, 3, 4]; [INFO] [stdout] | -- ^ expected one of 7 possible tokens [INFO] [stdout] | || [INFO] [stdout] | |help: use `=` if you meant to assign [INFO] [stdout] | while parsing the type for `a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found builtin type `i32` [INFO] [stdout] --> src/main.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | let a: [i32, 4] = [1, 2, 3, 4]; [INFO] [stdout] | ^^^ not a value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0532]: expected tuple struct or tuple variant, found struct `Color` [INFO] [stdout] --> src/main.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 70 | / struct Color { [INFO] [stdout] 71 | | red: u8, [INFO] [stdout] 72 | | green: u8, [INFO] [stdout] 73 | | blue: u8, [INFO] [stdout] 74 | | } [INFO] [stdout] | |_____- `Color` defined here [INFO] [stdout] ... [INFO] [stdout] 78 | struct EColor(u8, u8, u8); [INFO] [stdout] | -------------------------- similarly named tuple struct `EColor` defined here [INFO] [stdout] 79 | let Color(r, g, b) = EColor(0, 0, 0); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: use struct pattern syntax instead [INFO] [stdout] | [INFO] [stdout] 79 | let Color { red, green, blue } = EColor(0, 0, 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: a tuple struct with a similar name exists [INFO] [stdout] | [INFO] [stdout] 79 | let EColor(r, g, b) = EColor(0, 0, 0); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: destructuring assignments are unstable [INFO] [stdout] --> src/main.rs:20:21 [INFO] [stdout] | [INFO] [stdout] 20 | let a: [i32, 4] = [1, 2, 3, 4]; [INFO] [stdout] | -------- ^ [INFO] [stdout] | | [INFO] [stdout] | cannot assign to this expression [INFO] [stdout] | [INFO] [stdout] = note: see issue #71126 for more information [INFO] [stdout] = help: add `#![feature(destructuring_assignment)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found builtin type `i32` [INFO] [stdout] --> src/main.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | let a: [i32, 4] = [1, 2, 3, 4]; [INFO] [stdout] | ^^^ not a value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0532]: expected tuple struct or tuple variant, found struct `Color` [INFO] [stdout] --> src/main.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 70 | / struct Color { [INFO] [stdout] 71 | | red: u8, [INFO] [stdout] 72 | | green: u8, [INFO] [stdout] 73 | | blue: u8, [INFO] [stdout] 74 | | } [INFO] [stdout] | |_____- `Color` defined here [INFO] [stdout] ... [INFO] [stdout] 78 | struct EColor(u8, u8, u8); [INFO] [stdout] | -------------------------- similarly named tuple struct `EColor` defined here [INFO] [stdout] 79 | let Color(r, g, b) = EColor(0, 0, 0); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: use struct pattern syntax instead [INFO] [stdout] | [INFO] [stdout] 79 | let Color { red, green, blue } = EColor(0, 0, 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: a tuple struct with a similar name exists [INFO] [stdout] | [INFO] [stdout] 79 | let EColor(r, g, b) = EColor(0, 0, 0); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: destructuring assignments are unstable [INFO] [stdout] --> src/main.rs:20:21 [INFO] [stdout] | [INFO] [stdout] 20 | let a: [i32, 4] = [1, 2, 3, 4]; [INFO] [stdout] | -------- ^ [INFO] [stdout] | | [INFO] [stdout] | cannot assign to this expression [INFO] [stdout] | [INFO] [stdout] = note: see issue #71126 for more information [INFO] [stdout] = help: add `#![feature(destructuring_assignment)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0527]: pattern requires 2 elements but array has 4 [INFO] [stdout] --> src/main.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | let a: [i32, 4] = [1, 2, 3, 4]; [INFO] [stdout] | ^^^^^^^^ expected 4 elements [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0070]: invalid left-hand side of assignment [INFO] [stdout] --> src/main.rs:20:21 [INFO] [stdout] | [INFO] [stdout] 20 | let a: [i32, 4] = [1, 2, 3, 4]; [INFO] [stdout] | - ^ [INFO] [stdout] | | [INFO] [stdout] | cannot assign to this expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0527]: pattern requires 2 elements but array has 4 [INFO] [stdout] --> src/main.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | let a: [i32, 4] = [1, 2, 3, 4]; [INFO] [stdout] | ^^^^^^^^ expected 4 elements [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0070]: invalid left-hand side of assignment [INFO] [stdout] --> src/main.rs:20:21 [INFO] [stdout] | [INFO] [stdout] 20 | let a: [i32, 4] = [1, 2, 3, 4]; [INFO] [stdout] | - ^ [INFO] [stdout] | | [INFO] [stdout] | cannot assign to this expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:21:21 [INFO] [stdout] | [INFO] [stdout] 21 | let b: &[i32] = &a; [INFO] [stdout] | ------ ^^ expected slice `[i32]`, found `()` [INFO] [stdout] | | [INFO] [stdout] | expected due to this [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&[i32]` [INFO] [stdout] found reference `&()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0608]: cannot index into a value of type `()` [INFO] [stdout] --> src/main.rs:22:14 [INFO] [stdout] | [INFO] [stdout] 22 | let c = &a[0..4]; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: to access tuple elements, use tuple indexing syntax (e.g., `tuple.0`) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0608]: cannot index into a value of type `()` [INFO] [stdout] --> src/main.rs:23:14 [INFO] [stdout] | [INFO] [stdout] 23 | let d = &a[..]; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: to access tuple elements, use tuple indexing syntax (e.g., `tuple.0`) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0608]: cannot index into a value of type `()` [INFO] [stdout] --> src/main.rs:24:14 [INFO] [stdout] | [INFO] [stdout] 24 | let e = &a[1..3]; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: to access tuple elements, use tuple indexing syntax (e.g., `tuple.0`) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0608]: cannot index into a value of type `()` [INFO] [stdout] --> src/main.rs:25:14 [INFO] [stdout] | [INFO] [stdout] 25 | let f = &a[1..]; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: to access tuple elements, use tuple indexing syntax (e.g., `tuple.0`) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0608]: cannot index into a value of type `()` [INFO] [stdout] --> src/main.rs:26:14 [INFO] [stdout] | [INFO] [stdout] 26 | let g = &a[..3]; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: to access tuple elements, use tuple indexing syntax (e.g., `tuple.0`) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:21:21 [INFO] [stdout] | [INFO] [stdout] 21 | let b: &[i32] = &a; [INFO] [stdout] | ------ ^^ expected slice `[i32]`, found `()` [INFO] [stdout] | | [INFO] [stdout] | expected due to this [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&[i32]` [INFO] [stdout] found reference `&()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0608]: cannot index into a value of type `()` [INFO] [stdout] --> src/main.rs:22:14 [INFO] [stdout] | [INFO] [stdout] 22 | let c = &a[0..4]; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: to access tuple elements, use tuple indexing syntax (e.g., `tuple.0`) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0608]: cannot index into a value of type `()` [INFO] [stdout] --> src/main.rs:23:14 [INFO] [stdout] | [INFO] [stdout] 23 | let d = &a[..]; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: to access tuple elements, use tuple indexing syntax (e.g., `tuple.0`) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0608]: cannot index into a value of type `()` [INFO] [stdout] --> src/main.rs:24:14 [INFO] [stdout] | [INFO] [stdout] 24 | let e = &a[1..3]; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: to access tuple elements, use tuple indexing syntax (e.g., `tuple.0`) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0608]: cannot index into a value of type `()` [INFO] [stdout] --> src/main.rs:25:14 [INFO] [stdout] | [INFO] [stdout] 25 | let f = &a[1..]; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: to access tuple elements, use tuple indexing syntax (e.g., `tuple.0`) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0608]: cannot index into a value of type `()` [INFO] [stdout] --> src/main.rs:26:14 [INFO] [stdout] | [INFO] [stdout] 26 | let g = &a[..3]; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: to access tuple elements, use tuple indexing syntax (e.g., `tuple.0`) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:66:17 [INFO] [stdout] | [INFO] [stdout] 66 | if a == 0 { continue; } [INFO] [stdout] | ^ expected `()`, found integer [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:66:17 [INFO] [stdout] | [INFO] [stdout] 66 | if a == 0 { continue; } [INFO] [stdout] | ^ expected `()`, found integer [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:67:17 [INFO] [stdout] | [INFO] [stdout] 67 | if a == 2 { break; } [INFO] [stdout] | ^ expected `()`, found integer [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 14 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0070, E0308, E0423, E0527, E0532, E0608, E0658. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0070`. [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:67:17 [INFO] [stdout] | [INFO] [stdout] 67 | if a == 2 { break; } [INFO] [stdout] | ^ expected `()`, found integer [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust` due to 15 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 14 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0070, E0308, E0423, E0527, E0532, E0608, E0658. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0070`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "528f54a2920071e5bb8f88ef768aaf77ebc073de89fae724bdfdd010569e7b91", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "528f54a2920071e5bb8f88ef768aaf77ebc073de89fae724bdfdd010569e7b91", kill_on_drop: false }` [INFO] [stdout] 528f54a2920071e5bb8f88ef768aaf77ebc073de89fae724bdfdd010569e7b91