[INFO] cloning repository https://github.com/avoss19/cli_flappy_bird [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/avoss19/cli_flappy_bird" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Favoss19%2Fcli_flappy_bird", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Favoss19%2Fcli_flappy_bird'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 66d06adaf667803db822bdef13a525f962abbcb6 [INFO] testing avoss19/cli_flappy_bird/66d06adaf667803db822bdef13a525f962abbcb6 against master#8c0ec05f7dc9ef185eea9f36c5638e74e43935bf for pr-130285 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Favoss19%2Fcli_flappy_bird" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/avoss19/cli_flappy_bird on toolchain 8c0ec05f7dc9ef185eea9f36c5638e74e43935bf [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8c0ec05f7dc9ef185eea9f36c5638e74e43935bf" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/avoss19/cli_flappy_bird [INFO] finished tweaking git repo https://github.com/avoss19/cli_flappy_bird [INFO] tweaked toml for git repo https://github.com/avoss19/cli_flappy_bird written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/avoss19/cli_flappy_bird 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" "+8c0ec05f7dc9ef185eea9f36c5638e74e43935bf" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded terminal_size v0.2.5 [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:96c0aa5895ecf336b730ef27bcdde6e21027415df19888aad3cf1448e5d65d90" "/opt/rustwide/cargo-home/bin/cargo" "+8c0ec05f7dc9ef185eea9f36c5638e74e43935bf" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 42b998a84304b00f11f56ad7d7c1600c5840cc711ce098df88d7c87ca760c283 [INFO] running `Command { std: "docker" "start" "-a" "42b998a84304b00f11f56ad7d7c1600c5840cc711ce098df88d7c87ca760c283", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "42b998a84304b00f11f56ad7d7c1600c5840cc711ce098df88d7c87ca760c283", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "42b998a84304b00f11f56ad7d7c1600c5840cc711ce098df88d7c87ca760c283", kill_on_drop: false }` [INFO] [stdout] 42b998a84304b00f11f56ad7d7c1600c5840cc711ce098df88d7c87ca760c283 [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:96c0aa5895ecf336b730ef27bcdde6e21027415df19888aad3cf1448e5d65d90" "/opt/rustwide/cargo-home/bin/cargo" "+8c0ec05f7dc9ef185eea9f36c5638e74e43935bf" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 775f1d3eab1f582cd1d36c52e9e16c7fddffc3a3182feae65a44bf69e1ed171d [INFO] running `Command { std: "docker" "start" "-a" "775f1d3eab1f582cd1d36c52e9e16c7fddffc3a3182feae65a44bf69e1ed171d", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.140 [INFO] [stderr] Compiling pkg-config v0.3.26 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling io-lifetimes v1.0.6 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling rustix v0.36.9 [INFO] [stderr] Compiling linux-raw-sys v0.1.4 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling substring v1.4.5 [INFO] [stderr] Compiling x11 v2.21.0 [INFO] [stderr] Compiling device_query v1.1.3 [INFO] [stderr] Compiling getrandom v0.2.9 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling terminal_size v0.2.5 [INFO] [stderr] Compiling cli_flappy_bird v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/main.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | let c = get_keyboard_input(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `spacing` [INFO] [stdout] --> src/main.rs:148:17 [INFO] [stdout] | [INFO] [stdout] 148 | let spacing = args[args.iter().position(|x| x == &arg).unwrap() + 1] [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_spacing` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:143:9 [INFO] [stdout] | [INFO] [stdout] 143 | let mut debug = false; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:144:9 [INFO] [stdout] | [INFO] [stdout] 144 | let mut no_clear = false; [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: borrow of moved value: `args` [INFO] [stdout] --> src/main.rs:148:27 [INFO] [stdout] | [INFO] [stdout] 141 | let args: Vec = env::args().collect(); [INFO] [stdout] | ---- move occurs because `args` has type `Vec`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 146 | for arg in args { [INFO] [stdout] | ---- `args` moved due to this implicit call to `.into_iter()` [INFO] [stdout] 147 | if arg == "--spacing" { [INFO] [stdout] 148 | let spacing = args[args.iter().position(|x| x == &arg).unwrap() + 1] [INFO] [stdout] | ^^^^ value borrowed here after move [INFO] [stdout] | [INFO] [stdout] note: `into_iter` takes ownership of the receiver `self`, which moves `args` [INFO] [stdout] --> /rustc/8c0ec05f7dc9ef185eea9f36c5638e74e43935bf/library/core/src/iter/traits/collect.rs:346:18 [INFO] [stdout] help: consider iterating over a slice of the `Vec`'s content to avoid moving into the `for` loop [INFO] [stdout] | [INFO] [stdout] 146 | for arg in &args { [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0382`. [INFO] [stdout] [INFO] [stderr] error: could not compile `cli_flappy_bird` (bin "cli_flappy_bird") due to 2 previous errors; 4 warnings emitted [INFO] running `Command { std: "docker" "inspect" "775f1d3eab1f582cd1d36c52e9e16c7fddffc3a3182feae65a44bf69e1ed171d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "775f1d3eab1f582cd1d36c52e9e16c7fddffc3a3182feae65a44bf69e1ed171d", kill_on_drop: false }` [INFO] [stdout] 775f1d3eab1f582cd1d36c52e9e16c7fddffc3a3182feae65a44bf69e1ed171d