[INFO] updating cached repository smarion2/Hal-Ai [INFO] running `"git" "fetch" "--all"` [INFO] [stdout] Fetching origin [INFO] [stderr] From git://github.com/smarion2/Hal-Ai [INFO] [stderr] * branch HEAD -> FETCH_HEAD [INFO] running `"git" "clone" "work/cache/sources/gh/smarion2/Hal-Ai" "work/ex/beta-1.38-1/sources/1.37.0/gh/smarion2/Hal-Ai"` [INFO] [stderr] Cloning into 'work/ex/beta-1.38-1/sources/1.37.0/gh/smarion2/Hal-Ai'... [INFO] [stderr] done. [INFO] running `"git" "clone" "work/cache/sources/gh/smarion2/Hal-Ai" "work/ex/beta-1.38-1/sources/beta-2019-08-13/gh/smarion2/Hal-Ai"` [INFO] [stderr] Cloning into 'work/ex/beta-1.38-1/sources/beta-2019-08-13/gh/smarion2/Hal-Ai'... [INFO] [stderr] done. [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] d4af0edcc5786e911398844b5a1c56585904285b [INFO] sha for GitHub repo smarion2/Hal-Ai: d4af0edcc5786e911398844b5a1c56585904285b [INFO] validating manifest of smarion2/Hal-Ai on toolchain 1.37.0 [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+1.37.0" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] validating manifest of smarion2/Hal-Ai on toolchain beta-2019-08-13 [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+beta-2019-08-13" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started frobbing smarion2/Hal-Ai [INFO] finished frobbing smarion2/Hal-Ai [INFO] frobbed toml for smarion2/Hal-Ai written to work/ex/beta-1.38-1/sources/1.37.0/gh/smarion2/Hal-Ai/Cargo.toml [INFO] started frobbing smarion2/Hal-Ai [INFO] finished frobbing smarion2/Hal-Ai [INFO] frobbed toml for smarion2/Hal-Ai written to work/ex/beta-1.38-1/sources/beta-2019-08-13/gh/smarion2/Hal-Ai/Cargo.toml [INFO] crate smarion2/Hal-Ai already has a lockfile, it will not be regenerated [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+1.37.0" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+beta-2019-08-13" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] testing smarion2/Hal-Ai against 1.37.0 for beta-1.38-1 [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/beta-1.38-1/worker-1/1.37.0:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/beta-1.38-1/sources/1.37.0/gh/smarion2/Hal-Ai:/opt/crater/workdir:ro,Z" "-v" "/mnt/big/crater/work/local/cargo-home:/opt/crater/cargo-home:ro,Z" "-v" "/mnt/big/crater/work/local/rustup-home:/opt/crater/rustup-home:ro,Z" "-e" "USER_ID=1000" "-e" "SOURCE_DIR=/opt/crater/workdir" "-e" "MAP_USER_ID=1000" "-e" "CARGO_TARGET_DIR=/opt/crater/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/crater/cargo-home" "-e" "RUSTUP_HOME=/opt/crater/rustup-home" "-w" "/opt/crater/workdir" "-m" "1536M" "--network" "none" "rustops/crates-build-env" "/opt/crater/cargo-home/bin/cargo" "+1.37.0" "build" "--frozen"` [INFO] [stdout] c4629af215c66c4a5e0313025d1fddb38ead7badb99e44cdb6c4a2b1a87ec2b1 [INFO] running `"docker" "start" "-a" "c4629af215c66c4a5e0313025d1fddb38ead7badb99e44cdb6c4a2b1a87ec2b1"` [INFO] [stderr] Compiling my_bot v0.1.0 (/opt/crater/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 one of `.`, `;`, `?`, `else`, or an operator, found `}` [INFO] [stderr] --> src/hlt/game_map.rs:152:9 [INFO] [stderr] | [INFO] [stderr] 151 | 4i32) [INFO] [stderr] | - expected one of `.`, `;`, `?`, `else`, or an operator 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`, `existential`, `extern`, `fn`, `pub`, `type`, `unsafe`, or `}`, found `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] 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 `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`, `existential`, `extern`, `fn`, `pub`, `type`, `unsafe`, or `}`, found `else` [INFO] [stderr] --> src/hlt/game_map.rs:154:11 [INFO] [stderr] | [INFO] [stderr] 154 | } else { [INFO] [stderr] | ^^^^ expected one of 11 possible tokens here [INFO] [stderr] [INFO] [stderr] error: expected one of `async`, `const`, `crate`, `default`, `existential`, `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 11 possible tokens here [INFO] [stderr] [INFO] [stderr] error: expected one of `async`, `const`, `crate`, `default`, `existential`, `extern`, `fn`, `pub`, `type`, `unsafe`, or `}`, found `for` [INFO] [stderr] --> src/hlt/game_map.rs:157:9 [INFO] [stderr] | [INFO] [stderr] 156 | }; [INFO] [stderr] | - expected one of 11 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`, `existential`, `extern`, `fn`, `pub`, `type`, `unsafe`, or `}`, found `let` [INFO] [stderr] --> src/hlt/game_map.rs:172:9 [INFO] [stderr] | [INFO] [stderr] 171 | } [INFO] [stderr] | - expected one of 11 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`, `existential`, `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 11 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] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/hlt/game_map.rs:29:38 [INFO] [stderr] | [INFO] [stderr] 29 | pub fn at_entity(&self, entity: &Entity) -> &MapCell { [INFO] [stderr] | ^^^^^^ help: use `dyn`: `dyn Entity` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(bare_trait_objects)] on by default [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/hlt/game_map.rs:33:46 [INFO] [stderr] | [INFO] [stderr] 33 | pub fn at_entity_mut(&mut self, entity: &Entity) -> &mut MapCell { [INFO] [stderr] | ^^^^^^ help: use `dyn`: `dyn Entity` [INFO] [stderr] [INFO] [stderr] error: aborting due to 14 previous errors [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0425`. [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" "c4629af215c66c4a5e0313025d1fddb38ead7badb99e44cdb6c4a2b1a87ec2b1"` [INFO] running `"docker" "rm" "-f" "c4629af215c66c4a5e0313025d1fddb38ead7badb99e44cdb6c4a2b1a87ec2b1"` [INFO] [stdout] c4629af215c66c4a5e0313025d1fddb38ead7badb99e44cdb6c4a2b1a87ec2b1