[INFO] cloning repository https://github.com/Tandolf/snek [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Tandolf/snek" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTandolf%2Fsnek", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTandolf%2Fsnek'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e06ee87b522517dea78ec3cdc86e39a30ed1232e [INFO] testing Tandolf/snek against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTandolf%2Fsnek" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Tandolf/snek [INFO] finished tweaking git repo https://github.com/Tandolf/snek [INFO] tweaked toml for git repo https://github.com/Tandolf/snek written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Tandolf/snek on toolchain b83b707f97d809763b7861afa7638871f3339a33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Tandolf/snek 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" "+b83b707f97d809763b7861afa7638871f3339a33" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 65be4624c3c750d6ef38af7850dc5082b445cf197205740dca995756dcaf15f8 [INFO] running `Command { std: "docker" "start" "-a" "65be4624c3c750d6ef38af7850dc5082b445cf197205740dca995756dcaf15f8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "65be4624c3c750d6ef38af7850dc5082b445cf197205740dca995756dcaf15f8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "65be4624c3c750d6ef38af7850dc5082b445cf197205740dca995756dcaf15f8", kill_on_drop: false }` [INFO] [stdout] 65be4624c3c750d6ef38af7850dc5082b445cf197205740dca995756dcaf15f8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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" "+b83b707f97d809763b7861afa7638871f3339a33" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8964f3ac309ff04fe3dda0812b4be61392b2fbff0043c95454c1cbdef77e9bd6 [INFO] running `Command { std: "docker" "start" "-a" "8964f3ac309ff04fe3dda0812b4be61392b2fbff0043c95454c1cbdef77e9bd6", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.93 [INFO] [stderr] Compiling crossbeam-utils v0.8.14 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling getrandom v0.2.2 [INFO] [stderr] Compiling instant v0.1.9 [INFO] [stderr] Compiling crossbeam-queue v0.3.8 [INFO] [stderr] Compiling lock_api v0.4.3 [INFO] [stderr] Compiling crossbeam-epoch v0.9.13 [INFO] [stderr] Compiling crossbeam-channel v0.5.6 [INFO] [stderr] Compiling crossbeam-deque v0.8.2 [INFO] [stderr] Compiling signal-hook-registry v1.3.0 [INFO] [stderr] Compiling mio v0.7.11 [INFO] [stderr] Compiling parking_lot_core v0.8.3 [INFO] [stderr] Compiling rand_core v0.6.2 [INFO] [stderr] Compiling rand_chacha v0.3.0 [INFO] [stderr] Compiling rand v0.8.3 [INFO] [stderr] Compiling parking_lot v0.11.1 [INFO] [stderr] Compiling signal-hook v0.1.17 [INFO] [stderr] Compiling crossbeam v0.8.2 [INFO] [stderr] Compiling crossterm v0.19.0 [INFO] [stderr] Compiling snake v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::io::Write` [INFO] [stdout] --> src/core/gui/window.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::Write; [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 import: `system::System` [INFO] [stdout] --> src/core/game.rs:7:35 [INFO] [stdout] | [INFO] [stdout] 7 | ecs::{simulation::Simulation, system::System}, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/core/system.rs:30:13 [INFO] [stdout] | [INFO] [stdout] 30 | let mut snek = em.borrow_component_mut::(snek_id).unwrap(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/core/system.rs:81:28 [INFO] [stdout] | [INFO] [stdout] 81 | let (velocity, mut position) = em [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `push` is never used [INFO] [stdout] --> src/core/ecs/entities.rs:47:8 [INFO] [stdout] | [INFO] [stdout] 39 | impl Entities { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 47 | fn push(&self, _entity: Entity) -> usize { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `sprite`, `width`, and `height` are never read [INFO] [stdout] --> src/core/component.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 44 | pub struct Debugging { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 50 | sprite: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 51 | width: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 52 | height: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/core/ecs/entitymanager.rs:194:64 [INFO] [stdout] | [INFO] [stdout] 190 | let ptr = manager as *const ComponentManager as *mut ComponentManager; [INFO] [stdout] | ----------------------------------------------------------------- casting happened here [INFO] [stdout] ... [INFO] [stdout] 194 | let manager: &mut ComponentManager = unsafe { transmute(&mut *ptr) }; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: `#[deny(invalid_reference_casting)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `snake` (bin "snake") due to 1 previous error; 6 warnings emitted [INFO] running `Command { std: "docker" "inspect" "8964f3ac309ff04fe3dda0812b4be61392b2fbff0043c95454c1cbdef77e9bd6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8964f3ac309ff04fe3dda0812b4be61392b2fbff0043c95454c1cbdef77e9bd6", kill_on_drop: false }` [INFO] [stdout] 8964f3ac309ff04fe3dda0812b4be61392b2fbff0043c95454c1cbdef77e9bd6