[INFO] cloning repository https://github.com/tjefferson08/rustcraft [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/tjefferson08/rustcraft" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftjefferson08%2Frustcraft", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftjefferson08%2Frustcraft'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d9cd7eab7dafd803a4fbd4c2038754757c89dce3 [INFO] testing tjefferson08/rustcraft against beta-2022-04-10 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftjefferson08%2Frustcraft" "/workspace/builds/worker-11/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-11/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/tjefferson08/rustcraft on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/tjefferson08/rustcraft [INFO] finished tweaking git repo https://github.com/tjefferson08/rustcraft [INFO] tweaked toml for git repo https://github.com/tjefferson08/rustcraft written to /workspace/builds/worker-11/source/Cargo.toml [INFO] crate git repo https://github.com/tjefferson08/rustcraft already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "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] ecb3cfc21f3c649540fec561e63c6374a7d73e1b85e4172317df34b093b82d73 [INFO] running `Command { std: "docker" "start" "-a" "ecb3cfc21f3c649540fec561e63c6374a7d73e1b85e4172317df34b093b82d73", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ecb3cfc21f3c649540fec561e63c6374a7d73e1b85e4172317df34b093b82d73", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ecb3cfc21f3c649540fec561e63c6374a7d73e1b85e4172317df34b093b82d73", kill_on_drop: false }` [INFO] [stdout] ecb3cfc21f3c649540fec561e63c6374a7d73e1b85e4172317df34b093b82d73 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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=warn" "-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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", 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] 8eab463479f0e51544ee02db420d7421dfb656e04aa34f2533f052d20496c477 [INFO] running `Command { std: "docker" "start" "-a" "8eab463479f0e51544ee02db420d7421dfb656e04aa34f2533f052d20496c477", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.42 [INFO] [stderr] Compiling bitflags v1.0.3 [INFO] [stderr] Compiling cfg-if v0.1.4 [INFO] [stderr] Compiling lazy_static v1.0.2 [INFO] [stderr] Compiling cc v1.0.18 [INFO] [stderr] Compiling num-traits v0.2.5 [INFO] [stderr] Compiling khronos_api v2.2.0 [INFO] [stderr] Compiling void v1.0.2 [INFO] [stderr] Compiling byteorder v1.2.3 [INFO] [stderr] Compiling nodrop v0.1.12 [INFO] [stderr] Compiling downcast-rs v1.0.3 [INFO] [stderr] Compiling num-integer v0.1.39 [INFO] [stderr] Compiling stable_deref_trait v1.1.0 [INFO] [stderr] Compiling nix v0.11.0 [INFO] [stderr] Compiling rand_core v0.2.1 [INFO] [stderr] Compiling pkg-config v0.3.12 [INFO] [stderr] Compiling remove_dir_all v0.5.1 [INFO] [stderr] Compiling rayon v1.0.2 [INFO] [stderr] Compiling num-iter v0.1.37 [INFO] [stderr] Compiling either v1.5.0 [INFO] [stderr] Compiling rustc-demangle v0.1.9 [INFO] [stderr] Compiling lzw v0.10.0 [INFO] [stderr] Compiling cgmath v0.16.1 [INFO] [stderr] Compiling color_quant v1.0.1 [INFO] [stderr] Compiling approx v0.1.1 [INFO] [stderr] Compiling owning_ref v0.3.3 [INFO] [stderr] Compiling xml-rs v0.7.0 [INFO] [stderr] Compiling proc-macro2 v0.4.9 [INFO] [stderr] Compiling inflate v0.4.3 [INFO] [stderr] Compiling log v0.4.3 [INFO] [stderr] Compiling crossbeam-utils v0.2.2 [INFO] [stderr] Compiling arrayvec v0.4.7 [INFO] [stderr] Compiling unreachable v1.0.0 [INFO] [stderr] Compiling deflate v0.7.18 [INFO] [stderr] Compiling gif v0.10.0 [INFO] [stderr] Compiling lock_api v0.1.3 [INFO] [stderr] Compiling smallvec v0.6.3 [INFO] [stderr] Compiling quote v0.6.4 [INFO] [stderr] Compiling rand v0.4.2 [INFO] [stderr] Compiling rand v0.5.4 [INFO] [stderr] Compiling memmap v0.6.2 [INFO] [stderr] Compiling num_cpus v1.8.0 [INFO] [stderr] Compiling shared_library v0.1.9 [INFO] [stderr] Compiling crossbeam-epoch v0.3.1 [INFO] [stderr] Compiling x11-dl v2.18.1 [INFO] [stderr] Compiling syn v0.14.5 [INFO] [stderr] Compiling osmesa-sys v0.1.2 [INFO] [stderr] Compiling wayland-scanner v0.20.11 [INFO] [stderr] Compiling gl_generator v0.9.0 [INFO] [stderr] Compiling crossbeam-deque v0.2.0 [INFO] [stderr] Compiling parking_lot_core v0.2.14 [INFO] [stderr] Compiling rayon-core v1.4.1 [INFO] [stderr] Compiling libloading v0.5.0 [INFO] [stderr] Compiling backtrace-sys v0.1.23 [INFO] [stderr] Compiling num-traits v0.1.43 [INFO] [stderr] Compiling parking_lot v0.6.3 [INFO] [stderr] Compiling wayland-client v0.20.11 [INFO] [stderr] Compiling wayland-protocols v0.20.11 [INFO] [stderr] Compiling tempfile v3.0.3 [INFO] [stderr] Compiling dlib v0.4.1 [INFO] [stderr] Compiling num-rational v0.1.42 [INFO] [stderr] Compiling glutin v0.17.0 [INFO] [stderr] Compiling glium v0.22.0 [INFO] [stderr] Compiling png v0.12.0 [INFO] [stderr] Compiling wayland-sys v0.20.11 [INFO] [stderr] Compiling wayland-commons v0.20.11 [INFO] [stderr] Compiling backtrace v0.3.9 [INFO] [stderr] Compiling num-derive v0.2.2 [INFO] [stderr] Compiling jpeg-decoder v0.1.15 [INFO] [stderr] Compiling image v0.19.0 [INFO] [stderr] Compiling smithay-client-toolkit v0.2.6 [INFO] [stderr] Compiling winit v0.16.2 [INFO] [stderr] Compiling rustcraft v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Deg`, `PerspectiveFov` [INFO] [stdout] --> src/model/cube.rs:4:14 [INFO] [stdout] | [INFO] [stdout] 4 | use cgmath::{Deg, Matrix3, Matrix4, PerspectiveFov, Rad, Vector3}; [INFO] [stdout] | ^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> src/model/mod.rs:18:35 [INFO] [stdout] | [INFO] [stdout] 18 | fn update_position(&mut self, Vector3) -> (); [INFO] [stdout] | ^^^^^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: Vector3` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(anonymous_parameters)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> src/model/mod.rs:19:35 [INFO] [stdout] | [INFO] [stdout] 19 | fn update_rotation(&mut self, Vector3) -> (); [INFO] [stdout] | ^^^^^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: Vector3` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> src/model/mod.rs:20:25 [INFO] [stdout] | [INFO] [stdout] 20 | fn positions(&self, &Display) -> VertexBuffer; [INFO] [stdout] | ^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: &Display` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> src/model/mod.rs:21:23 [INFO] [stdout] | [INFO] [stdout] 21 | fn indices(&self, &Display) -> IndexBuffer; [INFO] [stdout] | ^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: &Display` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/model/mod.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | implement_vertex!(Vertex, position, tex_coords); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in the macro `implement_vertex` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/application.rs:12:26 [INFO] [stdout] | [INFO] [stdout] 12 | state_stack: Vec>, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 12 - state_stack: Vec>, [INFO] [stdout] 12 + state_stack: Vec>, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/game_state.rs:10:21 [INFO] [stdout] | [INFO] [stdout] 10 | models: Vec>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 10 - models: Vec>, [INFO] [stdout] 10 + models: Vec>, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/application.rs:112:50 [INFO] [stdout] | [INFO] [stdout] 112 | pub fn push_state(&mut self, game_state: Box) -> () { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 112 - pub fn push_state(&mut self, game_state: Box) -> () { [INFO] [stdout] 112 + pub fn push_state(&mut self, game_state: Box) -> () { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/application.rs:120:41 [INFO] [stdout] | [INFO] [stdout] 120 | pub fn current_state(&self) -> &Box { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 120 - pub fn current_state(&self) -> &Box { [INFO] [stdout] 120 + pub fn current_state(&self) -> &Box { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/application.rs:124:53 [INFO] [stdout] | [INFO] [stdout] 124 | pub fn current_state_mut(&mut self) -> &mut Box { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 124 - pub fn current_state_mut(&mut self) -> &mut Box { [INFO] [stdout] 124 + pub fn current_state_mut(&mut self) -> &mut Box { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/renderer/mod.rs:41:36 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn draw(&mut self, model: &Model, camera: &Camera) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 41 - pub fn draw(&mut self, model: &Model, camera: &Camera) { [INFO] [stdout] 41 + pub fn draw(&mut self, model: &dyn Model, camera: &Camera) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/shaders/mod.rs:11:65 [INFO] [stdout] | [INFO] [stdout] 11 | Err(why) => panic!("couldn't open {}: {}", display, why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/shaders/mod.rs:17:65 [INFO] [stdout] | [INFO] [stdout] 17 | Err(why) => panic!("couldn't read {}: {}", display, why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `events` [INFO] [stdout] --> src/application.rs:55:17 [INFO] [stdout] | [INFO] [stdout] 55 | let events = events_loop.poll_events(|event| { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_events` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `speed` [INFO] [stdout] --> src/game_state.rs:54:13 [INFO] [stdout] | [INFO] [stdout] 54 | let speed = 50.0; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_speed` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delta_t` [INFO] [stdout] --> src/game_state.rs:53:47 [INFO] [stdout] | [INFO] [stdout] 53 | fn process_event(&mut self, event: Event, delta_t: f32) -> () { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_delta_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delta_t` [INFO] [stdout] --> src/game_state.rs:149:26 [INFO] [stdout] | [INFO] [stdout] 149 | fn update(&mut self, delta_t: f32) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_delta_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delta_t` [INFO] [stdout] --> src/game_state.rs:156:43 [INFO] [stdout] | [INFO] [stdout] 156 | fn draw(&self, renderer: &mut Master, delta_t: f32) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_delta_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/textures/mod.rs:36:38 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn texture_coords_for(&self, x: u32, y: u32) -> TextureCoordinates { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/textures/mod.rs:36:46 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn texture_coords_for(&self, x: u32, y: u32) -> TextureCoordinates { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tex_coords_right` [INFO] [stdout] --> src/model/cube.rs:73:13 [INFO] [stdout] | [INFO] [stdout] 73 | let tex_coords_right: TextureCoordinates = atlas.texture_coords_for(0, 1); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tex_coords_right` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tex_coords_left` [INFO] [stdout] --> src/model/cube.rs:74:13 [INFO] [stdout] | [INFO] [stdout] 74 | let tex_coords_left: TextureCoordinates = atlas.texture_coords_for(0, 1); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tex_coords_left` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tex_coords_top` [INFO] [stdout] --> src/model/cube.rs:75:13 [INFO] [stdout] | [INFO] [stdout] 75 | let tex_coords_top: TextureCoordinates = atlas.texture_coords_for(0, 0); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tex_coords_top` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tex_coords_bottom` [INFO] [stdout] --> src/model/cube.rs:76:13 [INFO] [stdout] | [INFO] [stdout] 76 | let tex_coords_bottom: TextureCoordinates = atlas.texture_coords_for(0, 2); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tex_coords_bottom` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/application.rs:51:17 [INFO] [stdout] | [INFO] [stdout] 51 | let mut current_state = self.current_state_mut(); [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/game_state.rs:150:13 [INFO] [stdout] | [INFO] [stdout] 150 | for mut model in self.models.iter_mut() { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pop_state` [INFO] [stdout] --> src/application.rs:116:12 [INFO] [stdout] | [INFO] [stdout] 116 | pub fn pop_state(&mut self) -> () { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from_position` [INFO] [stdout] --> src/entity.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn from_position(pos: (f32, f32, f32)) -> Entity { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `update_position` [INFO] [stdout] --> src/entity.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn update_position(&mut self, delta_pos: Vector3) -> () { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `texture_size` [INFO] [stdout] --> src/textures/mod.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | texture_size: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `image_size` [INFO] [stdout] --> src/textures/mod.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | image_size: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `textures_per_row` [INFO] [stdout] --> src/textures/mod.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | fn textures_per_row(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `reset_cursor_position` [INFO] [stdout] --> src/window.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn reset_cursor_position(&self) -> () { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 34 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 2m 14s [INFO] running `Command { std: "docker" "inspect" "8eab463479f0e51544ee02db420d7421dfb656e04aa34f2533f052d20496c477", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8eab463479f0e51544ee02db420d7421dfb656e04aa34f2533f052d20496c477", kill_on_drop: false }` [INFO] [stdout] 8eab463479f0e51544ee02db420d7421dfb656e04aa34f2533f052d20496c477 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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=warn" "-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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen" "--no-run" "--message-format=json", 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] 7671cb3d0dbbfd50bb09fbaaa010fab581565ef0c78aa2f6a91e9aa67c866378 [INFO] running `Command { std: "docker" "start" "-a" "7671cb3d0dbbfd50bb09fbaaa010fab581565ef0c78aa2f6a91e9aa67c866378", kill_on_drop: false }` [INFO] [stderr] Compiling rustcraft v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Deg`, `PerspectiveFov` [INFO] [stdout] --> src/model/cube.rs:4:14 [INFO] [stdout] | [INFO] [stdout] 4 | use cgmath::{Deg, Matrix3, Matrix4, PerspectiveFov, Rad, Vector3}; [INFO] [stdout] | ^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> src/model/mod.rs:18:35 [INFO] [stdout] | [INFO] [stdout] 18 | fn update_position(&mut self, Vector3) -> (); [INFO] [stdout] | ^^^^^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: Vector3` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(anonymous_parameters)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> src/model/mod.rs:19:35 [INFO] [stdout] | [INFO] [stdout] 19 | fn update_rotation(&mut self, Vector3) -> (); [INFO] [stdout] | ^^^^^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: Vector3` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> src/model/mod.rs:20:25 [INFO] [stdout] | [INFO] [stdout] 20 | fn positions(&self, &Display) -> VertexBuffer; [INFO] [stdout] | ^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: &Display` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> src/model/mod.rs:21:23 [INFO] [stdout] | [INFO] [stdout] 21 | fn indices(&self, &Display) -> IndexBuffer; [INFO] [stdout] | ^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: &Display` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/model/mod.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | implement_vertex!(Vertex, position, tex_coords); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in the macro `implement_vertex` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/application.rs:12:26 [INFO] [stdout] | [INFO] [stdout] 12 | state_stack: Vec>, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 12 - state_stack: Vec>, [INFO] [stdout] 12 + state_stack: Vec>, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/game_state.rs:10:21 [INFO] [stdout] | [INFO] [stdout] 10 | models: Vec>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 10 - models: Vec>, [INFO] [stdout] 10 + models: Vec>, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/application.rs:112:50 [INFO] [stdout] | [INFO] [stdout] 112 | pub fn push_state(&mut self, game_state: Box) -> () { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 112 - pub fn push_state(&mut self, game_state: Box) -> () { [INFO] [stdout] 112 + pub fn push_state(&mut self, game_state: Box) -> () { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/application.rs:120:41 [INFO] [stdout] | [INFO] [stdout] 120 | pub fn current_state(&self) -> &Box { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 120 - pub fn current_state(&self) -> &Box { [INFO] [stdout] 120 + pub fn current_state(&self) -> &Box { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/application.rs:124:53 [INFO] [stdout] | [INFO] [stdout] 124 | pub fn current_state_mut(&mut self) -> &mut Box { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 124 - pub fn current_state_mut(&mut self) -> &mut Box { [INFO] [stdout] 124 + pub fn current_state_mut(&mut self) -> &mut Box { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/renderer/mod.rs:41:36 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn draw(&mut self, model: &Model, camera: &Camera) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 41 - pub fn draw(&mut self, model: &Model, camera: &Camera) { [INFO] [stdout] 41 + pub fn draw(&mut self, model: &dyn Model, camera: &Camera) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/shaders/mod.rs:11:65 [INFO] [stdout] | [INFO] [stdout] 11 | Err(why) => panic!("couldn't open {}: {}", display, why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/shaders/mod.rs:17:65 [INFO] [stdout] | [INFO] [stdout] 17 | Err(why) => panic!("couldn't read {}: {}", display, why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `events` [INFO] [stdout] --> src/application.rs:55:17 [INFO] [stdout] | [INFO] [stdout] 55 | let events = events_loop.poll_events(|event| { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_events` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `speed` [INFO] [stdout] --> src/game_state.rs:54:13 [INFO] [stdout] | [INFO] [stdout] 54 | let speed = 50.0; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_speed` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delta_t` [INFO] [stdout] --> src/game_state.rs:53:47 [INFO] [stdout] | [INFO] [stdout] 53 | fn process_event(&mut self, event: Event, delta_t: f32) -> () { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_delta_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delta_t` [INFO] [stdout] --> src/game_state.rs:149:26 [INFO] [stdout] | [INFO] [stdout] 149 | fn update(&mut self, delta_t: f32) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_delta_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delta_t` [INFO] [stdout] --> src/game_state.rs:156:43 [INFO] [stdout] | [INFO] [stdout] 156 | fn draw(&self, renderer: &mut Master, delta_t: f32) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_delta_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/textures/mod.rs:36:38 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn texture_coords_for(&self, x: u32, y: u32) -> TextureCoordinates { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/textures/mod.rs:36:46 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn texture_coords_for(&self, x: u32, y: u32) -> TextureCoordinates { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tex_coords_right` [INFO] [stdout] --> src/model/cube.rs:73:13 [INFO] [stdout] | [INFO] [stdout] 73 | let tex_coords_right: TextureCoordinates = atlas.texture_coords_for(0, 1); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tex_coords_right` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tex_coords_left` [INFO] [stdout] --> src/model/cube.rs:74:13 [INFO] [stdout] | [INFO] [stdout] 74 | let tex_coords_left: TextureCoordinates = atlas.texture_coords_for(0, 1); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tex_coords_left` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tex_coords_top` [INFO] [stdout] --> src/model/cube.rs:75:13 [INFO] [stdout] | [INFO] [stdout] 75 | let tex_coords_top: TextureCoordinates = atlas.texture_coords_for(0, 0); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tex_coords_top` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tex_coords_bottom` [INFO] [stdout] --> src/model/cube.rs:76:13 [INFO] [stdout] | [INFO] [stdout] 76 | let tex_coords_bottom: TextureCoordinates = atlas.texture_coords_for(0, 2); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tex_coords_bottom` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/application.rs:51:17 [INFO] [stdout] | [INFO] [stdout] 51 | let mut current_state = self.current_state_mut(); [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/game_state.rs:150:13 [INFO] [stdout] | [INFO] [stdout] 150 | for mut model in self.models.iter_mut() { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pop_state` [INFO] [stdout] --> src/application.rs:116:12 [INFO] [stdout] | [INFO] [stdout] 116 | pub fn pop_state(&mut self) -> () { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from_position` [INFO] [stdout] --> src/entity.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn from_position(pos: (f32, f32, f32)) -> Entity { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `update_position` [INFO] [stdout] --> src/entity.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn update_position(&mut self, delta_pos: Vector3) -> () { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `texture_size` [INFO] [stdout] --> src/textures/mod.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | texture_size: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `image_size` [INFO] [stdout] --> src/textures/mod.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | image_size: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `textures_per_row` [INFO] [stdout] --> src/textures/mod.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | fn textures_per_row(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `reset_cursor_position` [INFO] [stdout] --> src/window.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn reset_cursor_position(&self) -> () { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 34 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.45s [INFO] [stderr] Executable unittests src/main.rs (/opt/rustwide/target/debug/deps/rustcraft-e42a55bfd5ca3d7b) [INFO] running `Command { std: "docker" "inspect" "7671cb3d0dbbfd50bb09fbaaa010fab581565ef0c78aa2f6a91e9aa67c866378", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7671cb3d0dbbfd50bb09fbaaa010fab581565ef0c78aa2f6a91e9aa67c866378", kill_on_drop: false }` [INFO] [stdout] 7671cb3d0dbbfd50bb09fbaaa010fab581565ef0c78aa2f6a91e9aa67c866378 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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=warn" "-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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen", 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] bb3da9ec463f9eababdd7c9689081676f05dab9254ee8478c9c0cc6d138cad9a [INFO] running `Command { std: "docker" "start" "-a" "bb3da9ec463f9eababdd7c9689081676f05dab9254ee8478c9c0cc6d138cad9a", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] warning: unused imports: `Deg`, `PerspectiveFov` [INFO] [stderr] --> src/model/cube.rs:4:14 [INFO] [stderr] | [INFO] [stderr] 4 | use cgmath::{Deg, Matrix3, Matrix4, PerspectiveFov, Rad, Vector3}; [INFO] [stderr] | ^^^ ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stderr] --> src/model/mod.rs:18:35 [INFO] [stderr] | [INFO] [stderr] 18 | fn update_position(&mut self, Vector3) -> (); [INFO] [stderr] | ^^^^^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: Vector3` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(anonymous_parameters)]` on by default [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stderr] = note: for more information, see issue #41686 [INFO] [stderr] [INFO] [stderr] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stderr] --> src/model/mod.rs:19:35 [INFO] [stderr] | [INFO] [stderr] 19 | fn update_rotation(&mut self, Vector3) -> (); [INFO] [stderr] | ^^^^^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: Vector3` [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stderr] = note: for more information, see issue #41686 [INFO] [stderr] [INFO] [stderr] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stderr] --> src/model/mod.rs:20:25 [INFO] [stderr] | [INFO] [stderr] 20 | fn positions(&self, &Display) -> VertexBuffer; [INFO] [stderr] | ^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: &Display` [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stderr] = note: for more information, see issue #41686 [INFO] [stderr] [INFO] [stderr] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stderr] --> src/model/mod.rs:21:23 [INFO] [stderr] | [INFO] [stderr] 21 | fn indices(&self, &Display) -> IndexBuffer; [INFO] [stderr] | ^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: &Display` [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stderr] = note: for more information, see issue #41686 [INFO] [stderr] [INFO] [stderr] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stderr] --> src/model/mod.rs:15:1 [INFO] [stderr] | [INFO] [stderr] 15 | implement_vertex!(Vertex, position, tex_coords); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] = note: this warning originates in the macro `implement_vertex` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/application.rs:12:26 [INFO] [stderr] | [INFO] [stderr] 12 | state_stack: Vec>, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 12 - state_stack: Vec>, [INFO] [stderr] 12 + state_stack: Vec>, [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/game_state.rs:10:21 [INFO] [stderr] | [INFO] [stderr] 10 | models: Vec>, [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 10 - models: Vec>, [INFO] [stderr] 10 + models: Vec>, [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/application.rs:112:50 [INFO] [stderr] | [INFO] [stderr] 112 | pub fn push_state(&mut self, game_state: Box) -> () { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 112 - pub fn push_state(&mut self, game_state: Box) -> () { [INFO] [stderr] 112 + pub fn push_state(&mut self, game_state: Box) -> () { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/application.rs:120:41 [INFO] [stderr] | [INFO] [stderr] 120 | pub fn current_state(&self) -> &Box { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 120 - pub fn current_state(&self) -> &Box { [INFO] [stderr] 120 + pub fn current_state(&self) -> &Box { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/application.rs:124:53 [INFO] [stderr] | [INFO] [stderr] 124 | pub fn current_state_mut(&mut self) -> &mut Box { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 124 - pub fn current_state_mut(&mut self) -> &mut Box { [INFO] [stderr] 124 + pub fn current_state_mut(&mut self) -> &mut Box { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/renderer/mod.rs:41:36 [INFO] [stderr] | [INFO] [stderr] 41 | pub fn draw(&mut self, model: &Model, camera: &Camera) { [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stdout] [INFO] [stderr] | [INFO] [stdout] running 0 tests [INFO] [stderr] 41 - pub fn draw(&mut self, model: &Model, camera: &Camera) { [INFO] [stdout] [INFO] [stderr] 41 + pub fn draw(&mut self, model: &dyn Model, camera: &Camera) { [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stderr] | [INFO] [stdout] [INFO] [stderr] [INFO] [stderr] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stderr] --> src/shaders/mod.rs:11:65 [INFO] [stderr] | [INFO] [stderr] 11 | Err(why) => panic!("couldn't open {}: {}", display, why.description()), [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stderr] --> src/shaders/mod.rs:17:65 [INFO] [stderr] | [INFO] [stderr] 17 | Err(why) => panic!("couldn't read {}: {}", display, why.description()), [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `events` [INFO] [stderr] --> src/application.rs:55:17 [INFO] [stderr] | [INFO] [stderr] 55 | let events = events_loop.poll_events(|event| { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_events` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `speed` [INFO] [stderr] --> src/game_state.rs:54:13 [INFO] [stderr] | [INFO] [stderr] 54 | let speed = 50.0; [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_speed` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `delta_t` [INFO] [stderr] --> src/game_state.rs:53:47 [INFO] [stderr] | [INFO] [stderr] 53 | fn process_event(&mut self, event: Event, delta_t: f32) -> () { [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_delta_t` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `delta_t` [INFO] [stderr] --> src/game_state.rs:149:26 [INFO] [stderr] | [INFO] [stderr] 149 | fn update(&mut self, delta_t: f32) { [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_delta_t` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `delta_t` [INFO] [stderr] --> src/game_state.rs:156:43 [INFO] [stderr] | [INFO] [stderr] 156 | fn draw(&self, renderer: &mut Master, delta_t: f32) { [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_delta_t` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `x` [INFO] [stderr] --> src/textures/mod.rs:36:38 [INFO] [stderr] | [INFO] [stderr] 36 | pub fn texture_coords_for(&self, x: u32, y: u32) -> TextureCoordinates { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `y` [INFO] [stderr] --> src/textures/mod.rs:36:46 [INFO] [stderr] | [INFO] [stderr] 36 | pub fn texture_coords_for(&self, x: u32, y: u32) -> TextureCoordinates { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `tex_coords_right` [INFO] [stderr] --> src/model/cube.rs:73:13 [INFO] [stderr] | [INFO] [stderr] 73 | let tex_coords_right: TextureCoordinates = atlas.texture_coords_for(0, 1); [INFO] [stderr] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tex_coords_right` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `tex_coords_left` [INFO] [stderr] --> src/model/cube.rs:74:13 [INFO] [stderr] | [INFO] [stderr] 74 | let tex_coords_left: TextureCoordinates = atlas.texture_coords_for(0, 1); [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tex_coords_left` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `tex_coords_top` [INFO] [stderr] --> src/model/cube.rs:75:13 [INFO] [stderr] | [INFO] [stderr] 75 | let tex_coords_top: TextureCoordinates = atlas.texture_coords_for(0, 0); [INFO] [stderr] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tex_coords_top` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `tex_coords_bottom` [INFO] [stderr] --> src/model/cube.rs:76:13 [INFO] [stderr] | [INFO] [stderr] 76 | let tex_coords_bottom: TextureCoordinates = atlas.texture_coords_for(0, 2); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tex_coords_bottom` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/application.rs:51:17 [INFO] [stderr] | [INFO] [stderr] 51 | let mut current_state = self.current_state_mut(); [INFO] [stderr] | ----^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/game_state.rs:150:13 [INFO] [stderr] | [INFO] [stderr] 150 | for mut model in self.models.iter_mut() { [INFO] [stderr] | ----^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `pop_state` [INFO] [stderr] --> src/application.rs:116:12 [INFO] [stderr] | [INFO] [stderr] 116 | pub fn pop_state(&mut self) -> () { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `from_position` [INFO] [stderr] --> src/entity.rs:10:12 [INFO] [stderr] | [INFO] [stderr] 10 | pub fn from_position(pos: (f32, f32, f32)) -> Entity { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `update_position` [INFO] [stderr] --> src/entity.rs:24:12 [INFO] [stderr] | [INFO] [stderr] 24 | pub fn update_position(&mut self, delta_pos: Vector3) -> () { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `texture_size` [INFO] [stderr] --> src/textures/mod.rs:17:5 [INFO] [stderr] | [INFO] [stderr] 17 | texture_size: u32, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `image_size` [INFO] [stderr] --> src/textures/mod.rs:18:5 [INFO] [stderr] | [INFO] [stderr] 18 | image_size: u32, [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `textures_per_row` [INFO] [stderr] --> src/textures/mod.rs:32:8 [INFO] [stderr] | [INFO] [stderr] 32 | fn textures_per_row(&self) -> u32 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `reset_cursor_position` [INFO] [stderr] --> src/window.rs:38:12 [INFO] [stderr] | [INFO] [stderr] 38 | pub fn reset_cursor_position(&self) -> () { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `rustcraft` (bin "rustcraft" test) generated 34 warnings [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.28s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/rustcraft-e42a55bfd5ca3d7b) [INFO] running `Command { std: "docker" "inspect" "bb3da9ec463f9eababdd7c9689081676f05dab9254ee8478c9c0cc6d138cad9a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bb3da9ec463f9eababdd7c9689081676f05dab9254ee8478c9c0cc6d138cad9a", kill_on_drop: false }` [INFO] [stdout] bb3da9ec463f9eababdd7c9689081676f05dab9254ee8478c9c0cc6d138cad9a