[INFO] updating cached repository https://github.com/Maix31/rust-platformer [INFO] running `"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"` [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 46d8a2ecbedd53c5d6f4e4822d58b5aa3b847d3c [INFO] checking Maix31/rust-platformer against master#fdc0011561c6365c596dfd8fa1ef388162bc89c7 for pr-66504-1 [INFO] running `"git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMaix31%2Frust-platformer" "/workspace/builds/worker-3/source"` [INFO] [stderr] Cloning into '/workspace/builds/worker-3/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Maix31/rust-platformer on toolchain fdc0011561c6365c596dfd8fa1ef388162bc89c7 [INFO] running `"/workspace/cargo-home/bin/cargo" "+fdc0011561c6365c596dfd8fa1ef388162bc89c7" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started tweaking git repo https://github.com/Maix31/rust-platformer [INFO] finished tweaking git repo https://github.com/Maix31/rust-platformer [INFO] tweaked toml for git repo https://github.com/Maix31/rust-platformer written to /workspace/builds/worker-3/source/Cargo.toml [INFO] crate git repo https://github.com/Maix31/rust-platformer already has a lockfile, it will not be regenerated [INFO] running `"/workspace/cargo-home/bin/cargo" "+fdc0011561c6365c596dfd8fa1ef388162bc89c7" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] error: the lock file /workspace/builds/worker-3/source/Cargo.lock needs to be updated but --locked was passed to prevent this [INFO] the lockfile is outdated, regenerating it [INFO] running `"/workspace/cargo-home/bin/cargo" "+fdc0011561c6365c596dfd8fa1ef388162bc89c7" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/workspace/cargo-home/bin/cargo" "+fdc0011561c6365c596dfd8fa1ef388162bc89c7" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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" "/opt/rustwide/cargo-home/bin/cargo" "+fdc0011561c6365c596dfd8fa1ef388162bc89c7" "check" "--frozen" "--all" "--all-targets"` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 473182800c464b532cc03a0cfaa090b5f15112234e375b9042a10899cb79a8ab [INFO] running `"docker" "start" "-a" "473182800c464b532cc03a0cfaa090b5f15112234e375b9042a10899cb79a8ab"` [INFO] [stderr] Compiling autocfg v0.1.7 [INFO] [stderr] Compiling libc v0.2.66 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Compiling serde v1.0.103 [INFO] [stderr] Compiling cc v1.0.48 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling xml-rs v0.8.0 [INFO] [stderr] Compiling byteorder v1.3.2 [INFO] [stderr] Compiling pkg-config v0.3.17 [INFO] [stderr] Compiling khronos_api v3.1.0 [INFO] [stderr] Checking scopeguard v1.0.0 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Compiling maybe-uninit v2.0.0 [INFO] [stderr] Checking void v1.0.2 [INFO] [stderr] Checking rand_core v0.4.2 [INFO] [stderr] Checking arrayvec v0.5.1 [INFO] [stderr] Checking linked-hash-map v0.5.2 [INFO] [stderr] Compiling proc-macro2 v1.0.6 [INFO] [stderr] Compiling nix v0.14.1 [INFO] [stderr] Compiling getrandom v0.1.13 [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Compiling syn v1.0.11 [INFO] [stderr] Compiling arrayvec v0.4.12 [INFO] [stderr] Compiling version_check v0.1.5 [INFO] [stderr] Compiling ryu v1.0.2 [INFO] [stderr] Checking downcast-rs v1.1.1 [INFO] [stderr] Checking nodrop v0.1.14 [INFO] [stderr] Checking ppv-lite86 v0.2.6 [INFO] [stderr] Checking same-file v1.0.5 [INFO] [stderr] Compiling rustc-demangle v0.1.16 [INFO] [stderr] Checking xdg v2.2.0 [INFO] [stderr] Compiling pulldown-cmark v0.2.0 [INFO] [stderr] Compiling itoa v0.4.4 [INFO] [stderr] Compiling typenum v1.11.2 [INFO] [stderr] Compiling crc32fast v1.2.0 [INFO] [stderr] Compiling libm v0.1.4 [INFO] [stderr] Checking adler32 v1.0.4 [INFO] [stderr] Compiling remove_dir_all v0.5.2 [INFO] [stderr] Compiling num-derive v0.2.5 [INFO] [stderr] Compiling nix v0.15.0 [INFO] [stderr] Checking lzw v0.10.0 [INFO] [stderr] Compiling glob v0.2.11 [INFO] [stderr] Checking percent-encoding v2.1.0 [INFO] [stderr] Checking rawpointer v0.2.1 [INFO] [stderr] Checking xi-unicode v0.2.0 [INFO] [stderr] Compiling bytecount v0.4.0 [INFO] [stderr] Checking color_quant v1.0.1 [INFO] [stderr] Checking vec_map v0.8.1 [INFO] [stderr] Checking mint v0.5.4 [INFO] [stderr] Checking uuid v0.8.1 [INFO] [stderr] Checking podio v0.1.6 [INFO] [stderr] Checking hound v3.4.0 [INFO] [stderr] Checking fnv v1.0.6 [INFO] [stderr] Checking claxon v0.4.2 [INFO] [stderr] Checking lock_api v0.3.2 [INFO] [stderr] Checking rand_core v0.3.1 [INFO] [stderr] Checking rand_jitter v0.1.4 [INFO] [stderr] Checking walkdir v2.2.9 [INFO] [stderr] Checking c2-chacha v0.2.3 [INFO] [stderr] Compiling num-traits v0.2.10 [INFO] [stderr] Compiling crossbeam-utils v0.7.0 [INFO] [stderr] Compiling crossbeam-epoch v0.8.0 [INFO] [stderr] Compiling num-integer v0.1.41 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling num-complex v0.2.3 [INFO] [stderr] Compiling rand_pcg v0.1.2 [INFO] [stderr] Compiling num-rational v0.2.2 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Compiling num-iter v0.1.39 [INFO] [stderr] Checking inflate v0.4.5 [INFO] [stderr] Checking matrixmultiply v0.2.3 [INFO] [stderr] Compiling error-chain v0.12.1 [INFO] [stderr] Checking gif v0.10.3 [INFO] [stderr] Checking rand_hc v0.1.0 [INFO] [stderr] Checking rand_isaac v0.1.1 [INFO] [stderr] Checking rand_xorshift v0.1.1 [INFO] [stderr] Compiling x11-dl v2.18.4 [INFO] [stderr] Compiling alsa-sys v0.1.2 [INFO] [stderr] Compiling libudev-sys v0.1.4 [INFO] [stderr] Checking draw_state v0.8.0 [INFO] [stderr] Checking smallvec v0.6.13 [INFO] [stderr] Compiling gl_generator v0.11.0 [INFO] [stderr] Compiling gl_generator v0.13.1 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Checking stb_truetype v0.3.1 [INFO] [stderr] Checking rustc-hash v1.0.1 [INFO] [stderr] Checking ogg v0.7.0 [INFO] [stderr] Checking deflate v0.7.20 [INFO] [stderr] Checking jpeg-decoder v0.1.18 [INFO] [stderr] Compiling quote v1.0.2 [INFO] [stderr] Checking num_cpus v1.11.1 [INFO] [stderr] Checking memmap v0.7.0 [INFO] [stderr] Checking shared_library v0.1.9 [INFO] [stderr] Checking raw-window-handle v0.3.3 [INFO] [stderr] Checking rand_os v0.1.3 [INFO] [stderr] Checking slice-deque v0.2.4 [INFO] [stderr] Checking dirs-sys v0.3.4 [INFO] [stderr] Compiling wayland-scanner v0.21.13 [INFO] [stderr] Checking gfx_core v0.9.2 [INFO] [stderr] Compiling rand v0.4.6 [INFO] [stderr] Checking lewton v0.9.4 [INFO] [stderr] Checking png v0.15.2 [INFO] [stderr] Checking generic-array v0.12.3 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking approx v0.3.2 [INFO] [stderr] Checking ordered-float v1.0.2 [INFO] [stderr] Checking line_drawing v0.7.0 [INFO] [stderr] Checking num-traits v0.1.43 [INFO] [stderr] Checking osmesa-sys v0.1.2 [INFO] [stderr] Checking directories v2.0.2 [INFO] [stderr] Compiling libloading v0.5.2 [INFO] [stderr] Compiling backtrace-sys v0.1.32 [INFO] [stderr] Compiling bzip2-sys v0.1.7 [INFO] [stderr] Compiling minimp3-sys v0.3.1 [INFO] [stderr] Compiling tempdir v0.3.7 [INFO] [stderr] Checking cpal v0.8.2 [INFO] [stderr] Checking rand_chacha v0.2.1 [INFO] [stderr] Checking toml v0.5.5 [INFO] [stderr] Checking sid v0.5.2 [INFO] [stderr] Compiling glutin_glx_sys v0.1.5 [INFO] [stderr] Compiling gfx_gl v0.6.0 [INFO] [stderr] Compiling glutin_egl_sys v0.1.4 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling serde_json v1.0.44 [INFO] [stderr] Checking alga v0.9.2 [INFO] [stderr] Checking rand v0.7.2 [INFO] [stderr] Checking gilrs-core v0.2.5 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Checking dlib v0.4.1 [INFO] [stderr] Checking gilrs v0.7.3 [INFO] [stderr] Checking twox-hash v1.5.0 [INFO] [stderr] Checking wayland-sys v0.21.13 [INFO] [stderr] Checking minimp3 v0.3.3 [INFO] [stderr] Compiling backtrace v0.3.40 [INFO] [stderr] Checking wayland-commons v0.21.13 [INFO] [stderr] Checking nalgebra v0.18.1 [INFO] [stderr] Compiling memoffset v0.5.3 [INFO] [stderr] Compiling parking_lot_core v0.6.2 [INFO] [stderr] Compiling parking_lot v0.9.0 [INFO] [stderr] Compiling wayland-client v0.21.13 [INFO] [stderr] Compiling wayland-protocols v0.21.13 [INFO] [stderr] Checking bzip2 v0.3.3 [INFO] [stderr] Checking crossbeam-deque v0.7.2 [INFO] [stderr] Checking zip v0.5.3 [INFO] [stderr] Checking rusttype v0.8.2 [INFO] [stderr] Checking rusttype v0.7.9 [INFO] [stderr] Checking glyph_brush_layout v0.1.8 [INFO] [stderr] Checking andrew v0.2.1 [INFO] [stderr] Checking glyph_brush v0.6.1 [INFO] [stderr] Checking glyph_brush v0.5.4 [INFO] [stderr] Checking gfx_device_gl v0.16.2 [INFO] [stderr] Checking gfx v0.18.2 [INFO] [stderr] Checking smithay-client-toolkit v0.4.6 [INFO] [stderr] Compiling serde_derive v1.0.103 [INFO] [stderr] Checking winit v0.19.5 [INFO] [stderr] Compiling euclid_macros v0.1.0 [INFO] [stderr] Compiling smart-default v0.5.2 [INFO] [stderr] Checking glutin v0.20.1 [INFO] [stderr] Checking gfx_window_glutin v0.30.0 [INFO] [stderr] Checking euclid v0.19.9 [INFO] [stderr] Checking lyon_geom v0.12.7 [INFO] [stderr] Checking tiff v0.3.1 [INFO] [stderr] Checking lyon_path v0.13.2 [INFO] [stderr] Checking lyon_tessellation v0.13.5 [INFO] [stderr] Checking lyon_algorithms v0.13.4 [INFO] [stderr] Checking image v0.22.3 [INFO] [stderr] Checking lyon v0.13.5 [INFO] [stderr] Checking rodio v0.9.0 [INFO] [stderr] Compiling cargo_metadata v0.6.4 [INFO] [stderr] Compiling skeptic v0.13.4 [INFO] [stderr] Compiling ggez v0.5.1 [INFO] [stderr] Checking poth_platformer v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] error[E0432]: unresolved imports `ggez::event::Keycode`, `ggez::event::Mod` [INFO] [stderr] --> src/application.rs:3:19 [INFO] [stderr] | [INFO] [stderr] 3 | use ggez::event::{Keycode, Mod}; [INFO] [stderr] | ^^^^^^^ ^^^ no `Mod` in `event` [INFO] [stderr] | | [INFO] [stderr] | no `Keycode` in `event` [INFO] [stderr] | help: a similar name exists in the module (notice the capitalization): `KeyCode` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `get_delta` in module `ggez::timer` [INFO] [stderr] --> src/application.rs:37:73 [INFO] [stderr] | [INFO] [stderr] 37 | self.states.last_mut().unwrap().update(self.input, ggez::timer::get_delta(ctx))?; [INFO] [stderr] | ^^^^^^^^^ not found in `ggez::timer` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `draw_ex` in module `graphics` [INFO] [stderr] --> src/game_state.rs:87:23 [INFO] [stderr] | [INFO] [stderr] 87 | graphics::draw_ex(ctx, &self.assets.gradient, background_param)?; [INFO] [stderr] | ^^^^^^^ not found in `graphics` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `rectangle` in module `ggez::graphics` [INFO] [stderr] --> src/menu_state.rs:29:29 [INFO] [stderr] | [INFO] [stderr] 29 | ggez::graphics::rectangle(ctx, ggez::graphics::DrawMode::Fill, self.rect); [INFO] [stderr] | ^^^^^^^^^ not found in `ggez::graphics` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `rectangle` in module `ggez::graphics` [INFO] [stderr] --> src/menu_state.rs:31:29 [INFO] [stderr] | [INFO] [stderr] 31 | ggez::graphics::rectangle(ctx, ggez::graphics::DrawMode::Line(3.0), self.rect); [INFO] [stderr] | ^^^^^^^^^ not found in `ggez::graphics` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `draw_ex` in module `graphics` [INFO] [stderr] --> src/player.rs:139:19 [INFO] [stderr] | [INFO] [stderr] 139 | graphics::draw_ex(ctx, &x_axis, camera)?; [INFO] [stderr] | ^^^^^^^ not found in `graphics` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `draw_ex` in module `graphics` [INFO] [stderr] --> src/player.rs:140:19 [INFO] [stderr] | [INFO] [stderr] 140 | graphics::draw_ex(ctx, &y_axis, camera)?; [INFO] [stderr] | ^^^^^^^ not found in `graphics` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `draw_ex` in module `graphics` [INFO] [stderr] --> src/player.rs:141:19 [INFO] [stderr] | [INFO] [stderr] 141 | graphics::draw_ex(ctx, &rect, camera) [INFO] [stderr] | ^^^^^^^ not found in `graphics` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `draw_ex` in module `graphics` [INFO] [stderr] --> src/tilemap.rs:72:19 [INFO] [stderr] | [INFO] [stderr] 72 | graphics::draw_ex(ctx, &*self.spritebatch.borrow(), camera)?; [INFO] [stderr] | ^^^^^^^ not found in `graphics` [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::menu_state::MenuState` [INFO] [stderr] --> src/application.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 9 | use crate::menu_state::MenuState; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/application.rs:15:34 [INFO] [stderr] | [INFO] [stderr] 15 | fn push(&self) -> Option>; [INFO] [stderr] | ^^^^^ help: use `dyn`: `dyn State` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/application.rs:19:21 [INFO] [stderr] | [INFO] [stderr] 19 | states: Vec>, [INFO] [stderr] | ^^^^^ help: use `dyn`: `dyn State` [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/game_state.rs:102:38 [INFO] [stderr] | [INFO] [stderr] 102 | fn push(&self) -> Option> { [INFO] [stderr] | ^^^^^ help: use `dyn`: `dyn State` [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/menu_state.rs:87:34 [INFO] [stderr] | [INFO] [stderr] 87 | fn push(&self) -> Option> { [INFO] [stderr] | ^^^^^ help: use `dyn`: `dyn State` [INFO] [stderr] [INFO] [stderr] error[E0050]: method `key_up_event` has 5 parameters but the declaration in trait `ggez::event::EventHandler::key_up_event` has 4 [INFO] [stderr] --> src/application.rs:62:21 [INFO] [stderr] | [INFO] [stderr] 62 | fn key_up_event(&mut self, _ctx: &mut Context, keycode: Keycode, _keymod: Mod, _repeat: bool) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 4 parameters, found 5 [INFO] [stderr] | [INFO] [stderr] = note: `key_up_event` from trait: `fn(&mut Self, &mut ggez::context::Context, winit::events::VirtualKeyCode, ggez::input::keyboard::KeyMods)` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved imports `ggez::event::Keycode`, `ggez::event::Mod` [INFO] [stderr] --> src/application.rs:3:19 [INFO] [stderr] | [INFO] [stderr] 3 | use ggez::event::{Keycode, Mod}; [INFO] [stderr] | ^^^^^^^ ^^^ no `Mod` in `event` [INFO] [stderr] | | [INFO] [stderr] | no `Keycode` in `event` [INFO] [stderr] | help: a similar name exists in the module (notice the capitalization): `KeyCode` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `get_delta` in module `ggez::timer` [INFO] [stderr] --> src/application.rs:37:73 [INFO] [stderr] | [INFO] [stderr] 37 | self.states.last_mut().unwrap().update(self.input, ggez::timer::get_delta(ctx))?; [INFO] [stderr] | ^^^^^^^^^ not found in `ggez::timer` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `draw_ex` in module `graphics` [INFO] [stderr] --> src/game_state.rs:87:23 [INFO] [stderr] | [INFO] [stderr] 87 | graphics::draw_ex(ctx, &self.assets.gradient, background_param)?; [INFO] [stderr] | ^^^^^^^ not found in `graphics` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `rectangle` in module `ggez::graphics` [INFO] [stderr] --> src/menu_state.rs:29:29 [INFO] [stderr] | [INFO] [stderr] 29 | ggez::graphics::rectangle(ctx, ggez::graphics::DrawMode::Fill, self.rect); [INFO] [stderr] | ^^^^^^^^^ not found in `ggez::graphics` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `rectangle` in module `ggez::graphics` [INFO] [stderr] --> src/menu_state.rs:31:29 [INFO] [stderr] | [INFO] [stderr] 31 | ggez::graphics::rectangle(ctx, ggez::graphics::DrawMode::Line(3.0), self.rect); [INFO] [stderr] | ^^^^^^^^^ not found in `ggez::graphics` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `draw_ex` in module `graphics` [INFO] [stderr] --> src/player.rs:139:19 [INFO] [stderr] | [INFO] [stderr] 139 | graphics::draw_ex(ctx, &x_axis, camera)?; [INFO] [stderr] | ^^^^^^^ not found in `graphics` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `draw_ex` in module `graphics` [INFO] [stderr] --> src/player.rs:140:19 [INFO] [stderr] | [INFO] [stderr] 140 | graphics::draw_ex(ctx, &y_axis, camera)?; [INFO] [stderr] | ^^^^^^^ not found in `graphics` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `draw_ex` in module `graphics` [INFO] [stderr] --> src/player.rs:141:19 [INFO] [stderr] | [INFO] [stderr] 141 | graphics::draw_ex(ctx, &rect, camera) [INFO] [stderr] | ^^^^^^^ not found in `graphics` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `draw_ex` in module `graphics` [INFO] [stderr] --> src/tilemap.rs:72:19 [INFO] [stderr] | [INFO] [stderr] 72 | graphics::draw_ex(ctx, &*self.spritebatch.borrow(), camera)?; [INFO] [stderr] | ^^^^^^^ not found in `graphics` [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::menu_state::MenuState` [INFO] [stderr] --> src/application.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 9 | use crate::menu_state::MenuState; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/application.rs:15:34 [INFO] [stderr] | [INFO] [stderr] 15 | fn push(&self) -> Option>; [INFO] [stderr] | ^^^^^ help: use `dyn`: `dyn State` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/application.rs:19:21 [INFO] [stderr] | [INFO] [stderr] 19 | states: Vec>, [INFO] [stderr] | ^^^^^ help: use `dyn`: `dyn State` [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/game_state.rs:102:38 [INFO] [stderr] | [INFO] [stderr] 102 | fn push(&self) -> Option> { [INFO] [stderr] | ^^^^^ help: use `dyn`: `dyn State` [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/menu_state.rs:87:34 [INFO] [stderr] | [INFO] [stderr] 87 | fn push(&self) -> Option> { [INFO] [stderr] | ^^^^^ help: use `dyn`: `dyn State` [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/main.rs:46:28 [INFO] [stderr] | [INFO] [stderr] 46 | width: SCREEN_WIDTH, [INFO] [stderr] | ^^^^^^^^^^^^ expected `f32`, found `u32` [INFO] [stderr] [INFO] [stderr] error[E0050]: method `key_up_event` has 5 parameters but the declaration in trait `ggez::event::EventHandler::key_up_event` has 4 [INFO] [stderr] --> src/application.rs:62:21 [INFO] [stderr] | [INFO] [stderr] 62 | fn key_up_event(&mut self, _ctx: &mut Context, keycode: Keycode, _keymod: Mod, _repeat: bool) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 4 parameters, found 5 [INFO] [stderr] | [INFO] [stderr] = note: `key_up_event` from trait: `fn(&mut Self, &mut ggez::context::Context, winit::events::VirtualKeyCode, ggez::input::keyboard::KeyMods)` [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/main.rs:47:29 [INFO] [stderr] | [INFO] [stderr] 47 | height: SCREEN_HEIGHT, [INFO] [stderr] | ^^^^^^^^^^^^^ expected `f32`, found `u32` [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/main.rs:52:39 [INFO] [stderr] | [INFO] [stderr] 52 | let state = &mut Application::new(ctx)?; [INFO] [stderr] | ^^^ expected struct `ggez::context::Context`, found tuple [INFO] [stderr] | [INFO] [stderr] = note: expected mutable reference `&mut ggez::context::Context` [INFO] [stderr] found mutable reference `&mut (ggez::context::Context, winit::EventsLoop)` [INFO] [stderr] [INFO] [stderr] error[E0061]: this function takes 3 parameters but 2 parameters were supplied [INFO] [stderr] --> src/main.rs:53:5 [INFO] [stderr] | [INFO] [stderr] 53 | event::run(ctx, state) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ expected 3 parameters [INFO] [stderr] [INFO] [stderr] error[E0061]: this function takes 2 parameters but 1 parameter was supplied [INFO] [stderr] --> src/application.rs:43:9 [INFO] [stderr] | [INFO] [stderr] 43 | ggez::graphics::clear(ctx); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 2 parameters [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/main.rs:46:28 [INFO] [stderr] | [INFO] [stderr] 46 | width: SCREEN_WIDTH, [INFO] [stderr] | ^^^^^^^^^^^^ expected `f32`, found `u32` [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/camera.rs:36:21 [INFO] [stderr] | [INFO] [stderr] 36 | offset: na::Point2::new(camera.rect.x, camera.rect.y), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `mint::vector::Point2`, found struct `nalgebra::geometry::point::Point` [INFO] [stderr] | [INFO] [stderr] = note: expected struct `mint::vector::Point2` [INFO] [stderr] found struct `nalgebra::geometry::point::Point` [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/main.rs:47:29 [INFO] [stderr] | [INFO] [stderr] 47 | height: SCREEN_HEIGHT, [INFO] [stderr] | ^^^^^^^^^^^^^ expected `f32`, found `u32` [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/camera.rs:37:20 [INFO] [stderr] | [INFO] [stderr] 37 | dest: -na::Point2::new(camera.rect.x, camera.rect.y), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `mint::vector::Point2`, found struct `nalgebra::geometry::point::Point` [INFO] [stderr] | [INFO] [stderr] = note: expected struct `mint::vector::Point2` [INFO] [stderr] found struct `nalgebra::geometry::point::Point` [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/main.rs:52:39 [INFO] [stderr] | [INFO] [stderr] 52 | let state = &mut Application::new(ctx)?; [INFO] [stderr] | ^^^ expected struct `ggez::context::Context`, found tuple [INFO] [stderr] | [INFO] [stderr] = note: expected mutable reference `&mut ggez::context::Context` [INFO] [stderr] found mutable reference `&mut (ggez::context::Context, winit::EventsLoop)` [INFO] [stderr] [INFO] [stderr] error[E0061]: this function takes 3 parameters but 2 parameters were supplied [INFO] [stderr] --> src/main.rs:53:5 [INFO] [stderr] | [INFO] [stderr] 53 | event::run(ctx, state) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ expected 3 parameters [INFO] [stderr] [INFO] [stderr] error[E0061]: this function takes 2 parameters but 1 parameter was supplied [INFO] [stderr] --> src/application.rs:43:9 [INFO] [stderr] | [INFO] [stderr] 43 | ggez::graphics::clear(ctx); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 2 parameters [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/camera.rs:38:21 [INFO] [stderr] | [INFO] [stderr] 38 | scale: na::Point2::new((crate::SCREEN_WIDTH / camera.rect.w as u32) as f32, (crate::SCREEN_HEIGHT / camera.rect.h as u32) as f32), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `mint::vector::Vector2`, found struct `nalgebra::geometry::point::Point` [INFO] [stderr] | [INFO] [stderr] = note: expected struct `mint::vector::Vector2` [INFO] [stderr] found struct `nalgebra::geometry::point::Point` [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/camera.rs:36:21 [INFO] [stderr] | [INFO] [stderr] 36 | offset: na::Point2::new(camera.rect.x, camera.rect.y), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `mint::vector::Point2`, found struct `nalgebra::geometry::point::Point` [INFO] [stderr] | [INFO] [stderr] = note: expected struct `mint::vector::Point2` [INFO] [stderr] found struct `nalgebra::geometry::point::Point` [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/game_state.rs:81:28 [INFO] [stderr] | [INFO] [stderr] 81 | scale: na::Point2::new(crate::SCREEN_WIDTH as f32 / self.assets.gradient.width() as f32 , [INFO] [stderr] | ____________________________^ [INFO] [stderr] 82 | | crate::SCREEN_HEIGHT as f32 / self.assets.gradient.height() as f32 ), [INFO] [stderr] | |_______________________________________________________________________________________________________________^ expected struct `mint::vector::Vector2`, found struct `nalgebra::geometry::point::Point` [INFO] [stderr] | [INFO] [stderr] = note: expected struct `mint::vector::Vector2` [INFO] [stderr] found struct `nalgebra::geometry::point::Point` [INFO] [stderr] [INFO] [stderr] error[E0061]: this function takes 1 parameter but 3 parameters were supplied [INFO] [stderr] --> src/menu_state.rs:23:19 [INFO] [stderr] | [INFO] [stderr] 23 | text: Text::new(ctx, string.as_str(), font).unwrap(), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 1 parameter [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `unwrap` found for type `ggez::graphics::text::Text` in the current scope [INFO] [stderr] --> src/menu_state.rs:23:57 [INFO] [stderr] | [INFO] [stderr] 23 | text: Text::new(ctx, string.as_str(), font).unwrap(), [INFO] [stderr] | ^^^^^^ method not found in `ggez::graphics::text::Text` [INFO] [stderr] [INFO] [stderr] error[E0599]: no variant or associated item named `Line` found for type `ggez::graphics::types::DrawMode` in the current scope [INFO] [stderr] --> src/menu_state.rs:31:70 [INFO] [stderr] | [INFO] [stderr] 31 | ggez::graphics::rectangle(ctx, ggez::graphics::DrawMode::Line(3.0), self.rect); [INFO] [stderr] | ^^^^ variant or associated item not found in `ggez::graphics::types::DrawMode` [INFO] [stderr] [INFO] [stderr] error[E0061]: this function takes 3 parameters but 4 parameters were supplied [INFO] [stderr] --> src/menu_state.rs:34:10 [INFO] [stderr] | [INFO] [stderr] 34 | ggez::graphics::draw(ctx, &self.text, na::Point2::new(self.rect.x, self.rect.y), 0.0); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 3 parameters [INFO] [stderr] [INFO] [stderr] error[E0061]: this function takes 2 parameters but 3 parameters were supplied [INFO] [stderr] --> src/menu_state.rs:48:20 [INFO] [stderr] | [INFO] [stderr] 48 | let font = Font::new(ctx, "/font.ttf", 24).unwrap(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 2 parameters [INFO] [stderr] [INFO] [stderr] error[E0061]: this function takes 4 parameters but 3 parameters were supplied [INFO] [stderr] --> src/player.rs:127:20 [INFO] [stderr] | [INFO] [stderr] 127 | let rect = graphics::Mesh::new_polygon( [INFO] [stderr] | ____________________^ [INFO] [stderr] 128 | | ctx, [INFO] [stderr] 129 | | graphics::DrawMode::Fill, [INFO] [stderr] 130 | | &points, [INFO] [stderr] 131 | | )?; [INFO] [stderr] | |_________^ expected 4 parameters [INFO] [stderr] [INFO] [stderr] error[E0061]: this function takes 4 parameters but 3 parameters were supplied [INFO] [stderr] --> src/player.rs:136:22 [INFO] [stderr] | [INFO] [stderr] 136 | let x_axis = graphics::Mesh::new_line(ctx, &x_axis, 0.2)?; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 4 parameters [INFO] [stderr] [INFO] [stderr] error[E0061]: this function takes 4 parameters but 3 parameters were supplied [INFO] [stderr] --> src/player.rs:137:22 [INFO] [stderr] | [INFO] [stderr] 137 | let y_axis = graphics::Mesh::new_line(ctx, &y_axis, 0.2)?; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 4 parameters [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/camera.rs:37:20 [INFO] [stderr] | [INFO] [stderr] 37 | dest: -na::Point2::new(camera.rect.x, camera.rect.y), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `mint::vector::Point2`, found struct `nalgebra::geometry::point::Point` [INFO] [stderr] | [INFO] [stderr] = note: expected struct `mint::vector::Point2` [INFO] [stderr] found struct `nalgebra::geometry::point::Point` [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/tilemap.rs:59:24 [INFO] [stderr] | [INFO] [stderr] 59 | dest: na::Point2::new(x, y), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ expected struct `mint::vector::Point2`, found struct `nalgebra::geometry::point::Point` [INFO] [stderr] | [INFO] [stderr] = note: expected struct `mint::vector::Point2` [INFO] [stderr] found struct `nalgebra::geometry::point::Point` [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/camera.rs:38:21 [INFO] [stderr] | [INFO] [stderr] 38 | scale: na::Point2::new((crate::SCREEN_WIDTH / camera.rect.w as u32) as f32, (crate::SCREEN_HEIGHT / camera.rect.h as u32) as f32), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `mint::vector::Vector2`, found struct `nalgebra::geometry::point::Point` [INFO] [stderr] | [INFO] [stderr] = note: expected struct `mint::vector::Vector2` [INFO] [stderr] found struct `nalgebra::geometry::point::Point` [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/tilemap.rs:60:24 [INFO] [stderr] | [INFO] [stderr] 60 | scale: na::Point2::new(1.0 / 171.0, //??? why no getter for image?!! [INFO] [stderr] | ________________________^ [INFO] [stderr] 61 | | 1.0 / 167.0), //??? [INFO] [stderr] | |___________________________________________________^ expected struct `mint::vector::Vector2`, found struct `nalgebra::geometry::point::Point` [INFO] [stderr] | [INFO] [stderr] = note: expected struct `mint::vector::Vector2` [INFO] [stderr] found struct `nalgebra::geometry::point::Point<{float}, nalgebra::base::dimension::U2>` [INFO] [stderr] [INFO] [stderr] error: aborting due to 29 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0050, E0061, E0308, E0425, E0432, E0599. [INFO] [stderr] For more information about an error, try `rustc --explain E0050`. [INFO] [stderr] error: could not compile `poth_platformer`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/game_state.rs:81:28 [INFO] [stderr] | [INFO] [stderr] 81 | scale: na::Point2::new(crate::SCREEN_WIDTH as f32 / self.assets.gradient.width() as f32 , [INFO] [stderr] | ____________________________^ [INFO] [stderr] 82 | | crate::SCREEN_HEIGHT as f32 / self.assets.gradient.height() as f32 ), [INFO] [stderr] | |_______________________________________________________________________________________________________________^ expected struct `mint::vector::Vector2`, found struct `nalgebra::geometry::point::Point` [INFO] [stderr] | [INFO] [stderr] = note: expected struct `mint::vector::Vector2` [INFO] [stderr] found struct `nalgebra::geometry::point::Point` [INFO] [stderr] [INFO] [stderr] error[E0061]: this function takes 1 parameter but 3 parameters were supplied [INFO] [stderr] --> src/menu_state.rs:23:19 [INFO] [stderr] | [INFO] [stderr] 23 | text: Text::new(ctx, string.as_str(), font).unwrap(), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 1 parameter [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `unwrap` found for type `ggez::graphics::text::Text` in the current scope [INFO] [stderr] --> src/menu_state.rs:23:57 [INFO] [stderr] | [INFO] [stderr] 23 | text: Text::new(ctx, string.as_str(), font).unwrap(), [INFO] [stderr] | ^^^^^^ method not found in `ggez::graphics::text::Text` [INFO] [stderr] [INFO] [stderr] error[E0599]: no variant or associated item named `Line` found for type `ggez::graphics::types::DrawMode` in the current scope [INFO] [stderr] --> src/menu_state.rs:31:70 [INFO] [stderr] | [INFO] [stderr] 31 | ggez::graphics::rectangle(ctx, ggez::graphics::DrawMode::Line(3.0), self.rect); [INFO] [stderr] | ^^^^ variant or associated item not found in `ggez::graphics::types::DrawMode` [INFO] [stderr] [INFO] [stderr] error[E0061]: this function takes 3 parameters but 4 parameters were supplied [INFO] [stderr] --> src/menu_state.rs:34:10 [INFO] [stderr] | [INFO] [stderr] 34 | ggez::graphics::draw(ctx, &self.text, na::Point2::new(self.rect.x, self.rect.y), 0.0); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 3 parameters [INFO] [stderr] [INFO] [stderr] error[E0061]: this function takes 2 parameters but 3 parameters were supplied [INFO] [stderr] --> src/menu_state.rs:48:20 [INFO] [stderr] | [INFO] [stderr] 48 | let font = Font::new(ctx, "/font.ttf", 24).unwrap(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 2 parameters [INFO] [stderr] [INFO] [stderr] error[E0061]: this function takes 4 parameters but 3 parameters were supplied [INFO] [stderr] --> src/player.rs:127:20 [INFO] [stderr] | [INFO] [stderr] 127 | let rect = graphics::Mesh::new_polygon( [INFO] [stderr] | ____________________^ [INFO] [stderr] 128 | | ctx, [INFO] [stderr] 129 | | graphics::DrawMode::Fill, [INFO] [stderr] 130 | | &points, [INFO] [stderr] 131 | | )?; [INFO] [stderr] | |_________^ expected 4 parameters [INFO] [stderr] [INFO] [stderr] error[E0061]: this function takes 4 parameters but 3 parameters were supplied [INFO] [stderr] --> src/player.rs:136:22 [INFO] [stderr] | [INFO] [stderr] 136 | let x_axis = graphics::Mesh::new_line(ctx, &x_axis, 0.2)?; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 4 parameters [INFO] [stderr] [INFO] [stderr] error[E0061]: this function takes 4 parameters but 3 parameters were supplied [INFO] [stderr] --> src/player.rs:137:22 [INFO] [stderr] | [INFO] [stderr] 137 | let y_axis = graphics::Mesh::new_line(ctx, &y_axis, 0.2)?; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 4 parameters [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/tilemap.rs:59:24 [INFO] [stderr] | [INFO] [stderr] 59 | dest: na::Point2::new(x, y), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ expected struct `mint::vector::Point2`, found struct `nalgebra::geometry::point::Point` [INFO] [stderr] | [INFO] [stderr] = note: expected struct `mint::vector::Point2` [INFO] [stderr] found struct `nalgebra::geometry::point::Point` [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/tilemap.rs:60:24 [INFO] [stderr] | [INFO] [stderr] 60 | scale: na::Point2::new(1.0 / 171.0, //??? why no getter for image?!! [INFO] [stderr] | ________________________^ [INFO] [stderr] 61 | | 1.0 / 167.0), //??? [INFO] [stderr] | |___________________________________________________^ expected struct `mint::vector::Vector2`, found struct `nalgebra::geometry::point::Point` [INFO] [stderr] | [INFO] [stderr] = note: expected struct `mint::vector::Vector2` [INFO] [stderr] found struct `nalgebra::geometry::point::Point<{float}, nalgebra::base::dimension::U2>` [INFO] [stderr] [INFO] [stderr] error: aborting due to 29 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0050, E0061, E0308, E0425, E0432, E0599. [INFO] [stderr] For more information about an error, try `rustc --explain E0050`. [INFO] [stderr] error: could not compile `poth_platformer`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "473182800c464b532cc03a0cfaa090b5f15112234e375b9042a10899cb79a8ab"` [INFO] running `"docker" "rm" "-f" "473182800c464b532cc03a0cfaa090b5f15112234e375b9042a10899cb79a8ab"` [INFO] [stdout] 473182800c464b532cc03a0cfaa090b5f15112234e375b9042a10899cb79a8ab