[INFO] cloning repository https://github.com/ToastBreadMan/rust_3d_rendering [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ToastBreadMan/rust_3d_rendering" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FToastBreadMan%2Frust_3d_rendering", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FToastBreadMan%2Frust_3d_rendering'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c3183d0bb8871fa904129f0d1a3c76dde709c8cb [INFO] building ToastBreadMan/rust_3d_rendering against master#222c5724ecc922fe67815f428c19f82c129d9386 for pr-97334 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FToastBreadMan%2Frust_3d_rendering" "/workspace/builds/worker-24/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-24/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ToastBreadMan/rust_3d_rendering on toolchain 222c5724ecc922fe67815f428c19f82c129d9386 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+222c5724ecc922fe67815f428c19f82c129d9386" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ToastBreadMan/rust_3d_rendering [INFO] finished tweaking git repo https://github.com/ToastBreadMan/rust_3d_rendering [INFO] tweaked toml for git repo https://github.com/ToastBreadMan/rust_3d_rendering written to /workspace/builds/worker-24/source/Cargo.toml [INFO] crate git repo https://github.com/ToastBreadMan/rust_3d_rendering already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+222c5724ecc922fe67815f428c19f82c129d9386" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded pixels v0.6.0 [INFO] [stderr] Downloaded gpu-alloc v0.5.2 [INFO] [stderr] Downloaded wgpu v0.10.2 [INFO] [stderr] Downloaded wgpu-hal v0.10.7 [INFO] [stderr] Downloaded wgpu-types v0.10.0 [INFO] [stderr] Downloaded naga v0.6.3 [INFO] [stderr] Downloaded wgpu-core v0.10.4 [INFO] [stderr] Downloaded minimal-lexical v0.1.3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-24/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-24/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:ac0d0aa6ec8ed129e241004a6179c99fa0d2616f50ba759c5b60bd26d0fafa02" "/opt/rustwide/cargo-home/bin/cargo" "+222c5724ecc922fe67815f428c19f82c129d9386" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e00a58f86aff5994e348ebb20af063d72be7b17f9257cc664863c5ce57b732a8 [INFO] running `Command { std: "docker" "start" "-a" "e00a58f86aff5994e348ebb20af063d72be7b17f9257cc664863c5ce57b732a8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e00a58f86aff5994e348ebb20af063d72be7b17f9257cc664863c5ce57b732a8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e00a58f86aff5994e348ebb20af063d72be7b17f9257cc664863c5ce57b732a8", kill_on_drop: false }` [INFO] [stdout] e00a58f86aff5994e348ebb20af063d72be7b17f9257cc664863c5ce57b732a8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-24/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-24/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:ac0d0aa6ec8ed129e241004a6179c99fa0d2616f50ba759c5b60bd26d0fafa02" "/opt/rustwide/cargo-home/bin/cargo" "+222c5724ecc922fe67815f428c19f82c129d9386" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 31535b2b307646f573bd90d4d63bdc25c20d05bce14ec4066a541a0268fc3d81 [INFO] running `Command { std: "docker" "start" "-a" "31535b2b307646f573bd90d4d63bdc25c20d05bce14ec4066a541a0268fc3d81", kill_on_drop: false }` [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling libc v0.2.103 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling proc-macro2 v1.0.29 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling pkg-config v0.3.20 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling smallvec v1.7.0 [INFO] [stderr] Compiling xml-rs v0.8.4 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling syn v1.0.77 [INFO] [stderr] Compiling crossbeam-utils v0.8.5 [INFO] [stderr] Compiling parking_lot_core v0.8.5 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling hashbrown v0.11.2 [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Compiling khronos-egl v4.1.0 [INFO] [stderr] Compiling crossbeam-epoch v0.9.5 [INFO] [stderr] Compiling fixedbitset v0.4.0 [INFO] [stderr] Compiling once_cell v1.8.0 [INFO] [stderr] Compiling termcolor v1.1.2 [INFO] [stderr] Compiling bit-vec v0.6.3 [INFO] [stderr] Compiling ahash v0.4.7 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling unicode-width v0.1.9 [INFO] [stderr] Compiling cfg_aliases v0.1.1 [INFO] [stderr] Compiling minimal-lexical v0.1.3 [INFO] [stderr] Compiling scoped-tls v1.0.0 [INFO] [stderr] Compiling downcast-rs v1.2.0 [INFO] [stderr] Compiling crossbeam-queue v0.3.2 [INFO] [stderr] Compiling nix v0.18.0 [INFO] [stderr] Compiling ttf-parser v0.6.2 [INFO] [stderr] Compiling glow v0.11.0 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling inplace_it v0.3.3 [INFO] [stderr] Compiling renderdoc-sys v0.7.1 [INFO] [stderr] Compiling bytemuck v1.7.2 [INFO] [stderr] Compiling ab_glyph_rasterizer v0.1.4 [INFO] [stderr] Compiling arrayvec v0.7.1 [INFO] [stderr] Compiling profiling v1.0.3 [INFO] [stderr] Compiling copyless v0.1.5 [INFO] [stderr] Compiling rawpointer v0.2.1 [INFO] [stderr] Compiling xdg v2.2.0 [INFO] [stderr] Compiling winit v0.25.0 [INFO] [stderr] Compiling pollster v0.2.4 [INFO] [stderr] Compiling percent-encoding v2.1.0 [INFO] [stderr] Compiling gpu-descriptor-types v0.1.1 [INFO] [stderr] Compiling gpu-alloc-types v0.2.0 [INFO] [stderr] Compiling wgpu-types v0.10.0 [INFO] [stderr] Compiling matrixmultiply v0.3.1 [INFO] [stderr] Compiling libloading v0.7.0 [INFO] [stderr] Compiling instant v0.1.11 [INFO] [stderr] Compiling libloading v0.6.7 [INFO] [stderr] Compiling walkdir v2.3.2 [INFO] [stderr] Compiling lock_api v0.4.5 [INFO] [stderr] Compiling gpu-alloc v0.5.2 [INFO] [stderr] Compiling safe_arch v0.5.2 [INFO] [stderr] Compiling codespan-reporting v0.11.1 [INFO] [stderr] Compiling wgpu-core v0.10.4 [INFO] [stderr] Compiling dlib v0.4.2 [INFO] [stderr] Compiling hashbrown v0.9.1 [INFO] [stderr] Compiling bit-set v0.5.2 [INFO] [stderr] Compiling dlib v0.5.0 [INFO] [stderr] Compiling ash v0.33.3+1.2.191 [INFO] [stderr] Compiling nom v7.0.0 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling fxhash v0.2.1 [INFO] [stderr] Compiling crossbeam-channel v0.5.1 [INFO] [stderr] Compiling wide v0.6.5 [INFO] [stderr] Compiling wayland-sys v0.28.6 [INFO] [stderr] Compiling x11-dl v2.19.1 [INFO] [stderr] Compiling wayland-scanner v0.28.6 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling indexmap v1.7.0 [INFO] [stderr] Compiling memoffset v0.6.4 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling gpu-descriptor v0.2.1 [INFO] [stderr] Compiling owned_ttf_parser v0.6.0 [INFO] [stderr] Compiling rusttype v0.9.2 [INFO] [stderr] Compiling nix v0.20.0 [INFO] [stderr] Compiling raw-window-handle v0.3.3 [INFO] [stderr] Compiling memmap2 v0.1.0 [INFO] [stderr] Compiling mio v0.7.13 [INFO] [stderr] Compiling andrew v0.3.1 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling crossbeam-deque v0.8.1 [INFO] [stderr] Compiling petgraph v0.6.0 [INFO] [stderr] Compiling crossbeam v0.8.1 [INFO] [stderr] Compiling mio-misc v1.2.1 [INFO] [stderr] Compiling spirv v0.2.0+1.5.4 [INFO] [stderr] Compiling num-complex v0.4.0 [INFO] [stderr] Compiling wayland-client v0.28.6 [INFO] [stderr] Compiling wayland-protocols v0.28.6 [INFO] [stderr] Compiling ultraviolet v0.8.1 [INFO] [stderr] Compiling ndarray v0.15.3 [INFO] [stderr] Compiling xcursor v0.3.4 [INFO] [stderr] Compiling thiserror-impl v1.0.29 [INFO] [stderr] Compiling calloop v0.6.5 [INFO] [stderr] Compiling wayland-commons v0.28.6 [INFO] [stderr] Compiling models v0.1.0 (/opt/rustwide/workdir/models) [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> models/src/World.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> models/src/World.rs:10:23 [INFO] [stdout] | [INFO] [stdout] 10 | pub world: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 2018) 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 - pub world:Vec>, [INFO] [stdout] 10 + pub world:Vec>, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> models/src/World.rs:22:38 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn add(&mut self, object:Box){ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 22 - pub fn add(&mut self, object:Box){ [INFO] [stdout] 22 + pub fn add(&mut self, object:Box){ [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> models/src/World.rs:26:55 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn change(&mut self, index: usize, object:Box)->Box { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 26 - pub fn change(&mut self, index: usize, object:Box)->Box { [INFO] [stdout] 26 + pub fn change(&mut self, index: usize, object:Box)->Box { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> models/src/World.rs:26:69 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn change(&mut self, index: usize, object:Box)->Box { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 26 - pub fn change(&mut self, index: usize, object:Box)->Box { [INFO] [stdout] 26 + pub fn change(&mut self, index: usize, object:Box)->Box { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> models/src/World.rs:49:14 [INFO] [stdout] | [INFO] [stdout] 49 | for (i, pixel) in frame.chunks_exact_mut(4).enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dist` [INFO] [stdout] --> models/src/Circle.rs:20:17 [INFO] [stdout] | [INFO] [stdout] 20 | let dist = proc.sqrt(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_dist` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v1` [INFO] [stdout] --> models/src/Polygon.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 40 | let v1:Vec = vectors.clone(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_v1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `background` [INFO] [stdout] --> models/src/World.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | background:Box<[u8]>, [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: `get_min_max` [INFO] [stdout] --> models/src/Polygon.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | fn get_min_max(&self, vectors:Vec) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Rectangle` should have a snake case name [INFO] [stdout] --> models/src/lib.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub mod Rectangle; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `rectangle` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `World` should have a snake case name [INFO] [stdout] --> models/src/lib.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub mod World; [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case (notice the capitalization): `world` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Circle` should have a snake case name [INFO] [stdout] --> models/src/lib.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub mod Circle; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case (notice the capitalization): `circle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Polygon` should have a snake case name [INFO] [stdout] --> models/src/lib.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub mod Polygon; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `polygon` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Vector` should have a snake case name [INFO] [stdout] --> models/src/lib.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub mod Vector; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case (notice the capitalization): `vector` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Line` should have a snake case name [INFO] [stdout] --> models/src/lib.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub mod Line; [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `line` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Mats` should have a snake case name [INFO] [stdout] --> models/src/lib.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub mod Mats; [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `mats` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Camera` should have a snake case name [INFO] [stdout] --> models/src/dim3/mod.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub mod Camera; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case (notice the capitalization): `camera` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Cube` should have a snake case name [INFO] [stdout] --> models/src/dim3/mod.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub mod Cube; [INFO] [stdout] | ^^^^ help: convert the identifier to snake case (notice the capitalization): `cube` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 19 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling thiserror v1.0.29 [INFO] [stderr] Compiling naga v0.6.3 [INFO] [stderr] Compiling wayland-cursor v0.28.6 [INFO] [stderr] Compiling wgpu-hal v0.10.7 [INFO] [stderr] Compiling smithay-client-toolkit v0.12.3 [INFO] [stderr] Compiling wgpu v0.10.2 [INFO] [stderr] Compiling pixels v0.6.0 [INFO] [stderr] Compiling engine_3d v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Error` [INFO] [stdout] --> src/main.rs:8:14 [INFO] [stdout] | [INFO] [stdout] 8 | use pixels::{Error, Pixels, SurfaceTexture}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Duration` [INFO] [stdout] --> src/main.rs:11:17 [INFO] [stdout] | [INFO] [stdout] 11 | use std::time::{Duration, Instant}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Circle::Circle`, `Line::Line`, `Polygon::Polygon`, `Rectangle::Rect`, `Vector::Vec2d` [INFO] [stdout] --> src/main.rs:12:14 [INFO] [stdout] | [INFO] [stdout] 12 | use models::{Rectangle::Rect, World::World, Circle::Circle, Polygon::Polygon, Vector::Vec2d,Vector::Vec3d, Line::Line, Mats::Mats, dim3::... [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `window_id` [INFO] [stdout] --> src/main.rs:72:17 [INFO] [stdout] | [INFO] [stdout] 72 | window_id [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `window_id: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `projection_matrix` [INFO] [stdout] --> src/main.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | let projection_matrix = Mats::projection_matrix(ar, fov as f64, far,near, q); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_projection_matrix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rgba` [INFO] [stdout] --> src/main.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | let rgba = [0,0xff,0,0xff]; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_rgba` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | let mut a = 10.0; [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 `WIDTH` should have a snake case name [INFO] [stdout] --> src/main.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | let WIDTH:u32 = 600; [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `width` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `HEIGHT` should have a snake case name [INFO] [stdout] --> src/main.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | let HEIGHT:u32 = 600; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `height` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 13s [INFO] running `Command { std: "docker" "inspect" "31535b2b307646f573bd90d4d63bdc25c20d05bce14ec4066a541a0268fc3d81", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "31535b2b307646f573bd90d4d63bdc25c20d05bce14ec4066a541a0268fc3d81", kill_on_drop: false }` [INFO] [stdout] 31535b2b307646f573bd90d4d63bdc25c20d05bce14ec4066a541a0268fc3d81 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-24/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-24/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:ac0d0aa6ec8ed129e241004a6179c99fa0d2616f50ba759c5b60bd26d0fafa02" "/opt/rustwide/cargo-home/bin/cargo" "+222c5724ecc922fe67815f428c19f82c129d9386" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b443a72e02697cf9438f0f477e71bdb1e6cb88651bcb9b39713c8b85b5bfc8b1 [INFO] running `Command { std: "docker" "start" "-a" "b443a72e02697cf9438f0f477e71bdb1e6cb88651bcb9b39713c8b85b5bfc8b1", kill_on_drop: false }` [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> models/src/World.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> models/src/World.rs:10:23 [INFO] [stdout] | [INFO] [stdout] 10 | pub world: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 2018) 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 - pub world:Vec>, [INFO] [stdout] 10 + pub world:Vec>, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> models/src/World.rs:22:38 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn add(&mut self, object:Box){ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 22 - pub fn add(&mut self, object:Box){ [INFO] [stdout] 22 + pub fn add(&mut self, object:Box){ [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> models/src/World.rs:26:55 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn change(&mut self, index: usize, object:Box)->Box { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 26 - pub fn change(&mut self, index: usize, object:Box)->Box { [INFO] [stdout] 26 + pub fn change(&mut self, index: usize, object:Box)->Box { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> models/src/World.rs:26:69 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn change(&mut self, index: usize, object:Box)->Box { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 26 - pub fn change(&mut self, index: usize, object:Box)->Box { [INFO] [stdout] 26 + pub fn change(&mut self, index: usize, object:Box)->Box { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> models/src/World.rs:49:14 [INFO] [stdout] | [INFO] [stdout] 49 | for (i, pixel) in frame.chunks_exact_mut(4).enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dist` [INFO] [stdout] --> models/src/Circle.rs:20:17 [INFO] [stdout] | [INFO] [stdout] 20 | let dist = proc.sqrt(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_dist` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v1` [INFO] [stdout] --> models/src/Polygon.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 40 | let v1:Vec = vectors.clone(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_v1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `background` [INFO] [stdout] --> models/src/World.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | background:Box<[u8]>, [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: `get_min_max` [INFO] [stdout] --> models/src/Polygon.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | fn get_min_max(&self, vectors:Vec) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Rectangle` should have a snake case name [INFO] [stdout] --> models/src/lib.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub mod Rectangle; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `rectangle` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `World` should have a snake case name [INFO] [stdout] --> models/src/lib.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub mod World; [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case (notice the capitalization): `world` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Circle` should have a snake case name [INFO] [stdout] --> models/src/lib.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub mod Circle; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case (notice the capitalization): `circle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Polygon` should have a snake case name [INFO] [stdout] --> models/src/lib.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub mod Polygon; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `polygon` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Vector` should have a snake case name [INFO] [stdout] --> models/src/lib.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub mod Vector; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case (notice the capitalization): `vector` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Line` should have a snake case name [INFO] [stdout] --> models/src/lib.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub mod Line; [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `line` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Mats` should have a snake case name [INFO] [stdout] --> models/src/lib.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub mod Mats; [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `mats` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Camera` should have a snake case name [INFO] [stdout] --> models/src/dim3/mod.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub mod Camera; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case (notice the capitalization): `camera` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Cube` should have a snake case name [INFO] [stdout] --> models/src/dim3/mod.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub mod Cube; [INFO] [stdout] | ^^^^ help: convert the identifier to snake case (notice the capitalization): `cube` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 19 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling engine_3d v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Error` [INFO] [stdout] --> src/main.rs:8:14 [INFO] [stdout] | [INFO] [stdout] 8 | use pixels::{Error, Pixels, SurfaceTexture}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Duration` [INFO] [stdout] --> src/main.rs:11:17 [INFO] [stdout] | [INFO] [stdout] 11 | use std::time::{Duration, Instant}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Circle::Circle`, `Line::Line`, `Polygon::Polygon`, `Rectangle::Rect`, `Vector::Vec2d` [INFO] [stdout] --> src/main.rs:12:14 [INFO] [stdout] | [INFO] [stdout] 12 | use models::{Rectangle::Rect, World::World, Circle::Circle, Polygon::Polygon, Vector::Vec2d,Vector::Vec3d, Line::Line, Mats::Mats, dim3::... [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `window_id` [INFO] [stdout] --> src/main.rs:72:17 [INFO] [stdout] | [INFO] [stdout] 72 | window_id [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `window_id: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `projection_matrix` [INFO] [stdout] --> src/main.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | let projection_matrix = Mats::projection_matrix(ar, fov as f64, far,near, q); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_projection_matrix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rgba` [INFO] [stdout] --> src/main.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | let rgba = [0,0xff,0,0xff]; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_rgba` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | let mut a = 10.0; [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 `WIDTH` should have a snake case name [INFO] [stdout] --> src/main.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | let WIDTH:u32 = 600; [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `width` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `HEIGHT` should have a snake case name [INFO] [stdout] --> src/main.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | let HEIGHT:u32 = 600; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `height` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 10.69s [INFO] [stderr] Executable unittests src/main.rs (/opt/rustwide/target/debug/deps/engine_3d-b782fca969b0d8e4) [INFO] running `Command { std: "docker" "inspect" "b443a72e02697cf9438f0f477e71bdb1e6cb88651bcb9b39713c8b85b5bfc8b1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b443a72e02697cf9438f0f477e71bdb1e6cb88651bcb9b39713c8b85b5bfc8b1", kill_on_drop: false }` [INFO] [stdout] b443a72e02697cf9438f0f477e71bdb1e6cb88651bcb9b39713c8b85b5bfc8b1