[INFO] cloning repository https://github.com/JunkuiZhang/castle_game [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/JunkuiZhang/castle_game" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJunkuiZhang%2Fcastle_game", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJunkuiZhang%2Fcastle_game'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c00e68ae0cb2b2c45707eecfcb6fd8ee066be277 [INFO] checking JunkuiZhang/castle_game against try#d4af306fdd6ab261dfeb0aa57301d08b31b2dd92 for pr-105483 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJunkuiZhang%2Fcastle_game" "/workspace/builds/worker-6/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/JunkuiZhang/castle_game on toolchain d4af306fdd6ab261dfeb0aa57301d08b31b2dd92 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+d4af306fdd6ab261dfeb0aa57301d08b31b2dd92" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/JunkuiZhang/castle_game [INFO] finished tweaking git repo https://github.com/JunkuiZhang/castle_game [INFO] tweaked toml for git repo https://github.com/JunkuiZhang/castle_game written to /workspace/builds/worker-6/source/Cargo.toml [INFO] crate git repo https://github.com/JunkuiZhang/castle_game already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+d4af306fdd6ab261dfeb0aa57301d08b31b2dd92" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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:bb5b0feb4f87116a4ea905b7ff5bf5b85913db05e9f0fbc1abdd3168928d9075" "/opt/rustwide/cargo-home/bin/cargo" "+d4af306fdd6ab261dfeb0aa57301d08b31b2dd92" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 00c00d9060d00a1f71a8c4da4c7b68da608926a8d49b2e4d144cd3bd596980b5 [INFO] running `Command { std: "docker" "start" "-a" "00c00d9060d00a1f71a8c4da4c7b68da608926a8d49b2e4d144cd3bd596980b5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "00c00d9060d00a1f71a8c4da4c7b68da608926a8d49b2e4d144cd3bd596980b5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "00c00d9060d00a1f71a8c4da4c7b68da608926a8d49b2e4d144cd3bd596980b5", kill_on_drop: false }` [INFO] [stdout] 00c00d9060d00a1f71a8c4da4c7b68da608926a8d49b2e4d144cd3bd596980b5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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:bb5b0feb4f87116a4ea905b7ff5bf5b85913db05e9f0fbc1abdd3168928d9075" "/opt/rustwide/cargo-home/bin/cargo" "+d4af306fdd6ab261dfeb0aa57301d08b31b2dd92" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4a7e81b89751e2745454ca956df36f6036df2b05bdbcb2bd6d8310185df28473 [INFO] running `Command { std: "docker" "start" "-a" "4a7e81b89751e2745454ca956df36f6036df2b05bdbcb2bd6d8310185df28473", kill_on_drop: false }` [INFO] [stderr] Compiling sfml-build v0.3.0 [INFO] [stderr] Compiling libc v0.2.71 [INFO] [stderr] Compiling getrandom v0.1.14 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Checking ppv-lite86 v0.2.8 [INFO] [stderr] Checking widestring v0.4.2 [INFO] [stderr] Compiling csfml-system-sys v0.5.0 [INFO] [stderr] Compiling csfml-window-sys v0.5.0 [INFO] [stderr] Compiling csfml-graphics-sys v0.5.0 [INFO] [stderr] Compiling csfml-audio-sys v0.5.0 [INFO] [stderr] Checking sfml v0.15.1 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking castle v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Color` [INFO] [stdout] --> src/game/entity.rs:2:51 [INFO] [stdout] | [INFO] [stdout] 2 | use super::sfml::graphics::{Shape, Transformable, Color, RenderTarget, RectangleShape}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HUMANS_POS_Y` [INFO] [stdout] --> src/game/entity.rs:4:45 [INFO] [stdout] | [INFO] [stdout] 4 | use super::super::settings::{HUMANS_HEIGHT, HUMANS_POS_Y, GROUND_HEIGHT, GROUND_POS_Y, WINDOW_WIDTH, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Vector2` [INFO] [stdout] --> src/game/entity.rs:9:37 [INFO] [stdout] | [INFO] [stdout] 9 | use super::sfml::system::{Vector2f, Vector2}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `EnemyState`, `HumanState` [INFO] [stdout] --> src/game.rs:9:34 [INFO] [stdout] | [INFO] [stdout] 9 | use entity::{Damageable, Entity, HumanState, EnemyState}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Building` [INFO] [stdout] --> src/game.rs:14:27 [INFO] [stdout] | [INFO] [stdout] 14 | use crate::game::entity::{Building, BuildingType}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::intrinsics::transmute` [INFO] [stdout] --> src/game.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use std::intrinsics::transmute; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Index` [INFO] [stdout] --> src/game.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use std::ops::Index; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Color` [INFO] [stdout] --> src/game/entity.rs:2:51 [INFO] [stdout] | [INFO] [stdout] 2 | use super::sfml::graphics::{Shape, Transformable, Color, RenderTarget, RectangleShape}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HUMANS_POS_Y` [INFO] [stdout] --> src/game/entity.rs:4:45 [INFO] [stdout] | [INFO] [stdout] 4 | use super::super::settings::{HUMANS_HEIGHT, HUMANS_POS_Y, GROUND_HEIGHT, GROUND_POS_Y, WINDOW_WIDTH, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Vector2` [INFO] [stdout] --> src/game/entity.rs:9:37 [INFO] [stdout] | [INFO] [stdout] 9 | use super::sfml::system::{Vector2f, Vector2}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `EnemyState`, `HumanState` [INFO] [stdout] --> src/game.rs:9:34 [INFO] [stdout] | [INFO] [stdout] 9 | use entity::{Damageable, Entity, HumanState, EnemyState}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Building` [INFO] [stdout] --> src/game.rs:14:27 [INFO] [stdout] | [INFO] [stdout] 14 | use crate::game::entity::{Building, BuildingType}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::intrinsics::transmute` [INFO] [stdout] --> src/game.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use std::intrinsics::transmute; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Index` [INFO] [stdout] --> src/game.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use std::ops::Index; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0495]: cannot infer an appropriate lifetime for lifetime parameter '_ in generic type due to conflicting requirements [INFO] [stdout] --> src/game/entity.rs:210:5 [INFO] [stdout] | [INFO] [stdout] 210 | fn image(&mut self) -> &'static mut RectangleShape { &mut self.image } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: first, the lifetime cannot outlive the lifetime `'a` as defined here... [INFO] [stdout] --> src/game/entity.rs:209:6 [INFO] [stdout] | [INFO] [stdout] 209 | impl<'a> Entity for Human<'a> { [INFO] [stdout] | ^^ [INFO] [stdout] note: ...so that the reference type `&'static mut sfml::graphics::RectangleShape<'_>` does not outlive the data it points at [INFO] [stdout] --> src/game/entity.rs:210:5 [INFO] [stdout] | [INFO] [stdout] 210 | fn image(&mut self) -> &'static mut RectangleShape { &mut self.image } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: but, the lifetime must be valid for the static lifetime... [INFO] [stdout] note: ...so that the reference type `&'static mut sfml::graphics::RectangleShape<'_>` does not outlive the data it points at [INFO] [stdout] --> src/game/entity.rs:210:5 [INFO] [stdout] | [INFO] [stdout] 210 | fn image(&mut self) -> &'static mut RectangleShape { &mut self.image } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0495]: cannot infer an appropriate lifetime for lifetime parameter '_ in generic type due to conflicting requirements [INFO] [stdout] --> src/game/entity.rs:210:5 [INFO] [stdout] | [INFO] [stdout] 210 | fn image(&mut self) -> &'static mut RectangleShape { &mut self.image } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: first, the lifetime cannot outlive the lifetime `'a` as defined here... [INFO] [stdout] --> src/game/entity.rs:209:6 [INFO] [stdout] | [INFO] [stdout] 209 | impl<'a> Entity for Human<'a> { [INFO] [stdout] | ^^ [INFO] [stdout] note: ...so that the reference type `&'static mut sfml::graphics::RectangleShape<'_>` does not outlive the data it points at [INFO] [stdout] --> src/game/entity.rs:210:5 [INFO] [stdout] | [INFO] [stdout] 210 | fn image(&mut self) -> &'static mut RectangleShape { &mut self.image } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: but, the lifetime must be valid for the static lifetime... [INFO] [stdout] note: ...so that the reference type `&'static mut sfml::graphics::RectangleShape<'_>` does not outlive the data it points at [INFO] [stdout] --> src/game/entity.rs:210:5 [INFO] [stdout] | [INFO] [stdout] 210 | fn image(&mut self) -> &'static mut RectangleShape { &mut self.image } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0495]: cannot infer an appropriate lifetime for lifetime parameter '_ in generic type due to conflicting requirements [INFO] [stdout] --> src/game/entity.rs:394:5 [INFO] [stdout] | [INFO] [stdout] 394 | fn image(&mut self) -> &'static mut RectangleShape { &mut self.image } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: first, the lifetime cannot outlive the lifetime `'a` as defined here... [INFO] [stdout] --> src/game/entity.rs:393:6 [INFO] [stdout] | [INFO] [stdout] 393 | impl<'a> Entity for Enemy<'a> { [INFO] [stdout] | ^^ [INFO] [stdout] note: ...so that the reference type `&'static mut sfml::graphics::RectangleShape<'_>` does not outlive the data it points at [INFO] [stdout] --> src/game/entity.rs:394:5 [INFO] [stdout] | [INFO] [stdout] 394 | fn image(&mut self) -> &'static mut RectangleShape { &mut self.image } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: but, the lifetime must be valid for the static lifetime... [INFO] [stdout] note: ...so that the reference type `&'static mut sfml::graphics::RectangleShape<'_>` does not outlive the data it points at [INFO] [stdout] --> src/game/entity.rs:394:5 [INFO] [stdout] | [INFO] [stdout] 394 | fn image(&mut self) -> &'static mut RectangleShape { &mut self.image } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0495]: cannot infer an appropriate lifetime for lifetime parameter '_ in generic type due to conflicting requirements [INFO] [stdout] --> src/game/entity.rs:394:5 [INFO] [stdout] | [INFO] [stdout] 394 | fn image(&mut self) -> &'static mut RectangleShape { &mut self.image } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: first, the lifetime cannot outlive the lifetime `'a` as defined here... [INFO] [stdout] --> src/game/entity.rs:393:6 [INFO] [stdout] | [INFO] [stdout] 393 | impl<'a> Entity for Enemy<'a> { [INFO] [stdout] | ^^ [INFO] [stdout] note: ...so that the reference type `&'static mut sfml::graphics::RectangleShape<'_>` does not outlive the data it points at [INFO] [stdout] --> src/game/entity.rs:394:5 [INFO] [stdout] | [INFO] [stdout] 394 | fn image(&mut self) -> &'static mut RectangleShape { &mut self.image } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: but, the lifetime must be valid for the static lifetime... [INFO] [stdout] note: ...so that the reference type `&'static mut sfml::graphics::RectangleShape<'_>` does not outlive the data it points at [INFO] [stdout] --> src/game/entity.rs:394:5 [INFO] [stdout] | [INFO] [stdout] 394 | fn image(&mut self) -> &'static mut RectangleShape { &mut self.image } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RenderTarget` [INFO] [stdout] --> src/game/entity.rs:2:58 [INFO] [stdout] | [INFO] [stdout] 2 | use super::sfml::graphics::{Shape, Transformable, Color, RenderTarget, RectangleShape}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RenderTarget` [INFO] [stdout] --> src/game/entity.rs:2:58 [INFO] [stdout] | [INFO] [stdout] 2 | use super::sfml::graphics::{Shape, Transformable, Color, RenderTarget, RectangleShape}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0495`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0495`. [INFO] [stdout] [INFO] [stderr] error: could not compile `castle` due to 3 previous errors; 8 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `castle` due to 3 previous errors; 8 warnings emitted [INFO] running `Command { std: "docker" "inspect" "4a7e81b89751e2745454ca956df36f6036df2b05bdbcb2bd6d8310185df28473", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4a7e81b89751e2745454ca956df36f6036df2b05bdbcb2bd6d8310185df28473", kill_on_drop: false }` [INFO] [stdout] 4a7e81b89751e2745454ca956df36f6036df2b05bdbcb2bd6d8310185df28473