[INFO] cloning repository https://github.com/gabrielpetersson/ant-wars-webassembly
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/gabrielpetersson/ant-wars-webassembly" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgabrielpetersson%2Fant-wars-webassembly", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgabrielpetersson%2Fant-wars-webassembly'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] b1d4bd824a96c97a39081cb79e21c6c642cc32ec
[INFO] testing gabrielpetersson/ant-wars-webassembly against 1.69.0 for beta-1.70-1
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgabrielpetersson%2Fant-wars-webassembly" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/gabrielpetersson/ant-wars-webassembly on toolchain 1.69.0
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.69.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/gabrielpetersson/ant-wars-webassembly
[INFO] finished tweaking git repo https://github.com/gabrielpetersson/ant-wars-webassembly
[INFO] tweaked toml for git repo https://github.com/gabrielpetersson/ant-wars-webassembly written to /workspace/builds/worker-0-tc1/source/Cargo.toml
[INFO] crate git repo https://github.com/gabrielpetersson/ant-wars-webassembly 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" "+1.69.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded gloo-storage v0.1.0
[INFO] [stderr]   Downloaded gloo-console v0.1.0
[INFO] [stderr]   Downloaded gloo v0.3.0
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:5ff2268d62e97bff2cde7d5815dd6ed5b47097566f13b8d0ca110b04b60e07ed" "/opt/rustwide/cargo-home/bin/cargo" "+1.69.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] a48039bfdbacc4e8c0eaa690cb36244bb047b38cc6054d0fc9e96b1d198cd87b
[INFO] running `Command { std: "docker" "start" "-a" "a48039bfdbacc4e8c0eaa690cb36244bb047b38cc6054d0fc9e96b1d198cd87b", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "a48039bfdbacc4e8c0eaa690cb36244bb047b38cc6054d0fc9e96b1d198cd87b", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "a48039bfdbacc4e8c0eaa690cb36244bb047b38cc6054d0fc9e96b1d198cd87b", kill_on_drop: false }`
[INFO] [stdout] a48039bfdbacc4e8c0eaa690cb36244bb047b38cc6054d0fc9e96b1d198cd87b
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:5ff2268d62e97bff2cde7d5815dd6ed5b47097566f13b8d0ca110b04b60e07ed" "/opt/rustwide/cargo-home/bin/cargo" "+1.69.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] e28f20715a98c50a613992a4754603d7755542862fec96cc13f984d8a42b7ae1
[INFO] running `Command { std: "docker" "start" "-a" "e28f20715a98c50a613992a4754603d7755542862fec96cc13f984d8a42b7ae1", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.26
[INFO] [stderr]    Compiling unicode-xid v0.2.2
[INFO] [stderr]    Compiling syn v1.0.72
[INFO] [stderr]    Compiling cfg-if v1.0.0
[INFO] [stderr]    Compiling wasm-bindgen-shared v0.2.73
[INFO] [stderr]    Compiling log v0.4.14
[INFO] [stderr]    Compiling serde_derive v1.0.130
[INFO] [stderr]    Compiling bumpalo v3.6.1
[INFO] [stderr]    Compiling lazy_static v1.4.0
[INFO] [stderr]    Compiling ryu v1.0.5
[INFO] [stderr]    Compiling serde v1.0.130
[INFO] [stderr]    Compiling serde_json v1.0.68
[INFO] [stderr]    Compiling wasm-bindgen v0.2.73
[INFO] [stderr]    Compiling itoa v0.4.8
[INFO] [stderr]    Compiling libc v0.2.99
[INFO] [stderr]    Compiling ppv-lite86 v0.2.10
[INFO] [stderr]    Compiling quote v1.0.9
[INFO] [stderr]    Compiling getrandom v0.2.3
[INFO] [stderr]    Compiling rand_core v0.6.3
[INFO] [stderr]    Compiling rand_chacha v0.3.1
[INFO] [stderr]    Compiling rand v0.8.4
[INFO] [stderr]    Compiling nanoid v0.4.0
[INFO] [stderr]    Compiling wasm-bindgen-backend v0.2.73
[INFO] [stderr]    Compiling thiserror-impl v1.0.29
[INFO] [stderr]    Compiling wasm-bindgen-macro-support v0.2.73
[INFO] [stderr]    Compiling wasm-bindgen-macro v0.2.73
[INFO] [stderr]    Compiling thiserror v1.0.29
[INFO] [stderr]    Compiling js-sys v0.3.50
[INFO] [stderr]    Compiling web-sys v0.3.50
[INFO] [stderr]    Compiling gloo-events v0.1.1
[INFO] [stderr]    Compiling gloo-console v0.1.0
[INFO] [stderr]    Compiling gloo-timers v0.2.1
[INFO] [stderr]    Compiling gloo-storage v0.1.0
[INFO] [stderr]    Compiling gloo-dialogs v0.1.0
[INFO] [stderr]    Compiling gloo-render v0.1.0
[INFO] [stderr]    Compiling gloo-file v0.1.0
[INFO] [stderr]    Compiling gloo v0.3.0
[INFO] [stderr]    Compiling ant-wars v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `crate::GameMap`
[INFO] [stdout]  --> src/ant.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use crate::GameMap;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `WALK_TOWARDS_target_id` should have an upper camel case name
[INFO] [stdout]   --> src/ant.rs:23:5
[INFO] [stdout]    |
[INFO] [stdout] 23 |     WALK_TOWARDS_target_id,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `WalkTowardsTargetId`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(non_camel_case_types)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: floating-point types cannot be used in patterns
[INFO] [stdout]    --> src/ant.rs:149:25
[INFO] [stdout]     |
[INFO] [stdout] 149 |                         0.0 => 0.0,
[INFO] [stdout]     |                         ^^^
[INFO] [stdout]     |
[INFO] [stdout]     = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
[INFO] [stdout]     = note: for more information, see issue #41620 <https://github.com/rust-lang/rust/issues/41620>
[INFO] [stdout]     = note: `#[warn(illegal_floating_point_literal_pattern)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: floating-point types cannot be used in patterns
[INFO] [stdout]    --> src/ant.rs:153:25
[INFO] [stdout]     |
[INFO] [stdout] 153 |                         0.0 => 0.0,
[INFO] [stdout]     |                         ^^^
[INFO] [stdout]     |
[INFO] [stdout]     = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
[INFO] [stdout]     = note: for more information, see issue #41620 <https://github.com/rust-lang/rust/issues/41620>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0597]: `map_painter` does not live long enough
[INFO] [stdout]    --> src/lib.rs:90:13
[INFO] [stdout]     |
[INFO] [stdout] 87  |       let cb = Closure::wrap(Box::new(|event: web_sys::KeyboardEvent | { 
[INFO] [stdout]     |                              -        -------------------------------- value captured here
[INFO] [stdout]     |  ____________________________|
[INFO] [stdout]     | |
[INFO] [stdout] 88  | |         web_sys::console::log_1(&event);
[INFO] [stdout] 89  | |         if event.key_code() == 68 {
[INFO] [stdout] 90  | |             map_painter.increment_x_offset(10.0);
[INFO] [stdout]     | |             ^^^^^^^^^^^ borrowed value does not live long enough
[INFO] [stdout] ...   |
[INFO] [stdout] 100 | |         }
[INFO] [stdout] 101 | |     }) as Box<dyn FnMut(_)>);
[INFO] [stdout]     | |______- cast requires that `map_painter` is borrowed for `'static`
[INFO] [stdout] ...
[INFO] [stdout] 158 |   }
[INFO] [stdout]     |   - `map_painter` dropped here while still borrowed
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0505]: cannot move out of `map_painter` because it is borrowed
[INFO] [stdout]    --> src/lib.rs:109:51
[INFO] [stdout]     |
[INFO] [stdout] 87  |       let cb = Closure::wrap(Box::new(|event: web_sys::KeyboardEvent | { 
[INFO] [stdout]     |                              -        -------------------------------- borrow of `map_painter` occurs here
[INFO] [stdout]     |  ____________________________|
[INFO] [stdout]     | |
[INFO] [stdout] 88  | |         web_sys::console::log_1(&event);
[INFO] [stdout] 89  | |         if event.key_code() == 68 {
[INFO] [stdout] 90  | |             map_painter.increment_x_offset(10.0);
[INFO] [stdout]     | |             ----------- borrow occurs due to use in closure
[INFO] [stdout] ...   |
[INFO] [stdout] 100 | |         }
[INFO] [stdout] 101 | |     }) as Box<dyn FnMut(_)>);
[INFO] [stdout]     | |______- cast requires that `map_painter` is borrowed for `'static`
[INFO] [stdout] ...
[INFO] [stdout] 109 |       *g.borrow_mut() = Some(Closure::wrap(Box::new(move || {
[INFO] [stdout]     |                                                     ^^^^^^^ move out of `map_painter` occurs here
[INFO] [stdout] 110 |           map_painter.clear_map();
[INFO] [stdout]     |           ----------- move occurs due to use in closure
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors; 4 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0505, E0597.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0505`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `ant-wars` due to 3 previous errors; 4 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "e28f20715a98c50a613992a4754603d7755542862fec96cc13f984d8a42b7ae1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "e28f20715a98c50a613992a4754603d7755542862fec96cc13f984d8a42b7ae1", kill_on_drop: false }`
[INFO] [stdout] e28f20715a98c50a613992a4754603d7755542862fec96cc13f984d8a42b7ae1
