[INFO] cloning repository https://github.com/smarion2/Hal-Ai [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/smarion2/Hal-Ai" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsmarion2%2FHal-Ai", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsmarion2%2FHal-Ai'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d4af0edcc5786e911398844b5a1c56585904285b [INFO] checking smarion2/Hal-Ai against try#f47dd4da3ae8c32c9e65d307bfe640b143e674df for pr-77526 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsmarion2%2FHal-Ai" "/workspace/builds/worker-13/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-13/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/smarion2/Hal-Ai on toolchain f47dd4da3ae8c32c9e65d307bfe640b143e674df [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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-13/source/Cargo.toml [INFO] crate git repo https://github.com/smarion2/Hal-Ai already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e019d00b4a4bd81d393a10410f88171a5c17d0775ca5a7b992e1e2ccebcd8dbc [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "e019d00b4a4bd81d393a10410f88171a5c17d0775ca5a7b992e1e2ccebcd8dbc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e019d00b4a4bd81d393a10410f88171a5c17d0775ca5a7b992e1e2ccebcd8dbc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e019d00b4a4bd81d393a10410f88171a5c17d0775ca5a7b992e1e2ccebcd8dbc", kill_on_drop: false }` [INFO] [stdout] e019d00b4a4bd81d393a10410f88171a5c17d0775ca5a7b992e1e2ccebcd8dbc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d868dbaad75ea815b070dbe4dd83ce3627a95846422c4d2a279308b4dcab0539 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "d868dbaad75ea815b070dbe4dd83ce3627a95846422c4d2a279308b4dcab0539", kill_on_drop: false }` [INFO] [stderr] Checking rand_core v0.3.0 [INFO] [stderr] Checking rand_core v0.2.2 [INFO] [stderr] Checking rand v0.5.5 [INFO] [stderr] Checking my_bot v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: mismatched closing delimiter: `}` [INFO] [stdout] --> src/hlt/game_map.rs:150:9 [INFO] [stdout] | [INFO] [stdout] 148 | let zone_radius = if self.width < 33 { [INFO] [stdout] | - closing delimiter possibly meant for this [INFO] [stdout] 149 | (3i32 [INFO] [stdout] | - unclosed delimiter [INFO] [stdout] 150 | } else if self.width < 50 { [INFO] [stdout] | ^ mismatched closing delimiter [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: mismatched closing delimiter: `)` [INFO] [stdout] --> src/hlt/game_map.rs:151:17 [INFO] [stdout] | [INFO] [stdout] 150 | } else if self.width < 50 { [INFO] [stdout] | - unclosed delimiter [INFO] [stdout] 151 | 4i32) [INFO] [stdout] | ^ mismatched closing delimiter [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected `;`, found `}` [INFO] [stdout] --> src/hlt/game_map.rs:151:18 [INFO] [stdout] | [INFO] [stdout] 151 | 4i32) [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 152 | } else if self.width < 70 { [INFO] [stdout] | - unexpected token [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-item in item list [INFO] [stdout] --> src/hlt/game_map.rs:152:11 [INFO] [stdout] | [INFO] [stdout] 18 | impl GameMap { [INFO] [stdout] | - item list starts here [INFO] [stdout] ... [INFO] [stdout] 152 | } else if self.width < 70 { [INFO] [stdout] | ^^^^ non-item starts here [INFO] [stdout] ... [INFO] [stdout] 220 | } [INFO] [stdout] | - item list ends here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: mismatched closing delimiter: `}` [INFO] [stdout] --> src/hlt/game_map.rs:150:9 [INFO] [stdout] | [INFO] [stdout] 148 | let zone_radius = if self.width < 33 { [INFO] [stdout] | - closing delimiter possibly meant for this [INFO] [stdout] 149 | (3i32 [INFO] [stdout] | - unclosed delimiter [INFO] [stdout] 150 | } else if self.width < 50 { [INFO] [stdout] | ^ mismatched closing delimiter [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: mismatched closing delimiter: `)` [INFO] [stdout] --> src/hlt/game_map.rs:151:17 [INFO] [stdout] | [INFO] [stdout] 150 | } else if self.width < 50 { [INFO] [stdout] | - unclosed delimiter [INFO] [stdout] 151 | 4i32) [INFO] [stdout] | ^ mismatched closing delimiter [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected `;`, found `}` [INFO] [stdout] --> src/hlt/game_map.rs:151:18 [INFO] [stdout] | [INFO] [stdout] 151 | 4i32) [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 152 | } else if self.width < 70 { [INFO] [stdout] | - unexpected token [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-item in item list [INFO] [stdout] --> src/hlt/game_map.rs:152:11 [INFO] [stdout] | [INFO] [stdout] 18 | impl GameMap { [INFO] [stdout] | - item list starts here [INFO] [stdout] ... [INFO] [stdout] 152 | } else if self.width < 70 { [INFO] [stdout] | ^^^^ non-item starts here [INFO] [stdout] ... [INFO] [stdout] 220 | } [INFO] [stdout] | - item list ends here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `best_dropoffs` in this scope [INFO] [stdout] --> src/main.rs:88:32 [INFO] [stdout] | [INFO] [stdout] 88 | let drop_pos = best_dropoffs[drop_id.parse::().unwrap()]; [INFO] [stdout] | ^^^^^^^^^^^^^ help: a local variable with a similar name exists: `best_dropoff` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `best_dropoffs` in this scope [INFO] [stdout] --> src/main.rs:140:29 [INFO] [stdout] | [INFO] [stdout] 140 | for i in 0..best_dropoffs.len() { [INFO] [stdout] | ^^^^^^^^^^^^^ help: a local variable with a similar name exists: `best_dropoff` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `best_dropoffs` in this scope [INFO] [stdout] --> src/main.rs:141:86 [INFO] [stdout] | [INFO] [stdout] 141 | let distance = game.game_map.calculate_distance(&ship.position, &best_dropoffs[i]); [INFO] [stdout] | ^^^^^^^^^^^^^ help: a local variable with a similar name exists: `best_dropoff` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `hlt::input::Input` [INFO] [stdout] --> src/hlt/game_map.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use hlt::input::Input; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `hlt::map_cell::Structure` [INFO] [stdout] --> src/hlt/game_map.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use hlt::map_cell::Structure; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/hlt/game_map.rs:29:38 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn at_entity(&self, entity: &Entity) -> &MapCell { [INFO] [stdout] | ^^^^^^ help: use `dyn`: `dyn Entity` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/hlt/game_map.rs:33:46 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn at_entity_mut(&mut self, entity: &Entity) -> &mut MapCell { [INFO] [stdout] | ^^^^^^ help: use `dyn`: `dyn Entity` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/hlt/game_map.rs:149:13 [INFO] [stdout] | [INFO] [stdout] 149 | / (3i32 [INFO] [stdout] 150 | | } else if self.width < 50 { [INFO] [stdout] | |_________^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `best_dropoffs` in this scope [INFO] [stdout] --> src/main.rs:88:32 [INFO] [stdout] | [INFO] [stdout] 88 | let drop_pos = best_dropoffs[drop_id.parse::().unwrap()]; [INFO] [stdout] | ^^^^^^^^^^^^^ help: a local variable with a similar name exists: `best_dropoff` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `best_dropoffs` in this scope [INFO] [stdout] --> src/main.rs:140:29 [INFO] [stdout] | [INFO] [stdout] 140 | for i in 0..best_dropoffs.len() { [INFO] [stdout] | ^^^^^^^^^^^^^ help: a local variable with a similar name exists: `best_dropoff` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `best_dropoffs` in this scope [INFO] [stdout] --> src/main.rs:141:86 [INFO] [stdout] | [INFO] [stdout] 141 | let distance = game.game_map.calculate_distance(&ship.position, &best_dropoffs[i]); [INFO] [stdout] | ^^^^^^^^^^^^^ help: a local variable with a similar name exists: `best_dropoff` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `hlt::input::Input` [INFO] [stdout] --> src/hlt/game_map.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use hlt::input::Input; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `hlt::map_cell::Structure` [INFO] [stdout] --> src/hlt/game_map.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use hlt::map_cell::Structure; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/hlt/game_map.rs:29:38 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn at_entity(&self, entity: &Entity) -> &MapCell { [INFO] [stdout] | ^^^^^^ help: use `dyn`: `dyn Entity` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/hlt/game_map.rs:33:46 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn at_entity_mut(&mut self, entity: &Entity) -> &mut MapCell { [INFO] [stdout] | ^^^^^^ help: use `dyn`: `dyn Entity` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/hlt/game_map.rs:149:13 [INFO] [stdout] | [INFO] [stdout] 149 | / (3i32 [INFO] [stdout] 150 | | } else if self.width < 50 { [INFO] [stdout] | |_________^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `generate` found for struct `GameMap` in the current scope [INFO] [stdout] --> src/hlt/game.rs:47:33 [INFO] [stdout] | [INFO] [stdout] 47 | let game_map = GameMap::generate(&mut input); [INFO] [stdout] | ^^^^^^^^ function or associated item not found in `GameMap` [INFO] [stdout] | [INFO] [stdout] ::: src/hlt/game_map.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct GameMap { [INFO] [stdout] | ------------------ function or associated item `generate` not found for this [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `generate`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `rand_core::block::BlockRngCore` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `generate` found for struct `GameMap` in the current scope [INFO] [stdout] --> src/hlt/game.rs:47:33 [INFO] [stdout] | [INFO] [stdout] 47 | let game_map = GameMap::generate(&mut input); [INFO] [stdout] | ^^^^^^^^ function or associated item not found in `GameMap` [INFO] [stdout] | [INFO] [stdout] ::: src/hlt/game_map.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct GameMap { [INFO] [stdout] | ------------------ function or associated item `generate` not found for this [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `generate`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `rand_core::block::BlockRngCore` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `update` found for struct `GameMap` in the current scope [INFO] [stdout] --> src/hlt/game.rs:94:23 [INFO] [stdout] | [INFO] [stdout] 94 | self.game_map.update(input); [INFO] [stdout] | ^^^^^^ method not found in `GameMap` [INFO] [stdout] | [INFO] [stdout] ::: src/hlt/game_map.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct GameMap { [INFO] [stdout] | ------------------ method `update` not found for this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `update` found for struct `GameMap` in the current scope [INFO] [stdout] --> src/hlt/game.rs:94:23 [INFO] [stdout] | [INFO] [stdout] 94 | self.game_map.update(input); [INFO] [stdout] | ^^^^^^ method not found in `GameMap` [INFO] [stdout] | [INFO] [stdout] ::: src/hlt/game_map.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct GameMap { [INFO] [stdout] | ------------------ method `update` not found for this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0317]: `if` may be missing an `else` clause [INFO] [stdout] --> src/hlt/game_map.rs:150:16 [INFO] [stdout] | [INFO] [stdout] 150 | } else if self.width < 50 { [INFO] [stdout] | ________________^ [INFO] [stdout] 151 | | 4i32) [INFO] [stdout] | |_____________----^ expected `()`, found `i32` [INFO] [stdout] | | [INFO] [stdout] | found here [INFO] [stdout] | [INFO] [stdout] = note: `if` expressions without `else` evaluate to `()` [INFO] [stdout] = help: consider adding an `else` block that evaluates to the expected type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/hlt/game_map.rs:146:49 [INFO] [stdout] | [INFO] [stdout] 146 | pub fn find_suitable_dropoffs(&mut self) -> Position { [INFO] [stdout] | ---------------------- ^^^^^^^^ expected struct `Position`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0317]: `if` may be missing an `else` clause [INFO] [stdout] --> src/hlt/game_map.rs:150:16 [INFO] [stdout] | [INFO] [stdout] 150 | } else if self.width < 50 { [INFO] [stdout] | ________________^ [INFO] [stdout] 151 | | 4i32) [INFO] [stdout] | |_____________----^ expected `()`, found `i32` [INFO] [stdout] | | [INFO] [stdout] | found here [INFO] [stdout] | [INFO] [stdout] = note: `if` expressions without `else` evaluate to `()` [INFO] [stdout] = help: consider adding an `else` block that evaluates to the expected type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/hlt/game_map.rs:146:49 [INFO] [stdout] | [INFO] [stdout] 146 | pub fn find_suitable_dropoffs(&mut self) -> Position { [INFO] [stdout] | ---------------------- ^^^^^^^^ expected struct `Position`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 11 previous errors; 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0317, E0425, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 11 previous errors; 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0317, E0425, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `my_bot` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "d868dbaad75ea815b070dbe4dd83ce3627a95846422c4d2a279308b4dcab0539", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d868dbaad75ea815b070dbe4dd83ce3627a95846422c4d2a279308b4dcab0539", kill_on_drop: false }` [INFO] [stdout] d868dbaad75ea815b070dbe4dd83ce3627a95846422c4d2a279308b4dcab0539