[INFO] cloning repository https://github.com/Tongxi-Hu/r_gpu [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Tongxi-Hu/r_gpu" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTongxi-Hu%2Fr_gpu", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTongxi-Hu%2Fr_gpu'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 53ccc5c4ecef04b292d8e1e11cba39e98f7b11d9 [INFO] checking Tongxi-Hu/r_gpu against try#969026c535f4240ff7866ef11207dfda18a26af6 for pr-146504 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTongxi-Hu%2Fr_gpu" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Tongxi-Hu/r_gpu [INFO] finished tweaking git repo https://github.com/Tongxi-Hu/r_gpu [INFO] tweaked toml for git repo https://github.com/Tongxi-Hu/r_gpu written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Tongxi-Hu/r_gpu on toolchain 969026c535f4240ff7866ef11207dfda18a26af6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+969026c535f4240ff7866ef11207dfda18a26af6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Tongxi-Hu/r_gpu 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" "+969026c535f4240ff7866ef11207dfda18a26af6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+969026c535f4240ff7866ef11207dfda18a26af6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 64c6d5d6c982a493cd43c22b534494b440d07a5501620bec0c74fb1078bc69a7 [INFO] running `Command { std: "docker" "start" "-a" "64c6d5d6c982a493cd43c22b534494b440d07a5501620bec0c74fb1078bc69a7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "64c6d5d6c982a493cd43c22b534494b440d07a5501620bec0c74fb1078bc69a7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "64c6d5d6c982a493cd43c22b534494b440d07a5501620bec0c74fb1078bc69a7", kill_on_drop: false }` [INFO] [stdout] 64c6d5d6c982a493cd43c22b534494b440d07a5501620bec0c74fb1078bc69a7 [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+969026c535f4240ff7866ef11207dfda18a26af6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 883a3232e71066f2964694de5e97121545224b6ae383186d24c4dcb91fd17ed5 [INFO] running `Command { std: "docker" "start" "-a" "883a3232e71066f2964694de5e97121545224b6ae383186d24c4dcb91fd17ed5", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.174 [INFO] [stderr] Compiling rustix v0.38.44 [INFO] [stderr] Checking libloading v0.8.8 [INFO] [stderr] Compiling cc v1.2.27 [INFO] [stderr] Compiling wayland-sys v0.31.6 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling wayland-client v0.31.10 [INFO] [stderr] Compiling rustix v1.0.7 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Checking hashbrown v0.15.4 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Compiling wayland-scanner v0.31.6 [INFO] [stderr] Checking linux-raw-sys v0.9.4 [INFO] [stderr] Checking tracing-core v0.1.34 [INFO] [stderr] Compiling naga v26.0.0 [INFO] [stderr] Compiling khronos-egl v6.0.0 [INFO] [stderr] Compiling ash v0.38.0+1.3.281 [INFO] [stderr] Checking bit-vec v0.8.0 [INFO] [stderr] Checking dlib v0.5.2 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Checking unicode-width v0.2.1 [INFO] [stderr] Checking zerocopy v0.8.26 [INFO] [stderr] Compiling wgpu-hal v26.0.4 [INFO] [stderr] Checking unicode-ident v1.0.18 [INFO] [stderr] Checking bit-set v0.8.0 [INFO] [stderr] Checking rustc-hash v1.1.0 [INFO] [stderr] Checking codespan-reporting v0.12.0 [INFO] [stderr] Checking glow v0.16.0 [INFO] [stderr] Checking profiling v1.0.17 [INFO] [stderr] Checking ttf-parser v0.25.1 [INFO] [stderr] Compiling wgpu-core v26.0.1 [INFO] [stderr] Checking ab_glyph_rasterizer v0.1.9 [INFO] [stderr] Compiling winit v0.30.11 [INFO] [stderr] Compiling wgpu v26.0.1 [INFO] [stderr] Checking x11rb-protocol v0.13.1 [INFO] [stderr] Checking dpi v0.1.2 [INFO] [stderr] Checking smol_str v0.2.2 [INFO] [stderr] Checking indexmap v2.10.0 [INFO] [stderr] Checking pollster v0.4.0 [INFO] [stderr] Checking half v2.6.0 [INFO] [stderr] Checking ordered-float v4.6.0 [INFO] [stderr] Compiling wayland-backend v0.3.10 [INFO] [stderr] Checking parking_lot_core v0.9.11 [INFO] [stderr] Checking memmap2 v0.9.5 [INFO] [stderr] Checking getrandom v0.2.16 [INFO] [stderr] Checking getrandom v0.3.3 [INFO] [stderr] Checking x11-dl v2.21.0 [INFO] [stderr] Checking parking_lot v0.12.4 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Checking ahash v0.8.12 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling bytemuck_derive v1.9.3 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Checking owned_ttf_parser v0.25.0 [INFO] [stderr] Checking ab_glyph v0.2.30 [INFO] [stderr] Checking bytemuck v1.23.1 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Checking tiny-skia-path v0.11.4 [INFO] [stderr] Checking tiny-skia v0.11.4 [INFO] [stderr] Checking serde v1.0.219 [INFO] [stderr] Checking bitflags v2.9.1 [INFO] [stderr] Checking obj-rs v0.7.4 [INFO] [stderr] Checking spirv v0.3.0+sdk-1.3.268.0 [INFO] [stderr] Checking gpu-alloc-types v0.3.0 [INFO] [stderr] Checking gpu-descriptor-types v0.2.0 [INFO] [stderr] Checking wgpu-types v26.0.0 [INFO] [stderr] Checking xkbcommon-dl v0.4.2 [INFO] [stderr] Checking gpu-descriptor v0.3.2 [INFO] [stderr] Checking gpu-alloc v0.6.0 [INFO] [stderr] Checking polling v3.8.0 [INFO] [stderr] Checking calloop v0.13.0 [INFO] [stderr] Checking x11rb v0.13.1 [INFO] [stderr] Checking wayland-csd-frame v0.3.0 [INFO] [stderr] Checking wayland-protocols v0.32.8 [INFO] [stderr] Checking calloop-wayland-source v0.3.0 [INFO] [stderr] Checking wayland-cursor v0.31.10 [INFO] [stderr] Checking wgpu-core-deps-windows-linux-android v26.0.0 [INFO] [stderr] Checking wayland-protocols-wlr v0.3.8 [INFO] [stderr] Checking wayland-protocols-plasma v0.3.8 [INFO] [stderr] Checking smithay-client-toolkit v0.19.2 [INFO] [stderr] Checking sctk-adwaita v0.10.1 [INFO] [stderr] Checking r_gpu v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: constant `TICK` is never used [INFO] [stdout] --> src/constant/mod.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub const TICK: f32 = 8_f32; //8ms [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GRAVITY` is never used [INFO] [stdout] --> src/constant/mod.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | pub const GRAVITY: f32 = 9.807 / 1000_f32 / 1000_f32; //9,807 m/s² [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `REFLECTION_LIMIT` is never used [INFO] [stdout] --> src/constant/mod.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | pub const REFLECTION_LIMIT: usize = 5; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Determinant` is never used [INFO] [stdout] --> src/math/algebra/common.rs:29:11 [INFO] [stdout] | [INFO] [stdout] 29 | pub trait Determinant { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `transpose` is never used [INFO] [stdout] --> src/math/algebra/matrix.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl Matrix { [INFO] [stdout] | ------------------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn transpose(&self) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `sub`, `cofactor`, `is_invertible`, and `inverse` are never used [INFO] [stdout] --> src/math/algebra/matrix.rs:132:8 [INFO] [stdout] | [INFO] [stdout] 131 | impl Matrix<4> { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] 132 | fn sub(&self, row: usize, column: usize) -> Matrix<3> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 163 | fn cofactor(&self, row: usize, col: usize) -> f32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 171 | pub fn is_invertible(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 175 | pub fn inverse(&self) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/math/algebra/point.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl Point { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn is_origin(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn set_z(&mut self, z: f32) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub fn get_value(&self) -> (f32, f32, f32) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn distance(&self, other: &Self) -> f32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn distance_from_origin(&self) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | pub fn to_vector(&self) -> Vector { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn translate(&mut self, amount: &Vector) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Quaternion` is never constructed [INFO] [stdout] --> src/math/algebra/quaternion.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Quaternion { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/math/algebra/quaternion.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl Quaternion { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 14 | pub fn new(r: f32, i: f32, j: f32, k: f32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn zero() -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn get_r(&self) -> f32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn get_i(&self) -> f32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn get_j(&self) -> f32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn get_k(&self) -> f32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn get_value(&self) -> (f32, f32, f32, f32) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn set_r(&mut self, r: f32) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn set_i(&mut self, i: f32) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn set_j(&mut self, j: f32) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn set_k(&mut self, k: f32) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | pub fn is_zero(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | pub fn hamilton_multiplied_by(self, other: Self) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn conjugate(&self) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | pub fn norm(&self) -> f32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 78 | pub fn unit(&self) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/math/algebra/vector.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 20 | impl Vector { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn unit_x() -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | pub fn from_point(point: &Point) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | pub fn from_points(from: &Point, to: &Point) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | pub fn set_x(&mut self, x: f32) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | pub fn set_y(&mut self, y: f32) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 80 | pub fn set_z(&mut self, z: f32) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 111 | pub fn translate_by(&mut self, other: &Self) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 130 | pub fn reflect(&self, normal: &Self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `IntersectTargetID` is never used [INFO] [stdout] --> src/math/geometry/common.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | pub type IntersectTargetID = u128; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Intersect` is never used [INFO] [stdout] --> src/math/geometry/common.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | pub trait Intersect { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Intersection` is never constructed [INFO] [stdout] --> src/math/geometry/common.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Intersection { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get_t`, `get_ray_direction`, `get_normal`, `get_surface_point`, and `get_eye_v` are never used [INFO] [stdout] --> src/math/geometry/common.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl Intersection { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 20 | pub fn new(t: f32, ray_direction: Vector, surface_point: Point, normal_v: Vector) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn get_t(&self) -> f32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn get_ray_direction(&self) -> Vector { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn get_normal(&self) -> Vector { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn get_surface_point(&self) -> Point { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn get_eye_v(&self) -> Vector { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GridPoint` is never constructed [INFO] [stdout] --> src/math/geometry/discrete/grid.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct GridPoint { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/math/geometry/discrete/grid.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 5 | impl GridPoint { [INFO] [stdout] | --------------------------------- associated items in this implementation [INFO] [stdout] 6 | pub fn new(location: [i64; D]) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 10 | pub fn origin() -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 14 | pub fn location(&self) -> [i64; D] { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub fn adjacent(&self) -> Vec> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn translate(&self, translation: [i64; D]) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn neighbor(&self) -> Vec> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | pub fn move_i(&self, i: usize, delta_i: i64) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Plane` is never constructed [INFO] [stdout] --> src/math/geometry/plane.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Plane { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `in_plane` are never used [INFO] [stdout] --> src/math/geometry/plane.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl Plane { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 17 | pub fn new(center: Point, norm: Vector, size: f32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn in_plane(&self, point: &Point) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Polyhedron` is never constructed [INFO] [stdout] --> src/math/geometry/polyhedron.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Polyhedron { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `norm_to`, and `on_surface` are never used [INFO] [stdout] --> src/math/geometry/polyhedron.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl Polyhedron { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 13 | pub fn new(vertices: Vec, surfaces: Vec<(usize, usize, usize)>) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn norm_to(&self, surface_index: usize) -> Option { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn on_surface(&self, point: &Point) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Ray` is never constructed [INFO] [stdout] --> src/math/geometry/ray.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Ray { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `point_at`, and `transform` are never used [INFO] [stdout] --> src/math/geometry/ray.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl Ray { [INFO] [stdout] | -------- associated items in this implementation [INFO] [stdout] 10 | pub fn new(origin: Point, direction: Vector) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn point_at(&self, t: f32) -> Point { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn transform(&self, m: Matrix<4>) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Sphere` is never constructed [INFO] [stdout] --> src/math/geometry/sphere.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Sphere { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `on_sphere` are never used [INFO] [stdout] --> src/math/geometry/sphere.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl Sphere { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 14 | pub fn new(origin: Point, radius: f32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn on_sphere(&self, point: &Point) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Triangle` is never constructed [INFO] [stdout] --> src/math/geometry/triangle.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Triangle { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `area`, `norm`, and `is_on` are never used [INFO] [stdout] --> src/math/geometry/triangle.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl Triangle { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 15 | // triangle may be degenerate [INFO] [stdout] 16 | pub fn new(p_0: Point, p_1: Point, p_2: Point) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | pub fn area(&self) -> f32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn norm(&self) -> Vector { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn is_on(&self, p: &Point) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/physics/color.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl Color { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn black() -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn white() -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn set_r(&mut self, r: f32) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn set_g(&mut self, g: f32) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn set_b(&mut self, b: f32) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn get_value(&self) -> (f32, f32, f32) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn clamp(&self, low: f32, high: f32) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Illuminated` is never used [INFO] [stdout] --> src/physics/common.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait Illuminated { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PointLight` is never constructed [INFO] [stdout] --> src/physics/light.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct PointLight { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/physics/light.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl PointLight { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 11 | pub fn new(position: Point, intensity: Color) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Phong` is never constructed [INFO] [stdout] --> src/physics/phong.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Phong { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/physics/phong.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 30 | impl Phong { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 31 | pub fn metal() -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn with_color(mut self, color: &Color) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn with_ambient(mut self, ambient: f32) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn with_diffuse(mut self, diffuse: f32) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | pub fn with_specular(mut self, specular: f32) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | pub fn with_shininess(mut self, shininess: f32) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | pub fn with_reflectiveness(mut self, reflectiveness: f32) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TICK` is never used [INFO] [stdout] --> src/constant/mod.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub const TICK: f32 = 8_f32; //8ms [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GRAVITY` is never used [INFO] [stdout] --> src/constant/mod.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | pub const GRAVITY: f32 = 9.807 / 1000_f32 / 1000_f32; //9,807 m/s² [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `REFLECTION_LIMIT` is never used [INFO] [stdout] --> src/constant/mod.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | pub const REFLECTION_LIMIT: usize = 5; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Determinant` is never used [INFO] [stdout] --> src/math/algebra/common.rs:29:11 [INFO] [stdout] | [INFO] [stdout] 29 | pub trait Determinant { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `transpose` is never used [INFO] [stdout] --> src/math/algebra/matrix.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl Matrix { [INFO] [stdout] | ------------------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn transpose(&self) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `sub`, `cofactor`, `is_invertible`, and `inverse` are never used [INFO] [stdout] --> src/math/algebra/matrix.rs:132:8 [INFO] [stdout] | [INFO] [stdout] 131 | impl Matrix<4> { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] 132 | fn sub(&self, row: usize, column: usize) -> Matrix<3> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 163 | fn cofactor(&self, row: usize, col: usize) -> f32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 171 | pub fn is_invertible(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 175 | pub fn inverse(&self) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_origin`, `set_z`, `get_value`, `distance_from_origin`, `to_vector`, and `translate` are never used [INFO] [stdout] --> src/math/algebra/point.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl Point { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn is_origin(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn set_z(&mut self, z: f32) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub fn get_value(&self) -> (f32, f32, f32) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn distance_from_origin(&self) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | pub fn to_vector(&self) -> Vector { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn translate(&mut self, amount: &Vector) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Quaternion` is never constructed [INFO] [stdout] --> src/math/algebra/quaternion.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Quaternion { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/math/algebra/quaternion.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl Quaternion { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 14 | pub fn new(r: f32, i: f32, j: f32, k: f32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn zero() -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn get_r(&self) -> f32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn get_i(&self) -> f32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn get_j(&self) -> f32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn get_k(&self) -> f32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn get_value(&self) -> (f32, f32, f32, f32) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn set_r(&mut self, r: f32) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn set_i(&mut self, i: f32) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn set_j(&mut self, j: f32) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn set_k(&mut self, k: f32) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | pub fn is_zero(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | pub fn hamilton_multiplied_by(self, other: Self) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn conjugate(&self) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | pub fn norm(&self) -> f32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 78 | pub fn unit(&self) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/math/algebra/vector.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 20 | impl Vector { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn unit_x() -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | pub fn from_point(point: &Point) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | pub fn set_x(&mut self, x: f32) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | pub fn set_y(&mut self, y: f32) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 80 | pub fn set_z(&mut self, z: f32) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 111 | pub fn translate_by(&mut self, other: &Self) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 130 | pub fn reflect(&self, normal: &Self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `IntersectTargetID` is never used [INFO] [stdout] --> src/math/geometry/common.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | pub type IntersectTargetID = u128; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `ray_direction`, `surface_point`, and `normal_v` are never read [INFO] [stdout] --> src/math/geometry/common.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Intersection { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 13 | t: f32, [INFO] [stdout] 14 | ray_direction: Vector, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 15 | surface_point: Point, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 16 | normal_v: Vector, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_ray_direction`, `get_normal`, `get_surface_point`, and `get_eye_v` are never used [INFO] [stdout] --> src/math/geometry/common.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl Intersection { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn get_ray_direction(&self) -> Vector { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn get_normal(&self) -> Vector { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn get_surface_point(&self) -> Point { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn get_eye_v(&self) -> Vector { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `origin`, `location`, `adjacent`, and `move_i` are never used [INFO] [stdout] --> src/math/geometry/discrete/grid.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 5 | impl GridPoint { [INFO] [stdout] | --------------------------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 10 | pub fn origin() -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 14 | pub fn location(&self) -> [i64; D] { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub fn adjacent(&self) -> Vec> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | pub fn move_i(&self, i: usize, delta_i: i64) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Plane` is never constructed [INFO] [stdout] --> src/math/geometry/plane.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Plane { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `in_plane` are never used [INFO] [stdout] --> src/math/geometry/plane.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl Plane { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 17 | pub fn new(center: Point, norm: Vector, size: f32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn in_plane(&self, point: &Point) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Polyhedron` is never constructed [INFO] [stdout] --> src/math/geometry/polyhedron.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Polyhedron { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `norm_to`, and `on_surface` are never used [INFO] [stdout] --> src/math/geometry/polyhedron.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl Polyhedron { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 13 | pub fn new(vertices: Vec, surfaces: Vec<(usize, usize, usize)>) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn norm_to(&self, surface_index: usize) -> Option { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn on_surface(&self, point: &Point) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `transform` is never used [INFO] [stdout] --> src/math/geometry/ray.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl Ray { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn transform(&self, m: Matrix<4>) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Triangle` is never constructed [INFO] [stdout] --> src/math/geometry/triangle.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Triangle { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `area`, `norm`, and `is_on` are never used [INFO] [stdout] --> src/math/geometry/triangle.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl Triangle { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 15 | // triangle may be degenerate [INFO] [stdout] 16 | pub fn new(p_0: Point, p_1: Point, p_2: Point) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | pub fn area(&self) -> f32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn norm(&self) -> Vector { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn is_on(&self, p: &Point) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/physics/color.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl Color { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn black() -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn white() -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn set_r(&mut self, r: f32) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn set_g(&mut self, g: f32) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn set_b(&mut self, b: f32) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn get_value(&self) -> (f32, f32, f32) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn clamp(&self, low: f32, high: f32) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Illuminated` is never used [INFO] [stdout] --> src/physics/common.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait Illuminated { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PointLight` is never constructed [INFO] [stdout] --> src/physics/light.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct PointLight { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/physics/light.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl PointLight { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 11 | pub fn new(position: Point, intensity: Color) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Phong` is never constructed [INFO] [stdout] --> src/physics/phong.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Phong { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/physics/phong.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 30 | impl Phong { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 31 | pub fn metal() -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn with_color(mut self, color: &Color) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn with_ambient(mut self, ambient: f32) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn with_diffuse(mut self, diffuse: f32) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | pub fn with_specular(mut self, specular: f32) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | pub fn with_shininess(mut self, shininess: f32) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | pub fn with_reflectiveness(mut self, reflectiveness: f32) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 57.65s [INFO] running `Command { std: "docker" "inspect" "883a3232e71066f2964694de5e97121545224b6ae383186d24c4dcb91fd17ed5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "883a3232e71066f2964694de5e97121545224b6ae383186d24c4dcb91fd17ed5", kill_on_drop: false }` [INFO] [stdout] 883a3232e71066f2964694de5e97121545224b6ae383186d24c4dcb91fd17ed5