[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#bca37a20bd376ce3fd138e7cdee7fe704e0f8814 for pr-139493-3
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsamwho%2Flux-ai-2021" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'...
[INFO] [stderr] done.
[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-3-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/samwho/lux-ai-2021 on toolchain bca37a20bd376ce3fd138e7cdee7fe704e0f8814
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+bca37a20bd376ce3fd138e7cdee7fe704e0f8814" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[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" "+bca37a20bd376ce3fd138e7cdee7fe704e0f8814" "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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+bca37a20bd376ce3fd138e7cdee7fe704e0f8814" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] c313be9df7eda4db1fc890e662f4cd5013b3fc6982bcf1ee7280a11816797df5
[INFO] running `Command { std: "docker" "start" "-a" "c313be9df7eda4db1fc890e662f4cd5013b3fc6982bcf1ee7280a11816797df5", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "c313be9df7eda4db1fc890e662f4cd5013b3fc6982bcf1ee7280a11816797df5", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "c313be9df7eda4db1fc890e662f4cd5013b3fc6982bcf1ee7280a11816797df5", kill_on_drop: false }`
[INFO] [stdout] c313be9df7eda4db1fc890e662f4cd5013b3fc6982bcf1ee7280a11816797df5
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+bca37a20bd376ce3fd138e7cdee7fe704e0f8814" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] a2c2769430d148df4bb9dfa59b0cf016ef6bf8adf3d656115fdb16d0ff32421b
[INFO] running `Command { std: "docker" "start" "-a" "a2c2769430d148df4bb9dfa59b0cf016ef6bf8adf3d656115fdb16d0ff32421b", 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 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]    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] [stderr]     Checking lux-bot v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused imports: `Annotate` and `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)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Annotate` and `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)]` (part of `#[warn(unused)]`) 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<Option<Action>> { return Ok(None) }
[INFO] [stdout]     |                             ^^^^ help: if this is intentional, prefix it with an underscore: `_cart`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) 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<i32> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing
[INFO] [stdout]   --> src/main.rs:74:24
[INFO] [stdout]    |
[INFO] [stdout] 74 |     fn closest_city_to(&self, pos: &Position) -> Option<Ref<CityTile>> {
[INFO] [stdout]    |                        ^^^^^                            ^^^^^^^^^^^^^ the same lifetime is hidden here
[INFO] [stdout]    |                        |
[INFO] [stdout]    |                        the lifetime is elided here
[INFO] [stdout]    |
[INFO] [stdout]    = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stdout]    = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default
[INFO] [stdout] help: use `'_` for type paths
[INFO] [stdout]    |
[INFO] [stdout] 74 |     fn closest_city_to(&self, pos: &Position) -> Option<Ref<'_, CityTile>> {
[INFO] [stdout]    |                                                             +++
[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<Option<Action>> { return Ok(None) }
[INFO] [stdout]     |                             ^^^^ help: if this is intentional, prefix it with an underscore: `_cart`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) 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<i32> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing
[INFO] [stdout]   --> src/main.rs:74:24
[INFO] [stdout]    |
[INFO] [stdout] 74 |     fn closest_city_to(&self, pos: &Position) -> Option<Ref<CityTile>> {
[INFO] [stdout]    |                        ^^^^^                            ^^^^^^^^^^^^^ the same lifetime is hidden here
[INFO] [stdout]    |                        |
[INFO] [stdout]    |                        the lifetime is elided here
[INFO] [stdout]    |
[INFO] [stdout]    = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stdout]    = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default
[INFO] [stdout] help: use `'_` for type paths
[INFO] [stdout]    |
[INFO] [stdout] 74 |     fn closest_city_to(&self, pos: &Position) -> Option<Ref<'_, CityTile>> {
[INFO] [stdout]    |                                                             +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 12.60s
[INFO] running `Command { std: "docker" "inspect" "a2c2769430d148df4bb9dfa59b0cf016ef6bf8adf3d656115fdb16d0ff32421b", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "a2c2769430d148df4bb9dfa59b0cf016ef6bf8adf3d656115fdb16d0ff32421b", kill_on_drop: false }`
[INFO] [stdout] a2c2769430d148df4bb9dfa59b0cf016ef6bf8adf3d656115fdb16d0ff32421b
