[INFO] updating cached repository https://github.com/smarion2/Hal-Ai [INFO] running `"git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune"` [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] d4af0edcc5786e911398844b5a1c56585904285b [INFO] checking smarion2/Hal-Ai against try#5e633973aa9255a88b65a39484627bb54e6044b3 for pr-66063 [INFO] running `"git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsmarion2%2FHal-Ai" "/workspace/builds/worker-7/source"` [INFO] [stderr] Cloning into '/workspace/builds/worker-7/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/smarion2/Hal-Ai on toolchain 5e633973aa9255a88b65a39484627bb54e6044b3 [INFO] running `"/workspace/cargo-home/bin/cargo" "+5e633973aa9255a88b65a39484627bb54e6044b3" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started tweaking git repo https://github.com/smarion2/Hal-Ai [INFO] finished tweaking git repo https://github.com/smarion2/Hal-Ai [INFO] tweaked toml for git repo https://github.com/smarion2/Hal-Ai written to /workspace/builds/worker-7/source/Cargo.toml [INFO] crate git repo https://github.com/smarion2/Hal-Ai already has a lockfile, it will not be regenerated [INFO] running `"/workspace/cargo-home/bin/cargo" "+5e633973aa9255a88b65a39484627bb54e6044b3" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=allow" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+5e633973aa9255a88b65a39484627bb54e6044b3" "check" "--frozen" "--all" "--all-targets"` [INFO] [stdout] 89583ca037c160c0d751fbcea4133d697dd8af86c409e8b3d9065cdefcdc887a [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `"docker" "start" "-a" "89583ca037c160c0d751fbcea4133d697dd8af86c409e8b3d9065cdefcdc887a"` [INFO] [stderr] Checking my_bot v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] error: incorrect close delimiter: `}` [INFO] [stderr] --> src/hlt/game_map.rs:150:9 [INFO] [stderr] | [INFO] [stderr] 148 | let zone_radius = if self.width < 33 { [INFO] [stderr] | - close delimiter possibly meant for this [INFO] [stderr] 149 | (3i32 [INFO] [stderr] | - un-closed delimiter [INFO] [stderr] 150 | } else if self.width < 50 { [INFO] [stderr] | ^ incorrect close delimiter [INFO] [stderr] [INFO] [stderr] error: incorrect close delimiter: `)` [INFO] [stderr] --> src/hlt/game_map.rs:151:17 [INFO] [stderr] | [INFO] [stderr] 150 | } else if self.width < 50 { [INFO] [stderr] | - un-closed delimiter [INFO] [stderr] 151 | 4i32) [INFO] [stderr] | ^ incorrect close delimiter [INFO] [stderr] [INFO] [stderr] error: expected `;`, found ``}`` [INFO] [stderr] --> src/hlt/game_map.rs:151:18 [INFO] [stderr] | [INFO] [stderr] 151 | 4i32) [INFO] [stderr] | ^ help: add `;` here [INFO] [stderr] 152 | } else if self.width < 70 { [INFO] [stderr] | - unexpected token [INFO] [stderr] [INFO] [stderr] error: incorrect close delimiter: `}` [INFO] [stderr] --> src/hlt/game_map.rs:150:9 [INFO] [stderr] | [INFO] [stderr] 148 | let zone_radius = if self.width < 33 { [INFO] [stderr] | - close delimiter possibly meant for this [INFO] [stderr] 149 | (3i32 [INFO] [stderr] | - un-closed delimiter [INFO] [stderr] 150 | } else if self.width < 50 { [INFO] [stderr] | ^ incorrect close delimiter [INFO] [stderr] [INFO] [stderr] error: expected one of `async`, `const`, `crate`, `default`, `extern`, `fn`, `pub`, `type`, `unsafe`, or `}`, found keyword `else` [INFO] [stderr] --> src/hlt/game_map.rs:152:11 [INFO] [stderr] | [INFO] [stderr] 150 | } else if self.width < 50 { [INFO] [stderr] | - unclosed delimiter [INFO] [stderr] 151 | 4i32) [INFO] [stderr] 152 | } else if self.width < 70 { [INFO] [stderr] | -^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: `}` may belong here [INFO] [stderr] [INFO] [stderr] error: expected identifier, found keyword `else` [INFO] [stderr] --> src/hlt/game_map.rs:152:11 [INFO] [stderr] | [INFO] [stderr] 152 | } else if self.width < 70 { [INFO] [stderr] | ^^^^ expected identifier, found keyword [INFO] [stderr] | [INFO] [stderr] help: you can escape reserved keywords to use them as identifiers [INFO] [stderr] | [INFO] [stderr] 152 | } r#else if self.width < 70 { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] error: expected one of `(` or `<`, found keyword `if` [INFO] [stderr] --> src/hlt/game_map.rs:152:16 [INFO] [stderr] | [INFO] [stderr] 152 | } else if self.width < 70 { [INFO] [stderr] | ^^ expected one of `(` or `<` here [INFO] [stderr] [INFO] [stderr] error: expected one of `async`, `const`, `crate`, `default`, `extern`, `fn`, `pub`, `type`, `unsafe`, or `}`, found keyword `else` [INFO] [stderr] --> src/hlt/game_map.rs:154:11 [INFO] [stderr] | [INFO] [stderr] 154 | } else { [INFO] [stderr] | ^^^^ expected one of 10 possible tokens here [INFO] [stderr] [INFO] [stderr] error: incorrect close delimiter: `)` [INFO] [stderr] --> src/hlt/game_map.rs:151:17 [INFO] [stderr] | [INFO] [stderr] 150 | } else if self.width < 50 { [INFO] [stderr] | - un-closed delimiter [INFO] [stderr] 151 | 4i32) [INFO] [stderr] | ^ incorrect close delimiter [INFO] [stderr] [INFO] [stderr] error: expected one of `async`, `const`, `crate`, `default`, `extern`, `fn`, `pub`, `type`, `unsafe`, or `}`, found `;` [INFO] [stderr] --> src/hlt/game_map.rs:156:10 [INFO] [stderr] | [INFO] [stderr] 156 | }; [INFO] [stderr] | ^ expected one of 10 possible tokens here [INFO] [stderr] [INFO] [stderr] error: expected one of `async`, `const`, `crate`, `default`, `extern`, `fn`, `pub`, `type`, `unsafe`, or `}`, found keyword `for` [INFO] [stderr] --> src/hlt/game_map.rs:157:9 [INFO] [stderr] | [INFO] [stderr] 156 | }; [INFO] [stderr] | - expected one of 10 possible tokens here [INFO] [stderr] 157 | for x in 0..self.width { [INFO] [stderr] | ^^^ unexpected token [INFO] [stderr] [INFO] [stderr] error: expected one of `async`, `const`, `crate`, `default`, `extern`, `fn`, `pub`, `type`, `unsafe`, or `}`, found keyword `let` [INFO] [stderr] --> src/hlt/game_map.rs:172:9 [INFO] [stderr] | [INFO] [stderr] 171 | } [INFO] [stderr] | - expected one of 10 possible tokens here [INFO] [stderr] 172 | let winner = heap.pop(); { [INFO] [stderr] | ^^^ unexpected token [INFO] [stderr] [INFO] [stderr] error: expected `;`, found ``}`` [INFO] [stderr] --> src/hlt/game_map.rs:151:18 [INFO] [stderr] | [INFO] [stderr] 151 | 4i32) [INFO] [stderr] | ^ help: add `;` here [INFO] [stderr] 152 | } else if self.width < 70 { [INFO] [stderr] | - unexpected token [INFO] [stderr] [INFO] [stderr] error: expected one of `async`, `const`, `crate`, `default`, `extern`, `fn`, `pub`, `type`, `unsafe`, or `}`, found `{` [INFO] [stderr] --> src/hlt/game_map.rs:172:34 [INFO] [stderr] | [INFO] [stderr] 172 | let winner = heap.pop(); { [INFO] [stderr] | ^ expected one of 10 possible tokens here [INFO] [stderr] [INFO] [stderr] error: expected one of `async`, `const`, `crate`, `default`, `extern`, `fn`, `pub`, `type`, `unsafe`, or `}`, found keyword `else` [INFO] [stderr] --> src/hlt/game_map.rs:152:11 [INFO] [stderr] | [INFO] [stderr] 150 | } else if self.width < 50 { [INFO] [stderr] | - unclosed delimiter [INFO] [stderr] 151 | 4i32) [INFO] [stderr] 152 | } else if self.width < 70 { [INFO] [stderr] | -^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: `}` may belong here [INFO] [stderr] [INFO] [stderr] error: expected identifier, found keyword `else` [INFO] [stderr] --> src/hlt/game_map.rs:152:11 [INFO] [stderr] | [INFO] [stderr] 152 | } else if self.width < 70 { [INFO] [stderr] | ^^^^ expected identifier, found keyword [INFO] [stderr] | [INFO] [stderr] help: you can escape reserved keywords to use them as identifiers [INFO] [stderr] | [INFO] [stderr] 152 | } r#else if self.width < 70 { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] error: expected one of `(` or `<`, found keyword `if` [INFO] [stderr] --> src/hlt/game_map.rs:152:16 [INFO] [stderr] | [INFO] [stderr] 152 | } else if self.width < 70 { [INFO] [stderr] | ^^ expected one of `(` or `<` here [INFO] [stderr] [INFO] [stderr] error: expected one of `async`, `const`, `crate`, `default`, `extern`, `fn`, `pub`, `type`, `unsafe`, or `}`, found keyword `else` [INFO] [stderr] --> src/hlt/game_map.rs:154:11 [INFO] [stderr] | [INFO] [stderr] 154 | } else { [INFO] [stderr] | ^^^^ expected one of 10 possible tokens here [INFO] [stderr] [INFO] [stderr] error: expected one of `async`, `const`, `crate`, `default`, `extern`, `fn`, `pub`, `type`, `unsafe`, or `}`, found `;` [INFO] [stderr] --> src/hlt/game_map.rs:156:10 [INFO] [stderr] | [INFO] [stderr] 156 | }; [INFO] [stderr] | ^ expected one of 10 possible tokens here [INFO] [stderr] [INFO] [stderr] error: expected one of `async`, `const`, `crate`, `default`, `extern`, `fn`, `pub`, `type`, `unsafe`, or `}`, found keyword `for` [INFO] [stderr] --> src/hlt/game_map.rs:157:9 [INFO] [stderr] | [INFO] [stderr] 156 | }; [INFO] [stderr] | - expected one of 10 possible tokens here [INFO] [stderr] 157 | for x in 0..self.width { [INFO] [stderr] | ^^^ unexpected token [INFO] [stderr] [INFO] [stderr] error: expected one of `async`, `const`, `crate`, `default`, `extern`, `fn`, `pub`, `type`, `unsafe`, or `}`, found keyword `let` [INFO] [stderr] --> src/hlt/game_map.rs:172:9 [INFO] [stderr] | [INFO] [stderr] 171 | } [INFO] [stderr] | - expected one of 10 possible tokens here [INFO] [stderr] 172 | let winner = heap.pop(); { [INFO] [stderr] | ^^^ unexpected token [INFO] [stderr] [INFO] [stderr] error: expected one of `async`, `const`, `crate`, `default`, `extern`, `fn`, `pub`, `type`, `unsafe`, or `}`, found `{` [INFO] [stderr] --> src/hlt/game_map.rs:172:34 [INFO] [stderr] | [INFO] [stderr] 172 | let winner = heap.pop(); { [INFO] [stderr] | ^ expected one of 10 possible tokens here [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `best_dropoffs` in this scope [INFO] [stderr] --> src/main.rs:88:32 [INFO] [stderr] | [INFO] [stderr] 88 | let drop_pos = best_dropoffs[drop_id.parse::().unwrap()]; [INFO] [stderr] | ^^^^^^^^^^^^^ help: a local variable with a similar name exists: `best_dropoff` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `best_dropoffs` in this scope [INFO] [stderr] --> src/main.rs:140:29 [INFO] [stderr] | [INFO] [stderr] 140 | for i in 0..best_dropoffs.len() { [INFO] [stderr] | ^^^^^^^^^^^^^ help: a local variable with a similar name exists: `best_dropoff` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `best_dropoffs` in this scope [INFO] [stderr] --> src/main.rs:141:86 [INFO] [stderr] | [INFO] [stderr] 141 | let distance = game.game_map.calculate_distance(&ship.position, &best_dropoffs[i]); [INFO] [stderr] | ^^^^^^^^^^^^^ help: a local variable with a similar name exists: `best_dropoff` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `best_dropoffs` in this scope [INFO] [stderr] --> src/main.rs:88:32 [INFO] [stderr] | [INFO] [stderr] 88 | let drop_pos = best_dropoffs[drop_id.parse::().unwrap()]; [INFO] [stderr] | ^^^^^^^^^^^^^ help: a local variable with a similar name exists: `best_dropoff` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `best_dropoffs` in this scope [INFO] [stderr] --> src/main.rs:140:29 [INFO] [stderr] | [INFO] [stderr] 140 | for i in 0..best_dropoffs.len() { [INFO] [stderr] | ^^^^^^^^^^^^^ help: a local variable with a similar name exists: `best_dropoff` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `best_dropoffs` in this scope [INFO] [stderr] --> src/main.rs:141:86 [INFO] [stderr] | [INFO] [stderr] 141 | let distance = game.game_map.calculate_distance(&ship.position, &best_dropoffs[i]); [INFO] [stderr] | ^^^^^^^^^^^^^ help: a local variable with a similar name exists: `best_dropoff` [INFO] [stderr] [INFO] [stderr] error[E0317]: if may be missing an else clause [INFO] [stderr] --> src/hlt/game_map.rs:150:16 [INFO] [stderr] | [INFO] [stderr] 150 | } else if self.width < 50 { [INFO] [stderr] | ________________^ [INFO] [stderr] 151 | | 4i32) [INFO] [stderr] | |_____________----^ expected (), found i32 [INFO] [stderr] | | [INFO] [stderr] | found here [INFO] [stderr] | [INFO] [stderr] = note: expected type `()` [INFO] [stderr] found type `i32` [INFO] [stderr] = note: `if` expressions without `else` evaluate to `()` [INFO] [stderr] = help: consider adding an `else` block that evaluates to the expected type [INFO] [stderr] [INFO] [stderr] error[E0317]: if may be missing an else clause [INFO] [stderr] --> src/hlt/game_map.rs:150:16 [INFO] [stderr] | [INFO] [stderr] 150 | } else if self.width < 50 { [INFO] [stderr] | ________________^ [INFO] [stderr] 151 | | 4i32) [INFO] [stderr] | |_____________----^ expected (), found i32 [INFO] [stderr] | | [INFO] [stderr] | found here [INFO] [stderr] | [INFO] [stderr] = note: expected type `()` [INFO] [stderr] found type `i32` [INFO] [stderr] = note: `if` expressions without `else` evaluate to `()` [INFO] [stderr] = help: consider adding an `else` block that evaluates to the expected type [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/hlt/game_map.rs:146:49 [INFO] [stderr] | [INFO] [stderr] 146 | pub fn find_suitable_dropoffs(&mut self) -> Position { [INFO] [stderr] | ---------------------- ^^^^^^^^ expected struct `hlt::position::Position`, found () [INFO] [stderr] | | [INFO] [stderr] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stderr] | [INFO] [stderr] = note: expected type `hlt::position::Position` [INFO] [stderr] found type `()` [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/hlt/game_map.rs:146:49 [INFO] [stderr] | [INFO] [stderr] 146 | pub fn find_suitable_dropoffs(&mut self) -> Position { [INFO] [stderr] | ---------------------- ^^^^^^^^ expected struct `hlt::position::Position`, found () [INFO] [stderr] | | [INFO] [stderr] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stderr] | [INFO] [stderr] = note: expected type `hlt::position::Position` [INFO] [stderr] found type `()` [INFO] [stderr] [INFO] [stderr] error: aborting due to 16 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0308, E0317, E0425. [INFO] [stderr] For more information about an error, try `rustc --explain E0308`. [INFO] [stderr] error: aborting due to 16 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0308, E0317, E0425. [INFO] [stderr] For more information about an error, try `rustc --explain E0308`. [INFO] [stderr] error: could not compile `my_bot`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `my_bot`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "89583ca037c160c0d751fbcea4133d697dd8af86c409e8b3d9065cdefcdc887a"` [INFO] running `"docker" "rm" "-f" "89583ca037c160c0d751fbcea4133d697dd8af86c409e8b3d9065cdefcdc887a"` [INFO] [stdout] 89583ca037c160c0d751fbcea4133d697dd8af86c409e8b3d9065cdefcdc887a