[INFO] cloning repository https://github.com/andrecharneca/rust-2d-game [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/andrecharneca/rust-2d-game" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fandrecharneca%2Frust-2d-game", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fandrecharneca%2Frust-2d-game'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 71f4e2857c892b023f99ad409672073cae3975e7 [INFO] checking andrecharneca/rust-2d-game against try#987a165cfab916796a8315782b83ac460a651ce2 for pr-145262 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fandrecharneca%2Frust-2d-game" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/andrecharneca/rust-2d-game [INFO] finished tweaking git repo https://github.com/andrecharneca/rust-2d-game [INFO] tweaked toml for git repo https://github.com/andrecharneca/rust-2d-game written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/andrecharneca/rust-2d-game on toolchain 987a165cfab916796a8315782b83ac460a651ce2 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+987a165cfab916796a8315782b83ac460a651ce2" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/andrecharneca/rust-2d-game 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" "+987a165cfab916796a8315782b83ac460a651ce2" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded readkey v0.2.2 [INFO] [stderr] Downloaded device_query v3.0.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+987a165cfab916796a8315782b83ac460a651ce2" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 412f069586a8610af2c16f6bea5ec85ade11f4ecaa63032314d6719ff829ab4b [INFO] running `Command { std: "docker" "start" "-a" "412f069586a8610af2c16f6bea5ec85ade11f4ecaa63032314d6719ff829ab4b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "412f069586a8610af2c16f6bea5ec85ade11f4ecaa63032314d6719ff829ab4b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "412f069586a8610af2c16f6bea5ec85ade11f4ecaa63032314d6719ff829ab4b", kill_on_drop: false }` [INFO] [stdout] 412f069586a8610af2c16f6bea5ec85ade11f4ecaa63032314d6719ff829ab4b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+987a165cfab916796a8315782b83ac460a651ce2" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f34eefeb51502c0f58149d96825b0a8ece06d3d32622fbfa82eeba89a71b92be [INFO] running `Command { std: "docker" "start" "-a" "f34eefeb51502c0f58149d96825b0a8ece06d3d32622fbfa82eeba89a71b92be", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.171 [INFO] [stderr] Compiling pkg-config v0.3.32 [INFO] [stderr] Compiling zerocopy v0.8.24 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling x11 v2.21.0 [INFO] [stderr] Compiling device_query v3.0.1 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking game_test v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `thread::sleep` and `time::Duration` [INFO] [stdout] --> src/main.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{thread::sleep, time::Duration}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Duration` and `Instant` [INFO] [stdout] --> src/game.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | time::{Duration, Instant}, [INFO] [stdout] | ^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `entities::entities::*` [INFO] [stdout] --> src/game.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | entities::entities::*, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `movement` and `screen` [INFO] [stdout] --> src/game.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | movement, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 11 | screen [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `constants::*` [INFO] [stdout] --> src/game.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | constants::*, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::systems::screen::*` [INFO] [stdout] --> src/game.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use crate::systems::screen::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::panic` [INFO] [stdout] --> src/systems/movement.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use core::panic; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RefCell` [INFO] [stdout] --> src/systems/movement.rs:2:17 [INFO] [stdout] | [INFO] [stdout] 2 | use std::cell::{RefCell, Ref, RefMut}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `constants::*`, `entities`, and `utils::*` [INFO] [stdout] --> src/components/components.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{entities, utils::{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 2 | constants::*, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 3 | utils::* [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `any::Any` [INFO] [stdout] --> src/components/components.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | any::Any, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `thread::sleep` and `time::Duration` [INFO] [stdout] --> src/main.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{thread::sleep, time::Duration}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Duration` and `Instant` [INFO] [stdout] --> src/game.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | time::{Duration, Instant}, [INFO] [stdout] | ^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `entities::entities::*` [INFO] [stdout] --> src/game.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | entities::entities::*, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `movement` and `screen` [INFO] [stdout] --> src/game.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | movement, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 11 | screen [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `constants::*` [INFO] [stdout] --> src/game.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | constants::*, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::systems::screen::*` [INFO] [stdout] --> src/game.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use crate::systems::screen::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::panic` [INFO] [stdout] --> src/systems/movement.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use core::panic; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RefCell` [INFO] [stdout] --> src/systems/movement.rs:2:17 [INFO] [stdout] | [INFO] [stdout] 2 | use std::cell::{RefCell, Ref, RefMut}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `constants::*`, `entities`, and `utils::*` [INFO] [stdout] --> src/components/components.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{entities, utils::{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 2 | constants::*, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 3 | utils::* [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `any::Any` [INFO] [stdout] --> src/components/components.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | any::Any, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `input_key` is never read [INFO] [stdout] --> src/systems/movement.rs:30:13 [INFO] [stdout] | [INFO] [stdout] 30 | let mut input_key = Keycode::Q; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `input_key` is never read [INFO] [stdout] --> src/systems/movement.rs:30:13 [INFO] [stdout] | [INFO] [stdout] 30 | let mut input_key = Keycode::Q; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `v_new` [INFO] [stdout] --> src/systems/movement.rs:50:18 [INFO] [stdout] | [INFO] [stdout] 39 | let v_new = match input_key { [INFO] [stdout] | ----- move occurs because `v_new` has type `components::components::Velocity`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 48 | for a in velocities.iter_mut() { [INFO] [stdout] | ------------------------------ inside of this loop [INFO] [stdout] 49 | if let Some(v) = a { [INFO] [stdout] 50 | *v = v_new; [INFO] [stdout] | ^^^^^ value moved here, in previous iteration of loop [INFO] [stdout] | [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 50 | *v = v_new.clone(); [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `v_new` [INFO] [stdout] --> src/systems/movement.rs:50:18 [INFO] [stdout] | [INFO] [stdout] 39 | let v_new = match input_key { [INFO] [stdout] | ----- move occurs because `v_new` has type `components::components::Velocity`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 48 | for a in velocities.iter_mut() { [INFO] [stdout] | ------------------------------ inside of this loop [INFO] [stdout] 49 | if let Some(v) = a { [INFO] [stdout] 50 | *v = v_new; [INFO] [stdout] | ^^^^^ value moved here, in previous iteration of loop [INFO] [stdout] | [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 50 | *v = v_new.clone(); [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0382`. [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0382`. [INFO] [stdout] [INFO] [stderr] error: could not compile `game_test` (bin "game_test" test) due to 1 previous error; 11 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `game_test` (bin "game_test") due to 1 previous error; 11 warnings emitted [INFO] running `Command { std: "docker" "inspect" "f34eefeb51502c0f58149d96825b0a8ece06d3d32622fbfa82eeba89a71b92be", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f34eefeb51502c0f58149d96825b0a8ece06d3d32622fbfa82eeba89a71b92be", kill_on_drop: false }` [INFO] [stdout] f34eefeb51502c0f58149d96825b0a8ece06d3d32622fbfa82eeba89a71b92be