[INFO] cloning repository https://github.com/samwho/lux-ai-2021 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/samwho/lux-ai-2021" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsamwho%2Flux-ai-2021", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsamwho%2Flux-ai-2021'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 05886e4719fc8d1fc421cc4404213a822b28ee7f [INFO] checking samwho/lux-ai-2021 against master#8f359beca4e58bc3ae795a666301a8f47023044c for pr-121545 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsamwho%2Flux-ai-2021" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/samwho/lux-ai-2021 on toolchain 8f359beca4e58bc3ae795a666301a8f47023044c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8f359beca4e58bc3ae795a666301a8f47023044c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/samwho/lux-ai-2021 [INFO] finished tweaking git repo https://github.com/samwho/lux-ai-2021 [INFO] tweaked toml for git repo https://github.com/samwho/lux-ai-2021 written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/samwho/lux-ai-2021 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" "+8f359beca4e58bc3ae795a666301a8f47023044c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: the cargo feature `strip` has been stabilized in the 1.58 release and is no longer necessary to be listed in the manifest [INFO] [stderr] See https://doc.rust-lang.org/nightly/cargo/reference/profiles.html#strip-option for more information about using this feature. [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [ERROR] this task or one of its parent failed! [ERROR] no output for 300 seconds [ERROR] note: run with `RUST_BACKTRACE=1` to display a backtrace. [INFO] checking samwho/lux-ai-2021 against try#7ee76453dd3eae6de6c1351f26482bed63b01beb for pr-121545 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsamwho%2Flux-ai-2021" "/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/samwho/lux-ai-2021 on toolchain 7ee76453dd3eae6de6c1351f26482bed63b01beb [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+7ee76453dd3eae6de6c1351f26482bed63b01beb" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/samwho/lux-ai-2021 [INFO] finished tweaking git repo https://github.com/samwho/lux-ai-2021 [INFO] tweaked toml for git repo https://github.com/samwho/lux-ai-2021 written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/samwho/lux-ai-2021 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" "+7ee76453dd3eae6de6c1351f26482bed63b01beb" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: the cargo feature `strip` has been stabilized in the 1.58 release and is no longer necessary to be listed in the manifest [INFO] [stderr] See https://doc.rust-lang.org/nightly/cargo/reference/profiles.html#strip-option for more information about using this feature. [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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+7ee76453dd3eae6de6c1351f26482bed63b01beb" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e505967d9008f63608a1f7f2148f51ebeed2b1e4eae826ce142216c2f9adab3b [INFO] running `Command { std: "docker" "start" "-a" "e505967d9008f63608a1f7f2148f51ebeed2b1e4eae826ce142216c2f9adab3b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e505967d9008f63608a1f7f2148f51ebeed2b1e4eae826ce142216c2f9adab3b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e505967d9008f63608a1f7f2148f51ebeed2b1e4eae826ce142216c2f9adab3b", kill_on_drop: false }` [INFO] [stdout] e505967d9008f63608a1f7f2148f51ebeed2b1e4eae826ce142216c2f9adab3b [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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+7ee76453dd3eae6de6c1351f26482bed63b01beb" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ac6adf92e4b8d6a586fcf4f1924da74263b52e8a284739b5f24685ba3644c905 [INFO] running `Command { std: "docker" "start" "-a" "ac6adf92e4b8d6a586fcf4f1924da74263b52e8a284739b5f24685ba3644c905", kill_on_drop: false }` [INFO] [stderr] warning: the cargo feature `strip` has been stabilized in the 1.58 release and is no longer necessary to be listed in the manifest [INFO] [stderr] See https://doc.rust-lang.org/nightly/cargo/reference/profiles.html#strip-option for more information about using this feature. [INFO] [stderr] Compiling proc-macro2 v1.0.29 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.80 [INFO] [stderr] Compiling serde_derive v1.0.130 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling serde v1.0.130 [INFO] [stderr] Compiling serde_json v1.0.68 [INFO] [stderr] Checking itoa v0.4.8 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling quote v1.0.10 [INFO] [stderr] Compiling thiserror-impl v1.0.30 [INFO] [stderr] Checking thiserror v1.0.30 [INFO] [stderr] Checking lux-ai-api v3.1.0 (/opt/rustwide/workdir/lux) [INFO] [stdout] warning: the item `fmt` is imported redundantly [INFO] [stdout] --> lux/./src/agent.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fmt; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 2 | [INFO] [stdout] 3 | use crate::*; [INFO] [stdout] | -------- the item `fmt` is already imported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `fmt` is imported redundantly [INFO] [stdout] --> lux/./src/commands.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{fmt, str}; [INFO] [stdout] | ^^^ [INFO] [stdout] 2 | [INFO] [stdout] 3 | use crate::*; [INFO] [stdout] | -------- the item `fmt` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `fmt` is imported redundantly [INFO] [stdout] --> lux/./src/entities/city.rs:1:26 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{cell::RefCell, fmt, rc::Rc}; [INFO] [stdout] | ^^^ [INFO] [stdout] 2 | [INFO] [stdout] 3 | use crate::*; [INFO] [stdout] | -------- the item `fmt` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `fmt` is imported redundantly [INFO] [stdout] --> lux/./src/entities/city_tile.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fmt; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 2 | [INFO] [stdout] 3 | use crate::*; [INFO] [stdout] | -------- the item `fmt` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `From` is imported redundantly [INFO] [stdout] --> lux/./src/entities/game_map.rs:2:21 [INFO] [stdout] | [INFO] [stdout] 2 | convert::{From, Into, TryFrom}, [INFO] [stdout] | ^^^^ [INFO] [stdout] --> /rustc/7ee76453dd3eae6de6c1351f26482bed63b01beb/library/std/src/prelude/mod.rs:129:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `From` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Into` is imported redundantly [INFO] [stdout] --> lux/./src/entities/game_map.rs:2:27 [INFO] [stdout] | [INFO] [stdout] 2 | convert::{From, Into, TryFrom}, [INFO] [stdout] | ^^^^ [INFO] [stdout] --> /rustc/7ee76453dd3eae6de6c1351f26482bed63b01beb/library/std/src/prelude/mod.rs:129:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Into` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `TryFrom` is imported redundantly [INFO] [stdout] --> lux/./src/entities/game_map.rs:2:33 [INFO] [stdout] | [INFO] [stdout] 2 | convert::{From, Into, TryFrom}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] --> /rustc/7ee76453dd3eae6de6c1351f26482bed63b01beb/library/std/src/prelude/mod.rs:129:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `TryFrom` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `fmt` is imported redundantly [INFO] [stdout] --> lux/./src/entities/player.rs:1:33 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, fmt}; [INFO] [stdout] | ^^^ [INFO] [stdout] 2 | [INFO] [stdout] 3 | use crate::*; [INFO] [stdout] | -------- the item `fmt` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `TryFrom` is imported redundantly [INFO] [stdout] --> lux/./src/entities/position.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{convert::{TryFrom, TryInto}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] --> /rustc/7ee76453dd3eae6de6c1351f26482bed63b01beb/library/std/src/prelude/mod.rs:129:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `TryFrom` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `TryInto` is imported redundantly [INFO] [stdout] --> lux/./src/entities/position.rs:1:30 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{convert::{TryFrom, TryInto}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] --> /rustc/7ee76453dd3eae6de6c1351f26482bed63b01beb/library/std/src/prelude/mod.rs:129:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `TryInto` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `fmt` is imported redundantly [INFO] [stdout] --> lux/./src/entities/position.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | fmt}; [INFO] [stdout] | ^^^ [INFO] [stdout] 3 | [INFO] [stdout] 4 | use crate::*; [INFO] [stdout] | -------- the item `fmt` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `fmt` is imported redundantly [INFO] [stdout] --> lux/./src/entities/resource.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{cmp, fmt, str}; [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 5 | use crate::*; [INFO] [stdout] | -------- the item `fmt` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Into` is imported redundantly [INFO] [stdout] --> lux/./src/entities/units.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{convert::{Into, TryFrom}, [INFO] [stdout] | ^^^^ [INFO] [stdout] --> /rustc/7ee76453dd3eae6de6c1351f26482bed63b01beb/library/std/src/prelude/mod.rs:129:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Into` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `TryFrom` is imported redundantly [INFO] [stdout] --> lux/./src/entities/units.rs:1:27 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{convert::{Into, TryFrom}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] --> /rustc/7ee76453dd3eae6de6c1351f26482bed63b01beb/library/std/src/prelude/mod.rs:129:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `TryFrom` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `fmt` is imported redundantly [INFO] [stdout] --> lux/./src/entities/units.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | fmt, [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 8 | use crate::*; [INFO] [stdout] | -------- the item `fmt` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `BufRead` is imported redundantly [INFO] [stdout] --> lux/./src/environment.rs:1:27 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::{prelude::*, BufRead, BufReader, BufWriter}; [INFO] [stdout] | ---------- ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | the item `BufRead` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `fmt` is imported redundantly [INFO] [stdout] --> lux/./src/game_constants.rs:1:33 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, fmt}; [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 6 | use super::*; [INFO] [stdout] | -------- the item `fmt` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking lux-bot v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Annotate`, `LuxAiError` [INFO] [stdout] --> src/main.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | use lux_ai::{Action, Agent, Annotate, Cell, City, CityTile, Commands, Direction::*, Environment, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 4 | LuxAiError, LuxAiResult, Position, Resource, ResourceType::*, Unit, UnitType::*}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Annotate`, `LuxAiError` [INFO] [stdout] --> src/main.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | use lux_ai::{Action, Agent, Annotate, Cell, City, CityTile, Commands, Direction::*, Environment, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 4 | LuxAiError, LuxAiResult, Position, Resource, ResourceType::*, Unit, UnitType::*}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cart` [INFO] [stdout] --> src/main.rs:132:29 [INFO] [stdout] | [INFO] [stdout] 132 | fn turn_cart(&mut self, cart: &Unit) -> LuxAiResult> { return Ok(None) } [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_cart` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_day`, `is_night`, and `turns_until_night` are never used [INFO] [stdout] --> src/main.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 12 | impl Engine { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 23 | fn is_day(&self) -> bool { self.agent.turn % 40 < 30 } [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 24 | [INFO] [stdout] 25 | fn is_night(&self) -> bool { !self.is_day() } [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 26 | [INFO] [stdout] 27 | fn turns_until_night(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cart` [INFO] [stdout] --> src/main.rs:132:29 [INFO] [stdout] | [INFO] [stdout] 132 | fn turn_cart(&mut self, cart: &Unit) -> LuxAiResult> { return Ok(None) } [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_cart` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_day`, `is_night`, and `turns_until_night` are never used [INFO] [stdout] --> src/main.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 12 | impl Engine { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 23 | fn is_day(&self) -> bool { self.agent.turn % 40 < 30 } [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 24 | [INFO] [stdout] 25 | fn is_night(&self) -> bool { !self.is_day() } [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 26 | [INFO] [stdout] 27 | fn turns_until_night(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 14.09s [INFO] running `Command { std: "docker" "inspect" "ac6adf92e4b8d6a586fcf4f1924da74263b52e8a284739b5f24685ba3644c905", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ac6adf92e4b8d6a586fcf4f1924da74263b52e8a284739b5f24685ba3644c905", kill_on_drop: false }` [INFO] [stdout] ac6adf92e4b8d6a586fcf4f1924da74263b52e8a284739b5f24685ba3644c905