[INFO] cloning repository https://github.com/SF-Software/Shadow-RPG [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/SF-Software/Shadow-RPG" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSF-Software%2FShadow-RPG", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSF-Software%2FShadow-RPG'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ca0f4c8ce32e95dcf0f8a52ae569e051cdee7cc0 [INFO] checking SF-Software/Shadow-RPG against try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSF-Software%2FShadow-RPG" "/workspace/builds/worker-0/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/SF-Software/Shadow-RPG on toolchain 8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/SF-Software/Shadow-RPG [INFO] finished tweaking git repo https://github.com/SF-Software/Shadow-RPG [INFO] tweaked toml for git repo https://github.com/SF-Software/Shadow-RPG written to /workspace/builds/worker-0/source/Cargo.toml [INFO] crate git repo https://github.com/SF-Software/Shadow-RPG already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded lru_time_cache v0.6.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 9cf341b921f7ca2e9fc5a25fae7dd4c2927497eba9d7f052e4af5a3045ea45fa [INFO] running `Command { std: "docker" "start" "-a" "9cf341b921f7ca2e9fc5a25fae7dd4c2927497eba9d7f052e4af5a3045ea45fa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9cf341b921f7ca2e9fc5a25fae7dd4c2927497eba9d7f052e4af5a3045ea45fa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9cf341b921f7ca2e9fc5a25fae7dd4c2927497eba9d7f052e4af5a3045ea45fa", kill_on_drop: false }` [INFO] [stdout] 9cf341b921f7ca2e9fc5a25fae7dd4c2927497eba9d7f052e4af5a3045ea45fa [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b102cc002eb913def51ac66899d4c1e66a2ff437fcf99cc8c3b66e89b5696342 [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" "b102cc002eb913def51ac66899d4c1e66a2ff437fcf99cc8c3b66e89b5696342", kill_on_drop: false }` [INFO] [stderr] Checking num-traits v0.1.39 [INFO] [stderr] Checking libc v0.2.24 [INFO] [stderr] Compiling sdl2-sys v0.30.0 [INFO] [stderr] Checking lazy_static v0.2.8 [INFO] [stderr] Checking bitflags v0.7.0 [INFO] [stderr] Checking lru_time_cache v0.6.0 [INFO] [stderr] Checking find_folder v0.3.0 [INFO] [stderr] Checking rand v0.3.15 [INFO] [stderr] Checking num-integer v0.1.34 [INFO] [stderr] Checking num-iter v0.1.33 [INFO] [stderr] Checking num v0.1.39 [INFO] [stderr] Checking sdl2 v0.30.0 [INFO] [stderr] Checking hoetz v0.1.0 (/opt/rustwide/workdir/hoetz) [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> hoetz/src/scene.rs:10:23 [INFO] [stdout] | [INFO] [stdout] 10 | pub type Init = (fn(A) -> (M, Command)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> hoetz/src/scene.rs:12:22 [INFO] [stdout] | [INFO] [stdout] 12 | pub type Update = (fn(&M, &UIInput) -> (M, Command)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> hoetz/src/scene.rs:24:31 [INFO] [stdout] | [INFO] [stdout] 24 | pub type BoxedScene<'a> = Box>; [INFO] [stdout] | ^^^^^^^^^ help: use `dyn`: `dyn Scene<'a>` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> hoetz/src/event.rs:14:23 [INFO] [stdout] | [INFO] [stdout] 14 | pub keyboard: &'a KeyboardState, [INFO] [stdout] | ^^^^^^^^^^^^^ help: use `dyn`: `dyn KeyboardState` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0106]: missing lifetime specifier [INFO] [stdout] --> hoetz/src/scene.rs:7:17 [INFO] [stdout] | [INFO] [stdout] 7 | SceneChange(BoxedScene), [INFO] [stdout] | ^^^^^^^^^^ expected named lifetime parameter [INFO] [stdout] | [INFO] [stdout] help: consider introducing a named lifetime parameter [INFO] [stdout] | [INFO] [stdout] 5 | pub enum Command<'a> { [INFO] [stdout] 6 | None, [INFO] [stdout] 7 | SceneChange(BoxedScene<'a>), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0106]: missing lifetime specifier [INFO] [stdout] --> hoetz/src/scene.rs:34:42 [INFO] [stdout] | [INFO] [stdout] 34 | fn process_command(c: Command) -> Option { [INFO] [stdout] | ^^^^^^^^^^ expected named lifetime parameter [INFO] [stdout] | [INFO] [stdout] = help: this function's return type contains a borrowed value with an elided lifetime, but the lifetime cannot be derived from the arguments [INFO] [stdout] help: consider using the `'static` lifetime [INFO] [stdout] | [INFO] [stdout] 34 | fn process_command(c: Command) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0106]: missing lifetime specifier [INFO] [stdout] --> hoetz/src/lib.rs:24:53 [INFO] [stdout] | [INFO] [stdout] 24 | fn update(mut scene: BoxedScene, input: UIInput) -> BoxedScene { [INFO] [stdout] | ---------- ------- ^^^^^^^^^^ expected named lifetime parameter [INFO] [stdout] | [INFO] [stdout] = help: this function's return type contains a borrowed value, but the signature does not say whether it is borrowed from `scene` or `input` [INFO] [stdout] help: consider introducing a named lifetime parameter [INFO] [stdout] | [INFO] [stdout] 24 | fn update<'a>(mut scene: BoxedScene, input: UIInput) -> BoxedScene<'a> { [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `impl` item signature doesn't match `trait` item signature [INFO] [stdout] --> hoetz/src/scene.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 19 | fn update(&mut self, &UIInput) -> Option>; [INFO] [stdout] | --------------------------------------------------------- expected `fn(&mut SceneEntity<'a, M, R>, &UIInput<'_>) -> Option + 'static)>>` [INFO] [stdout] ... [INFO] [stdout] 48 | fn update(&mut self, input: &UIInput) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ found `fn(&mut SceneEntity<'a, M, R>, &UIInput<'_>) -> Option + 'static)>>` [INFO] [stdout] | [INFO] [stdout] = note: expected `fn(&mut SceneEntity<'a, M, R>, &UIInput<'_>) -> Option + 'static)>>` [INFO] [stdout] found `fn(&mut SceneEntity<'a, M, R>, &UIInput<'_>) -> Option + 'static)>>` [INFO] [stdout] = help: the lifetime requirements from the `impl` do not correspond to the requirements in the `trait` [INFO] [stdout] = help: verify the lifetime relationships in the `trait` and `impl` between the `self` argument, the other inputs and its output [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0621]: explicit lifetime required in the type of `scene` [INFO] [stdout] --> hoetz/src/lib.rs:26:20 [INFO] [stdout] | [INFO] [stdout] 24 | fn update(mut scene: BoxedScene, input: UIInput) -> BoxedScene { [INFO] [stdout] | ---------- help: add explicit lifetime `'static` to the type of `scene`: `Box<(dyn Scene<'static> + 'static)>` [INFO] [stdout] 25 | match scene.update(&input) { [INFO] [stdout] 26 | Some(s) => s, [INFO] [stdout] | ^ lifetime `'static` required [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0495]: cannot infer an appropriate lifetime for lifetime parameter `'b` due to conflicting requirements [INFO] [stdout] --> hoetz/src/lib.rs:45:17 [INFO] [stdout] | [INFO] [stdout] 45 | let c = Context::new(graphics.clone()); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: first, the lifetime cannot outlive the anonymous lifetime defined on the function body at 32:78... [INFO] [stdout] --> hoetz/src/lib.rs:32:78 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn game_start(width: u32, height: u32, title: String, mut current_scene: BoxedScene, fps: u32) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] note: ...so that the expression is assignable [INFO] [stdout] --> hoetz/src/lib.rs:52:41 [INFO] [stdout] | [INFO] [stdout] 52 | current_scene.resource_load(&c); [INFO] [stdout] | ^^ [INFO] [stdout] = note: expected `&context::Context<'_>` [INFO] [stdout] found `&context::Context<'_>` [INFO] [stdout] note: but, the lifetime must be valid for the anonymous lifetime #1 defined on the body at 44:73... [INFO] [stdout] --> hoetz/src/lib.rs:44:73 [INFO] [stdout] | [INFO] [stdout] 44 | graphics_start(window.into_canvas().accelerated().build().unwrap(), |graphics| { [INFO] [stdout] | _________________________________________________________________________^ [INFO] [stdout] 45 | | let c = Context::new(graphics.clone()); [INFO] [stdout] 46 | | let mut event_system = EventSystem::new(event_pump); [INFO] [stdout] 47 | | let mut running = true; [INFO] [stdout] ... | [INFO] [stdout] 60 | | } [INFO] [stdout] 61 | | }); [INFO] [stdout] | |_____^ [INFO] [stdout] note: ...so that the expression is assignable [INFO] [stdout] --> hoetz/src/lib.rs:45:30 [INFO] [stdout] | [INFO] [stdout] 45 | let c = Context::new(graphics.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: expected `Rc>` [INFO] [stdout] found `Rc>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0621]: explicit lifetime required in the type of `current_scene` [INFO] [stdout] --> hoetz/src/lib.rs:53:29 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn game_start(width: u32, height: u32, title: String, mut current_scene: BoxedScene, fps: u32) { [INFO] [stdout] | ---------- help: add explicit lifetime `'static` to the type of `current_scene`: `Box<(dyn Scene<'static> + 'static)>` [INFO] [stdout] ... [INFO] [stdout] 53 | current_scene = update(current_scene, event_system.process(&mut running)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ lifetime `'static` required [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> hoetz/src/scene.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | process_command(c) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ lifetime mismatch [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option + 'static)>>` [INFO] [stdout] found enum `Option + 'static)>>` [INFO] [stdout] note: the anonymous lifetime defined on the method body at 48:15... [INFO] [stdout] --> hoetz/src/scene.rs:48:15 [INFO] [stdout] | [INFO] [stdout] 48 | fn update(&mut self, input: &UIInput) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] = note: ...does not necessarily outlive the static lifetime [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors; 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0106, E0308, E0495, E0621. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0106`. [INFO] [stdout] [INFO] [stderr] error: could not compile `hoetz` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `Command { std: "docker" "inspect" "b102cc002eb913def51ac66899d4c1e66a2ff437fcf99cc8c3b66e89b5696342", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b102cc002eb913def51ac66899d4c1e66a2ff437fcf99cc8c3b66e89b5696342", kill_on_drop: false }` [INFO] [stdout] b102cc002eb913def51ac66899d4c1e66a2ff437fcf99cc8c3b66e89b5696342