[INFO] cloning repository https://github.com/LiemDQ/shine [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/LiemDQ/shine" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLiemDQ%2Fshine", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLiemDQ%2Fshine'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 9d52fe8d1744fc43fba6b172b62009684a1d0f8c [INFO] checking LiemDQ/shine against master#af4a5a13a15fa0c60e06321077ef452f769b42fd for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLiemDQ%2Fshine" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/LiemDQ/shine on toolchain af4a5a13a15fa0c60e06321077ef452f769b42fd [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/LiemDQ/shine [INFO] finished tweaking git repo https://github.com/LiemDQ/shine [INFO] tweaked toml for git repo https://github.com/LiemDQ/shine written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/LiemDQ/shine 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" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7ddd681235a93fc8eae5af491e5d03e9d853ebb61fe1d59395940f7529ecea19 [INFO] running `Command { std: "docker" "start" "-a" "7ddd681235a93fc8eae5af491e5d03e9d853ebb61fe1d59395940f7529ecea19", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7ddd681235a93fc8eae5af491e5d03e9d853ebb61fe1d59395940f7529ecea19", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7ddd681235a93fc8eae5af491e5d03e9d853ebb61fe1d59395940f7529ecea19", kill_on_drop: false }` [INFO] [stdout] 7ddd681235a93fc8eae5af491e5d03e9d853ebb61fe1d59395940f7529ecea19 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 06fbde9f3d378e3eea56946ebd53fbd254ad62c79e724f1eec114c1a56b1e99b [INFO] running `Command { std: "docker" "start" "-a" "06fbde9f3d378e3eea56946ebd53fbd254ad62c79e724f1eec114c1a56b1e99b", kill_on_drop: false }` [INFO] [stderr] Checking shine v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: the item `PartialEq` is imported redundantly [INFO] [stdout] --> src/coords.rs:2:16 [INFO] [stdout] | [INFO] [stdout] 2 | use std::cmp::{PartialEq}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] --> /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/library/std/src/prelude/mod.rs:144:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `PartialEq` is already defined here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `PartialEq` is imported redundantly [INFO] [stdout] --> src/canvas.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cmp::PartialEq; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/library/std/src/prelude/mod.rs:144:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `PartialEq` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `float_eq` [INFO] [stdout] --> src/canvas.rs:3:20 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::utils::{float_eq, float_approx}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Add`, `Sub` [INFO] [stdout] --> src/matrix.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ops::{Add, Sub, Mul}; [INFO] [stdout] | ^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `PartialEq` is imported redundantly [INFO] [stdout] --> src/matrix.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::cmp::PartialEq; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/library/std/src/prelude/mod.rs:144:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `PartialEq` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Sphere` [INFO] [stdout] --> src/ray.rs:7:23 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::geometry::{Sphere, Shape}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `world` [INFO] [stdout] --> src/geometry.rs:1:28 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{intersections, world}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `PartialEq` is imported redundantly [INFO] [stdout] --> src/coords.rs:2:16 [INFO] [stdout] | [INFO] [stdout] 2 | use std::cmp::{PartialEq}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] --> /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/library/std/src/prelude/mod.rs:144:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `PartialEq` is already defined here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `assert_delta` is imported redundantly [INFO] [stdout] --> src/coords.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::assert_delta; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/utils.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | / macro_rules! assert_delta { [INFO] [stdout] 10 | | ($x:expr, $y:expr, $d:expr) => { [INFO] [stdout] 11 | | if $x - $y > 0.0 { [INFO] [stdout] 12 | | assert!($x - $y < $d); [INFO] [stdout] ... | [INFO] [stdout] 16 | | }; [INFO] [stdout] 17 | | } [INFO] [stdout] | |_- the item `assert_delta` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `PartialEq` is imported redundantly [INFO] [stdout] --> src/canvas.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cmp::PartialEq; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/library/std/src/prelude/mod.rs:144:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `PartialEq` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `float_eq` [INFO] [stdout] --> src/canvas.rs:3:20 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::utils::{float_eq, float_approx}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Add`, `Sub` [INFO] [stdout] --> src/matrix.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ops::{Add, Sub, Mul}; [INFO] [stdout] | ^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `PartialEq` is imported redundantly [INFO] [stdout] --> src/matrix.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::cmp::PartialEq; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/library/std/src/prelude/mod.rs:144:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `PartialEq` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Coord` is imported redundantly [INFO] [stdout] --> src/ray.rs:778:17 [INFO] [stdout] | [INFO] [stdout] 478 | use super::*; [INFO] [stdout] | -------- the item `Coord` is already imported here [INFO] [stdout] ... [INFO] [stdout] 778 | use crate::{coords::Coord, geometry::Plane}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/ray.rs:780:9 [INFO] [stdout] | [INFO] [stdout] 780 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `world` [INFO] [stdout] --> src/geometry.rs:1:28 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{intersections, world}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `to_vec` and `to_pt` are never used [INFO] [stdout] --> src/coords.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub trait Coord { [INFO] [stdout] | ----- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 11 | fn to_vec(self) -> Vector; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 12 | [INFO] [stdout] 13 | fn to_pt(self) -> Point; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dot` is never used [INFO] [stdout] --> src/coords.rs:260:4 [INFO] [stdout] | [INFO] [stdout] 260 | fn dot(lhs: Vector, rhs: Vector) -> f64 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `height`, `width`, `pixel_at`, `pixel_at_mut`, and `fill` are never used [INFO] [stdout] --> src/canvas.rs:176:12 [INFO] [stdout] | [INFO] [stdout] 162 | impl Canvas { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 176 | pub fn height(&self) -> usize { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 180 | pub fn width(&self) -> usize { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 188 | pub fn pixel_at(&self, x: usize, y: usize) -> &Pixel { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 192 | pub fn pixel_at_mut(&mut self, x: usize, y: usize) -> &mut Pixel { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 240 | pub fn fill(&mut self, pixel: Pixel) -> &mut Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `translation`, `scaling`, `rotation_x`, `rotation_y`, `rotation_z`, and `shearing` are never used [INFO] [stdout] --> src/matrix.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub trait LinAlg { [INFO] [stdout] | ------ methods in this trait [INFO] [stdout] ... [INFO] [stdout] 18 | fn translation(self, x: f64, y: f64, z: f64) -> >::Output where Self: Sized, Matrix4: Mul { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | fn scaling(self, x: f64, y: f64, z: f64) -> >::Output where Self: Sized, Matrix4: Mul { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | fn rotation_x(self, angle: f64) -> >::Output where Self: Sized, Matrix4: Mul { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | fn rotation_y(self, angle: f64) -> >::Output where Self: Sized, Matrix4: Mul { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | fn rotation_z(self, angle: f64) -> >::Output where Self: Sized, Matrix4: Mul { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | fn shearing(self, xy: f64, xz: f64, yx: f64, yz: f64, zx: f64, zy: f64) -> >::Output where Self: Sized, Matrix4:... [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rotation_z` is never used [INFO] [stdout] --> src/transforms.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn rotation_z(angle: f64) -> Matrix4 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `shearing` is never used [INFO] [stdout] --> src/transforms.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn shearing(xy: f64, xz: f64, yx: f64, yz: f64, zx: f64, zy: f64) -> Matrix4 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hit` is never used [INFO] [stdout] --> src/ray.rs:63:8 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn hit<'a>(intersections: &'a Vec> ) -> Option<&'a Intersection<'a>>{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_transform` is never used [INFO] [stdout] --> src/ray.rs:84:8 [INFO] [stdout] | [INFO] [stdout] 81 | pub trait Pattern: Debug { [INFO] [stdout] | ------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 84 | fn set_transform(&mut self, t: Matrix4); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ray.rs:124:12 [INFO] [stdout] | [INFO] [stdout] 123 | impl TestPattern { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 124 | pub fn new() -> Box { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ray.rs:152:12 [INFO] [stdout] | [INFO] [stdout] 151 | impl StripePattern { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 152 | pub fn new(a: Color, b: Color) -> Box { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ray.rs:187:12 [INFO] [stdout] | [INFO] [stdout] 186 | impl GradientPattern { [INFO] [stdout] | -------------------- associated function in this implementation [INFO] [stdout] 187 | pub fn new(a: Color, b: Color) -> Box { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ray.rs:214:12 [INFO] [stdout] | [INFO] [stdout] 213 | impl RingPattern { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 214 | pub fn new(a: Color, b: Color) -> Box { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ray.rs:304:12 [INFO] [stdout] | [INFO] [stdout] 303 | impl Material { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 304 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `t`, `point`, and `inside` are never read [INFO] [stdout] --> src/ray.rs:401:9 [INFO] [stdout] | [INFO] [stdout] 400 | pub struct Computations<'a> { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 401 | pub t: f64, [INFO] [stdout] | ^ [INFO] [stdout] 402 | pub object: &'a dyn Shape, [INFO] [stdout] 403 | pub point: Point, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 409 | pub inside: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new_glass` is never used [INFO] [stdout] --> src/geometry.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 47 | impl Sphere { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 63 | pub fn new_glass() -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `initial_shade_hit` is never used [INFO] [stdout] --> src/world.rs:72:12 [INFO] [stdout] | [INFO] [stdout] 38 | impl World { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 72 | pub fn initial_shade_hit(&self, comps: &Computations) -> Color { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `field_of_view` is never read [INFO] [stdout] --> src/world.rs:154:9 [INFO] [stdout] | [INFO] [stdout] 151 | pub struct Camera { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 154 | pub field_of_view: f64, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant `height` should have an upper case name [INFO] [stdout] --> src/matrix.rs:332:11 [INFO] [stdout] | [INFO] [stdout] 332 | const height: usize = 4; [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper case: `HEIGHT` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant `width` should have an upper case name [INFO] [stdout] --> src/matrix.rs:333:11 [INFO] [stdout] | [INFO] [stdout] 333 | const width: usize = 4; [INFO] [stdout] | ^^^^^ help: convert the identifier to upper case: `WIDTH` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 26 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `color` [INFO] [stdout] --> src/world.rs:477:13 [INFO] [stdout] | [INFO] [stdout] 477 | let color = w.color_at(&ray, World::MAX_REFLECTIONS); //should terminate successfully. [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_color` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `to_vec` and `to_pt` are never used [INFO] [stdout] --> src/coords.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub trait Coord { [INFO] [stdout] | ----- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 11 | fn to_vec(self) -> Vector; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 12 | [INFO] [stdout] 13 | fn to_pt(self) -> Point; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dot` is never used [INFO] [stdout] --> src/coords.rs:260:4 [INFO] [stdout] | [INFO] [stdout] 260 | fn dot(lhs: Vector, rhs: Vector) -> f64 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `height`, `width`, and `pixel_at_mut` are never used [INFO] [stdout] --> src/canvas.rs:176:12 [INFO] [stdout] | [INFO] [stdout] 162 | impl Canvas { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 176 | pub fn height(&self) -> usize { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 180 | pub fn width(&self) -> usize { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 192 | pub fn pixel_at_mut(&mut self, x: usize, y: usize) -> &mut Pixel { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `translation`, `scaling`, `rotation_x`, `rotation_y`, `rotation_z`, and `shearing` are never used [INFO] [stdout] --> src/matrix.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub trait LinAlg { [INFO] [stdout] | ------ methods in this trait [INFO] [stdout] ... [INFO] [stdout] 18 | fn translation(self, x: f64, y: f64, z: f64) -> >::Output where Self: Sized, Matrix4: Mul { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | fn scaling(self, x: f64, y: f64, z: f64) -> >::Output where Self: Sized, Matrix4: Mul { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | fn rotation_x(self, angle: f64) -> >::Output where Self: Sized, Matrix4: Mul { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | fn rotation_y(self, angle: f64) -> >::Output where Self: Sized, Matrix4: Mul { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | fn rotation_z(self, angle: f64) -> >::Output where Self: Sized, Matrix4: Mul { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | fn shearing(self, xy: f64, xz: f64, yx: f64, yz: f64, zx: f64, zy: f64) -> >::Output where Self: Sized, Matrix4:... [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_transform` is never used [INFO] [stdout] --> src/ray.rs:84:8 [INFO] [stdout] | [INFO] [stdout] 81 | pub trait Pattern: Debug { [INFO] [stdout] | ------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 84 | fn set_transform(&mut self, t: Matrix4); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ray.rs:304:12 [INFO] [stdout] | [INFO] [stdout] 303 | impl Material { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 304 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `field_of_view` is never read [INFO] [stdout] --> src/world.rs:154:9 [INFO] [stdout] | [INFO] [stdout] 151 | pub struct Camera { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 154 | pub field_of_view: f64, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant `height` should have an upper case name [INFO] [stdout] --> src/matrix.rs:332:11 [INFO] [stdout] | [INFO] [stdout] 332 | const height: usize = 4; [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper case: `HEIGHT` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant `width` should have an upper case name [INFO] [stdout] --> src/matrix.rs:333:11 [INFO] [stdout] | [INFO] [stdout] 333 | const width: usize = 4; [INFO] [stdout] | ^^^^^ help: convert the identifier to upper case: `WIDTH` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 19 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.39s [INFO] running `Command { std: "docker" "inspect" "06fbde9f3d378e3eea56946ebd53fbd254ad62c79e724f1eec114c1a56b1e99b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "06fbde9f3d378e3eea56946ebd53fbd254ad62c79e724f1eec114c1a56b1e99b", kill_on_drop: false }` [INFO] [stdout] 06fbde9f3d378e3eea56946ebd53fbd254ad62c79e724f1eec114c1a56b1e99b