[INFO] cloning repository https://github.com/MikP0/Ruster [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/MikP0/Ruster" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMikP0%2FRuster", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMikP0%2FRuster'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 06450e041332536cc5641a296f4622e8e680724a [INFO] building MikP0/Ruster against try#9a3ef2cd3ecaae3c6ef59768612837d797602a6d for pr-137044-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMikP0%2FRuster" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/MikP0/Ruster on toolchain 9a3ef2cd3ecaae3c6ef59768612837d797602a6d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9a3ef2cd3ecaae3c6ef59768612837d797602a6d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/MikP0/Ruster [INFO] finished tweaking git repo https://github.com/MikP0/Ruster [INFO] tweaked toml for git repo https://github.com/MikP0/Ruster written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/MikP0/Ruster already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9a3ef2cd3ecaae3c6ef59768612837d797602a6d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+9a3ef2cd3ecaae3c6ef59768612837d797602a6d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fd8c27baacd5261087d91d9cb4d0b4d73ee76a514fe0cb81ed12d12258b11ce1 [INFO] running `Command { std: "docker" "start" "-a" "fd8c27baacd5261087d91d9cb4d0b4d73ee76a514fe0cb81ed12d12258b11ce1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fd8c27baacd5261087d91d9cb4d0b4d73ee76a514fe0cb81ed12d12258b11ce1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fd8c27baacd5261087d91d9cb4d0b4d73ee76a514fe0cb81ed12d12258b11ce1", kill_on_drop: false }` [INFO] [stdout] fd8c27baacd5261087d91d9cb4d0b4d73ee76a514fe0cb81ed12d12258b11ce1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/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" "RUSTDOCFLAGS=--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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+9a3ef2cd3ecaae3c6ef59768612837d797602a6d" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d53c52ae918f25925db6288a096bbf69e7ca2ca919fa72361f498d2ff31f8b00 [INFO] running `Command { std: "docker" "start" "-a" "d53c52ae918f25925db6288a096bbf69e7ca2ca919fa72361f498d2ff31f8b00", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling libc v0.2.79 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling pkg-config v0.3.19 [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling maybe-uninit v2.0.0 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling xml-rs v0.8.3 [INFO] [stderr] Compiling getrandom v0.1.15 [INFO] [stderr] Compiling nix v0.17.0 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Compiling version_check v0.9.2 [INFO] [stderr] Compiling void v1.0.2 [INFO] [stderr] Compiling rayon-core v1.8.1 [INFO] [stderr] Compiling smallvec v1.5.1 [INFO] [stderr] Compiling once_cell v1.5.2 [INFO] [stderr] Compiling adler32 v1.2.0 [INFO] [stderr] Compiling crc32fast v1.2.0 [INFO] [stderr] Compiling downcast-rs v1.2.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.10 [INFO] [stderr] Compiling miniz_oxide v0.3.7 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling cc v1.0.66 [INFO] [stderr] Compiling color_quant v1.1.0 [INFO] [stderr] Compiling remove_dir_all v0.5.3 [INFO] [stderr] Compiling weezl v0.1.1 [INFO] [stderr] Compiling crossbeam-utils v0.7.2 [INFO] [stderr] Compiling memoffset v0.5.6 [INFO] [stderr] Compiling crossbeam-epoch v0.8.2 [INFO] [stderr] Compiling num-traits v0.2.12 [INFO] [stderr] Compiling nom v6.0.1 [INFO] [stderr] Compiling num-integer v0.1.43 [INFO] [stderr] Compiling wayland-sys v0.27.0 [INFO] [stderr] Compiling xkbcommon-sys v0.7.4 [INFO] [stderr] Compiling rayon v1.4.1 [INFO] [stderr] Compiling x11-dl v2.18.5 [INFO] [stderr] Compiling num-rational v0.3.0 [INFO] [stderr] Compiling num-iter v0.1.41 [INFO] [stderr] Compiling deflate v0.8.6 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Compiling lzw v0.10.0 [INFO] [stderr] Compiling gif v0.11.1 [INFO] [stderr] Compiling bytemuck v1.4.1 [INFO] [stderr] Compiling scoped_threadpool v0.1.9 [INFO] [stderr] Compiling tiff v0.5.0 [INFO] [stderr] Compiling wayland-scanner v0.27.0 [INFO] [stderr] Compiling crossbeam-channel v0.4.4 [INFO] [stderr] Compiling minifb v0.19.1 [INFO] [stderr] Compiling png v0.16.7 [INFO] [stderr] Compiling crossbeam-deque v0.7.3 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling raw-window-handle v0.3.3 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling xkb v0.2.1 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling wayland-client v0.27.0 [INFO] [stderr] Compiling wayland-protocols v0.27.0 [INFO] [stderr] Compiling tempfile v3.1.0 [INFO] [stderr] Compiling xcursor v0.3.3 [INFO] [stderr] Compiling jpeg-decoder v0.1.20 [INFO] [stderr] Compiling wayland-commons v0.27.0 [INFO] [stderr] Compiling image v0.23.10 [INFO] [stderr] Compiling wayland-cursor v0.27.0 [INFO] [stderr] Compiling ruster v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::buffer::pixel::Pixel` [INFO] [stdout] --> src/buffer/mesh.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::buffer::pixel::Pixel; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::buffer::math::mat4::Mat4` [INFO] [stdout] --> src/buffer/mesh.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::buffer::math::mat4::Mat4; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::buffer::math::matrix::Matrix` [INFO] [stdout] --> src/buffer/mesh.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::buffer::math::matrix::Matrix; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::buffer::math::vec4::Vec4` [INFO] [stdout] --> src/buffer/mesh.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::buffer::math::vec4::Vec4; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::buffer::math::vector::MulVectorMatrix` [INFO] [stdout] --> src/buffer/mesh.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::buffer::math::vector::MulVectorMatrix; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::buffer::math::vector::VecOps` [INFO] [stdout] --> src/buffer/mesh.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::buffer::math::vector::VecOps; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::buffer::math::vector::Vector` [INFO] [stdout] --> src/buffer/mesh.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::buffer::math::vector::Vector; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mesh::Mesh` [INFO] [stdout] --> src/buffer/mod.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | use mesh::Mesh; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::buffer::math::slice_ops::*` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::buffer::math::slice_ops::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::buffer::math::vector::Vector` [INFO] [stdout] --> src/buffer/math/mat4.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::buffer::math::vector::Vector; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/buffer/math/vec3.rs:12:25 [INFO] [stdout] | [INFO] [stdout] 12 | fn normalize(&self, mut vec: Self::VectorType) -> Self::VectorType { [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: unused variable: `j` [INFO] [stdout] --> src/buffer/mesh.rs:251:17 [INFO] [stdout] | [INFO] [stdout] 251 | for j in 0..loops { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_j` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | let mut camera_pos: Vec3 = [cam_x, cam_y, cam_z]; [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:47:13 [INFO] [stdout] | [INFO] [stdout] 47 | let mut camera_up: Vec3 = [0., 1., 0.]; [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:49:14 [INFO] [stdout] | [INFO] [stdout] 49 | let (mut x_pos, mut y_pos) = window.get_mouse_pos(MouseMode::Clamp).unwrap(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:49:25 [INFO] [stdout] | [INFO] [stdout] 49 | let (mut x_pos, mut y_pos) = window.get_mouse_pos(MouseMode::Clamp).unwrap(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `save_to_png` is never used [INFO] [stdout] --> src/buffer/mod.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 22 | pub trait Savable { [INFO] [stdout] | ------- method in this trait [INFO] [stdout] 23 | fn save_to_png(&self, path: &str); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `translate`, `scale`, and `rotate` are never used [INFO] [stdout] --> src/buffer/mod.rs:87:12 [INFO] [stdout] | [INFO] [stdout] 38 | impl Buffer { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 87 | pub fn translate(&mut self, vec: Vec3) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 95 | pub fn scale(&mut self, vec: Vec3) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 104 | pub fn rotate(&mut self, a: f32, vec: Vec3) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/buffer/math/matrix.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub trait Matrix { [INFO] [stdout] | ------ associated items in this trait [INFO] [stdout] ... [INFO] [stdout] 7 | fn ones() -> Self::MatrixType; [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 11 | fn transpose(&mut self) -> &mut Self::MatrixType; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | fn add(&mut self, rhs: &Self::MatrixType) -> &mut Self::MatrixType; [INFO] [stdout] | ^^^ [INFO] [stdout] 16 | [INFO] [stdout] 17 | fn sub(&mut self, rhs: &Self::MatrixType) -> &mut Self::MatrixType; [INFO] [stdout] | ^^^ [INFO] [stdout] 18 | [INFO] [stdout] 19 | fn scale(&mut self, factor: f32) -> &mut Self::MatrixType; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 20 | [INFO] [stdout] 21 | fn translate(&mut self, direction: &[f32]) -> &mut Self::MatrixType; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 22 | [INFO] [stdout] 23 | fn rotate(&mut self, angle: f32, axis: &[f32]) -> &mut Self::MatrixType; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `zeros`, `ones`, `mul`, `add`, `sub`, and `div` are never used [INFO] [stdout] --> src/buffer/math/vector.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub trait Vector { [INFO] [stdout] | ------ associated items in this trait [INFO] [stdout] ... [INFO] [stdout] 4 | fn zeros() -> Self::VectorType; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 5 | [INFO] [stdout] 6 | fn ones() -> Self::VectorType; [INFO] [stdout] | ^^^^ [INFO] [stdout] 7 | [INFO] [stdout] 8 | fn mul(&self, rhs: &[f32]) -> Self::VectorType; [INFO] [stdout] | ^^^ [INFO] [stdout] 9 | [INFO] [stdout] 10 | fn add(&self, rhs: &[f32]) -> Self::VectorType; [INFO] [stdout] | ^^^ [INFO] [stdout] 11 | [INFO] [stdout] 12 | fn sub(&self, rhs: &[f32]) -> Self::VectorType; [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | fn div(&self, factor: f32) -> Self::VectorType; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `mul_matrix` is never used [INFO] [stdout] --> src/buffer/math/vector.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub trait MulVectorMatrix { [INFO] [stdout] | --------------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 24 | fn mul_matrix(&self, rhs: &Matrix) -> Self::VectorType; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `default` is never used [INFO] [stdout] --> src/buffer/pixel.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl Pixel { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] 8 | pub fn default(&mut self) -> Pixel { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `normal` is never read [INFO] [stdout] --> src/buffer/mesh.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct Vertex { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 16 | pub position: Vec3, [INFO] [stdout] 17 | pub normal: Vec3, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Vertex` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `new` is never used [INFO] [stdout] --> src/buffer/mesh.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 38 | pub trait Triangle { [INFO] [stdout] | -------- method in this trait [INFO] [stdout] 39 | fn new(&mut self); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `new` is never used [INFO] [stdout] --> src/buffer/mesh.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 42 | pub trait Cube { [INFO] [stdout] | ---- method in this trait [INFO] [stdout] 43 | fn new(&mut self); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `new` is never used [INFO] [stdout] --> src/buffer/mesh.rs:55:8 [INFO] [stdout] | [INFO] [stdout] 54 | pub trait Cone { [INFO] [stdout] | ---- method in this trait [INFO] [stdout] 55 | fn new(&mut self, vert: u32, r: f32, h: f32); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `new` is never used [INFO] [stdout] --> src/buffer/mesh.rs:59:8 [INFO] [stdout] | [INFO] [stdout] 58 | pub trait Torus { [INFO] [stdout] | ----- method in this trait [INFO] [stdout] 59 | fn new(&mut self, sides: u32, cs_sides: u32, radius: f32, cs_radius: f32); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `vertsPerSlice` should have a snake case name [INFO] [stdout] --> src/buffer/mesh.rs:246:13 [INFO] [stdout] | [INFO] [stdout] 246 | let vertsPerSlice = loops + 1; [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `verts_per_slice` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 42.56s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: nom v6.0.1 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "d53c52ae918f25925db6288a096bbf69e7ca2ca919fa72361f498d2ff31f8b00", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d53c52ae918f25925db6288a096bbf69e7ca2ca919fa72361f498d2ff31f8b00", kill_on_drop: false }` [INFO] [stdout] d53c52ae918f25925db6288a096bbf69e7ca2ca919fa72361f498d2ff31f8b00 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/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" "RUSTDOCFLAGS=--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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+9a3ef2cd3ecaae3c6ef59768612837d797602a6d" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 50249d5268e5bd8bf463d18ee769c9db41df1b6941873c14fe782df91300107b [INFO] running `Command { std: "docker" "start" "-a" "50249d5268e5bd8bf463d18ee769c9db41df1b6941873c14fe782df91300107b", kill_on_drop: false }` [INFO] [stderr] Compiling ruster v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::buffer::pixel::Pixel` [INFO] [stdout] --> src/buffer/mesh.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::buffer::pixel::Pixel; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::buffer::math::mat4::Mat4` [INFO] [stdout] --> src/buffer/mesh.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::buffer::math::mat4::Mat4; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::buffer::math::matrix::Matrix` [INFO] [stdout] --> src/buffer/mesh.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::buffer::math::matrix::Matrix; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::buffer::math::vec4::Vec4` [INFO] [stdout] --> src/buffer/mesh.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::buffer::math::vec4::Vec4; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::buffer::math::vector::MulVectorMatrix` [INFO] [stdout] --> src/buffer/mesh.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::buffer::math::vector::MulVectorMatrix; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::buffer::math::vector::VecOps` [INFO] [stdout] --> src/buffer/mesh.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::buffer::math::vector::VecOps; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::buffer::math::vector::Vector` [INFO] [stdout] --> src/buffer/mesh.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::buffer::math::vector::Vector; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mesh::Mesh` [INFO] [stdout] --> src/buffer/mod.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | use mesh::Mesh; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::buffer::math::slice_ops::*` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::buffer::math::slice_ops::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::buffer::math::vector::Vector` [INFO] [stdout] --> src/buffer/math/mat4.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::buffer::math::vector::Vector; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/buffer/math/vec3.rs:12:25 [INFO] [stdout] | [INFO] [stdout] 12 | fn normalize(&self, mut vec: Self::VectorType) -> Self::VectorType { [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: unused variable: `j` [INFO] [stdout] --> src/buffer/mesh.rs:251:17 [INFO] [stdout] | [INFO] [stdout] 251 | for j in 0..loops { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_j` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | let mut camera_pos: Vec3 = [cam_x, cam_y, cam_z]; [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:47:13 [INFO] [stdout] | [INFO] [stdout] 47 | let mut camera_up: Vec3 = [0., 1., 0.]; [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:49:14 [INFO] [stdout] | [INFO] [stdout] 49 | let (mut x_pos, mut y_pos) = window.get_mouse_pos(MouseMode::Clamp).unwrap(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:49:25 [INFO] [stdout] | [INFO] [stdout] 49 | let (mut x_pos, mut y_pos) = window.get_mouse_pos(MouseMode::Clamp).unwrap(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `save_to_png` is never used [INFO] [stdout] --> src/buffer/mod.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 22 | pub trait Savable { [INFO] [stdout] | ------- method in this trait [INFO] [stdout] 23 | fn save_to_png(&self, path: &str); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `translate`, `scale`, and `rotate` are never used [INFO] [stdout] --> src/buffer/mod.rs:87:12 [INFO] [stdout] | [INFO] [stdout] 38 | impl Buffer { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 87 | pub fn translate(&mut self, vec: Vec3) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 95 | pub fn scale(&mut self, vec: Vec3) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 104 | pub fn rotate(&mut self, a: f32, vec: Vec3) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/buffer/math/matrix.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub trait Matrix { [INFO] [stdout] | ------ associated items in this trait [INFO] [stdout] ... [INFO] [stdout] 7 | fn ones() -> Self::MatrixType; [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 11 | fn transpose(&mut self) -> &mut Self::MatrixType; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | fn add(&mut self, rhs: &Self::MatrixType) -> &mut Self::MatrixType; [INFO] [stdout] | ^^^ [INFO] [stdout] 16 | [INFO] [stdout] 17 | fn sub(&mut self, rhs: &Self::MatrixType) -> &mut Self::MatrixType; [INFO] [stdout] | ^^^ [INFO] [stdout] 18 | [INFO] [stdout] 19 | fn scale(&mut self, factor: f32) -> &mut Self::MatrixType; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 20 | [INFO] [stdout] 21 | fn translate(&mut self, direction: &[f32]) -> &mut Self::MatrixType; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 22 | [INFO] [stdout] 23 | fn rotate(&mut self, angle: f32, axis: &[f32]) -> &mut Self::MatrixType; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `zeros`, `ones`, `mul`, `add`, `sub`, and `div` are never used [INFO] [stdout] --> src/buffer/math/vector.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub trait Vector { [INFO] [stdout] | ------ associated items in this trait [INFO] [stdout] ... [INFO] [stdout] 4 | fn zeros() -> Self::VectorType; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 5 | [INFO] [stdout] 6 | fn ones() -> Self::VectorType; [INFO] [stdout] | ^^^^ [INFO] [stdout] 7 | [INFO] [stdout] 8 | fn mul(&self, rhs: &[f32]) -> Self::VectorType; [INFO] [stdout] | ^^^ [INFO] [stdout] 9 | [INFO] [stdout] 10 | fn add(&self, rhs: &[f32]) -> Self::VectorType; [INFO] [stdout] | ^^^ [INFO] [stdout] 11 | [INFO] [stdout] 12 | fn sub(&self, rhs: &[f32]) -> Self::VectorType; [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | fn div(&self, factor: f32) -> Self::VectorType; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `mul_matrix` is never used [INFO] [stdout] --> src/buffer/math/vector.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub trait MulVectorMatrix { [INFO] [stdout] | --------------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 24 | fn mul_matrix(&self, rhs: &Matrix) -> Self::VectorType; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `default` is never used [INFO] [stdout] --> src/buffer/pixel.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl Pixel { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] 8 | pub fn default(&mut self) -> Pixel { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `normal` is never read [INFO] [stdout] --> src/buffer/mesh.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct Vertex { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 16 | pub position: Vec3, [INFO] [stdout] 17 | pub normal: Vec3, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Vertex` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `new` is never used [INFO] [stdout] --> src/buffer/mesh.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 38 | pub trait Triangle { [INFO] [stdout] | -------- method in this trait [INFO] [stdout] 39 | fn new(&mut self); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `new` is never used [INFO] [stdout] --> src/buffer/mesh.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 42 | pub trait Cube { [INFO] [stdout] | ---- method in this trait [INFO] [stdout] 43 | fn new(&mut self); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `new` is never used [INFO] [stdout] --> src/buffer/mesh.rs:55:8 [INFO] [stdout] | [INFO] [stdout] 54 | pub trait Cone { [INFO] [stdout] | ---- method in this trait [INFO] [stdout] 55 | fn new(&mut self, vert: u32, r: f32, h: f32); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `new` is never used [INFO] [stdout] --> src/buffer/mesh.rs:59:8 [INFO] [stdout] | [INFO] [stdout] 58 | pub trait Torus { [INFO] [stdout] | ----- method in this trait [INFO] [stdout] 59 | fn new(&mut self, sides: u32, cs_sides: u32, radius: f32, cs_radius: f32); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `vertsPerSlice` should have a snake case name [INFO] [stdout] --> src/buffer/mesh.rs:246:13 [INFO] [stdout] | [INFO] [stdout] 246 | let vertsPerSlice = loops + 1; [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `verts_per_slice` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.60s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: nom v6.0.1 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "50249d5268e5bd8bf463d18ee769c9db41df1b6941873c14fe782df91300107b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "50249d5268e5bd8bf463d18ee769c9db41df1b6941873c14fe782df91300107b", kill_on_drop: false }` [INFO] [stdout] 50249d5268e5bd8bf463d18ee769c9db41df1b6941873c14fe782df91300107b