[INFO] cloning repository https://github.com/Tubbles/tetroid [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Tubbles/tetroid" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTubbles%2Ftetroid", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTubbles%2Ftetroid'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 13d55094cdf514fd419338786dc2d56b044e7ed2 [INFO] checking Tubbles/tetroid/13d55094cdf514fd419338786dc2d56b044e7ed2 against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTubbles%2Ftetroid" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Tubbles/tetroid on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Tubbles/tetroid [INFO] finished tweaking git repo https://github.com/Tubbles/tetroid [INFO] tweaked toml for git repo https://github.com/Tubbles/tetroid written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Tubbles/tetroid 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" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded sdl2 v0.34.3 [INFO] [stderr] Downloaded sdl2-sys v0.34.3 [INFO] [stderr] Downloaded libc v0.2.90 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d32d4e13d95bba3b371cb0892df1a5c9e45e04a43a8935ac4303010c83b2a9b5 [INFO] running `Command { std: "docker" "start" "-a" "d32d4e13d95bba3b371cb0892df1a5c9e45e04a43a8935ac4303010c83b2a9b5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d32d4e13d95bba3b371cb0892df1a5c9e45e04a43a8935ac4303010c83b2a9b5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d32d4e13d95bba3b371cb0892df1a5c9e45e04a43a8935ac4303010c83b2a9b5", kill_on_drop: false }` [INFO] [stdout] d32d4e13d95bba3b371cb0892df1a5c9e45e04a43a8935ac4303010c83b2a9b5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 10f3dc605ab161757533b13250577a8759875bf382b76e6892dc208732028664 [INFO] running `Command { std: "docker" "start" "-a" "10f3dc605ab161757533b13250577a8759875bf382b76e6892dc208732028664", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.90 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling version-compare v0.0.10 [INFO] [stderr] Compiling sdl2 v0.34.3 [INFO] [stderr] Checking unicode-width v0.1.8 [INFO] [stderr] Checking yaml-rust v0.3.5 [INFO] [stderr] Checking ansi_term v0.11.0 [INFO] [stderr] Checking strsim v0.8.0 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Compiling sdl2-sys v0.34.3 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking clap v2.33.3 [INFO] [stderr] Checking tetroid v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0499]: cannot borrow `*canvas` as mutable more than once at a time [INFO] [stdout] --> src/res.rs:47:33 [INFO] [stdout] | [INFO] [stdout] 15 | canvas: &mut Canvas, [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 47 | cache_pixel_texture(canvas, &texture_creator, col.1, pixel_size)?, [INFO] [stdout] | ^^^^^^ `*canvas` was mutably borrowed here in the previous iteration of the loop [INFO] [stdout] ... [INFO] [stdout] 51 | Ok((ttf_atlas, texture_creator, pixel_altas)) [INFO] [stdout] | --------------------------------------------- returning this value requires that `*canvas` is borrowed for `'1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*canvas` as mutable more than once at a time [INFO] [stdout] --> src/res.rs:47:33 [INFO] [stdout] | [INFO] [stdout] 15 | canvas: &mut Canvas, [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 47 | cache_pixel_texture(canvas, &texture_creator, col.1, pixel_size)?, [INFO] [stdout] | ^^^^^^ `*canvas` was mutably borrowed here in the previous iteration of the loop [INFO] [stdout] ... [INFO] [stdout] 51 | Ok((ttf_atlas, texture_creator, pixel_altas)) [INFO] [stdout] | --------------------------------------------- returning this value requires that `*canvas` is borrowed for `'1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing local variable `texture_creator` [INFO] [stdout] --> src/res.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 47 | cache_pixel_texture(canvas, &texture_creator, col.1, pixel_size)?, [INFO] [stdout] | ---------------- `texture_creator` is borrowed here [INFO] [stdout] ... [INFO] [stdout] 51 | Ok((ttf_atlas, texture_creator, pixel_altas)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ returns a value referencing data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing local variable `texture_creator` [INFO] [stdout] --> src/res.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 47 | cache_pixel_texture(canvas, &texture_creator, col.1, pixel_size)?, [INFO] [stdout] | ---------------- `texture_creator` is borrowed here [INFO] [stdout] ... [INFO] [stdout] 51 | Ok((ttf_atlas, texture_creator, pixel_altas)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ returns a value referencing data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing local variable `ttf_context` [INFO] [stdout] --> src/res.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 32 | ttf_context.load_font(Path::new(ttf.1), 44)?, [INFO] [stdout] | ----------- `ttf_context` is borrowed here [INFO] [stdout] ... [INFO] [stdout] 51 | Ok((ttf_atlas, texture_creator, pixel_altas)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ returns a value referencing data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing local variable `ttf_context` [INFO] [stdout] --> src/res.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 32 | ttf_context.load_font(Path::new(ttf.1), 44)?, [INFO] [stdout] | ----------- `ttf_context` is borrowed here [INFO] [stdout] ... [INFO] [stdout] 51 | Ok((ttf_atlas, texture_creator, pixel_altas)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ returns a value referencing data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0505]: cannot move out of `texture_creator` because it is borrowed [INFO] [stdout] --> src/res.rs:51:20 [INFO] [stdout] | [INFO] [stdout] 15 | canvas: &mut Canvas, [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 40 | let texture_creator = canvas.texture_creator(); [INFO] [stdout] | --------------- binding `texture_creator` declared here [INFO] [stdout] ... [INFO] [stdout] 47 | cache_pixel_texture(canvas, &texture_creator, col.1, pixel_size)?, [INFO] [stdout] | ---------------- borrow of `texture_creator` occurs here [INFO] [stdout] ... [INFO] [stdout] 51 | Ok((ttf_atlas, texture_creator, pixel_altas)) [INFO] [stdout] | ---------------^^^^^^^^^^^^^^^--------------- [INFO] [stdout] | | | [INFO] [stdout] | | move out of `texture_creator` occurs here [INFO] [stdout] | returning this value requires that `texture_creator` is borrowed for `'1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0505]: cannot move out of `texture_creator` because it is borrowed [INFO] [stdout] --> src/res.rs:51:20 [INFO] [stdout] | [INFO] [stdout] 15 | canvas: &mut Canvas, [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 40 | let texture_creator = canvas.texture_creator(); [INFO] [stdout] | --------------- binding `texture_creator` declared here [INFO] [stdout] ... [INFO] [stdout] 47 | cache_pixel_texture(canvas, &texture_creator, col.1, pixel_size)?, [INFO] [stdout] | ---------------- borrow of `texture_creator` occurs here [INFO] [stdout] ... [INFO] [stdout] 51 | Ok((ttf_atlas, texture_creator, pixel_altas)) [INFO] [stdout] | ---------------^^^^^^^^^^^^^^^--------------- [INFO] [stdout] | | | [INFO] [stdout] | | move out of `texture_creator` occurs here [INFO] [stdout] | returning this value requires that `texture_creator` is borrowed for `'1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `canvas` as mutable more than once at a time [INFO] [stdout] --> src/main.rs:74:10 [INFO] [stdout] | [INFO] [stdout] 67 | let (ttf_atlas, texture_creator, pixel_altas) = init_res_contexts(&mut canvas, PIXEL_SIZE)?; [INFO] [stdout] | ----------- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 74 | draw(&mut canvas, rendq)?; // Initial draw of the canvas [INFO] [stdout] | ^^^^^^^^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 231 | } [INFO] [stdout] | - first borrow might be used here, when `ttf_atlas` is dropped and runs the destructor for type `HashMap>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `canvas` as mutable more than once at a time [INFO] [stdout] --> src/main.rs:74:10 [INFO] [stdout] | [INFO] [stdout] 67 | let (ttf_atlas, texture_creator, pixel_altas) = init_res_contexts(&mut canvas, PIXEL_SIZE)?; [INFO] [stdout] | ----------- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 74 | draw(&mut canvas, rendq)?; // Initial draw of the canvas [INFO] [stdout] | ^^^^^^^^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 231 | } [INFO] [stdout] | - first borrow might be used here, when `ttf_atlas` is dropped and runs the destructor for type `HashMap>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `canvas` as mutable more than once at a time [INFO] [stdout] --> src/main.rs:95:18 [INFO] [stdout] | [INFO] [stdout] 67 | let (ttf_atlas, texture_creator, pixel_altas) = init_res_contexts(&mut canvas, PIXEL_SIZE)?; [INFO] [stdout] | ----------- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 95 | draw(&mut canvas, rendq)?; // Initial draw of the canvas [INFO] [stdout] | ^^^^^^^^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 231 | } [INFO] [stdout] | - first borrow might be used here, when `ttf_atlas` is dropped and runs the destructor for type `HashMap>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `canvas` as mutable more than once at a time [INFO] [stdout] --> src/main.rs:95:18 [INFO] [stdout] | [INFO] [stdout] 67 | let (ttf_atlas, texture_creator, pixel_altas) = init_res_contexts(&mut canvas, PIXEL_SIZE)?; [INFO] [stdout] | ----------- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 95 | draw(&mut canvas, rendq)?; // Initial draw of the canvas [INFO] [stdout] | ^^^^^^^^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 231 | } [INFO] [stdout] | - first borrow might be used here, when `ttf_atlas` is dropped and runs the destructor for type `HashMap>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0499, E0505, E0515. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0499`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0499, E0505, E0515. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0499`. [INFO] [stdout] [INFO] [stderr] error: could not compile `tetroid` (bin "tetroid" test) due to 7 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `tetroid` (bin "tetroid") due to 7 previous errors [INFO] running `Command { std: "docker" "inspect" "10f3dc605ab161757533b13250577a8759875bf382b76e6892dc208732028664", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "10f3dc605ab161757533b13250577a8759875bf382b76e6892dc208732028664", kill_on_drop: false }` [INFO] [stdout] 10f3dc605ab161757533b13250577a8759875bf382b76e6892dc208732028664