[INFO] updating cached repository https://github.com/mich101mich/game_rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune", kill_on_drop: false }` [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f5e2796d3f8437e9630777e745ed7b8b2a513d30 [INFO] checking mich101mich/game_rs against try#c8bdaa84ec1b37f18f30375e196a65b7602f3790 for pr-73345 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmich101mich%2Fgame_rs" "/workspace/builds/worker-9/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-9/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/mich101mich/game_rs on toolchain c8bdaa84ec1b37f18f30375e196a65b7602f3790 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+c8bdaa84ec1b37f18f30375e196a65b7602f3790" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/mich101mich/game_rs [INFO] finished tweaking git repo https://github.com/mich101mich/game_rs [INFO] tweaked toml for git repo https://github.com/mich101mich/game_rs written to /workspace/builds/worker-9/source/Cargo.toml [INFO] crate git repo https://github.com/mich101mich/game_rs already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+c8bdaa84ec1b37f18f30375e196a65b7602f3790" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env@sha256:6c9ffe128752d56c8d75334ed354142a5229917ed99767f56566dd8e857ad726" "/opt/rustwide/cargo-home/bin/cargo" "+c8bdaa84ec1b37f18f30375e196a65b7602f3790" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3a76e1529ceb706cce052a6d9b7b3e88517e853ba70e0a3b371eb20cfdfd4878 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "3a76e1529ceb706cce052a6d9b7b3e88517e853ba70e0a3b371eb20cfdfd4878", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3a76e1529ceb706cce052a6d9b7b3e88517e853ba70e0a3b371eb20cfdfd4878", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3a76e1529ceb706cce052a6d9b7b3e88517e853ba70e0a3b371eb20cfdfd4878", kill_on_drop: false }` [INFO] [stdout] 3a76e1529ceb706cce052a6d9b7b3e88517e853ba70e0a3b371eb20cfdfd4878 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env@sha256:6c9ffe128752d56c8d75334ed354142a5229917ed99767f56566dd8e857ad726" "/opt/rustwide/cargo-home/bin/cargo" "+c8bdaa84ec1b37f18f30375e196a65b7602f3790" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7f649e14d6e526709a49bc9633adcfdd4d785965cae6e3f33c14454ffe807628 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "7f649e14d6e526709a49bc9633adcfdd4d785965cae6e3f33c14454ffe807628", kill_on_drop: false }` [INFO] [stderr] sudo: setrlimit(RLIMIT_CORE): Operation not permitted [INFO] [stderr] Compiling sfml-build v0.2.0 [INFO] [stderr] Compiling libc v0.2.68 [INFO] [stderr] Compiling getrandom v0.1.14 [INFO] [stderr] Checking fnv v1.0.6 [INFO] [stderr] Checking hierarchical_pathfinding v0.3.4 (https://github.com/mich101mich/hierarchical_pathfinding#907fd627) [INFO] [stderr] Compiling csfml-system-sys v0.4.0 [INFO] [stderr] Compiling csfml-window-sys v0.4.0 [INFO] [stderr] Compiling csfml-audio-sys v0.4.0 [INFO] [stderr] Compiling csfml-graphics-sys v0.4.0 [INFO] [stderr] Checking sfml v0.14.0 [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 game v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: cannot infer an appropriate lifetime [INFO] [stdout] --> src/ui/clickable.rs:7:3 [INFO] [stdout] | [INFO] [stdout] 6 | fn context_menu(&self) -> Box> { [INFO] [stdout] | ----- data with this lifetime... [INFO] [stdout] 7 | Box::new(std::iter::empty()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...is captured and required to be `'static` here [INFO] [stdout] | [INFO] [stdout] help: to permit non-static references in a `dyn Trait` value, you can add an explicit bound for the anonymous lifetime #1 defined on the method body at 6:2 [INFO] [stdout] | [INFO] [stdout] 6 | fn context_menu(&self) -> Box + '_> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot infer an appropriate lifetime [INFO] [stdout] --> src/entity/worker.rs:63:3 [INFO] [stdout] | [INFO] [stdout] 62 | fn context_menu(&self) -> Box> { [INFO] [stdout] | ----- data with this lifetime... [INFO] [stdout] 63 | Box::new([(CONTEXT_KILL, "kill")].iter()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...is captured and required to be `'static` here [INFO] [stdout] | [INFO] [stdout] help: to permit non-static references in a `dyn Trait` value, you can add an explicit bound for the anonymous lifetime #1 defined on the method body at 62:2 [INFO] [stdout] | [INFO] [stdout] 62 | fn context_menu(&self) -> Box + '_> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot infer an appropriate lifetime [INFO] [stdout] --> src/ui/clickable.rs:7:3 [INFO] [stdout] | [INFO] [stdout] 6 | fn context_menu(&self) -> Box> { [INFO] [stdout] | ----- data with this lifetime... [INFO] [stdout] 7 | Box::new(std::iter::empty()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...is captured and required to be `'static` here [INFO] [stdout] | [INFO] [stdout] help: to permit non-static references in a `dyn Trait` value, you can add an explicit bound for the anonymous lifetime #1 defined on the method body at 6:2 [INFO] [stdout] | [INFO] [stdout] 6 | fn context_menu(&self) -> Box + '_> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot infer an appropriate lifetime [INFO] [stdout] --> src/world/wrapper.rs:103:3 [INFO] [stdout] | [INFO] [stdout] 99 | &self, [INFO] [stdout] | ----- data with this lifetime... [INFO] [stdout] ... [INFO] [stdout] 103 | match self[tile] { [INFO] [stdout] | _________^ [INFO] [stdout] 104 | | Air => Box::new([(Self::AIR_PLACE_PLATFORM, "Place Platform")].iter()), [INFO] [stdout] 105 | | Bedrock => panic!("Bedrock was selected"), [INFO] [stdout] 106 | | Granite | Rock | Ore | Crystal => Box::new([(Self::TILE_REMOVE, "Remove")].iter()), [INFO] [stdout] ... | [INFO] [stdout] 121 | | }, [INFO] [stdout] 122 | | } [INFO] [stdout] | |_________^ ...is captured and required to be `'static` here [INFO] [stdout] | [INFO] [stdout] help: to permit non-static references in a `dyn Trait` value, you can add an explicit bound for the anonymous lifetime #1 defined on the method body at 98:2 [INFO] [stdout] | [INFO] [stdout] 101 | ) -> Box + '_> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot infer an appropriate lifetime [INFO] [stdout] --> src/world/wrapper.rs:104:11 [INFO] [stdout] | [INFO] [stdout] 99 | &self, [INFO] [stdout] | ----- data with this lifetime... [INFO] [stdout] ... [INFO] [stdout] 104 | Air => Box::new([(Self::AIR_PLACE_PLATFORM, "Place Platform")].iter()), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...is captured and required to be `'static` here [INFO] [stdout] | [INFO] [stdout] help: to permit non-static references in a `dyn Trait` value, you can add an explicit bound for the anonymous lifetime #1 defined on the method body at 98:2 [INFO] [stdout] | [INFO] [stdout] 101 | ) -> Box + '_> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot infer an appropriate lifetime [INFO] [stdout] --> src/world/wrapper.rs:110:27 [INFO] [stdout] | [INFO] [stdout] 99 | &self, [INFO] [stdout] | ----- data with this lifetime... [INFO] [stdout] ... [INFO] [stdout] 110 | MachineType::Spawn => Box::new( [INFO] [stdout] | _______________________________________^ [INFO] [stdout] 111 | | [ [INFO] [stdout] 112 | | (Self::SPAWN_NEW_WORKER, "Spawn Worker"), [INFO] [stdout] 113 | | (Self::TILE_REMOVE, "Destroy"), [INFO] [stdout] 114 | | ] [INFO] [stdout] 115 | | .iter(), [INFO] [stdout] 116 | | ), [INFO] [stdout] | |_________________^ ...is captured and required to be `'static` here [INFO] [stdout] | [INFO] [stdout] help: to permit non-static references in a `dyn Trait` value, you can add an explicit bound for the anonymous lifetime #1 defined on the method body at 98:2 [INFO] [stdout] | [INFO] [stdout] 101 | ) -> Box + '_> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot infer an appropriate lifetime [INFO] [stdout] --> src/world/wrapper.rs:118:6 [INFO] [stdout] | [INFO] [stdout] 99 | &self, [INFO] [stdout] | ----- data with this lifetime... [INFO] [stdout] ... [INFO] [stdout] 118 | Box::new([(0, "TODO: Research"), (Self::TILE_REMOVE, "Destroy")].iter()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...is captured and required to be `'static` here [INFO] [stdout] | [INFO] [stdout] help: to permit non-static references in a `dyn Trait` value, you can add an explicit bound for the anonymous lifetime #1 defined on the method body at 98:2 [INFO] [stdout] | [INFO] [stdout] 101 | ) -> Box + '_> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot infer an appropriate lifetime [INFO] [stdout] --> src/world/wrapper.rs:128:3 [INFO] [stdout] | [INFO] [stdout] 125 | &self, [INFO] [stdout] | ----- data with this lifetime... [INFO] [stdout] ... [INFO] [stdout] 128 | Box::new([(Self::TILE_REMOVE, "Remove")].iter()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...is captured and required to be `'static` here [INFO] [stdout] | [INFO] [stdout] help: to permit non-static references in a `dyn Trait` value, you can add an explicit bound for the anonymous lifetime #1 defined on the method body at 124:2 [INFO] [stdout] | [INFO] [stdout] 127 | ) -> Box + '_> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `game`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: cannot infer an appropriate lifetime [INFO] [stdout] --> src/entity/worker.rs:63:3 [INFO] [stdout] | [INFO] [stdout] 62 | fn context_menu(&self) -> Box> { [INFO] [stdout] | ----- data with this lifetime... [INFO] [stdout] 63 | Box::new([(CONTEXT_KILL, "kill")].iter()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...is captured and required to be `'static` here [INFO] [stdout] | [INFO] [stdout] help: to permit non-static references in a `dyn Trait` value, you can add an explicit bound for the anonymous lifetime #1 defined on the method body at 62:2 [INFO] [stdout] | [INFO] [stdout] 62 | fn context_menu(&self) -> Box + '_> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot infer an appropriate lifetime [INFO] [stdout] --> src/world/wrapper.rs:103:3 [INFO] [stdout] | [INFO] [stdout] 99 | &self, [INFO] [stdout] | ----- data with this lifetime... [INFO] [stdout] ... [INFO] [stdout] 103 | match self[tile] { [INFO] [stdout] | _________^ [INFO] [stdout] 104 | | Air => Box::new([(Self::AIR_PLACE_PLATFORM, "Place Platform")].iter()), [INFO] [stdout] 105 | | Bedrock => panic!("Bedrock was selected"), [INFO] [stdout] 106 | | Granite | Rock | Ore | Crystal => Box::new([(Self::TILE_REMOVE, "Remove")].iter()), [INFO] [stdout] ... | [INFO] [stdout] 121 | | }, [INFO] [stdout] 122 | | } [INFO] [stdout] | |_________^ ...is captured and required to be `'static` here [INFO] [stdout] | [INFO] [stdout] help: to permit non-static references in a `dyn Trait` value, you can add an explicit bound for the anonymous lifetime #1 defined on the method body at 98:2 [INFO] [stdout] | [INFO] [stdout] 101 | ) -> Box + '_> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot infer an appropriate lifetime [INFO] [stdout] --> src/world/wrapper.rs:104:11 [INFO] [stdout] | [INFO] [stdout] 99 | &self, [INFO] [stdout] | ----- data with this lifetime... [INFO] [stdout] ... [INFO] [stdout] 104 | Air => Box::new([(Self::AIR_PLACE_PLATFORM, "Place Platform")].iter()), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...is captured and required to be `'static` here [INFO] [stdout] | [INFO] [stdout] help: to permit non-static references in a `dyn Trait` value, you can add an explicit bound for the anonymous lifetime #1 defined on the method body at 98:2 [INFO] [stdout] | [INFO] [stdout] 101 | ) -> Box + '_> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot infer an appropriate lifetime [INFO] [stdout] --> src/world/wrapper.rs:110:27 [INFO] [stdout] | [INFO] [stdout] 99 | &self, [INFO] [stdout] | ----- data with this lifetime... [INFO] [stdout] ... [INFO] [stdout] 110 | MachineType::Spawn => Box::new( [INFO] [stdout] | _______________________________________^ [INFO] [stdout] 111 | | [ [INFO] [stdout] 112 | | (Self::SPAWN_NEW_WORKER, "Spawn Worker"), [INFO] [stdout] 113 | | (Self::TILE_REMOVE, "Destroy"), [INFO] [stdout] 114 | | ] [INFO] [stdout] 115 | | .iter(), [INFO] [stdout] 116 | | ), [INFO] [stdout] | |_________________^ ...is captured and required to be `'static` here [INFO] [stdout] | [INFO] [stdout] help: to permit non-static references in a `dyn Trait` value, you can add an explicit bound for the anonymous lifetime #1 defined on the method body at 98:2 [INFO] [stdout] | [INFO] [stdout] 101 | ) -> Box + '_> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot infer an appropriate lifetime [INFO] [stdout] --> src/world/wrapper.rs:118:6 [INFO] [stdout] | [INFO] [stdout] 99 | &self, [INFO] [stdout] | ----- data with this lifetime... [INFO] [stdout] ... [INFO] [stdout] 118 | Box::new([(0, "TODO: Research"), (Self::TILE_REMOVE, "Destroy")].iter()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...is captured and required to be `'static` here [INFO] [stdout] | [INFO] [stdout] help: to permit non-static references in a `dyn Trait` value, you can add an explicit bound for the anonymous lifetime #1 defined on the method body at 98:2 [INFO] [stdout] | [INFO] [stdout] 101 | ) -> Box + '_> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot infer an appropriate lifetime [INFO] [stdout] --> src/world/wrapper.rs:128:3 [INFO] [stdout] | [INFO] [stdout] 125 | &self, [INFO] [stdout] | ----- data with this lifetime... [INFO] [stdout] ... [INFO] [stdout] 128 | Box::new([(Self::TILE_REMOVE, "Remove")].iter()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...is captured and required to be `'static` here [INFO] [stdout] | [INFO] [stdout] help: to permit non-static references in a `dyn Trait` value, you can add an explicit bound for the anonymous lifetime #1 defined on the method body at 124:2 [INFO] [stdout] | [INFO] [stdout] 127 | ) -> Box + '_> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "7f649e14d6e526709a49bc9633adcfdd4d785965cae6e3f33c14454ffe807628", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7f649e14d6e526709a49bc9633adcfdd4d785965cae6e3f33c14454ffe807628", kill_on_drop: false }` [INFO] [stdout] 7f649e14d6e526709a49bc9633adcfdd4d785965cae6e3f33c14454ffe807628