[INFO] cloning repository https://github.com/dbearden/Ray-Tracer-Challenge [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/dbearden/Ray-Tracer-Challenge" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdbearden%2FRay-Tracer-Challenge", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdbearden%2FRay-Tracer-Challenge'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 48b7a1a610ce3ff63f9661eb7f71df77d9d43732 [INFO] testing dbearden/Ray-Tracer-Challenge against master#99e3aef02079e9c10583638520cd0c134dc3a01d for pr-85530 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdbearden%2FRay-Tracer-Challenge" "/workspace/builds/worker-2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/dbearden/Ray-Tracer-Challenge on toolchain 99e3aef02079e9c10583638520cd0c134dc3a01d [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+99e3aef02079e9c10583638520cd0c134dc3a01d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/dbearden/Ray-Tracer-Challenge [INFO] finished tweaking git repo https://github.com/dbearden/Ray-Tracer-Challenge [INFO] tweaked toml for git repo https://github.com/dbearden/Ray-Tracer-Challenge written to /workspace/builds/worker-2/source/Cargo.toml [INFO] crate git repo https://github.com/dbearden/Ray-Tracer-Challenge already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+99e3aef02079e9c10583638520cd0c134dc3a01d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+99e3aef02079e9c10583638520cd0c134dc3a01d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d8dc6d2d29d72cb07f1c807e78c378485c2c6211364246a09d1992d475543ec8 [INFO] running `Command { std: "docker" "start" "-a" "d8dc6d2d29d72cb07f1c807e78c378485c2c6211364246a09d1992d475543ec8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d8dc6d2d29d72cb07f1c807e78c378485c2c6211364246a09d1992d475543ec8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d8dc6d2d29d72cb07f1c807e78c378485c2c6211364246a09d1992d475543ec8", kill_on_drop: false }` [INFO] [stdout] d8dc6d2d29d72cb07f1c807e78c378485c2c6211364246a09d1992d475543ec8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+99e3aef02079e9c10583638520cd0c134dc3a01d" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4fac6d94e08cda6e44d0bbd0879acafe1f2466e79f851c29a0e1eb96b4d25ed1 [INFO] running `Command { std: "docker" "start" "-a" "4fac6d94e08cda6e44d0bbd0879acafe1f2466e79f851c29a0e1eb96b4d25ed1", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling float-cmp v0.8.0 [INFO] [stderr] Compiling ray_tracer v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: the feature `const_generics` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stdout] --> src/bin/ch10/main.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(const_generics)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(incomplete_features)]` on by default [INFO] [stdout] = note: see issue #44580 for more information [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `const_evaluatable_checked` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stdout] --> src/bin/ch10/main.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | #![feature(const_evaluatable_checked)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #76560 for more information [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `cell::RefCell`, `rc::Rc` [INFO] [stdout] --> src/bin/ch10/materials.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{cell::RefCell, rc::Rc}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pattern::Stripe` [INFO] [stdout] --> src/bin/ch10/materials.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | pattern::Stripe, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `cell::RefCell`, `rc::Rc` [INFO] [stdout] --> src/bin/ch10/pattern/stripe.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{cell::RefCell, rc::Rc}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `shape::Shape` [INFO] [stdout] --> src/bin/ch10/pattern/stripe.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | shape::Shape, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `cell::RefCell`, `rc::Rc` [INFO] [stdout] --> src/bin/ch10/pattern/mod.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | use std::{cell::RefCell, fmt::Debug, rc::Rc}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `transformations::Transformation` [INFO] [stdout] --> src/bin/ch10/pattern/mod.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | transformations::Transformation, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/bin/ch10/pattern/mod.rs:20:40 [INFO] [stdout] | [INFO] [stdout] 20 | fn pattern_at_shape(&self, shape: &Shape, point: &Point) -> Color { [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Shape` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in the 2021 edition! [INFO] [stdout] = note: for more information, see issue #80165 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::world::World` [INFO] [stdout] --> src/bin/ch10/ray.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::world::World; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rc::Rc` [INFO] [stdout] --> src/bin/ch10/shape/plane.rs:1:25 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{f64::EPSILON, rc::Rc}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `float_cmp::approx_eq` [INFO] [stdout] --> src/bin/ch10/shape/plane.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use float_cmp::approx_eq; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `cell::RefCell`, `rc::Rc` [INFO] [stdout] --> src/bin/ch10/shape/sphere.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{cell::RefCell, rc::Rc}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Intersection` [INFO] [stdout] --> src/bin/ch10/shape/sphere.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | ray::{Intersection, Ray}, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `cell::RefCell`, `rc::Rc` [INFO] [stdout] --> src/bin/ch10/shape/mod.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | use std::{cell::RefCell, fmt::Debug, rc::Rc}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Intersection`, `pattern::Pattern` [INFO] [stdout] --> src/bin/ch10/shape/mod.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | pattern::Pattern, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 12 | ray::{Intersection, Ray}, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `FRAC_PI_6` [INFO] [stdout] --> src/bin/ch10/main.rs:22:52 [INFO] [stdout] | [INFO] [stdout] 22 | f64::consts::{FRAC_PI_2, FRAC_PI_3, FRAC_PI_4, FRAC_PI_6}, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `const_generics` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stdout] --> src/bin/ch8/main.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(const_generics)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(incomplete_features)]` on by default [INFO] [stdout] = note: see issue #44580 for more information [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `const_evaluatable_checked` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stdout] --> src/bin/ch8/main.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | #![feature(const_evaluatable_checked)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #76560 for more information [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `path::is_separator` [INFO] [stdout] --> src/bin/ch8/world.rs:1:26 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{cell::RefCell, path::is_separator, rc::Rc}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `FRAC_PI_3` [INFO] [stdout] --> src/bin/ch8/main.rs:21:30 [INFO] [stdout] | [INFO] [stdout] 21 | f64::consts::{FRAC_PI_2, FRAC_PI_3, FRAC_PI_4}, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `dot` [INFO] [stdout] --> src/bin/ch1/tuple.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 79 | pub fn dot(&self, other: Self) -> f64 { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `cross` [INFO] [stdout] --> src/bin/ch1/tuple.rs:83:12 [INFO] [stdout] | [INFO] [stdout] 83 | pub fn cross(&self, other: Self) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `const_generics` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stdout] --> src/bin/ch5/main.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(const_generics)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(incomplete_features)]` on by default [INFO] [stdout] = note: see issue #44580 for more information [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `const_generics` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stdout] --> src/bin/ch7/main.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(const_generics)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(incomplete_features)]` on by default [INFO] [stdout] = note: see issue #44580 for more information [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `const_evaluatable_checked` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stdout] --> src/bin/ch7/main.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | #![feature(const_evaluatable_checked)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #76560 for more information [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `const_evaluatable_checked` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stdout] --> src/bin/ch5/main.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | #![feature(const_evaluatable_checked)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #76560 for more information [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `const_generics` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stdout] --> src/bin/ch9/main.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(const_generics)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(incomplete_features)]` on by default [INFO] [stdout] = note: see issue #44580 for more information [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `const_evaluatable_checked` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stdout] --> src/bin/ch9/main.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | #![feature(const_evaluatable_checked)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #76560 for more information [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::world::World` [INFO] [stdout] --> src/bin/ch9/ray.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::world::World; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rc::Rc` [INFO] [stdout] --> src/bin/ch9/shapes/plane.rs:1:25 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{f64::EPSILON, rc::Rc}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `float_cmp::approx_eq` [INFO] [stdout] --> src/bin/ch9/shapes/plane.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use float_cmp::approx_eq; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `cell::RefCell`, `rc::Rc` [INFO] [stdout] --> src/bin/ch9/shapes/sphere.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{cell::RefCell, rc::Rc}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Intersection` [INFO] [stdout] --> src/bin/ch9/shapes/sphere.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | ray::{Intersection, Ray}, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `cell::RefCell`, `rc::Rc` [INFO] [stdout] --> src/bin/ch9/shapes/mod.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | use std::{cell::RefCell, fmt::Debug, rc::Rc}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Intersection` [INFO] [stdout] --> src/bin/ch9/shapes/mod.rs:11:11 [INFO] [stdout] | [INFO] [stdout] 11 | ray::{Intersection, Ray}, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `path::is_separator` [INFO] [stdout] --> src/bin/ch9/world.rs:1:26 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{cell::RefCell, path::is_separator, rc::Rc}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `FRAC_PI_6` [INFO] [stdout] --> src/bin/ch9/main.rs:21:52 [INFO] [stdout] | [INFO] [stdout] 21 | f64::consts::{FRAC_PI_2, FRAC_PI_3, FRAC_PI_4, FRAC_PI_6}, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `const_generics` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stdout] --> src/bin/ch4/main.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | #![feature(const_generics)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(incomplete_features)]` on by default [INFO] [stdout] = note: see issue #44580 for more information [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `const_evaluatable_checked` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stdout] --> src/bin/ch4/main.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | #![feature(const_evaluatable_checked)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #76560 for more information [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `const_generics` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stdout] --> src/bin/ch3/main.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | #![feature(const_generics)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(incomplete_features)]` on by default [INFO] [stdout] = note: see issue #44580 for more information [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `const_evaluatable_checked` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stdout] --> src/bin/ch3/main.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | #![feature(const_evaluatable_checked)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #76560 for more information [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `const_generics` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stdout] --> src/bin/ch6/main.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(const_generics)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(incomplete_features)]` on by default [INFO] [stdout] = note: see issue #44580 for more information [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `const_evaluatable_checked` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stdout] --> src/bin/ch6/main.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | #![feature(const_evaluatable_checked)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #76560 for more information [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Tuple` [INFO] [stdout] --> src/bin/ch9/ray.rs:9:20 [INFO] [stdout] | [INFO] [stdout] 9 | tuple::{Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> src/bin/ch9/shapes/plane.rs:48:31 [INFO] [stdout] | [INFO] [stdout] 48 | fn local_normal_at(&self, p: &crate::tuple::Point) -> crate::tuple::Vector { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `const_generics` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stdout] --> src/bin/ch11/main.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(const_generics)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(incomplete_features)]` on by default [INFO] [stdout] = note: see issue #44580 for more information [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `const_evaluatable_checked` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stdout] --> src/bin/ch11/main.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | #![feature(const_evaluatable_checked)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #76560 for more information [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DEFAULT_REFLECTION_COUNT` [INFO] [stdout] --> src/bin/ch11/camera.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | DEFAULT_REFLECTION_COUNT, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `cell::RefCell`, `rc::Rc` [INFO] [stdout] --> src/bin/ch11/materials.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{cell::RefCell, rc::Rc}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pattern::Stripe` [INFO] [stdout] --> src/bin/ch11/materials.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | pattern::Stripe, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pixel_at` [INFO] [stdout] --> src/bin/ch9/canvas/mod.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn pixel_at(&self, x: usize, y: usize) -> Color { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `cell::RefCell`, `rc::Rc` [INFO] [stdout] --> src/bin/ch11/pattern/stripe.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{cell::RefCell, rc::Rc}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `shape::Shape` [INFO] [stdout] --> src/bin/ch11/pattern/stripe.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | shape::Shape, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `IDENTITY` [INFO] [stdout] --> src/bin/ch9/matrix.rs:98:5 [INFO] [stdout] | [INFO] [stdout] 98 | / pub const IDENTITY: Matrix<3> = Matrix { [INFO] [stdout] 99 | | data: [[1.0, 0.0, 0.0], [0.0, 1.0, 0.0], [0.0, 0.0, 1.0]], [INFO] [stdout] 100 | | }; [INFO] [stdout] | |______^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_invertible` [INFO] [stdout] --> src/bin/ch9/matrix.rs:137:12 [INFO] [stdout] | [INFO] [stdout] 137 | pub fn is_invertible(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `inverse` [INFO] [stdout] --> src/bin/ch9/matrix.rs:140:12 [INFO] [stdout] | [INFO] [stdout] 140 | pub fn inverse(&self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `IDENTITY` [INFO] [stdout] --> src/bin/ch9/matrix.rs:155:5 [INFO] [stdout] | [INFO] [stdout] 155 | / pub const IDENTITY: Matrix<2> = Matrix { [INFO] [stdout] 156 | | data: [[1.0, 0.0], [0.0, 1.0]], [INFO] [stdout] 157 | | }; [INFO] [stdout] | |______^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `minor` [INFO] [stdout] --> src/bin/ch9/matrix.rs:158:12 [INFO] [stdout] | [INFO] [stdout] 158 | pub fn minor(&self, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `cofactor` [INFO] [stdout] --> src/bin/ch9/matrix.rs:161:12 [INFO] [stdout] | [INFO] [stdout] 161 | pub fn cofactor(&self, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_invertible` [INFO] [stdout] --> src/bin/ch9/matrix.rs:167:12 [INFO] [stdout] | [INFO] [stdout] 167 | pub fn is_invertible(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `inverse` [INFO] [stdout] --> src/bin/ch9/matrix.rs:170:12 [INFO] [stdout] | [INFO] [stdout] 170 | pub fn inverse(&self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/bin/ch9/world.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `cell::RefCell`, `rc::Rc` [INFO] [stdout] --> src/bin/ch11/pattern/mod.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | use std::{cell::RefCell, fmt::Debug, rc::Rc}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `transformations::Transformation` [INFO] [stdout] --> src/bin/ch11/pattern/mod.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | transformations::Transformation, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/bin/ch11/pattern/mod.rs:20:40 [INFO] [stdout] | [INFO] [stdout] 20 | fn pattern_at_shape(&self, shape: &Shape, point: &Point) -> Color { [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Shape` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in the 2021 edition! [INFO] [stdout] = note: for more information, see issue #80165 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `World` [INFO] [stdout] --> src/bin/ch11/ray.rs:5:34 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::world::{Computations, World}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rc::Rc` [INFO] [stdout] --> src/bin/ch11/shape/plane.rs:1:25 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{f64::EPSILON, rc::Rc}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `float_cmp::approx_eq` [INFO] [stdout] --> src/bin/ch11/shape/plane.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use float_cmp::approx_eq; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `cell::RefCell`, `rc::Rc` [INFO] [stdout] --> src/bin/ch11/shape/sphere.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{cell::RefCell, rc::Rc}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Intersection` [INFO] [stdout] --> src/bin/ch11/shape/sphere.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | ray::{Intersection, Ray}, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `cell::RefCell`, `rc::Rc` [INFO] [stdout] --> src/bin/ch11/shape/mod.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | use std::{cell::RefCell, fmt::Debug, rc::Rc}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Intersection`, `pattern::Pattern` [INFO] [stdout] --> src/bin/ch11/shape/mod.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | pattern::Pattern, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 12 | ray::{Intersection, Ray}, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FRAC_PI_3`, `FRAC_PI_4`, `FRAC_PI_6` [INFO] [stdout] --> src/bin/ch11/main.rs:23:30 [INFO] [stdout] | [INFO] [stdout] 23 | f64::consts::{FRAC_PI_2, FRAC_PI_3, FRAC_PI_4, FRAC_PI_6}, [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Gradient`, `Ring`, `Stripe`, `lights::PointLight` [INFO] [stdout] --> src/bin/ch11/main.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | lights::PointLight, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 33 | pattern::{Checkerboard, Gradient, Pattern, Ring, Stripe}, [INFO] [stdout] | ^^^^^^^^ ^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pixel_at` [INFO] [stdout] --> src/bin/ch4/canvas/mod.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn pixel_at(&self, x: usize, y: usize) -> Color { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `transpose` [INFO] [stdout] --> src/bin/ch4/matrix.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn transpose(&self) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `IDENTITY` [INFO] [stdout] --> src/bin/ch4/matrix.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | / pub const IDENTITY: Matrix<4> = Matrix { [INFO] [stdout] 31 | | data: [ [INFO] [stdout] 32 | | [1.0, 0.0, 0.0, 0.0], [INFO] [stdout] 33 | | [0.0, 1.0, 0.0, 0.0], [INFO] [stdout] ... | [INFO] [stdout] 36 | | ], [INFO] [stdout] 37 | | }; [INFO] [stdout] | |______^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `submatrix` [INFO] [stdout] --> src/bin/ch4/matrix.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn submatrix(&self, row: usize, col: usize) -> Matrix<3> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `minor` [INFO] [stdout] --> src/bin/ch4/matrix.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 60 | pub fn minor(&self, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `cofactor` [INFO] [stdout] --> src/bin/ch4/matrix.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn cofactor(&self, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `determinant` [INFO] [stdout] --> src/bin/ch4/matrix.rs:66:12 [INFO] [stdout] | [INFO] [stdout] 66 | pub fn determinant(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_invertible` [INFO] [stdout] --> src/bin/ch4/matrix.rs:74:12 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn is_invertible(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `inverse` [INFO] [stdout] --> src/bin/ch4/matrix.rs:77:12 [INFO] [stdout] | [INFO] [stdout] 77 | pub fn inverse(&self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `IDENTITY` [INFO] [stdout] --> src/bin/ch4/matrix.rs:92:5 [INFO] [stdout] | [INFO] [stdout] 92 | / pub const IDENTITY: Matrix<3> = Matrix { [INFO] [stdout] 93 | | data: [[1.0, 0.0, 0.0], [0.0, 1.0, 0.0], [0.0, 0.0, 1.0]], [INFO] [stdout] 94 | | }; [INFO] [stdout] | |______^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `submatrix` [INFO] [stdout] --> src/bin/ch4/matrix.rs:95:12 [INFO] [stdout] | [INFO] [stdout] 95 | pub fn submatrix(&self, row: usize, col: usize) -> Matrix<2> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `minor` [INFO] [stdout] --> src/bin/ch4/matrix.rs:117:12 [INFO] [stdout] | [INFO] [stdout] 117 | pub fn minor(&self, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `cofactor` [INFO] [stdout] --> src/bin/ch4/matrix.rs:120:12 [INFO] [stdout] | [INFO] [stdout] 120 | pub fn cofactor(&self, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `determinant` [INFO] [stdout] --> src/bin/ch4/matrix.rs:123:12 [INFO] [stdout] | [INFO] [stdout] 123 | pub fn determinant(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_invertible` [INFO] [stdout] --> src/bin/ch4/matrix.rs:131:12 [INFO] [stdout] | [INFO] [stdout] 131 | pub fn is_invertible(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `inverse` [INFO] [stdout] --> src/bin/ch4/matrix.rs:134:12 [INFO] [stdout] | [INFO] [stdout] 134 | pub fn inverse(&self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `IDENTITY` [INFO] [stdout] --> src/bin/ch4/matrix.rs:149:5 [INFO] [stdout] | [INFO] [stdout] 149 | / pub const IDENTITY: Matrix<2> = Matrix { [INFO] [stdout] 150 | | data: [[1.0, 0.0], [0.0, 1.0]], [INFO] [stdout] 151 | | }; [INFO] [stdout] | |______^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `minor` [INFO] [stdout] --> src/bin/ch4/matrix.rs:152:12 [INFO] [stdout] | [INFO] [stdout] 152 | pub fn minor(&self, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `cofactor` [INFO] [stdout] --> src/bin/ch4/matrix.rs:155:12 [INFO] [stdout] | [INFO] [stdout] 155 | pub fn cofactor(&self, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `determinant` [INFO] [stdout] --> src/bin/ch4/matrix.rs:158:12 [INFO] [stdout] | [INFO] [stdout] 158 | pub fn determinant(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_invertible` [INFO] [stdout] --> src/bin/ch4/matrix.rs:161:12 [INFO] [stdout] | [INFO] [stdout] 161 | pub fn is_invertible(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `inverse` [INFO] [stdout] --> src/bin/ch4/matrix.rs:164:12 [INFO] [stdout] | [INFO] [stdout] 164 | pub fn inverse(&self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pixel_at` [INFO] [stdout] --> src/bin/ch7/canvas/mod.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn pixel_at(&self, x: usize, y: usize) -> Color { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `IDENTITY` [INFO] [stdout] --> src/bin/ch7/matrix.rs:92:5 [INFO] [stdout] | [INFO] [stdout] 92 | / pub const IDENTITY: Matrix<3> = Matrix { [INFO] [stdout] 93 | | data: [[1.0, 0.0, 0.0], [0.0, 1.0, 0.0], [0.0, 0.0, 1.0]], [INFO] [stdout] 94 | | }; [INFO] [stdout] | |______^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_invertible` [INFO] [stdout] --> src/bin/ch7/matrix.rs:131:12 [INFO] [stdout] | [INFO] [stdout] 131 | pub fn is_invertible(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `inverse` [INFO] [stdout] --> src/bin/ch7/matrix.rs:134:12 [INFO] [stdout] | [INFO] [stdout] 134 | pub fn inverse(&self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `IDENTITY` [INFO] [stdout] --> src/bin/ch7/matrix.rs:149:5 [INFO] [stdout] | [INFO] [stdout] 149 | / pub const IDENTITY: Matrix<2> = Matrix { [INFO] [stdout] 150 | | data: [[1.0, 0.0], [0.0, 1.0]], [INFO] [stdout] 151 | | }; [INFO] [stdout] | |______^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `minor` [INFO] [stdout] --> src/bin/ch7/matrix.rs:152:12 [INFO] [stdout] | [INFO] [stdout] 152 | pub fn minor(&self, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `cofactor` [INFO] [stdout] --> src/bin/ch7/matrix.rs:155:12 [INFO] [stdout] | [INFO] [stdout] 155 | pub fn cofactor(&self, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_invertible` [INFO] [stdout] --> src/bin/ch7/matrix.rs:161:12 [INFO] [stdout] | [INFO] [stdout] 161 | pub fn is_invertible(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `inverse` [INFO] [stdout] --> src/bin/ch7/matrix.rs:164:12 [INFO] [stdout] | [INFO] [stdout] 164 | pub fn inverse(&self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `set_transform` [INFO] [stdout] --> src/bin/ch7/ray.rs:88:8 [INFO] [stdout] | [INFO] [stdout] 88 | pub fn set_transform(s: Rc>, t: Matrix<4>) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/bin/ch7/world.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `io::Write` [INFO] [stdout] --> src/bin/ch2/main.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{io::Write}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pixel_at` [INFO] [stdout] --> src/bin/ch2/canvas/mod.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn pixel_at(&self, x: usize, y: usize) -> Color { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pixel_at` [INFO] [stdout] --> src/bin/ch6/canvas/mod.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn pixel_at(&self, x: usize, y: usize) -> Color { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `IDENTITY` [INFO] [stdout] --> src/bin/ch6/matrix.rs:92:5 [INFO] [stdout] | [INFO] [stdout] 92 | / pub const IDENTITY: Matrix<3> = Matrix { [INFO] [stdout] 93 | | data: [[1.0, 0.0, 0.0], [0.0, 1.0, 0.0], [0.0, 0.0, 1.0]], [INFO] [stdout] 94 | | }; [INFO] [stdout] | |______^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_invertible` [INFO] [stdout] --> src/bin/ch6/matrix.rs:131:12 [INFO] [stdout] | [INFO] [stdout] 131 | pub fn is_invertible(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `inverse` [INFO] [stdout] --> src/bin/ch6/matrix.rs:134:12 [INFO] [stdout] | [INFO] [stdout] 134 | pub fn inverse(&self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `IDENTITY` [INFO] [stdout] --> src/bin/ch6/matrix.rs:149:5 [INFO] [stdout] | [INFO] [stdout] 149 | / pub const IDENTITY: Matrix<2> = Matrix { [INFO] [stdout] 150 | | data: [[1.0, 0.0], [0.0, 1.0]], [INFO] [stdout] 151 | | }; [INFO] [stdout] | |______^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `minor` [INFO] [stdout] --> src/bin/ch6/matrix.rs:152:12 [INFO] [stdout] | [INFO] [stdout] 152 | pub fn minor(&self, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `cofactor` [INFO] [stdout] --> src/bin/ch6/matrix.rs:155:12 [INFO] [stdout] | [INFO] [stdout] 155 | pub fn cofactor(&self, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_invertible` [INFO] [stdout] --> src/bin/ch6/matrix.rs:161:12 [INFO] [stdout] | [INFO] [stdout] 161 | pub fn is_invertible(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `inverse` [INFO] [stdout] --> src/bin/ch6/matrix.rs:164:12 [INFO] [stdout] | [INFO] [stdout] 164 | pub fn inverse(&self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `intersections` [INFO] [stdout] --> src/bin/ch6/ray.rs:67:4 [INFO] [stdout] | [INFO] [stdout] 67 | fn intersections(mut vec: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `set_transform` [INFO] [stdout] --> src/bin/ch6/ray.rs:77:8 [INFO] [stdout] | [INFO] [stdout] 77 | pub fn set_transform(s: Rc>, t: Matrix<4>) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Tuple` [INFO] [stdout] --> src/bin/ch10/ray.rs:8:20 [INFO] [stdout] | [INFO] [stdout] 8 | tuple::{Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Canvas` [INFO] [stdout] --> src/bin/ch3/canvas/mod.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Canvas { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/bin/ch3/canvas/mod.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn new(width: usize, height: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `write` [INFO] [stdout] --> src/bin/ch3/canvas/mod.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn write(&mut self, x: usize, y: usize, color: Color) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pixel_at` [INFO] [stdout] --> src/bin/ch3/canvas/mod.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn pixel_at(&self, x: usize, y: usize) -> Color { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_ppm` [INFO] [stdout] --> src/bin/ch3/canvas/mod.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn to_ppm(&self, filename: &str) -> io::Result<()> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `IDENTITY` [INFO] [stdout] --> src/bin/ch3/matrix.rs:90:5 [INFO] [stdout] | [INFO] [stdout] 90 | / pub const IDENTITY: Matrix<3> = Matrix { [INFO] [stdout] 91 | | data: [[1.0, 0.0, 0.0], [0.0, 1.0, 0.0], [0.0, 0.0, 1.0]], [INFO] [stdout] 92 | | }; [INFO] [stdout] | |______^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_invertible` [INFO] [stdout] --> src/bin/ch3/matrix.rs:129:12 [INFO] [stdout] | [INFO] [stdout] 129 | pub fn is_invertible(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `inverse` [INFO] [stdout] --> src/bin/ch3/matrix.rs:132:12 [INFO] [stdout] | [INFO] [stdout] 132 | pub fn inverse(&self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `IDENTITY` [INFO] [stdout] --> src/bin/ch3/matrix.rs:147:5 [INFO] [stdout] | [INFO] [stdout] 147 | / pub const IDENTITY: Matrix<2> = Matrix { [INFO] [stdout] 148 | | data: [[1.0, 0.0], [0.0, 1.0]], [INFO] [stdout] 149 | | }; [INFO] [stdout] | |______^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `minor` [INFO] [stdout] --> src/bin/ch3/matrix.rs:150:12 [INFO] [stdout] | [INFO] [stdout] 150 | pub fn minor(&self, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `cofactor` [INFO] [stdout] --> src/bin/ch3/matrix.rs:153:12 [INFO] [stdout] | [INFO] [stdout] 153 | pub fn cofactor(&self, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_invertible` [INFO] [stdout] --> src/bin/ch3/matrix.rs:159:12 [INFO] [stdout] | [INFO] [stdout] 159 | pub fn is_invertible(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `inverse` [INFO] [stdout] --> src/bin/ch3/matrix.rs:162:12 [INFO] [stdout] | [INFO] [stdout] 162 | pub fn inverse(&self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pattern::Pattern` [INFO] [stdout] --> src/bin/ch10/ray.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::{pattern::Pattern, shape::Shape}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pattern::Pattern` [INFO] [stdout] --> src/bin/ch10/shape/plane.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | pattern::Pattern, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pattern::Pattern` [INFO] [stdout] --> src/bin/ch10/shape/sphere.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | pattern::Pattern, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pixel_at` [INFO] [stdout] --> src/bin/ch5/canvas/mod.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn pixel_at(&self, x: usize, y: usize) -> Color { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `transpose` [INFO] [stdout] --> src/bin/ch5/matrix.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn transpose(&self) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `IDENTITY` [INFO] [stdout] --> src/bin/ch5/matrix.rs:92:5 [INFO] [stdout] | [INFO] [stdout] 92 | / pub const IDENTITY: Matrix<3> = Matrix { [INFO] [stdout] 93 | | data: [[1.0, 0.0, 0.0], [0.0, 1.0, 0.0], [0.0, 0.0, 1.0]], [INFO] [stdout] 94 | | }; [INFO] [stdout] | |______^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_invertible` [INFO] [stdout] --> src/bin/ch5/matrix.rs:131:12 [INFO] [stdout] | [INFO] [stdout] 131 | pub fn is_invertible(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `inverse` [INFO] [stdout] --> src/bin/ch5/matrix.rs:134:12 [INFO] [stdout] | [INFO] [stdout] 134 | pub fn inverse(&self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `IDENTITY` [INFO] [stdout] --> src/bin/ch5/matrix.rs:149:5 [INFO] [stdout] | [INFO] [stdout] 149 | / pub const IDENTITY: Matrix<2> = Matrix { [INFO] [stdout] 150 | | data: [[1.0, 0.0], [0.0, 1.0]], [INFO] [stdout] 151 | | }; [INFO] [stdout] | |______^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `minor` [INFO] [stdout] --> src/bin/ch5/matrix.rs:152:12 [INFO] [stdout] | [INFO] [stdout] 152 | pub fn minor(&self, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `cofactor` [INFO] [stdout] --> src/bin/ch5/matrix.rs:155:12 [INFO] [stdout] | [INFO] [stdout] 155 | pub fn cofactor(&self, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_invertible` [INFO] [stdout] --> src/bin/ch5/matrix.rs:161:12 [INFO] [stdout] | [INFO] [stdout] 161 | pub fn is_invertible(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `inverse` [INFO] [stdout] --> src/bin/ch5/matrix.rs:164:12 [INFO] [stdout] | [INFO] [stdout] 164 | pub fn inverse(&self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `position` [INFO] [stdout] --> src/bin/ch5/ray.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn position(&self, t: f64) -> Point { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `intersections` [INFO] [stdout] --> src/bin/ch5/ray.rs:67:4 [INFO] [stdout] | [INFO] [stdout] 67 | fn intersections(mut vec: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `transform` [INFO] [stdout] --> src/bin/ch10/pattern/checkerboard.rs:39:33 [INFO] [stdout] | [INFO] [stdout] 39 | fn set_transform(&mut self, transform: Matrix<4>) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_transform` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `transform` [INFO] [stdout] --> src/bin/ch10/pattern/gradient.rs:34:33 [INFO] [stdout] | [INFO] [stdout] 34 | fn set_transform(&mut self, transform: Matrix<4>) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_transform` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `transform` [INFO] [stdout] --> src/bin/ch10/pattern/ring.rs:29:33 [INFO] [stdout] | [INFO] [stdout] 29 | fn set_transform(&mut self, transform: Matrix<4>) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_transform` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> src/bin/ch10/shape/plane.rs:49:31 [INFO] [stdout] | [INFO] [stdout] 49 | fn local_normal_at(&self, p: &crate::tuple::Point) -> crate::tuple::Vector { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/ch10/main.rs:88:9 [INFO] [stdout] | [INFO] [stdout] 88 | let mut pattern = Checkerboard::new(Color::WHITE, Color::BLACK); [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: associated function is never used: `pixel_at` [INFO] [stdout] --> src/bin/ch8/canvas/mod.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn pixel_at(&self, x: usize, y: usize) -> Color { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `IDENTITY` [INFO] [stdout] --> src/bin/ch8/matrix.rs:92:5 [INFO] [stdout] | [INFO] [stdout] 92 | / pub const IDENTITY: Matrix<3> = Matrix { [INFO] [stdout] 93 | | data: [[1.0, 0.0, 0.0], [0.0, 1.0, 0.0], [0.0, 0.0, 1.0]], [INFO] [stdout] 94 | | }; [INFO] [stdout] | |______^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_invertible` [INFO] [stdout] --> src/bin/ch8/matrix.rs:131:12 [INFO] [stdout] | [INFO] [stdout] 131 | pub fn is_invertible(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `inverse` [INFO] [stdout] --> src/bin/ch8/matrix.rs:134:12 [INFO] [stdout] | [INFO] [stdout] 134 | pub fn inverse(&self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `IDENTITY` [INFO] [stdout] --> src/bin/ch8/matrix.rs:149:5 [INFO] [stdout] | [INFO] [stdout] 149 | / pub const IDENTITY: Matrix<2> = Matrix { [INFO] [stdout] 150 | | data: [[1.0, 0.0], [0.0, 1.0]], [INFO] [stdout] 151 | | }; [INFO] [stdout] | |______^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `minor` [INFO] [stdout] --> src/bin/ch8/matrix.rs:152:12 [INFO] [stdout] | [INFO] [stdout] 152 | pub fn minor(&self, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `cofactor` [INFO] [stdout] --> src/bin/ch8/matrix.rs:155:12 [INFO] [stdout] | [INFO] [stdout] 155 | pub fn cofactor(&self, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_invertible` [INFO] [stdout] --> src/bin/ch8/matrix.rs:161:12 [INFO] [stdout] | [INFO] [stdout] 161 | pub fn is_invertible(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `inverse` [INFO] [stdout] --> src/bin/ch8/matrix.rs:164:12 [INFO] [stdout] | [INFO] [stdout] 164 | pub fn inverse(&self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `set_transform` [INFO] [stdout] --> src/bin/ch8/ray.rs:88:8 [INFO] [stdout] | [INFO] [stdout] 88 | pub fn set_transform(s: Rc>, t: Matrix<4>) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/bin/ch8/world.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pattern::Pattern` [INFO] [stdout] --> src/bin/ch11/ray.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::{pattern::Pattern, shape::Shape}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pattern::Pattern` [INFO] [stdout] --> src/bin/ch11/shape/plane.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | pattern::Pattern, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pattern::Pattern` [INFO] [stdout] --> src/bin/ch11/shape/sphere.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | pattern::Pattern, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Pattern` [INFO] [stdout] --> src/bin/ch11/main.rs:33:39 [INFO] [stdout] | [INFO] [stdout] 33 | pattern::{Checkerboard, Gradient, Pattern, Ring, Stripe}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `transform` [INFO] [stdout] --> src/bin/ch11/pattern/checkerboard.rs:39:33 [INFO] [stdout] | [INFO] [stdout] 39 | fn set_transform(&mut self, transform: Matrix<4>) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_transform` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `transform` [INFO] [stdout] --> src/bin/ch11/pattern/gradient.rs:34:33 [INFO] [stdout] | [INFO] [stdout] 34 | fn set_transform(&mut self, transform: Matrix<4>) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_transform` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `transform` [INFO] [stdout] --> src/bin/ch11/pattern/ring.rs:29:33 [INFO] [stdout] | [INFO] [stdout] 29 | fn set_transform(&mut self, transform: Matrix<4>) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_transform` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> src/bin/ch11/shape/plane.rs:49:31 [INFO] [stdout] | [INFO] [stdout] 49 | fn local_normal_at(&self, p: &crate::tuple::Point) -> crate::tuple::Vector { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pixel_at` [INFO] [stdout] --> src/bin/ch10/canvas/mod.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn pixel_at(&self, x: usize, y: usize) -> Color { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `IDENTITY` [INFO] [stdout] --> src/bin/ch10/matrix.rs:98:5 [INFO] [stdout] | [INFO] [stdout] 98 | / pub const IDENTITY: Matrix<3> = Matrix { [INFO] [stdout] 99 | | data: [[1.0, 0.0, 0.0], [0.0, 1.0, 0.0], [0.0, 0.0, 1.0]], [INFO] [stdout] 100 | | }; [INFO] [stdout] | |______^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_invertible` [INFO] [stdout] --> src/bin/ch10/matrix.rs:137:12 [INFO] [stdout] | [INFO] [stdout] 137 | pub fn is_invertible(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `inverse` [INFO] [stdout] --> src/bin/ch10/matrix.rs:140:12 [INFO] [stdout] | [INFO] [stdout] 140 | pub fn inverse(&self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `IDENTITY` [INFO] [stdout] --> src/bin/ch10/matrix.rs:155:5 [INFO] [stdout] | [INFO] [stdout] 155 | / pub const IDENTITY: Matrix<2> = Matrix { [INFO] [stdout] 156 | | data: [[1.0, 0.0], [0.0, 1.0]], [INFO] [stdout] 157 | | }; [INFO] [stdout] | |______^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `minor` [INFO] [stdout] --> src/bin/ch10/matrix.rs:158:12 [INFO] [stdout] | [INFO] [stdout] 158 | pub fn minor(&self, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `cofactor` [INFO] [stdout] --> src/bin/ch10/matrix.rs:161:12 [INFO] [stdout] | [INFO] [stdout] 161 | pub fn cofactor(&self, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_invertible` [INFO] [stdout] --> src/bin/ch10/matrix.rs:167:12 [INFO] [stdout] | [INFO] [stdout] 167 | pub fn is_invertible(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `inverse` [INFO] [stdout] --> src/bin/ch10/matrix.rs:170:12 [INFO] [stdout] | [INFO] [stdout] 170 | pub fn inverse(&self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/bin/ch10/world.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/ch11/main.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | let mut pattern = Checkerboard::new(Color::WHITE, Color::BLACK); [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: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pixel_at` [INFO] [stdout] --> src/bin/ch11/canvas/mod.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn pixel_at(&self, x: usize, y: usize) -> Color { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `IDENTITY` [INFO] [stdout] --> src/bin/ch11/matrix.rs:98:5 [INFO] [stdout] | [INFO] [stdout] 98 | / pub const IDENTITY: Matrix<3> = Matrix { [INFO] [stdout] 99 | | data: [[1.0, 0.0, 0.0], [0.0, 1.0, 0.0], [0.0, 0.0, 1.0]], [INFO] [stdout] 100 | | }; [INFO] [stdout] | |______^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_invertible` [INFO] [stdout] --> src/bin/ch11/matrix.rs:137:12 [INFO] [stdout] | [INFO] [stdout] 137 | pub fn is_invertible(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `inverse` [INFO] [stdout] --> src/bin/ch11/matrix.rs:140:12 [INFO] [stdout] | [INFO] [stdout] 140 | pub fn inverse(&self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `IDENTITY` [INFO] [stdout] --> src/bin/ch11/matrix.rs:155:5 [INFO] [stdout] | [INFO] [stdout] 155 | / pub const IDENTITY: Matrix<2> = Matrix { [INFO] [stdout] 156 | | data: [[1.0, 0.0], [0.0, 1.0]], [INFO] [stdout] 157 | | }; [INFO] [stdout] | |______^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `minor` [INFO] [stdout] --> src/bin/ch11/matrix.rs:158:12 [INFO] [stdout] | [INFO] [stdout] 158 | pub fn minor(&self, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `cofactor` [INFO] [stdout] --> src/bin/ch11/matrix.rs:161:12 [INFO] [stdout] | [INFO] [stdout] 161 | pub fn cofactor(&self, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_invertible` [INFO] [stdout] --> src/bin/ch11/matrix.rs:167:12 [INFO] [stdout] | [INFO] [stdout] 167 | pub fn is_invertible(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `inverse` [INFO] [stdout] --> src/bin/ch11/matrix.rs:170:12 [INFO] [stdout] | [INFO] [stdout] 170 | pub fn inverse(&self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/bin/ch11/pattern/gradient.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn new(a: Color, b: Color) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/bin/ch11/pattern/ring.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn new(a: Color, b: Color) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/bin/ch11/pattern/stripe.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn new(a: Color, b: Color) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `magnitude` [INFO] [stdout] --> src/bin/ch11/tuple/color.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn magnitude(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/bin/ch11/world.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 24 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 23 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 36 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 42 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 8.60s [INFO] running `Command { std: "docker" "inspect" "4fac6d94e08cda6e44d0bbd0879acafe1f2466e79f851c29a0e1eb96b4d25ed1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4fac6d94e08cda6e44d0bbd0879acafe1f2466e79f851c29a0e1eb96b4d25ed1", kill_on_drop: false }` [INFO] [stdout] 4fac6d94e08cda6e44d0bbd0879acafe1f2466e79f851c29a0e1eb96b4d25ed1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+99e3aef02079e9c10583638520cd0c134dc3a01d" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bead54b4d3b4e362ab31987a1714328140ae4c379a4277697294f3a9cae23888 [INFO] running `Command { std: "docker" "start" "-a" "bead54b4d3b4e362ab31987a1714328140ae4c379a4277697294f3a9cae23888", kill_on_drop: false }` [INFO] [stderr] Compiling ray_tracer v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: the feature `const_generics` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stdout] --> src/bin/ch8/main.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(const_generics)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(incomplete_features)]` on by default [INFO] [stdout] = note: see issue #44580 for more information [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `const_evaluatable_checked` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stdout] --> src/bin/ch8/main.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | #![feature(const_evaluatable_checked)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #76560 for more information [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `path::is_separator` [INFO] [stdout] --> src/bin/ch8/world.rs:1:26 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{cell::RefCell, path::is_separator, rc::Rc}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `FRAC_PI_3` [INFO] [stdout] --> src/bin/ch8/main.rs:21:30 [INFO] [stdout] | [INFO] [stdout] 21 | f64::consts::{FRAC_PI_2, FRAC_PI_3, FRAC_PI_4}, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `dot` [INFO] [stdout] --> src/bin/ch1/tuple.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 79 | pub fn dot(&self, other: Self) -> f64 { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `cross` [INFO] [stdout] --> src/bin/ch1/tuple.rs:83:12 [INFO] [stdout] | [INFO] [stdout] 83 | pub fn cross(&self, other: Self) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `const_generics` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stdout] --> src/bin/ch11/main.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(const_generics)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(incomplete_features)]` on by default [INFO] [stdout] = note: see issue #44580 for more information [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `const_evaluatable_checked` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stdout] --> src/bin/ch11/main.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | #![feature(const_evaluatable_checked)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #76560 for more information [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pattern::Stripe` [INFO] [stdout] --> src/bin/ch11/materials.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | pattern::Stripe, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `f64::consts::FRAC_2_PI` [INFO] [stdout] --> src/bin/ch11/materials.rs:90:43 [INFO] [stdout] | [INFO] [stdout] 90 | use std::{f64::consts::FRAC_1_SQRT_2, f64::consts::FRAC_2_PI}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Intersection`, `Plane`, `Ray` [INFO] [stdout] --> src/bin/ch11/materials.rs:94:15 [INFO] [stdout] | [INFO] [stdout] 94 | ray::{Intersection, Ray}, [INFO] [stdout] | ^^^^^^^^^^^^ ^^^ [INFO] [stdout] 95 | shape::{Plane, Sphere}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `shape::Shape` [INFO] [stdout] --> src/bin/ch11/pattern/stripe.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | shape::Shape, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `cell::RefCell`, `rc::Rc` [INFO] [stdout] --> src/bin/ch11/pattern/mod.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | use std::{cell::RefCell, fmt::Debug, rc::Rc}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/bin/ch11/pattern/mod.rs:20:40 [INFO] [stdout] | [INFO] [stdout] 20 | fn pattern_at_shape(&self, shape: &Shape, point: &Point) -> Color { [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Shape` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in the 2021 edition! [INFO] [stdout] = note: for more information, see issue #80165 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `World` [INFO] [stdout] --> src/bin/ch11/ray.rs:5:34 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::world::{Computations, World}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DEFAULT_REFLECTION_COUNT`, `tuple::Color` [INFO] [stdout] --> src/bin/ch11/ray.rs:94:73 [INFO] [stdout] | [INFO] [stdout] 94 | matrix::Matrix, shape::Sphere, transformations::Transformation, tuple::Color, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 95 | world::prepare_computations, DEFAULT_REFLECTION_COUNT, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `const_generics` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stdout] --> src/bin/ch4/main.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | #![feature(const_generics)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(incomplete_features)]` on by default [INFO] [stdout] = note: see issue #44580 for more information [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `const_evaluatable_checked` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stdout] --> src/bin/ch4/main.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | #![feature(const_evaluatable_checked)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #76560 for more information [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `const_generics` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stdout] --> src/bin/ch9/main.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(const_generics)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(incomplete_features)]` on by default [INFO] [stdout] = note: see issue #44580 for more information [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `float_cmp::approx_eq` [INFO] [stdout] --> src/bin/ch11/shape/plane.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use float_cmp::approx_eq; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `const_evaluatable_checked` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stdout] --> src/bin/ch9/main.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | #![feature(const_evaluatable_checked)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #76560 for more information [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `cell::RefCell`, `rc::Rc` [INFO] [stdout] --> src/bin/ch11/shape/sphere.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{cell::RefCell, rc::Rc}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Intersection` [INFO] [stdout] --> src/bin/ch11/shape/sphere.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | ray::{Intersection, Ray}, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `cell::RefCell`, `rc::Rc` [INFO] [stdout] --> src/bin/ch11/shape/mod.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | use std::{cell::RefCell, fmt::Debug, rc::Rc}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::world::World` [INFO] [stdout] --> src/bin/ch9/ray.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::world::World; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `float_cmp::approx_eq` [INFO] [stdout] --> src/bin/ch9/shapes/plane.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use float_cmp::approx_eq; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `borrow::BorrowMut` [INFO] [stdout] --> src/bin/ch9/shapes/plane.rs:63:15 [INFO] [stdout] | [INFO] [stdout] 63 | use std::{borrow::BorrowMut, cell::RefCell}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `cell::RefCell`, `rc::Rc` [INFO] [stdout] --> src/bin/ch9/shapes/sphere.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{cell::RefCell, rc::Rc}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Intersection` [INFO] [stdout] --> src/bin/ch9/shapes/sphere.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | ray::{Intersection, Ray}, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `cell::RefCell`, `rc::Rc` [INFO] [stdout] --> src/bin/ch9/shapes/mod.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | use std::{cell::RefCell, fmt::Debug, rc::Rc}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Intersection` [INFO] [stdout] --> src/bin/ch9/shapes/mod.rs:11:11 [INFO] [stdout] | [INFO] [stdout] 11 | ray::{Intersection, Ray}, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `any::type_name` [INFO] [stdout] --> src/bin/ch9/shapes/mod.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | any::type_name, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `const_generics` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stdout] --> src/bin/ch7/main.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(const_generics)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(incomplete_features)]` on by default [INFO] [stdout] = note: see issue #44580 for more information [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `path::is_separator` [INFO] [stdout] --> src/bin/ch9/world.rs:1:26 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{cell::RefCell, path::is_separator, rc::Rc}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cell::RefMut` [INFO] [stdout] --> src/bin/ch9/world.rs:163:34 [INFO] [stdout] | [INFO] [stdout] 163 | use std::{borrow::BorrowMut, cell::RefMut}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Intersection` [INFO] [stdout] --> src/bin/ch11/shape/mod.rs:12:11 [INFO] [stdout] | [INFO] [stdout] 12 | ray::{Intersection, Ray}, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `any::type_name` [INFO] [stdout] --> src/bin/ch11/shape/mod.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 57 | any::type_name, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `FRAC_PI_6` [INFO] [stdout] --> src/bin/ch9/main.rs:21:52 [INFO] [stdout] | [INFO] [stdout] 21 | f64::consts::{FRAC_PI_2, FRAC_PI_3, FRAC_PI_4, FRAC_PI_6}, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cell::RefMut` [INFO] [stdout] --> src/bin/ch11/world.rs:275:9 [INFO] [stdout] | [INFO] [stdout] 275 | cell::RefMut, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FRAC_PI_3`, `FRAC_PI_4`, `FRAC_PI_6` [INFO] [stdout] --> src/bin/ch11/main.rs:23:30 [INFO] [stdout] | [INFO] [stdout] 23 | f64::consts::{FRAC_PI_2, FRAC_PI_3, FRAC_PI_4, FRAC_PI_6}, [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Gradient`, `Ring`, `Stripe`, `lights::PointLight` [INFO] [stdout] --> src/bin/ch11/main.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | lights::PointLight, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 33 | pattern::{Checkerboard, Gradient, Pattern, Ring, Stripe}, [INFO] [stdout] | ^^^^^^^^ ^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `const_evaluatable_checked` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stdout] --> src/bin/ch7/main.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | #![feature(const_evaluatable_checked)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #76560 for more information [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `const_generics` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stdout] --> src/bin/ch5/main.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(const_generics)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(incomplete_features)]` on by default [INFO] [stdout] = note: see issue #44580 for more information [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `const_evaluatable_checked` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stdout] --> src/bin/ch5/main.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | #![feature(const_evaluatable_checked)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #76560 for more information [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `const_generics` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stdout] --> src/bin/ch10/main.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(const_generics)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(incomplete_features)]` on by default [INFO] [stdout] = note: see issue #44580 for more information [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `const_evaluatable_checked` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stdout] --> src/bin/ch10/main.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | #![feature(const_evaluatable_checked)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #76560 for more information [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pattern::Stripe` [INFO] [stdout] --> src/bin/ch10/materials.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | pattern::Stripe, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `io::Write` [INFO] [stdout] --> src/bin/ch2/main.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{io::Write}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `shape::Shape` [INFO] [stdout] --> src/bin/ch10/pattern/stripe.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | shape::Shape, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `cell::RefCell`, `rc::Rc` [INFO] [stdout] --> src/bin/ch10/pattern/mod.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | use std::{cell::RefCell, fmt::Debug, rc::Rc}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/bin/ch10/pattern/mod.rs:20:40 [INFO] [stdout] | [INFO] [stdout] 20 | fn pattern_at_shape(&self, shape: &Shape, point: &Point) -> Color { [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Shape` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in the 2021 edition! [INFO] [stdout] = note: for more information, see issue #80165 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::world::World` [INFO] [stdout] --> src/bin/ch10/ray.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::world::World; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `float_cmp::approx_eq` [INFO] [stdout] --> src/bin/ch10/shape/plane.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use float_cmp::approx_eq; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `cell::RefCell`, `rc::Rc` [INFO] [stdout] --> src/bin/ch10/shape/sphere.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{cell::RefCell, rc::Rc}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Intersection` [INFO] [stdout] --> src/bin/ch10/shape/sphere.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | ray::{Intersection, Ray}, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `cell::RefCell`, `rc::Rc` [INFO] [stdout] --> src/bin/ch10/shape/mod.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | use std::{cell::RefCell, fmt::Debug, rc::Rc}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Intersection` [INFO] [stdout] --> src/bin/ch10/shape/mod.rs:12:11 [INFO] [stdout] | [INFO] [stdout] 12 | ray::{Intersection, Ray}, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `any::type_name` [INFO] [stdout] --> src/bin/ch10/shape/mod.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | any::type_name, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::RefMut` [INFO] [stdout] --> src/bin/ch10/world.rs:164:9 [INFO] [stdout] | [INFO] [stdout] 164 | use std::cell::RefMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `FRAC_PI_6` [INFO] [stdout] --> src/bin/ch10/main.rs:22:52 [INFO] [stdout] | [INFO] [stdout] 22 | f64::consts::{FRAC_PI_2, FRAC_PI_3, FRAC_PI_4, FRAC_PI_6}, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `const_generics` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stdout] --> src/bin/ch6/main.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(const_generics)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(incomplete_features)]` on by default [INFO] [stdout] = note: see issue #44580 for more information [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `const_evaluatable_checked` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stdout] --> src/bin/ch6/main.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | #![feature(const_evaluatable_checked)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #76560 for more information [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `const_generics` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stdout] --> src/bin/ch3/main.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | #![feature(const_generics)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(incomplete_features)]` on by default [INFO] [stdout] = note: see issue #44580 for more information [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `const_evaluatable_checked` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stdout] --> src/bin/ch3/main.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | #![feature(const_evaluatable_checked)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #76560 for more information [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `borrow::BorrowMut` [INFO] [stdout] --> src/bin/ch9/world.rs:163:15 [INFO] [stdout] | [INFO] [stdout] 163 | use std::{borrow::BorrowMut, cell::RefMut}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> src/bin/ch9/shapes/plane.rs:48:31 [INFO] [stdout] | [INFO] [stdout] 48 | fn local_normal_at(&self, p: &crate::tuple::Point) -> crate::tuple::Vector { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `IDENTITY` [INFO] [stdout] --> src/bin/ch4/matrix.rs:92:5 [INFO] [stdout] | [INFO] [stdout] 92 | / pub const IDENTITY: Matrix<3> = Matrix { [INFO] [stdout] 93 | | data: [[1.0, 0.0, 0.0], [0.0, 1.0, 0.0], [0.0, 0.0, 1.0]], [INFO] [stdout] 94 | | }; [INFO] [stdout] | |______^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `IDENTITY` [INFO] [stdout] --> src/bin/ch5/matrix.rs:92:5 [INFO] [stdout] | [INFO] [stdout] 92 | / pub const IDENTITY: Matrix<3> = Matrix { [INFO] [stdout] 93 | | data: [[1.0, 0.0, 0.0], [0.0, 1.0, 0.0], [0.0, 0.0, 1.0]], [INFO] [stdout] 94 | | }; [INFO] [stdout] | |______^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_invertible` [INFO] [stdout] --> src/bin/ch5/matrix.rs:131:12 [INFO] [stdout] | [INFO] [stdout] 131 | pub fn is_invertible(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `inverse` [INFO] [stdout] --> src/bin/ch5/matrix.rs:134:12 [INFO] [stdout] | [INFO] [stdout] 134 | pub fn inverse(&self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `IDENTITY` [INFO] [stdout] --> src/bin/ch5/matrix.rs:149:5 [INFO] [stdout] | [INFO] [stdout] 149 | / pub const IDENTITY: Matrix<2> = Matrix { [INFO] [stdout] 150 | | data: [[1.0, 0.0], [0.0, 1.0]], [INFO] [stdout] 151 | | }; [INFO] [stdout] | |______^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `minor` [INFO] [stdout] --> src/bin/ch5/matrix.rs:152:12 [INFO] [stdout] | [INFO] [stdout] 152 | pub fn minor(&self, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `cofactor` [INFO] [stdout] --> src/bin/ch5/matrix.rs:155:12 [INFO] [stdout] | [INFO] [stdout] 155 | pub fn cofactor(&self, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_invertible` [INFO] [stdout] --> src/bin/ch5/matrix.rs:161:12 [INFO] [stdout] | [INFO] [stdout] 161 | pub fn is_invertible(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `inverse` [INFO] [stdout] --> src/bin/ch5/matrix.rs:164:12 [INFO] [stdout] | [INFO] [stdout] 164 | pub fn inverse(&self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_invertible` [INFO] [stdout] --> src/bin/ch4/matrix.rs:131:12 [INFO] [stdout] | [INFO] [stdout] 131 | pub fn is_invertible(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `inverse` [INFO] [stdout] --> src/bin/ch4/matrix.rs:134:12 [INFO] [stdout] | [INFO] [stdout] 134 | pub fn inverse(&self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `IDENTITY` [INFO] [stdout] --> src/bin/ch4/matrix.rs:149:5 [INFO] [stdout] | [INFO] [stdout] 149 | / pub const IDENTITY: Matrix<2> = Matrix { [INFO] [stdout] 150 | | data: [[1.0, 0.0], [0.0, 1.0]], [INFO] [stdout] 151 | | }; [INFO] [stdout] | |______^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `minor` [INFO] [stdout] --> src/bin/ch4/matrix.rs:152:12 [INFO] [stdout] | [INFO] [stdout] 152 | pub fn minor(&self, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `cofactor` [INFO] [stdout] --> src/bin/ch4/matrix.rs:155:12 [INFO] [stdout] | [INFO] [stdout] 155 | pub fn cofactor(&self, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_invertible` [INFO] [stdout] --> src/bin/ch4/matrix.rs:161:12 [INFO] [stdout] | [INFO] [stdout] 161 | pub fn is_invertible(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `inverse` [INFO] [stdout] --> src/bin/ch4/matrix.rs:164:12 [INFO] [stdout] | [INFO] [stdout] 164 | pub fn inverse(&self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `A` should have a snake case name [INFO] [stdout] --> src/bin/ch5/transformations.rs:154:13 [INFO] [stdout] | [INFO] [stdout] 154 | let A = Matrix::<4>::IDENTITY.rotation_x(FRAC_PI_2); [INFO] [stdout] | ^ help: convert the identifier to snake case: `a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `B` should have a snake case name [INFO] [stdout] --> src/bin/ch5/transformations.rs:155:13 [INFO] [stdout] | [INFO] [stdout] 155 | let B = Matrix::<4>::IDENTITY.scaling(5.0, 5.0, 5.0); [INFO] [stdout] | ^ help: convert the identifier to snake case: `b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `C` should have a snake case name [INFO] [stdout] --> src/bin/ch5/transformations.rs:156:13 [INFO] [stdout] | [INFO] [stdout] 156 | let C = Matrix::<4>::IDENTITY.translation(10.0, 5.0, 7.0); [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/bin/ch5/transformations.rs:171:13 [INFO] [stdout] | [INFO] [stdout] 171 | let T = Matrix::<4>::IDENTITY [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `A` should have a snake case name [INFO] [stdout] --> src/bin/ch4/transformations.rs:154:13 [INFO] [stdout] | [INFO] [stdout] 154 | let A = Matrix::<4>::IDENTITY.rotation_x(FRAC_PI_2); [INFO] [stdout] | ^ help: convert the identifier to snake case: `a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `B` should have a snake case name [INFO] [stdout] --> src/bin/ch4/transformations.rs:155:13 [INFO] [stdout] | [INFO] [stdout] 155 | let B = Matrix::<4>::IDENTITY.scaling(5.0, 5.0, 5.0); [INFO] [stdout] | ^ help: convert the identifier to snake case: `b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `C` should have a snake case name [INFO] [stdout] --> src/bin/ch4/transformations.rs:156:13 [INFO] [stdout] | [INFO] [stdout] 156 | let C = Matrix::<4>::IDENTITY.translation(10.0, 5.0, 7.0); [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/bin/ch4/transformations.rs:171:13 [INFO] [stdout] | [INFO] [stdout] 171 | let T = Matrix::<4>::IDENTITY [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `IDENTITY` [INFO] [stdout] --> src/bin/ch9/matrix.rs:98:5 [INFO] [stdout] | [INFO] [stdout] 98 | / pub const IDENTITY: Matrix<3> = Matrix { [INFO] [stdout] 99 | | data: [[1.0, 0.0, 0.0], [0.0, 1.0, 0.0], [0.0, 0.0, 1.0]], [INFO] [stdout] 100 | | }; [INFO] [stdout] | |______^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_invertible` [INFO] [stdout] --> src/bin/ch9/matrix.rs:137:12 [INFO] [stdout] | [INFO] [stdout] 137 | pub fn is_invertible(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `inverse` [INFO] [stdout] --> src/bin/ch9/matrix.rs:140:12 [INFO] [stdout] | [INFO] [stdout] 140 | pub fn inverse(&self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `IDENTITY` [INFO] [stdout] --> src/bin/ch9/matrix.rs:155:5 [INFO] [stdout] | [INFO] [stdout] 155 | / pub const IDENTITY: Matrix<2> = Matrix { [INFO] [stdout] 156 | | data: [[1.0, 0.0], [0.0, 1.0]], [INFO] [stdout] 157 | | }; [INFO] [stdout] | |______^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `minor` [INFO] [stdout] --> src/bin/ch9/matrix.rs:158:12 [INFO] [stdout] | [INFO] [stdout] 158 | pub fn minor(&self, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `cofactor` [INFO] [stdout] --> src/bin/ch9/matrix.rs:161:12 [INFO] [stdout] | [INFO] [stdout] 161 | pub fn cofactor(&self, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_invertible` [INFO] [stdout] --> src/bin/ch9/matrix.rs:167:12 [INFO] [stdout] | [INFO] [stdout] 167 | pub fn is_invertible(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `inverse` [INFO] [stdout] --> src/bin/ch9/matrix.rs:170:12 [INFO] [stdout] | [INFO] [stdout] 170 | pub fn inverse(&self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `A` should have a snake case name [INFO] [stdout] --> src/bin/ch9/transformations.rs:173:13 [INFO] [stdout] | [INFO] [stdout] 173 | let A = Matrix::<4>::IDENTITY.rotation_x(FRAC_PI_2); [INFO] [stdout] | ^ help: convert the identifier to snake case: `a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `B` should have a snake case name [INFO] [stdout] --> src/bin/ch9/transformations.rs:174:13 [INFO] [stdout] | [INFO] [stdout] 174 | let B = Matrix::<4>::IDENTITY.scaling(5.0, 5.0, 5.0); [INFO] [stdout] | ^ help: convert the identifier to snake case: `b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `C` should have a snake case name [INFO] [stdout] --> src/bin/ch9/transformations.rs:175:13 [INFO] [stdout] | [INFO] [stdout] 175 | let C = Matrix::<4>::IDENTITY.translation(10.0, 5.0, 7.0); [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/bin/ch9/transformations.rs:190:13 [INFO] [stdout] | [INFO] [stdout] 190 | let T = Matrix::<4>::IDENTITY [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pattern::Pattern` [INFO] [stdout] --> src/bin/ch11/ray.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::{pattern::Pattern, shape::Shape}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pattern::Pattern` [INFO] [stdout] --> src/bin/ch11/shape/plane.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | pattern::Pattern, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pattern::Pattern` [INFO] [stdout] --> src/bin/ch11/shape/sphere.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | pattern::Pattern, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pattern::Pattern` [INFO] [stdout] --> src/bin/ch11/shape/mod.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | pattern::Pattern, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Pattern` [INFO] [stdout] --> src/bin/ch11/main.rs:33:39 [INFO] [stdout] | [INFO] [stdout] 33 | pattern::{Checkerboard, Gradient, Pattern, Ring, Stripe}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_ppm` [INFO] [stdout] --> src/bin/ch3/canvas/mod.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn to_ppm(&self, filename: &str) -> io::Result<()> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `IDENTITY` [INFO] [stdout] --> src/bin/ch3/matrix.rs:90:5 [INFO] [stdout] | [INFO] [stdout] 90 | / pub const IDENTITY: Matrix<3> = Matrix { [INFO] [stdout] 91 | | data: [[1.0, 0.0, 0.0], [0.0, 1.0, 0.0], [0.0, 0.0, 1.0]], [INFO] [stdout] 92 | | }; [INFO] [stdout] | |______^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_invertible` [INFO] [stdout] --> src/bin/ch3/matrix.rs:129:12 [INFO] [stdout] | [INFO] [stdout] 129 | pub fn is_invertible(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `inverse` [INFO] [stdout] --> src/bin/ch3/matrix.rs:132:12 [INFO] [stdout] | [INFO] [stdout] 132 | pub fn inverse(&self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `IDENTITY` [INFO] [stdout] --> src/bin/ch3/matrix.rs:147:5 [INFO] [stdout] | [INFO] [stdout] 147 | / pub const IDENTITY: Matrix<2> = Matrix { [INFO] [stdout] 148 | | data: [[1.0, 0.0], [0.0, 1.0]], [INFO] [stdout] 149 | | }; [INFO] [stdout] | |______^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `minor` [INFO] [stdout] --> src/bin/ch3/matrix.rs:150:12 [INFO] [stdout] | [INFO] [stdout] 150 | pub fn minor(&self, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `cofactor` [INFO] [stdout] --> src/bin/ch3/matrix.rs:153:12 [INFO] [stdout] | [INFO] [stdout] 153 | pub fn cofactor(&self, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_invertible` [INFO] [stdout] --> src/bin/ch3/matrix.rs:159:12 [INFO] [stdout] | [INFO] [stdout] 159 | pub fn is_invertible(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `inverse` [INFO] [stdout] --> src/bin/ch3/matrix.rs:162:12 [INFO] [stdout] | [INFO] [stdout] 162 | pub fn inverse(&self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `transform` [INFO] [stdout] --> src/bin/ch11/pattern/checkerboard.rs:39:33 [INFO] [stdout] | [INFO] [stdout] 39 | fn set_transform(&mut self, transform: Matrix<4>) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_transform` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `transform` [INFO] [stdout] --> src/bin/ch11/pattern/gradient.rs:34:33 [INFO] [stdout] | [INFO] [stdout] 34 | fn set_transform(&mut self, transform: Matrix<4>) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_transform` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `transform` [INFO] [stdout] --> src/bin/ch11/pattern/ring.rs:29:33 [INFO] [stdout] | [INFO] [stdout] 29 | fn set_transform(&mut self, transform: Matrix<4>) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_transform` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> src/bin/ch11/shape/plane.rs:49:31 [INFO] [stdout] | [INFO] [stdout] 49 | fn local_normal_at(&self, p: &crate::tuple::Point) -> crate::tuple::Vector { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/ch11/main.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | let mut pattern = Checkerboard::new(Color::WHITE, Color::BLACK); [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 import: `pattern::Pattern` [INFO] [stdout] --> src/bin/ch10/ray.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::{pattern::Pattern, shape::Shape}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pattern::Pattern` [INFO] [stdout] --> src/bin/ch10/shape/plane.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | pattern::Pattern, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pattern::Pattern` [INFO] [stdout] --> src/bin/ch10/shape/sphere.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | pattern::Pattern, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pattern::Pattern` [INFO] [stdout] --> src/bin/ch10/shape/mod.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | pattern::Pattern, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `transform` [INFO] [stdout] --> src/bin/ch10/pattern/checkerboard.rs:39:33 [INFO] [stdout] | [INFO] [stdout] 39 | fn set_transform(&mut self, transform: Matrix<4>) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_transform` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `transform` [INFO] [stdout] --> src/bin/ch10/pattern/gradient.rs:34:33 [INFO] [stdout] | [INFO] [stdout] 34 | fn set_transform(&mut self, transform: Matrix<4>) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_transform` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `transform` [INFO] [stdout] --> src/bin/ch10/pattern/ring.rs:29:33 [INFO] [stdout] | [INFO] [stdout] 29 | fn set_transform(&mut self, transform: Matrix<4>) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_transform` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> src/bin/ch10/shape/plane.rs:49:31 [INFO] [stdout] | [INFO] [stdout] 49 | fn local_normal_at(&self, p: &crate::tuple::Point) -> crate::tuple::Vector { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/ch10/main.rs:88:9 [INFO] [stdout] | [INFO] [stdout] 88 | let mut pattern = Checkerboard::new(Color::WHITE, Color::BLACK); [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: associated constant is never used: `IDENTITY` [INFO] [stdout] --> src/bin/ch8/matrix.rs:92:5 [INFO] [stdout] | [INFO] [stdout] 92 | / pub const IDENTITY: Matrix<3> = Matrix { [INFO] [stdout] 93 | | data: [[1.0, 0.0, 0.0], [0.0, 1.0, 0.0], [0.0, 0.0, 1.0]], [INFO] [stdout] 94 | | }; [INFO] [stdout] | |______^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_invertible` [INFO] [stdout] --> src/bin/ch8/matrix.rs:131:12 [INFO] [stdout] | [INFO] [stdout] 131 | pub fn is_invertible(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `inverse` [INFO] [stdout] --> src/bin/ch8/matrix.rs:134:12 [INFO] [stdout] | [INFO] [stdout] 134 | pub fn inverse(&self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `IDENTITY` [INFO] [stdout] --> src/bin/ch8/matrix.rs:149:5 [INFO] [stdout] | [INFO] [stdout] 149 | / pub const IDENTITY: Matrix<2> = Matrix { [INFO] [stdout] 150 | | data: [[1.0, 0.0], [0.0, 1.0]], [INFO] [stdout] 151 | | }; [INFO] [stdout] | |______^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `minor` [INFO] [stdout] --> src/bin/ch8/matrix.rs:152:12 [INFO] [stdout] | [INFO] [stdout] 152 | pub fn minor(&self, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `cofactor` [INFO] [stdout] --> src/bin/ch8/matrix.rs:155:12 [INFO] [stdout] | [INFO] [stdout] 155 | pub fn cofactor(&self, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_invertible` [INFO] [stdout] --> src/bin/ch8/matrix.rs:161:12 [INFO] [stdout] | [INFO] [stdout] 161 | pub fn is_invertible(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `inverse` [INFO] [stdout] --> src/bin/ch8/matrix.rs:164:12 [INFO] [stdout] | [INFO] [stdout] 164 | pub fn inverse(&self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `IDENTITY` [INFO] [stdout] --> src/bin/ch10/matrix.rs:98:5 [INFO] [stdout] | [INFO] [stdout] 98 | / pub const IDENTITY: Matrix<3> = Matrix { [INFO] [stdout] 99 | | data: [[1.0, 0.0, 0.0], [0.0, 1.0, 0.0], [0.0, 0.0, 1.0]], [INFO] [stdout] 100 | | }; [INFO] [stdout] | |______^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_invertible` [INFO] [stdout] --> src/bin/ch10/matrix.rs:137:12 [INFO] [stdout] | [INFO] [stdout] 137 | pub fn is_invertible(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `inverse` [INFO] [stdout] --> src/bin/ch10/matrix.rs:140:12 [INFO] [stdout] | [INFO] [stdout] 140 | pub fn inverse(&self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `IDENTITY` [INFO] [stdout] --> src/bin/ch10/matrix.rs:155:5 [INFO] [stdout] | [INFO] [stdout] 155 | / pub const IDENTITY: Matrix<2> = Matrix { [INFO] [stdout] 156 | | data: [[1.0, 0.0], [0.0, 1.0]], [INFO] [stdout] 157 | | }; [INFO] [stdout] | |______^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `minor` [INFO] [stdout] --> src/bin/ch10/matrix.rs:158:12 [INFO] [stdout] | [INFO] [stdout] 158 | pub fn minor(&self, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `cofactor` [INFO] [stdout] --> src/bin/ch10/matrix.rs:161:12 [INFO] [stdout] | [INFO] [stdout] 161 | pub fn cofactor(&self, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_invertible` [INFO] [stdout] --> src/bin/ch10/matrix.rs:167:12 [INFO] [stdout] | [INFO] [stdout] 167 | pub fn is_invertible(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `inverse` [INFO] [stdout] --> src/bin/ch10/matrix.rs:170:12 [INFO] [stdout] | [INFO] [stdout] 170 | pub fn inverse(&self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `A` should have a snake case name [INFO] [stdout] --> src/bin/ch8/transformations.rs:173:13 [INFO] [stdout] | [INFO] [stdout] 173 | let A = Matrix::<4>::IDENTITY.rotation_x(FRAC_PI_2); [INFO] [stdout] | ^ help: convert the identifier to snake case: `a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `B` should have a snake case name [INFO] [stdout] --> src/bin/ch8/transformations.rs:174:13 [INFO] [stdout] | [INFO] [stdout] 174 | let B = Matrix::<4>::IDENTITY.scaling(5.0, 5.0, 5.0); [INFO] [stdout] | ^ help: convert the identifier to snake case: `b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `C` should have a snake case name [INFO] [stdout] --> src/bin/ch8/transformations.rs:175:13 [INFO] [stdout] | [INFO] [stdout] 175 | let C = Matrix::<4>::IDENTITY.translation(10.0, 5.0, 7.0); [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/bin/ch8/transformations.rs:190:13 [INFO] [stdout] | [INFO] [stdout] 190 | let T = Matrix::<4>::IDENTITY [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `A` should have a snake case name [INFO] [stdout] --> src/bin/ch10/transformations.rs:173:13 [INFO] [stdout] | [INFO] [stdout] 173 | let A = Matrix::<4>::IDENTITY.rotation_x(FRAC_PI_2); [INFO] [stdout] | ^ help: convert the identifier to snake case: `a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `B` should have a snake case name [INFO] [stdout] --> src/bin/ch10/transformations.rs:174:13 [INFO] [stdout] | [INFO] [stdout] 174 | let B = Matrix::<4>::IDENTITY.scaling(5.0, 5.0, 5.0); [INFO] [stdout] | ^ help: convert the identifier to snake case: `b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `C` should have a snake case name [INFO] [stdout] --> src/bin/ch10/transformations.rs:175:13 [INFO] [stdout] | [INFO] [stdout] 175 | let C = Matrix::<4>::IDENTITY.translation(10.0, 5.0, 7.0); [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/bin/ch10/transformations.rs:190:13 [INFO] [stdout] | [INFO] [stdout] 190 | let T = Matrix::<4>::IDENTITY [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `IDENTITY` [INFO] [stdout] --> src/bin/ch11/matrix.rs:98:5 [INFO] [stdout] | [INFO] [stdout] 98 | / pub const IDENTITY: Matrix<3> = Matrix { [INFO] [stdout] 99 | | data: [[1.0, 0.0, 0.0], [0.0, 1.0, 0.0], [0.0, 0.0, 1.0]], [INFO] [stdout] 100 | | }; [INFO] [stdout] | |______^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_invertible` [INFO] [stdout] --> src/bin/ch11/matrix.rs:137:12 [INFO] [stdout] | [INFO] [stdout] 137 | pub fn is_invertible(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `inverse` [INFO] [stdout] --> src/bin/ch11/matrix.rs:140:12 [INFO] [stdout] | [INFO] [stdout] 140 | pub fn inverse(&self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `IDENTITY` [INFO] [stdout] --> src/bin/ch11/matrix.rs:155:5 [INFO] [stdout] | [INFO] [stdout] 155 | / pub const IDENTITY: Matrix<2> = Matrix { [INFO] [stdout] 156 | | data: [[1.0, 0.0], [0.0, 1.0]], [INFO] [stdout] 157 | | }; [INFO] [stdout] | |______^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `minor` [INFO] [stdout] --> src/bin/ch11/matrix.rs:158:12 [INFO] [stdout] | [INFO] [stdout] 158 | pub fn minor(&self, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `cofactor` [INFO] [stdout] --> src/bin/ch11/matrix.rs:161:12 [INFO] [stdout] | [INFO] [stdout] 161 | pub fn cofactor(&self, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_invertible` [INFO] [stdout] --> src/bin/ch11/matrix.rs:167:12 [INFO] [stdout] | [INFO] [stdout] 167 | pub fn is_invertible(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `inverse` [INFO] [stdout] --> src/bin/ch11/matrix.rs:170:12 [INFO] [stdout] | [INFO] [stdout] 170 | pub fn inverse(&self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `magnitude` [INFO] [stdout] --> src/bin/ch11/tuple/color.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn magnitude(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `Schlick_approximation_under_total_internal_reflection` should have a snake case name [INFO] [stdout] --> src/bin/ch11/ray.rs:348:8 [INFO] [stdout] | [INFO] [stdout] 348 | fn Schlick_approximation_under_total_internal_reflection() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `schlick_approximation_under_total_internal_reflection` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `A` should have a snake case name [INFO] [stdout] --> src/bin/ch11/transformations.rs:173:13 [INFO] [stdout] | [INFO] [stdout] 173 | let A = Matrix::<4>::IDENTITY.rotation_x(FRAC_PI_2); [INFO] [stdout] | ^ help: convert the identifier to snake case: `a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `B` should have a snake case name [INFO] [stdout] --> src/bin/ch11/transformations.rs:174:13 [INFO] [stdout] | [INFO] [stdout] 174 | let B = Matrix::<4>::IDENTITY.scaling(5.0, 5.0, 5.0); [INFO] [stdout] | ^ help: convert the identifier to snake case: `b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `C` should have a snake case name [INFO] [stdout] --> src/bin/ch11/transformations.rs:175:13 [INFO] [stdout] | [INFO] [stdout] 175 | let C = Matrix::<4>::IDENTITY.translation(10.0, 5.0, 7.0); [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/bin/ch11/transformations.rs:190:13 [INFO] [stdout] | [INFO] [stdout] 190 | let T = Matrix::<4>::IDENTITY [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `IDENTITY` [INFO] [stdout] --> src/bin/ch6/matrix.rs:92:5 [INFO] [stdout] | [INFO] [stdout] 92 | / pub const IDENTITY: Matrix<3> = Matrix { [INFO] [stdout] 93 | | data: [[1.0, 0.0, 0.0], [0.0, 1.0, 0.0], [0.0, 0.0, 1.0]], [INFO] [stdout] 94 | | }; [INFO] [stdout] | |______^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_invertible` [INFO] [stdout] --> src/bin/ch6/matrix.rs:131:12 [INFO] [stdout] | [INFO] [stdout] 131 | pub fn is_invertible(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `inverse` [INFO] [stdout] --> src/bin/ch6/matrix.rs:134:12 [INFO] [stdout] | [INFO] [stdout] 134 | pub fn inverse(&self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `IDENTITY` [INFO] [stdout] --> src/bin/ch6/matrix.rs:149:5 [INFO] [stdout] | [INFO] [stdout] 149 | / pub const IDENTITY: Matrix<2> = Matrix { [INFO] [stdout] 150 | | data: [[1.0, 0.0], [0.0, 1.0]], [INFO] [stdout] 151 | | }; [INFO] [stdout] | |______^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `minor` [INFO] [stdout] --> src/bin/ch6/matrix.rs:152:12 [INFO] [stdout] | [INFO] [stdout] 152 | pub fn minor(&self, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `cofactor` [INFO] [stdout] --> src/bin/ch6/matrix.rs:155:12 [INFO] [stdout] | [INFO] [stdout] 155 | pub fn cofactor(&self, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_invertible` [INFO] [stdout] --> src/bin/ch6/matrix.rs:161:12 [INFO] [stdout] | [INFO] [stdout] 161 | pub fn is_invertible(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `inverse` [INFO] [stdout] --> src/bin/ch6/matrix.rs:164:12 [INFO] [stdout] | [INFO] [stdout] 164 | pub fn inverse(&self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `A` should have a snake case name [INFO] [stdout] --> src/bin/ch6/transformations.rs:154:13 [INFO] [stdout] | [INFO] [stdout] 154 | let A = Matrix::<4>::IDENTITY.rotation_x(FRAC_PI_2); [INFO] [stdout] | ^ help: convert the identifier to snake case: `a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `B` should have a snake case name [INFO] [stdout] --> src/bin/ch6/transformations.rs:155:13 [INFO] [stdout] | [INFO] [stdout] 155 | let B = Matrix::<4>::IDENTITY.scaling(5.0, 5.0, 5.0); [INFO] [stdout] | ^ help: convert the identifier to snake case: `b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `C` should have a snake case name [INFO] [stdout] --> src/bin/ch6/transformations.rs:156:13 [INFO] [stdout] | [INFO] [stdout] 156 | let C = Matrix::<4>::IDENTITY.translation(10.0, 5.0, 7.0); [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/bin/ch6/transformations.rs:171:13 [INFO] [stdout] | [INFO] [stdout] 171 | let T = Matrix::<4>::IDENTITY [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `IDENTITY` [INFO] [stdout] --> src/bin/ch7/matrix.rs:92:5 [INFO] [stdout] | [INFO] [stdout] 92 | / pub const IDENTITY: Matrix<3> = Matrix { [INFO] [stdout] 93 | | data: [[1.0, 0.0, 0.0], [0.0, 1.0, 0.0], [0.0, 0.0, 1.0]], [INFO] [stdout] 94 | | }; [INFO] [stdout] | |______^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_invertible` [INFO] [stdout] --> src/bin/ch7/matrix.rs:131:12 [INFO] [stdout] | [INFO] [stdout] 131 | pub fn is_invertible(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `inverse` [INFO] [stdout] --> src/bin/ch7/matrix.rs:134:12 [INFO] [stdout] | [INFO] [stdout] 134 | pub fn inverse(&self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `IDENTITY` [INFO] [stdout] --> src/bin/ch7/matrix.rs:149:5 [INFO] [stdout] | [INFO] [stdout] 149 | / pub const IDENTITY: Matrix<2> = Matrix { [INFO] [stdout] 150 | | data: [[1.0, 0.0], [0.0, 1.0]], [INFO] [stdout] 151 | | }; [INFO] [stdout] | |______^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `minor` [INFO] [stdout] --> src/bin/ch7/matrix.rs:152:12 [INFO] [stdout] | [INFO] [stdout] 152 | pub fn minor(&self, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `cofactor` [INFO] [stdout] --> src/bin/ch7/matrix.rs:155:12 [INFO] [stdout] | [INFO] [stdout] 155 | pub fn cofactor(&self, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_invertible` [INFO] [stdout] --> src/bin/ch7/matrix.rs:161:12 [INFO] [stdout] | [INFO] [stdout] 161 | pub fn is_invertible(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `inverse` [INFO] [stdout] --> src/bin/ch7/matrix.rs:164:12 [INFO] [stdout] | [INFO] [stdout] 164 | pub fn inverse(&self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `A` should have a snake case name [INFO] [stdout] --> src/bin/ch7/transformations.rs:173:13 [INFO] [stdout] | [INFO] [stdout] 173 | let A = Matrix::<4>::IDENTITY.rotation_x(FRAC_PI_2); [INFO] [stdout] | ^ help: convert the identifier to snake case: `a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `B` should have a snake case name [INFO] [stdout] --> src/bin/ch7/transformations.rs:174:13 [INFO] [stdout] | [INFO] [stdout] 174 | let B = Matrix::<4>::IDENTITY.scaling(5.0, 5.0, 5.0); [INFO] [stdout] | ^ help: convert the identifier to snake case: `b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `C` should have a snake case name [INFO] [stdout] --> src/bin/ch7/transformations.rs:175:13 [INFO] [stdout] | [INFO] [stdout] 175 | let C = Matrix::<4>::IDENTITY.translation(10.0, 5.0, 7.0); [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/bin/ch7/transformations.rs:190:13 [INFO] [stdout] | [INFO] [stdout] 190 | let T = Matrix::<4>::IDENTITY [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 36 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 16 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 27 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 43 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 6.66s [INFO] running `Command { std: "docker" "inspect" "bead54b4d3b4e362ab31987a1714328140ae4c379a4277697294f3a9cae23888", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bead54b4d3b4e362ab31987a1714328140ae4c379a4277697294f3a9cae23888", kill_on_drop: false }` [INFO] [stdout] bead54b4d3b4e362ab31987a1714328140ae4c379a4277697294f3a9cae23888 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+99e3aef02079e9c10583638520cd0c134dc3a01d" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 12d208adc3ae1bf4e3cb1267c133945d38706a7dd24b88cf6d6af255b3299094 [INFO] running `Command { std: "docker" "start" "-a" "12d208adc3ae1bf4e3cb1267c133945d38706a7dd24b88cf6d6af255b3299094", kill_on_drop: false }` [INFO] [stderr] warning: the feature `const_generics` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stderr] --> src/bin/ch8/main.rs:1:12 [INFO] [stderr] | [INFO] [stderr] 1 | #![feature(const_generics)] [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(incomplete_features)]` on by default [INFO] [stderr] = note: see issue #44580 for more information [INFO] [stderr] [INFO] [stderr] warning: the feature `const_evaluatable_checked` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stderr] --> src/bin/ch8/main.rs:2:12 [INFO] [stderr] | [INFO] [stderr] 2 | #![feature(const_evaluatable_checked)] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #76560 for more information [INFO] [stderr] [INFO] [stderr] warning: unused import: `path::is_separator` [INFO] [stderr] --> src/bin/ch8/world.rs:1:26 [INFO] [stderr] | [INFO] [stderr] 1 | use std::{cell::RefCell, path::is_separator, rc::Rc}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `FRAC_PI_3` [INFO] [stderr] --> src/bin/ch8/main.rs:21:30 [INFO] [stderr] | [INFO] [stderr] 21 | f64::consts::{FRAC_PI_2, FRAC_PI_3, FRAC_PI_4}, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated constant is never used: `IDENTITY` [INFO] [stderr] --> src/bin/ch8/matrix.rs:92:5 [INFO] [stderr] | [INFO] [stderr] 92 | / pub const IDENTITY: Matrix<3> = Matrix { [INFO] [stderr] 93 | | data: [[1.0, 0.0, 0.0], [0.0, 1.0, 0.0], [0.0, 0.0, 1.0]], [INFO] [stderr] 94 | | }; [INFO] [stderr] | |______^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `is_invertible` [INFO] [stderr] --> src/bin/ch8/matrix.rs:131:12 [INFO] [stderr] | [INFO] [stderr] 131 | pub fn is_invertible(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `inverse` [INFO] [stderr] --> src/bin/ch8/matrix.rs:134:12 [INFO] [stderr] | [INFO] [stderr] 134 | pub fn inverse(&self) -> Self { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated constant is never used: `IDENTITY` [INFO] [stderr] --> src/bin/ch8/matrix.rs:149:5 [INFO] [stderr] | [INFO] [stderr] 149 | / pub const IDENTITY: Matrix<2> = Matrix { [INFO] [stderr] 150 | | data: [[1.0, 0.0], [0.0, 1.0]], [INFO] [stderr] 151 | | }; [INFO] [stderr] | |______^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `minor` [INFO] [stderr] --> src/bin/ch8/matrix.rs:152:12 [INFO] [stderr] | [INFO] [stderr] 152 | pub fn minor(&self, row: usize, col: usize) -> f64 { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `cofactor` [INFO] [stderr] --> src/bin/ch8/matrix.rs:155:12 [INFO] [stderr] | [INFO] [stderr] 155 | pub fn cofactor(&self, row: usize, col: usize) -> f64 { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `is_invertible` [INFO] [stderr] --> src/bin/ch8/matrix.rs:161:12 [INFO] [stderr] | [INFO] [stderr] 161 | pub fn is_invertible(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `inverse` [INFO] [stderr] --> src/bin/ch8/matrix.rs:164:12 [INFO] [stderr] | [INFO] [stderr] 164 | pub fn inverse(&self) -> Self { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variable `A` should have a snake case name [INFO] [stderr] --> src/bin/ch8/transformations.rs:173:13 [INFO] [stderr] | [INFO] [stderr] 173 | let A = Matrix::<4>::IDENTITY.rotation_x(FRAC_PI_2); [INFO] [stderr] | ^ help: convert the identifier to snake case: `a` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable `B` should have a snake case name [INFO] [stderr] --> src/bin/ch8/transformations.rs:174:13 [INFO] [stderr] | [INFO] [stderr] 174 | let B = Matrix::<4>::IDENTITY.scaling(5.0, 5.0, 5.0); [INFO] [stderr] | ^ help: convert the identifier to snake case: `b` [INFO] [stderr] [INFO] [stderr] warning: variable `C` should have a snake case name [INFO] [stderr] --> src/bin/ch8/transformations.rs:175:13 [INFO] [stderr] | [INFO] [stderr] 175 | let C = Matrix::<4>::IDENTITY.translation(10.0, 5.0, 7.0); [INFO] [stderr] | ^ help: convert the identifier to snake case (notice the capitalization): `c` [INFO] [stderr] [INFO] [stderr] warning: variable `T` should have a snake case name [INFO] [stderr] --> src/bin/ch8/transformations.rs:190:13 [INFO] [stderr] | [INFO] [stderr] 190 | let T = Matrix::<4>::IDENTITY [INFO] [stderr] | ^ help: convert the identifier to snake case: `t` [INFO] [stderr] [INFO] [stderr] warning: 16 warnings emitted [INFO] [stderr] [INFO] [stderr] warning: the feature `const_generics` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stderr] --> src/bin/ch5/main.rs:1:12 [INFO] [stderr] | [INFO] [stderr] 1 | #![feature(const_generics)] [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(incomplete_features)]` on by default [INFO] [stderr] = note: see issue #44580 for more information [INFO] [stderr] [INFO] [stderr] warning: the feature `const_evaluatable_checked` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stderr] --> src/bin/ch5/main.rs:2:12 [INFO] [stderr] | [INFO] [stderr] 2 | #![feature(const_evaluatable_checked)] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #76560 for more information [INFO] [stderr] [INFO] [stderr] warning: associated constant is never used: `IDENTITY` [INFO] [stderr] --> src/bin/ch5/matrix.rs:92:5 [INFO] [stderr] | [INFO] [stderr] 92 | / pub const IDENTITY: Matrix<3> = Matrix { [INFO] [stderr] 93 | | data: [[1.0, 0.0, 0.0], [0.0, 1.0, 0.0], [0.0, 0.0, 1.0]], [INFO] [stderr] 94 | | }; [INFO] [stderr] | |______^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `is_invertible` [INFO] [stderr] --> src/bin/ch5/matrix.rs:131:12 [INFO] [stderr] | [INFO] [stderr] 131 | pub fn is_invertible(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `inverse` [INFO] [stderr] --> src/bin/ch5/matrix.rs:134:12 [INFO] [stderr] | [INFO] [stderr] 134 | pub fn inverse(&self) -> Self { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated constant is never used: `IDENTITY` [INFO] [stderr] --> src/bin/ch5/matrix.rs:149:5 [INFO] [stderr] | [INFO] [stderr] 149 | / pub const IDENTITY: Matrix<2> = Matrix { [INFO] [stderr] 150 | | data: [[1.0, 0.0], [0.0, 1.0]], [INFO] [stderr] 151 | | }; [INFO] [stderr] | |______^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `minor` [INFO] [stderr] --> src/bin/ch5/matrix.rs:152:12 [INFO] [stderr] | [INFO] [stderr] 152 | pub fn minor(&self, row: usize, col: usize) -> f64 { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `cofactor` [INFO] [stderr] --> src/bin/ch5/matrix.rs:155:12 [INFO] [stderr] | [INFO] [stderr] 155 | pub fn cofactor(&self, row: usize, col: usize) -> f64 { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `is_invertible` [INFO] [stderr] --> src/bin/ch5/matrix.rs:161:12 [INFO] [stderr] | [INFO] [stderr] 161 | pub fn is_invertible(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `inverse` [INFO] [stderr] --> src/bin/ch5/matrix.rs:164:12 [INFO] [stderr] | [INFO] [stderr] 164 | pub fn inverse(&self) -> Self { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variable `A` should have a snake case name [INFO] [stderr] --> src/bin/ch5/transformations.rs:154:13 [INFO] [stderr] | [INFO] [stderr] 154 | let A = Matrix::<4>::IDENTITY.rotation_x(FRAC_PI_2); [INFO] [stderr] | ^ help: convert the identifier to snake case: `a` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable `B` should have a snake case name [INFO] [stderr] --> src/bin/ch5/transformations.rs:155:13 [INFO] [stderr] | [INFO] [stderr] 155 | let B = Matrix::<4>::IDENTITY.scaling(5.0, 5.0, 5.0); [INFO] [stderr] | ^ help: convert the identifier to snake case: `b` [INFO] [stderr] [INFO] [stderr] warning: variable `C` should have a snake case name [INFO] [stderr] --> src/bin/ch5/transformations.rs:156:13 [INFO] [stderr] | [INFO] [stderr] 156 | let C = Matrix::<4>::IDENTITY.translation(10.0, 5.0, 7.0); [INFO] [stderr] | ^ help: convert the identifier to snake case (notice the capitalization): `c` [INFO] [stderr] [INFO] [stderr] warning: variable `T` should have a snake case name [INFO] [stderr] --> src/bin/ch5/transformations.rs:171:13 [INFO] [stderr] | [INFO] [stderr] 171 | let T = Matrix::<4>::IDENTITY [INFO] [stderr] | ^ help: convert the identifier to snake case: `t` [INFO] [stderr] [INFO] [stderr] warning: 14 warnings emitted [INFO] [stderr] [INFO] [stderr] warning: the feature `const_generics` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stderr] --> src/bin/ch7/main.rs:1:12 [INFO] [stderr] | [INFO] [stderr] 1 | #![feature(const_generics)] [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(incomplete_features)]` on by default [INFO] [stderr] = note: see issue #44580 for more information [INFO] [stderr] [INFO] [stderr] warning: the feature `const_evaluatable_checked` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stderr] --> src/bin/ch7/main.rs:2:12 [INFO] [stderr] | [INFO] [stderr] 2 | #![feature(const_evaluatable_checked)] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #76560 for more information [INFO] [stderr] [INFO] [stderr] warning: associated constant is never used: `IDENTITY` [INFO] [stderr] --> src/bin/ch7/matrix.rs:92:5 [INFO] [stderr] | [INFO] [stderr] 92 | / pub const IDENTITY: Matrix<3> = Matrix { [INFO] [stderr] 93 | | data: [[1.0, 0.0, 0.0], [0.0, 1.0, 0.0], [0.0, 0.0, 1.0]], [INFO] [stderr] 94 | | }; [INFO] [stderr] | |______^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `is_invertible` [INFO] [stderr] --> src/bin/ch7/matrix.rs:131:12 [INFO] [stderr] | [INFO] [stderr] 131 | pub fn is_invertible(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `inverse` [INFO] [stderr] --> src/bin/ch7/matrix.rs:134:12 [INFO] [stderr] | [INFO] [stderr] 134 | pub fn inverse(&self) -> Self { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated constant is never used: `IDENTITY` [INFO] [stderr] --> src/bin/ch7/matrix.rs:149:5 [INFO] [stderr] | [INFO] [stderr] 149 | / pub const IDENTITY: Matrix<2> = Matrix { [INFO] [stderr] 150 | | data: [[1.0, 0.0], [0.0, 1.0]], [INFO] [stderr] 151 | | }; [INFO] [stderr] | |______^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `minor` [INFO] [stderr] --> src/bin/ch7/matrix.rs:152:12 [INFO] [stderr] | [INFO] [stderr] 152 | pub fn minor(&self, row: usize, col: usize) -> f64 { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `cofactor` [INFO] [stderr] --> src/bin/ch7/matrix.rs:155:12 [INFO] [stderr] | [INFO] [stderr] 155 | pub fn cofactor(&self, row: usize, col: usize) -> f64 { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `is_invertible` [INFO] [stderr] --> src/bin/ch7/matrix.rs:161:12 [INFO] [stderr] | [INFO] [stderr] 161 | pub fn is_invertible(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `inverse` [INFO] [stderr] --> src/bin/ch7/matrix.rs:164:12 [INFO] [stderr] | [INFO] [stderr] 164 | pub fn inverse(&self) -> Self { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variable `A` should have a snake case name [INFO] [stderr] --> src/bin/ch7/transformations.rs:173:13 [INFO] [stderr] | [INFO] [stderr] 173 | let A = Matrix::<4>::IDENTITY.rotation_x(FRAC_PI_2); [INFO] [stderr] | ^ help: convert the identifier to snake case: `a` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable `B` should have a snake case name [INFO] [stderr] --> src/bin/ch7/transformations.rs:174:13 [INFO] [stderr] | [INFO] [stderr] 174 | let B = Matrix::<4>::IDENTITY.scaling(5.0, 5.0, 5.0); [INFO] [stderr] | ^ help: convert the identifier to snake case: `b` [INFO] [stderr] [INFO] [stderr] warning: variable `C` should have a snake case name [INFO] [stderr] --> src/bin/ch7/transformations.rs:175:13 [INFO] [stderr] | [INFO] [stderr] 175 | let C = Matrix::<4>::IDENTITY.translation(10.0, 5.0, 7.0); [INFO] [stderr] | ^ help: convert the identifier to snake case (notice the capitalization): `c` [INFO] [stderr] [INFO] [stderr] warning: variable `T` should have a snake case name [INFO] [stderr] --> src/bin/ch7/transformations.rs:190:13 [INFO] [stderr] | [INFO] [stderr] 190 | let T = Matrix::<4>::IDENTITY [INFO] [stderr] | ^ help: convert the identifier to snake case: `t` [INFO] [stderr] [INFO] [stderr] warning: 14 warnings emitted [INFO] [stderr] [INFO] [stderr] warning: the feature `const_generics` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stderr] --> src/bin/ch9/main.rs:1:12 [INFO] [stderr] | [INFO] [stderr] 1 | #![feature(const_generics)] [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(incomplete_features)]` on by default [INFO] [stderr] = note: see issue #44580 for more information [INFO] [stderr] [INFO] [stderr] warning: the feature `const_evaluatable_checked` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stderr] --> src/bin/ch9/main.rs:2:12 [INFO] [stderr] | [INFO] [stderr] 2 | #![feature(const_evaluatable_checked)] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #76560 for more information [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::world::World` [INFO] [stderr] --> src/bin/ch9/ray.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | use crate::world::World; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `float_cmp::approx_eq` [INFO] [stderr] --> src/bin/ch9/shapes/plane.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use float_cmp::approx_eq; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `borrow::BorrowMut` [INFO] [stderr] --> src/bin/ch9/shapes/plane.rs:63:15 [INFO] [stderr] | [INFO] [stderr] 63 | use std::{borrow::BorrowMut, cell::RefCell}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `cell::RefCell`, `rc::Rc` [INFO] [stderr] --> src/bin/ch9/shapes/sphere.rs:1:11 [INFO] [stderr] | [INFO] [stderr] 1 | use std::{cell::RefCell, rc::Rc}; [INFO] [stderr] | ^^^^^^^^^^^^^ ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Intersection` [INFO] [stderr] --> src/bin/ch9/shapes/sphere.rs:6:11 [INFO] [stderr] | [INFO] [stderr] 6 | ray::{Intersection, Ray}, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `cell::RefCell`, `rc::Rc` [INFO] [stderr] --> src/bin/ch9/shapes/mod.rs:3:11 [INFO] [stderr] | [INFO] [stderr] 3 | use std::{cell::RefCell, fmt::Debug, rc::Rc}; [INFO] [stderr] | ^^^^^^^^^^^^^ ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Intersection` [INFO] [stderr] --> src/bin/ch9/shapes/mod.rs:11:11 [INFO] [stderr] | [INFO] [stderr] 11 | ray::{Intersection, Ray}, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `any::type_name` [INFO] [stderr] --> src/bin/ch9/shapes/mod.rs:42:9 [INFO] [stderr] | [INFO] [stderr] 42 | any::type_name, [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `path::is_separator` [INFO] [stderr] --> src/bin/ch9/world.rs:1:26 [INFO] [stderr] | [INFO] [stderr] 1 | use std::{cell::RefCell, path::is_separator, rc::Rc}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `cell::RefMut` [INFO] [stderr] --> src/bin/ch9/world.rs:163:34 [INFO] [stderr] | [INFO] [stderr] 163 | use std::{borrow::BorrowMut, cell::RefMut}; [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `FRAC_PI_6` [INFO] [stderr] --> src/bin/ch9/main.rs:21:52 [INFO] [stderr] | [INFO] [stderr] 21 | f64::consts::{FRAC_PI_2, FRAC_PI_3, FRAC_PI_4, FRAC_PI_6}, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `borrow::BorrowMut` [INFO] [stderr] --> src/bin/ch9/world.rs:163:15 [INFO] [stderr] | [INFO] [stderr] 163 | use std::{borrow::BorrowMut, cell::RefMut}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `p` [INFO] [stderr] --> src/bin/ch9/shapes/plane.rs:48:31 [INFO] [stderr] | [INFO] [stderr] 48 | fn local_normal_at(&self, p: &crate::tuple::Point) -> crate::tuple::Vector { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated constant is never used: `IDENTITY` [INFO] [stderr] --> src/bin/ch9/matrix.rs:98:5 [INFO] [stderr] | [INFO] [stderr] 98 | / pub const IDENTITY: Matrix<3> = Matrix { [INFO] [stderr] 99 | | data: [[1.0, 0.0, 0.0], [0.0, 1.0, 0.0], [0.0, 0.0, 1.0]], [INFO] [stderr] 100 | | }; [INFO] [stderr] | |______^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `is_invertible` [INFO] [stderr] --> src/bin/ch9/matrix.rs:137:12 [INFO] [stderr] | [INFO] [stderr] 137 | pub fn is_invertible(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `inverse` [INFO] [stderr] --> src/bin/ch9/matrix.rs:140:12 [INFO] [stderr] | [INFO] [stderr] 140 | pub fn inverse(&self) -> Self { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated constant is never used: `IDENTITY` [INFO] [stderr] --> src/bin/ch9/matrix.rs:155:5 [INFO] [stderr] | [INFO] [stderr] 155 | / pub const IDENTITY: Matrix<2> = Matrix { [INFO] [stderr] 156 | | data: [[1.0, 0.0], [0.0, 1.0]], [INFO] [stderr] 157 | | }; [INFO] [stderr] | |______^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `minor` [INFO] [stderr] --> src/bin/ch9/matrix.rs:158:12 [INFO] [stderr] | [INFO] [stderr] 158 | pub fn minor(&self, row: usize, col: usize) -> f64 { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `cofactor` [INFO] [stderr] --> src/bin/ch9/matrix.rs:161:12 [INFO] [stderr] | [INFO] [stderr] 161 | pub fn cofactor(&self, row: usize, col: usize) -> f64 { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `is_invertible` [INFO] [stderr] --> src/bin/ch9/matrix.rs:167:12 [INFO] [stderr] | [INFO] [stderr] 167 | pub fn is_invertible(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `inverse` [INFO] [stderr] --> src/bin/ch9/matrix.rs:170:12 [INFO] [stderr] | [INFO] [stderr] 170 | pub fn inverse(&self) -> Self { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variable `A` should have a snake case name [INFO] [stderr] --> src/bin/ch9/transformations.rs:173:13 [INFO] [stderr] | [INFO] [stderr] 173 | let A = Matrix::<4>::IDENTITY.rotation_x(FRAC_PI_2); [INFO] [stderr] | ^ help: convert the identifier to snake case: `a` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable `B` should have a snake case name [INFO] [stderr] --> src/bin/ch9/transformations.rs:174:13 [INFO] [stderr] | [INFO] [stderr] 174 | let B = Matrix::<4>::IDENTITY.scaling(5.0, 5.0, 5.0); [INFO] [stderr] | ^ help: convert the identifier to snake case: `b` [INFO] [stderr] [INFO] [stderr] warning: variable `C` should have a snake case name [INFO] [stderr] --> src/bin/ch9/transformations.rs:175:13 [INFO] [stderr] | [INFO] [stderr] 175 | let C = Matrix::<4>::IDENTITY.translation(10.0, 5.0, 7.0); [INFO] [stderr] | ^ help: convert the identifier to snake case (notice the capitalization): `c` [INFO] [stderr] [INFO] [stderr] warning: variable `T` should have a snake case name [INFO] [stderr] --> src/bin/ch9/transformations.rs:190:13 [INFO] [stderr] | [INFO] [stderr] 190 | let T = Matrix::<4>::IDENTITY [INFO] [stderr] | ^ help: convert the identifier to snake case: `t` [INFO] [stderr] [INFO] [stderr] warning: 27 warnings emitted [INFO] [stderr] [INFO] [stderr] warning: the feature `const_generics` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stderr] --> src/bin/ch3/main.rs:2:12 [INFO] [stderr] | [INFO] [stderr] 2 | #![feature(const_generics)] [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(incomplete_features)]` on by default [INFO] [stderr] = note: see issue #44580 for more information [INFO] [stderr] [INFO] [stderr] warning: the feature `const_evaluatable_checked` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stderr] --> src/bin/ch3/main.rs:3:12 [INFO] [stderr] | [INFO] [stderr] 3 | #![feature(const_evaluatable_checked)] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #76560 for more information [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `to_ppm` [INFO] [stderr] --> src/bin/ch3/canvas/mod.rs:32:12 [INFO] [stderr] | [INFO] [stderr] 32 | pub fn to_ppm(&self, filename: &str) -> io::Result<()> { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated constant is never used: `IDENTITY` [INFO] [stderr] --> src/bin/ch3/matrix.rs:90:5 [INFO] [stderr] | [INFO] [stderr] 90 | / pub const IDENTITY: Matrix<3> = Matrix { [INFO] [stderr] 91 | | data: [[1.0, 0.0, 0.0], [0.0, 1.0, 0.0], [0.0, 0.0, 1.0]], [INFO] [stderr] 92 | | }; [INFO] [stderr] | |______^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `is_invertible` [INFO] [stderr] --> src/bin/ch3/matrix.rs:129:12 [INFO] [stderr] | [INFO] [stderr] 129 | pub fn is_invertible(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `inverse` [INFO] [stderr] --> src/bin/ch3/matrix.rs:132:12 [INFO] [stderr] | [INFO] [stderr] 132 | pub fn inverse(&self) -> Self { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated constant is never used: `IDENTITY` [INFO] [stderr] --> src/bin/ch3/matrix.rs:147:5 [INFO] [stderr] | [INFO] [stderr] 147 | / pub const IDENTITY: Matrix<2> = Matrix { [INFO] [stderr] 148 | | data: [[1.0, 0.0], [0.0, 1.0]], [INFO] [stderr] 149 | | }; [INFO] [stderr] | |______^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `minor` [INFO] [stderr] --> src/bin/ch3/matrix.rs:150:12 [INFO] [stderr] | [INFO] [stderr] 150 | pub fn minor(&self, row: usize, col: usize) -> f64 { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `cofactor` [INFO] [stderr] --> src/bin/ch3/matrix.rs:153:12 [INFO] [stderr] | [INFO] [stderr] 153 | pub fn cofactor(&self, row: usize, col: usize) -> f64 { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `is_invertible` [INFO] [stderr] --> src/bin/ch3/matrix.rs:159:12 [INFO] [stderr] | [INFO] [stderr] 159 | pub fn is_invertible(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `inverse` [INFO] [stderr] --> src/bin/ch3/matrix.rs:162:12 [INFO] [stderr] | [INFO] [stderr] 162 | pub fn inverse(&self) -> Self { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: 11 warnings emitted [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `dot` [INFO] [stderr] --> src/bin/ch1/tuple.rs:79:12 [INFO] [stderr] | [INFO] [stderr] 79 | pub fn dot(&self, other: Self) -> f64 { [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `cross` [INFO] [stderr] --> src/bin/ch1/tuple.rs:83:12 [INFO] [stderr] | [INFO] [stderr] 83 | pub fn cross(&self, other: Self) -> Self { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: 2 warnings emitted [INFO] [stderr] [INFO] [stderr] warning: the feature `const_generics` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stderr] --> src/bin/ch11/main.rs:1:12 [INFO] [stderr] | [INFO] [stderr] 1 | #![feature(const_generics)] [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(incomplete_features)]` on by default [INFO] [stderr] = note: see issue #44580 for more information [INFO] [stderr] [INFO] [stderr] warning: the feature `const_evaluatable_checked` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stderr] --> src/bin/ch11/main.rs:2:12 [INFO] [stderr] | [INFO] [stderr] 2 | #![feature(const_evaluatable_checked)] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #76560 for more information [INFO] [stderr] [INFO] [stderr] warning: unused import: `pattern::Stripe` [INFO] [stderr] --> src/bin/ch11/materials.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | pattern::Stripe, [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `f64::consts::FRAC_2_PI` [INFO] [stderr] --> src/bin/ch11/materials.rs:90:43 [INFO] [stderr] | [INFO] [stderr] 90 | use std::{f64::consts::FRAC_1_SQRT_2, f64::consts::FRAC_2_PI}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Intersection`, `Plane`, `Ray` [INFO] [stderr] --> src/bin/ch11/materials.rs:94:15 [INFO] [stderr] | [INFO] [stderr] 94 | ray::{Intersection, Ray}, [INFO] [stderr] | ^^^^^^^^^^^^ ^^^ [INFO] [stderr] 95 | shape::{Plane, Sphere}, [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `shape::Shape` [INFO] [stderr] --> src/bin/ch11/pattern/stripe.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | shape::Shape, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `cell::RefCell`, `rc::Rc` [INFO] [stderr] --> src/bin/ch11/pattern/mod.rs:5:11 [INFO] [stderr] | [INFO] [stderr] 5 | use std::{cell::RefCell, fmt::Debug, rc::Rc}; [INFO] [stderr] | ^^^^^^^^^^^^^ ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/bin/ch11/pattern/mod.rs:20:40 [INFO] [stderr] | [INFO] [stderr] 20 | fn pattern_at_shape(&self, shape: &Shape, point: &Point) -> Color { [INFO] [stderr] | ^^^^^ help: use `dyn`: `dyn Shape` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in the 2021 edition! [INFO] [stderr] = note: for more information, see issue #80165 [INFO] [stderr] [INFO] [stderr] warning: unused import: `World` [INFO] [stderr] --> src/bin/ch11/ray.rs:5:34 [INFO] [stderr] | [INFO] [stderr] 5 | use crate::world::{Computations, World}; [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `DEFAULT_REFLECTION_COUNT`, `tuple::Color` [INFO] [stderr] --> src/bin/ch11/ray.rs:94:73 [INFO] [stderr] | [INFO] [stderr] 94 | matrix::Matrix, shape::Sphere, transformations::Transformation, tuple::Color, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] 95 | world::prepare_computations, DEFAULT_REFLECTION_COUNT, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `float_cmp::approx_eq` [INFO] [stderr] --> src/bin/ch11/shape/plane.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use float_cmp::approx_eq; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `cell::RefCell`, `rc::Rc` [INFO] [stderr] --> src/bin/ch11/shape/sphere.rs:1:11 [INFO] [stderr] | [INFO] [stderr] 1 | use std::{cell::RefCell, rc::Rc}; [INFO] [stderr] | ^^^^^^^^^^^^^ ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Intersection` [INFO] [stderr] --> src/bin/ch11/shape/sphere.rs:7:11 [INFO] [stderr] | [INFO] [stderr] 7 | ray::{Intersection, Ray}, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `cell::RefCell`, `rc::Rc` [INFO] [stderr] --> src/bin/ch11/shape/mod.rs:3:11 [INFO] [stderr] | [INFO] [stderr] 3 | use std::{cell::RefCell, fmt::Debug, rc::Rc}; [INFO] [stderr] | ^^^^^^^^^^^^^ ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Intersection` [INFO] [stderr] --> src/bin/ch11/shape/mod.rs:12:11 [INFO] [stderr] | [INFO] [stderr] 12 | ray::{Intersection, Ray}, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `any::type_name` [INFO] [stderr] --> src/bin/ch11/shape/mod.rs:57:9 [INFO] [stderr] | [INFO] [stderr] 57 | any::type_name, [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `cell::RefMut` [INFO] [stderr] --> src/bin/ch11/world.rs:275:9 [INFO] [stderr] | [INFO] [stderr] 275 | cell::RefMut, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `FRAC_PI_3`, `FRAC_PI_4`, `FRAC_PI_6` [INFO] [stderr] --> src/bin/ch11/main.rs:23:30 [INFO] [stderr] | [INFO] [stderr] 23 | f64::consts::{FRAC_PI_2, FRAC_PI_3, FRAC_PI_4, FRAC_PI_6}, [INFO] [stderr] | ^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Gradient`, `Ring`, `Stripe`, `lights::PointLight` [INFO] [stderr] --> src/bin/ch11/main.rs:32:5 [INFO] [stderr] | [INFO] [stderr] 32 | lights::PointLight, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 33 | pattern::{Checkerboard, Gradient, Pattern, Ring, Stripe}, [INFO] [stderr] | ^^^^^^^^ ^^^^ ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `pattern::Pattern` [INFO] [stderr] --> src/bin/ch11/ray.rs:10:13 [INFO] [stderr] | [INFO] [stderr] 10 | use crate::{pattern::Pattern, shape::Shape}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `pattern::Pattern` [INFO] [stderr] --> src/bin/ch11/shape/plane.rs:8:5 [INFO] [stderr] | [INFO] [stderr] 8 | pattern::Pattern, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `pattern::Pattern` [INFO] [stderr] --> src/bin/ch11/shape/sphere.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | pattern::Pattern, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `pattern::Pattern` [INFO] [stderr] --> src/bin/ch11/shape/mod.rs:11:5 [INFO] [stderr] | [INFO] [stderr] 11 | pattern::Pattern, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Pattern` [INFO] [stderr] --> src/bin/ch11/main.rs:33:39 [INFO] [stderr] | [INFO] [stderr] 33 | pattern::{Checkerboard, Gradient, Pattern, Ring, Stripe}, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `transform` [INFO] [stderr] --> src/bin/ch11/pattern/checkerboard.rs:39:33 [INFO] [stderr] | [INFO] [stderr] 39 | fn set_transform(&mut self, transform: Matrix<4>) { [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_transform` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `transform` [INFO] [stderr] --> src/bin/ch11/pattern/gradient.rs:34:33 [INFO] [stderr] | [INFO] [stderr] 34 | fn set_transform(&mut self, transform: Matrix<4>) { [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_transform` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `transform` [INFO] [stderr] --> src/bin/ch11/pattern/ring.rs:29:33 [INFO] [stderr] | [INFO] [stderr] 29 | fn set_transform(&mut self, transform: Matrix<4>) { [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_transform` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `p` [INFO] [stderr] --> src/bin/ch11/shape/plane.rs:49:31 [INFO] [stderr] | [INFO] [stderr] 49 | fn local_normal_at(&self, p: &crate::tuple::Point) -> crate::tuple::Vector { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/bin/ch11/main.rs:47:9 [INFO] [stderr] | [INFO] [stderr] 47 | let mut pattern = Checkerboard::new(Color::WHITE, Color::BLACK); [INFO] [stderr] | ----^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated constant is never used: `IDENTITY` [INFO] [stderr] --> src/bin/ch11/matrix.rs:98:5 [INFO] [stderr] | [INFO] [stderr] 98 | / pub const IDENTITY: Matrix<3> = Matrix { [INFO] [stderr] 99 | | data: [[1.0, 0.0, 0.0], [0.0, 1.0, 0.0], [0.0, 0.0, 1.0]], [INFO] [stderr] 100 | | }; [INFO] [stderr] | |______^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `is_invertible` [INFO] [stderr] --> src/bin/ch11/matrix.rs:137:12 [INFO] [stderr] | [INFO] [stderr] 137 | pub fn is_invertible(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `inverse` [INFO] [stderr] --> src/bin/ch11/matrix.rs:140:12 [INFO] [stderr] | [INFO] [stderr] 140 | pub fn inverse(&self) -> Self { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated constant is never used: `IDENTITY` [INFO] [stderr] --> src/bin/ch11/matrix.rs:155:5 [INFO] [stderr] | [INFO] [stderr] 155 | / pub const IDENTITY: Matrix<2> = Matrix { [INFO] [stderr] 156 | | data: [[1.0, 0.0], [0.0, 1.0]], [INFO] [stderr] 157 | | }; [INFO] [stderr] | |______^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `minor` [INFO] [stderr] --> src/bin/ch11/matrix.rs:158:12 [INFO] [stderr] | [INFO] [stderr] 158 | pub fn minor(&self, row: usize, col: usize) -> f64 { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `cofactor` [INFO] [stderr] --> src/bin/ch11/matrix.rs:161:12 [INFO] [stderr] | [INFO] [stderr] 161 | pub fn cofactor(&self, row: usize, col: usize) -> f64 { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `is_invertible` [INFO] [stderr] --> src/bin/ch11/matrix.rs:167:12 [INFO] [stderr] | [INFO] [stderr] 167 | pub fn is_invertible(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `inverse` [INFO] [stderr] --> src/bin/ch11/matrix.rs:170:12 [INFO] [stderr] | [INFO] [stderr] 170 | pub fn inverse(&self) -> Self { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `magnitude` [INFO] [stderr] --> src/bin/ch11/tuple/color.rs:26:12 [INFO] [stderr] | [INFO] [stderr] 26 | pub fn magnitude(&self) -> f64 { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `Schlick_approximation_under_total_internal_reflection` should have a snake case name [INFO] [stderr] --> src/bin/ch11/ray.rs:348:8 [INFO] [stderr] | [INFO] [stderr] 348 | fn Schlick_approximation_under_total_internal_reflection() { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `schlick_approximation_under_total_internal_reflection` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable `A` should have a snake case name [INFO] [stderr] --> src/bin/ch11/transformations.rs:173:13 [INFO] [stderr] | [INFO] [stderr] 173 | let A = Matrix::<4>::IDENTITY.rotation_x(FRAC_PI_2); [INFO] [stderr] | ^ help: convert the identifier to snake case: `a` [INFO] [stderr] [INFO] [stderr] warning: variable `B` should have a snake case name [INFO] [stderr] --> src/bin/ch11/transformations.rs:174:13 [INFO] [stderr] | [INFO] [stderr] 174 | let B = Matrix::<4>::IDENTITY.scaling(5.0, 5.0, 5.0); [INFO] [stderr] | ^ help: convert the identifier to snake case: `b` [INFO] [stderr] [INFO] [stderr] warning: variable `C` should have a snake case name [INFO] [stderr] --> src/bin/ch11/transformations.rs:175:13 [INFO] [stderr] | [INFO] [stderr] 175 | let C = Matrix::<4>::IDENTITY.translation(10.0, 5.0, 7.0); [INFO] [stderr] | ^ help: convert the identifier to snake case (notice the capitalization): `c` [INFO] [stderr] [INFO] [stderr] warning: variable `T` should have a snake case name [INFO] [stderr] --> src/bin/ch11/transformations.rs:190:13 [INFO] [stderr] | [INFO] [stderr] 190 | let T = Matrix::<4>::IDENTITY [INFO] [stderr] | ^ help: convert the identifier to snake case: `t` [INFO] [stderr] [INFO] [stderr] warning: 43 warnings emitted [INFO] [stderr] [INFO] [stderr] warning: unused import: `io::Write` [INFO] [stderr] --> src/bin/ch2/main.rs:2:11 [INFO] [stderr] | [INFO] [stderr] 2 | use std::{io::Write}; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: 1 warning emitted [INFO] [stderr] [INFO] [stderr] warning: the feature `const_generics` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stderr] --> src/bin/ch10/main.rs:1:12 [INFO] [stderr] | [INFO] [stderr] 1 | #![feature(const_generics)] [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(incomplete_features)]` on by default [INFO] [stderr] = note: see issue #44580 for more information [INFO] [stderr] [INFO] [stderr] warning: the feature `const_evaluatable_checked` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stderr] --> src/bin/ch10/main.rs:2:12 [INFO] [stderr] | [INFO] [stderr] 2 | #![feature(const_evaluatable_checked)] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #76560 for more information [INFO] [stderr] [INFO] [stderr] warning: unused import: `pattern::Stripe` [INFO] [stderr] --> src/bin/ch10/materials.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | pattern::Stripe, [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `shape::Shape` [INFO] [stderr] --> src/bin/ch10/pattern/stripe.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | shape::Shape, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `cell::RefCell`, `rc::Rc` [INFO] [stderr] --> src/bin/ch10/pattern/mod.rs:5:11 [INFO] [stderr] | [INFO] [stderr] 5 | use std::{cell::RefCell, fmt::Debug, rc::Rc}; [INFO] [stderr] | ^^^^^^^^^^^^^ ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/bin/ch10/pattern/mod.rs:20:40 [INFO] [stderr] | [INFO] [stderr] 20 | fn pattern_at_shape(&self, shape: &Shape, point: &Point) -> Color { [INFO] [stderr] | ^^^^^ help: use `dyn`: `dyn Shape` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in the 2021 edition! [INFO] [stderr] = note: for more information, see issue #80165 [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::world::World` [INFO] [stderr] --> src/bin/ch10/ray.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | use crate::world::World; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `float_cmp::approx_eq` [INFO] [stderr] --> src/bin/ch10/shape/plane.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use float_cmp::approx_eq; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `cell::RefCell`, `rc::Rc` [INFO] [stderr] --> src/bin/ch10/shape/sphere.rs:1:11 [INFO] [stderr] | [INFO] [stderr] 1 | use std::{cell::RefCell, rc::Rc}; [INFO] [stderr] | ^^^^^^^^^^^^^ ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Intersection` [INFO] [stderr] --> src/bin/ch10/shape/sphere.rs:7:11 [INFO] [stderr] | [INFO] [stderr] 7 | ray::{Intersection, Ray}, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `cell::RefCell`, `rc::Rc` [INFO] [stderr] --> src/bin/ch10/shape/mod.rs:3:11 [INFO] [stderr] | [INFO] [stderr] 3 | use std::{cell::RefCell, fmt::Debug, rc::Rc}; [INFO] [stderr] | ^^^^^^^^^^^^^ ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Intersection` [INFO] [stderr] --> src/bin/ch10/shape/mod.rs:12:11 [INFO] [stderr] | [INFO] [stderr] 12 | ray::{Intersection, Ray}, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `any::type_name` [INFO] [stderr] --> src/bin/ch10/shape/mod.rs:45:9 [INFO] [stderr] | [INFO] [stderr] 45 | any::type_name, [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::cell::RefMut` [INFO] [stderr] --> src/bin/ch10/world.rs:164:9 [INFO] [stderr] | [INFO] [stderr] 164 | use std::cell::RefMut; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `FRAC_PI_6` [INFO] [stderr] --> src/bin/ch10/main.rs:22:52 [INFO] [stderr] | [INFO] [stderr] 22 | f64::consts::{FRAC_PI_2, FRAC_PI_3, FRAC_PI_4, FRAC_PI_6}, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `pattern::Pattern` [INFO] [stderr] --> src/bin/ch10/ray.rs:10:13 [INFO] [stderr] | [INFO] [stderr] 10 | use crate::{pattern::Pattern, shape::Shape}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `pattern::Pattern` [INFO] [stderr] --> src/bin/ch10/shape/plane.rs:8:5 [INFO] [stderr] | [INFO] [stderr] 8 | pattern::Pattern, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `pattern::Pattern` [INFO] [stderr] --> src/bin/ch10/shape/sphere.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | pattern::Pattern, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `pattern::Pattern` [INFO] [stderr] --> src/bin/ch10/shape/mod.rs:11:5 [INFO] [stderr] | [INFO] [stderr] 11 | pattern::Pattern, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `transform` [INFO] [stderr] --> src/bin/ch10/pattern/checkerboard.rs:39:33 [INFO] [stderr] | [INFO] [stderr] 39 | fn set_transform(&mut self, transform: Matrix<4>) { [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_transform` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `transform` [INFO] [stderr] --> src/bin/ch10/pattern/gradient.rs:34:33 [INFO] [stderr] | [INFO] [stderr] 34 | fn set_transform(&mut self, transform: Matrix<4>) { [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_transform` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `transform` [INFO] [stderr] --> src/bin/ch10/pattern/ring.rs:29:33 [INFO] [stderr] | [INFO] [stderr] 29 | fn set_transform(&mut self, transform: Matrix<4>) { [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_transform` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `p` [INFO] [stderr] --> src/bin/ch10/shape/plane.rs:49:31 [INFO] [stderr] | [INFO] [stderr] 49 | fn local_normal_at(&self, p: &crate::tuple::Point) -> crate::tuple::Vector { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/bin/ch10/main.rs:88:9 [INFO] [stderr] | [INFO] [stderr] 88 | let mut pattern = Checkerboard::new(Color::WHITE, Color::BLACK); [INFO] [stderr] | ----^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated constant is never used: `IDENTITY` [INFO] [stderr] --> src/bin/ch10/matrix.rs:98:5 [INFO] [stderr] | [INFO] [stderr] 98 | / pub const IDENTITY: Matrix<3> = Matrix { [INFO] [stderr] 99 | | data: [[1.0, 0.0, 0.0], [0.0, 1.0, 0.0], [0.0, 0.0, 1.0]], [INFO] [stderr] 100 | | }; [INFO] [stderr] | |______^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `is_invertible` [INFO] [stderr] --> src/bin/ch10/matrix.rs:137:12 [INFO] [stderr] | [INFO] [stderr] 137 | pub fn is_invertible(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `inverse` [INFO] [stderr] --> src/bin/ch10/matrix.rs:140:12 [INFO] [stderr] | [INFO] [stderr] 140 | pub fn inverse(&self) -> Self { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated constant is never used: `IDENTITY` [INFO] [stderr] --> src/bin/ch10/matrix.rs:155:5 [INFO] [stderr] | [INFO] [stderr] 155 | / pub const IDENTITY: Matrix<2> = Matrix { [INFO] [stderr] 156 | | data: [[1.0, 0.0], [0.0, 1.0]], [INFO] [stderr] 157 | | }; [INFO] [stderr] | |______^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `minor` [INFO] [stderr] --> src/bin/ch10/matrix.rs:158:12 [INFO] [stderr] | [INFO] [stderr] 158 | pub fn minor(&self, row: usize, col: usize) -> f64 { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `cofactor` [INFO] [stderr] --> src/bin/ch10/matrix.rs:161:12 [INFO] [stderr] | [INFO] [stderr] 161 | pub fn cofactor(&self, row: usize, col: usize) -> f64 { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `is_invertible` [INFO] [stderr] --> src/bin/ch10/matrix.rs:167:12 [INFO] [stderr] | [INFO] [stderr] 167 | pub fn is_invertible(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `inverse` [INFO] [stderr] --> src/bin/ch10/matrix.rs:170:12 [INFO] [stderr] | [INFO] [stderr] 170 | pub fn inverse(&self) -> Self { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variable `A` should have a snake case name [INFO] [stderr] --> src/bin/ch10/transformations.rs:173:13 [INFO] [stderr] | [INFO] [stderr] 173 | let A = Matrix::<4>::IDENTITY.rotation_x(FRAC_PI_2); [INFO] [stderr] | ^ help: convert the identifier to snake case: `a` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable `B` should have a snake case name [INFO] [stderr] --> src/bin/ch10/transformations.rs:174:13 [INFO] [stderr] | [INFO] [stderr] 174 | let B = Matrix::<4>::IDENTITY.scaling(5.0, 5.0, 5.0); [INFO] [stderr] | ^ help: convert the identifier to snake case: `b` [INFO] [stderr] [INFO] [stderr] warning: variable `C` should have a snake case name [INFO] [stderr] --> src/bin/ch10/transformations.rs:175:13 [INFO] [stderr] | [INFO] [stderr] 175 | let C = Matrix::<4>::IDENTITY.translation(10.0, 5.0, 7.0); [INFO] [stderr] | ^ help: convert the identifier to snake case (notice the capitalization): `c` [INFO] [stderr] [INFO] [stderr] warning: variable `T` should have a snake case name [INFO] [stderr] --> src/bin/ch10/transformations.rs:190:13 [INFO] [stderr] | [INFO] [stderr] 190 | let T = Matrix::<4>::IDENTITY [INFO] [stderr] | ^ help: convert the identifier to snake case: `t` [INFO] [stderr] [INFO] [stderr] warning: 36 warnings emitted [INFO] [stderr] [INFO] [stderr] warning: the feature `const_generics` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stderr] --> src/bin/ch4/main.rs:2:12 [INFO] [stderr] | [INFO] [stderr] 2 | #![feature(const_generics)] [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(incomplete_features)]` on by default [INFO] [stderr] = note: see issue #44580 for more information [INFO] [stderr] [INFO] [stderr] warning: the feature `const_evaluatable_checked` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stderr] --> src/bin/ch4/main.rs:3:12 [INFO] [stderr] | [INFO] [stderr] 3 | #![feature(const_evaluatable_checked)] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #76560 for more information [INFO] [stderr] [INFO] [stderr] warning: associated constant is never used: `IDENTITY` [INFO] [stderr] --> src/bin/ch4/matrix.rs:92:5 [INFO] [stderr] | [INFO] [stderr] 92 | / pub const IDENTITY: Matrix<3> = Matrix { [INFO] [stderr] 93 | | data: [[1.0, 0.0, 0.0], [0.0, 1.0, 0.0], [0.0, 0.0, 1.0]], [INFO] [stderr] 94 | | }; [INFO] [stderr] | |______^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `is_invertible` [INFO] [stderr] --> src/bin/ch4/matrix.rs:131:12 [INFO] [stderr] | [INFO] [stderr] 131 | pub fn is_invertible(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `inverse` [INFO] [stderr] --> src/bin/ch4/matrix.rs:134:12 [INFO] [stderr] | [INFO] [stderr] 134 | pub fn inverse(&self) -> Self { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated constant is never used: `IDENTITY` [INFO] [stderr] --> src/bin/ch4/matrix.rs:149:5 [INFO] [stderr] | [INFO] [stderr] 149 | / pub const IDENTITY: Matrix<2> = Matrix { [INFO] [stderr] 150 | | data: [[1.0, 0.0], [0.0, 1.0]], [INFO] [stderr] 151 | | }; [INFO] [stderr] | |______^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `minor` [INFO] [stderr] --> src/bin/ch4/matrix.rs:152:12 [INFO] [stderr] | [INFO] [stderr] 152 | pub fn minor(&self, row: usize, col: usize) -> f64 { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `cofactor` [INFO] [stderr] --> src/bin/ch4/matrix.rs:155:12 [INFO] [stderr] | [INFO] [stderr] 155 | pub fn cofactor(&self, row: usize, col: usize) -> f64 { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `is_invertible` [INFO] [stderr] --> src/bin/ch4/matrix.rs:161:12 [INFO] [stderr] | [INFO] [stderr] 161 | pub fn is_invertible(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `inverse` [INFO] [stderr] --> src/bin/ch4/matrix.rs:164:12 [INFO] [stderr] | [INFO] [stderr] 164 | pub fn inverse(&self) -> Self { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variable `A` should have a snake case name [INFO] [stderr] --> src/bin/ch4/transformations.rs:154:13 [INFO] [stderr] | [INFO] [stderr] 154 | let A = Matrix::<4>::IDENTITY.rotation_x(FRAC_PI_2); [INFO] [stderr] | ^ help: convert the identifier to snake case: `a` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable `B` should have a snake case name [INFO] [stderr] --> src/bin/ch4/transformations.rs:155:13 [INFO] [stderr] | [INFO] [stderr] 155 | let B = Matrix::<4>::IDENTITY.scaling(5.0, 5.0, 5.0); [INFO] [stderr] | ^ help: convert the identifier to snake case: `b` [INFO] [stderr] [INFO] [stderr] warning: variable `C` should have a snake case name [INFO] [stderr] --> src/bin/ch4/transformations.rs:156:13 [INFO] [stderr] | [INFO] [stderr] 156 | let C = Matrix::<4>::IDENTITY.translation(10.0, 5.0, 7.0); [INFO] [stderr] | ^ help: convert the identifier to snake case (notice the capitalization): `c` [INFO] [stderr] [INFO] [stderr] warning: variable `T` should have a snake case name [INFO] [stderr] --> src/bin/ch4/transformations.rs:171:13 [INFO] [stderr] | [INFO] [stderr] 171 | let T = Matrix::<4>::IDENTITY [INFO] [stderr] | ^ help: convert the identifier to snake case: `t` [INFO] [stderr] [INFO] [stderr] warning: 14 warnings emitted [INFO] [stderr] [INFO] [stderr] warning: the feature `const_generics` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stderr] --> src/bin/ch6/main.rs:1:12 [INFO] [stderr] | [INFO] [stderr] 1 | #![feature(const_generics)] [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(incomplete_features)]` on by default [INFO] [stderr] = note: see issue #44580 for more information [INFO] [stderr] [INFO] [stderr] warning: the feature `const_evaluatable_checked` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stderr] --> src/bin/ch6/main.rs:2:12 [INFO] [stderr] | [INFO] [stderr] 2 | #![feature(const_evaluatable_checked)] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #76560 for more information [INFO] [stderr] [INFO] [stderr] warning: associated constant is never used: `IDENTITY` [INFO] [stderr] --> src/bin/ch6/matrix.rs:92:5 [INFO] [stderr] | [INFO] [stderr] 92 | / pub const IDENTITY: Matrix<3> = Matrix { [INFO] [stderr] 93 | | data: [[1.0, 0.0, 0.0], [0.0, 1.0, 0.0], [0.0, 0.0, 1.0]], [INFO] [stderr] 94 | | }; [INFO] [stderr] | |______^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `is_invertible` [INFO] [stderr] --> src/bin/ch6/matrix.rs:131:12 [INFO] [stderr] | [INFO] [stderr] 131 | pub fn is_invertible(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `inverse` [INFO] [stderr] --> src/bin/ch6/matrix.rs:134:12 [INFO] [stderr] | [INFO] [stderr] 134 | pub fn inverse(&self) -> Self { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated constant is never used: `IDENTITY` [INFO] [stderr] --> src/bin/ch6/matrix.rs:149:5 [INFO] [stderr] | [INFO] [stderr] 149 | / pub const IDENTITY: Matrix<2> = Matrix { [INFO] [stderr] 150 | | data: [[1.0, 0.0], [0.0, 1.0]], [INFO] [stderr] 151 | | }; [INFO] [stderr] | |______^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `minor` [INFO] [stderr] --> src/bin/ch6/matrix.rs:152:12 [INFO] [stderr] | [INFO] [stderr] 152 | pub fn minor(&self, row: usize, col: usize) -> f64 { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `cofactor` [INFO] [stderr] --> src/bin/ch6/matrix.rs:155:12 [INFO] [stderr] | [INFO] [stderr] 155 | pub fn cofactor(&self, row: usize, col: usize) -> f64 { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `is_invertible` [INFO] [stderr] --> src/bin/ch6/matrix.rs:161:12 [INFO] [stderr] | [INFO] [stderr] 161 | pub fn is_invertible(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `inverse` [INFO] [stderr] --> src/bin/ch6/matrix.rs:164:12 [INFO] [stderr] | [INFO] [stderr] 164 | pub fn inverse(&self) -> Self { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variable `A` should have a snake case name [INFO] [stderr] --> src/bin/ch6/transformations.rs:154:13 [INFO] [stderr] | [INFO] [stderr] 154 | let A = Matrix::<4>::IDENTITY.rotation_x(FRAC_PI_2); [INFO] [stderr] | ^ help: convert the identifier to snake case: `a` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable `B` should have a snake case name [INFO] [stderr] --> src/bin/ch6/transformations.rs:155:13 [INFO] [stderr] | [INFO] [stderr] 155 | let B = Matrix::<4>::IDENTITY.scaling(5.0, 5.0, 5.0); [INFO] [stderr] | ^ help: convert the identifier to snake case: `b` [INFO] [stderr] [INFO] [stderr] warning: variable `C` should have a snake case name [INFO] [stderr] --> src/bin/ch6/transformations.rs:156:13 [INFO] [stderr] | [INFO] [stderr] 156 | let C = Matrix::<4>::IDENTITY.translation(10.0, 5.0, 7.0); [INFO] [stderr] | ^ help: convert the identifier to snake case (notice the capitalization): `c` [INFO] [stderr] [INFO] [stderr] warning: variable `T` should have a snake case name [INFO] [stderr] --> src/bin/ch6/transformations.rs:171:13 [INFO] [stderr] | [INFO] [stderr] 171 | let T = Matrix::<4>::IDENTITY [INFO] [stderr] | ^ help: convert the identifier to snake case: `t` [INFO] [stderr] [INFO] [stderr] warning: 14 warnings emitted [INFO] [stderr] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.04s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/ch1-e988722d7068fdc0) [INFO] [stdout] [INFO] [stdout] running 3 tests [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/ch10-95979509e8564589) [INFO] [stdout] test tuple::tests::point_minus_point ... ok [INFO] [stdout] test tuple::tests::point_plus_vector ... ok [INFO] [stdout] test tuple::tests::vector_plus_vector ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 145 tests [INFO] [stdout] test materials::tests::default_material ... ok [INFO] [stdout] test materials::tests::lighting_with_eye_between_light_and_surface ... ok [INFO] [stdout] test materials::tests::lighting_with_eye_in_reflection_path ... ok [INFO] [stdout] test matrix::tests::equality ... ok [INFO] [stdout] test matrix::tests::create_2x2 ... ok [INFO] [stdout] test matrix::tests::determinant_4x4 ... ok [INFO] [stdout] test matrix::tests::inequality ... ok [INFO] [stdout] test matrix::tests::create_3x3 ... ok [INFO] [stdout] test materials::tests::lighting_with_surface_in_shadow ... ok [INFO] [stdout] test matrix::tests::create_4x4 ... ok [INFO] [stdout] test matrix::tests::inverse ... ok [INFO] [stdout] test matrix::tests::determinant_2x2 ... ok [INFO] [stdout] test matrix::tests::multiply_by_matrix ... ok [INFO] [stdout] test matrix::tests::transpose_matrix ... ok [INFO] [stdout] test matrix::tests::multiply_by_point ... ok [INFO] [stdout] test matrix::tests::transpose_identity ... ok [INFO] [stdout] test matrix::tests::submatrix_4x4 ... ok [INFO] [stdout] test canvas::tests::canvas_creation ... ok [INFO] [stdout] test materials::tests::lighting_with_light_offset_by_45 ... ok [INFO] [stdout] test camera::tests::constructing_ray_through_corner_of_canvas ... ok [INFO] [stdout] test matrix::tests::another_inverse ... ok [INFO] [stdout] test canvas::tests::write_pixel ... ok [INFO] [stdout] test camera::tests::pixel_size_for_horizontal_canvas ... ok [INFO] [stdout] test matrix::tests::another_inverse_again ... ok [INFO] [stdout] test matrix::tests::determinant_3x3 ... ok [INFO] [stdout] test matrix::tests::submatrix_3x3 ... ok [INFO] [stdout] test camera::tests::constructing_a_camera ... ok [INFO] [stdout] test materials::tests::lighting_with_light_behind_surface ... ok [INFO] [stdout] test matrix::tests::minor_3x3 ... ok [INFO] [stdout] test lights::tests::point_light_has_position_and_intensity ... ok [INFO] [stdout] test matrix::tests::cofactor_3x3 ... ok [INFO] [stdout] test matrix::tests::not_invertible ... ok [INFO] [stdout] test camera::tests::constructing_ray_when_camera_transformed ... ok [INFO] [stdout] test camera::tests::constructing_ray_through_center_of_canvas ... ok [INFO] [stdout] test materials::tests::lighting_with_eye_offset_by_45 ... ok [INFO] [stdout] test pattern::ring::tests::ring_should_extend_in_both_x_and_z ... ok [INFO] [stdout] test pattern::checkerboard::tests::checker_should_repeat_in_z ... ok [INFO] [stdout] test pattern::checkerboard::tests::checker_should_repeat_in_y ... ok [INFO] [stdout] test pattern::stripe::tests::lighting_with_pattern_applied ... ok [INFO] [stdout] test pattern::stripe::tests::create_stripe_pattern ... ok [INFO] [stdout] test pattern::stripe::tests::stripe_alternates_in_x ... ok [INFO] [stdout] test pattern::gradient::tests::gradient_linearly_interpolates_between_colors ... ok [INFO] [stdout] test pattern::stripe::tests::stripe_constant_in_y ... ok [INFO] [stdout] test ray::tests::ray_intersect_sphere_at_two_points ... ok [INFO] [stdout] test ray::tests::ray_intersect_sphere_at_tangent ... ok [INFO] [stdout] test ray::tests::create_and_query_ray ... ok [INFO] [stdout] test ray::tests::point_from_distance ... ok [INFO] [stdout] test ray::tests::change_sphere_transformation ... ok [INFO] [stdout] test ray::tests::aggregating_intersections ... ok [INFO] [stdout] test ray::tests::intersection_encapsulates_t_and_object ... ok [INFO] [stdout] test ray::tests::hit_when_all_negative_t ... ok [INFO] [stdout] test ray::tests::intersect_sets_object_on_intersection ... ok [INFO] [stdout] test pattern::tests::pattern_with_pattern_transform ... ok [INFO] [stdout] test pattern::tests::pattern_with_both_transforms ... ok [INFO] [stdout] test pattern::tests::pattern_with_object_transformation ... ok [INFO] [stdout] test matrix::tests::invertible ... ok [INFO] [stdout] test pattern::stripe::tests::stripes_with_object_transformation ... ok [INFO] [stdout] test pattern::tests::default_pattern_transformation ... ok [INFO] [stdout] test pattern::tests::assign_transformation ... ok [INFO] [stdout] test matrix::tests::multiply_by_identity ... ok [INFO] [stdout] test pattern::stripe::tests::stripes_with_pattern_transformation ... ok [INFO] [stdout] test ray::tests::hit_when_all_positive_t ... ok [INFO] [stdout] test camera::tests::pixel_size_for_vertical_canvas ... ok [INFO] [stdout] test matrix::tests::inverse_multiplication ... ok [INFO] [stdout] test ray::tests::intersect_translated_sphere_with_ray ... ok [INFO] [stdout] test ray::tests::hit_when_some_negative_t ... ok [INFO] [stdout] test ray::tests::ray_misses_sphere ... ok [INFO] [stdout] test ray::tests::intersect_scaled_sphere_with_ray ... ok [INFO] [stdout] test shape::plane::tests::intersect_ray_parallel ... ok [INFO] [stdout] test pattern::checkerboard::tests::checker_should_repeat_in_x ... ok [INFO] [stdout] test ray::tests::ray_originates_in_sphere ... ok [INFO] [stdout] test pattern::stripe::tests::stripe_constant_in_z ... ok [INFO] [stdout] test ray::tests::scale_ray ... ok [INFO] [stdout] test pattern::stripe::tests::stripes_with_both_transformation ... ok [INFO] [stdout] test shape::plane::tests::ray_intersect_from_above ... ok [INFO] [stdout] test shape::tests::assign_material ... ok [INFO] [stdout] test ray::tests::default_sphere_transformation ... ok [INFO] [stdout] test shape::tests::assign_transformation ... ok [INFO] [stdout] test ray::tests::hit_is_always_lowest_nonnegative_intersection ... ok [INFO] [stdout] test transformations::tests::rotate_around_y ... ok [INFO] [stdout] test shape::tests::compute_normal_of_transformed_shape ... ok [INFO] [stdout] test transformations::tests::multiply_by_translation_inverse ... ok [INFO] [stdout] test transformations::tests::shear_y_by_x ... ok [INFO] [stdout] test transformations::tests::shear_x_by_z ... ok [INFO] [stdout] test transformations::tests::shear_z_by_x ... ok [INFO] [stdout] test transformations::tests::shear_z_by_y ... ok [INFO] [stdout] test transformations::tests::transformation_matrix_for_default_orientation ... ok [INFO] [stdout] test transformations::tests::translation_does_not_affect_vector ... ok [INFO] [stdout] test transformations::tests::view_transformation_matrix_looking_in_positive_z ... ok [INFO] [stdout] test transformations::tests::view_transformation_moves_the_world ... ok [INFO] [stdout] test tuple::color::tests::addition ... ok [INFO] [stdout] test tuple::color::tests::color_multiplication ... ok [INFO] [stdout] test tuple::color::tests::multiplication_by_scalar ... ok [INFO] [stdout] test shape::plane::tests::intersect_coplanar_ray ... ok [INFO] [stdout] test tuple::color::tests::subtraction ... ok [INFO] [stdout] test shape::sphere::tests::reflect_vector_off_slant ... ok [INFO] [stdout] test shape::sphere::tests::sphere_normal_on_y ... ok [INFO] [stdout] test tuple::tests::point_plus_vector ... ok [INFO] [stdout] test tuple::tests::point_minus_point ... ok [INFO] [stdout] test shape::tests::default_material ... ok [INFO] [stdout] test transformations::tests::scaling_a_point ... ok [INFO] [stdout] test shape::sphere::tests::reflect_vector_at_45 ... ok [INFO] [stdout] test ray::tests::translate_ray ... ok [INFO] [stdout] test ray::tests::sphere_behind_ray ... ok [INFO] [stdout] test shape::tests::compute_normal_of_translated_shape ... ok [INFO] [stdout] test shape::sphere::tests::sphere_normal_at_nonaxial ... ok [INFO] [stdout] test shape::sphere::tests::sphere_normal_on_z ... ok [INFO] [stdout] test world::tests::color_with_intersection_behind_ray ... ok [INFO] [stdout] test shape::plane::tests::normal_of_plane_is_constant ... ok [INFO] [stdout] test shape::plane::tests::ray_intersect_from_below ... ok [INFO] [stdout] test transformations::tests::shear_y_by_z ... ok [INFO] [stdout] test world::tests::default_world ... ok [INFO] [stdout] test shape::sphere::tests::normal_is_normalized ... ok [INFO] [stdout] test tuple::tests::vector_plus_vector ... ok [INFO] [stdout] test world::tests::color_when_ray_hits ... ok [INFO] [stdout] test world::tests::color_when_ray_misses ... ok [INFO] [stdout] test world::tests::shade_hit_given_intersection_in_shadow ... ok [INFO] [stdout] test world::tests::hit_when_intersection_occurs_on_interior ... ok [INFO] [stdout] test transformations::tests::scaling_a_vector ... ok [INFO] [stdout] test transformations::tests::shear_x_by_y ... ok [INFO] [stdout] test transformations::tests::reflection ... ok [INFO] [stdout] test transformations::tests::rotate_around_x ... ok [INFO] [stdout] test shape::tests::default_transformation ... ok [INFO] [stdout] test world::tests::shadow_when_object_between_point_and_light ... ok [INFO] [stdout] test shape::tests::intersect_scaled_shape_with_ray ... ok [INFO] [stdout] test transformations::tests::rotate_around_z ... ok [INFO] [stdout] test world::tests::precomputing_state_of_intersection ... ok [INFO] [stdout] test shape::tests::intersect_translated_sphere_with_ray ... ok [INFO] [stdout] test transformations::tests::arbitrary_view_transformation ... ok [INFO] [stdout] test transformations::tests::chained_transformations_applied_in_reverse ... ok [INFO] [stdout] test transformations::tests::individual_transformations_applied_in_sequence ... ok [INFO] [stdout] test world::tests::hit_should_offset_point ... ok [INFO] [stdout] test transformations::tests::inverse_rotation_around_x ... ok [INFO] [stdout] test world::tests::shading_an_intersection_from_inside ... ok [INFO] [stdout] test transformations::tests::inverse_scaling_a_vector ... ok [INFO] [stdout] test transformations::tests::multiply_by_transformation ... ok [INFO] [stdout] test world::tests::hit_when_intersection_occurs_on_exterior ... ok [INFO] [stdout] test world::tests::shading_an_intersection ... ok [INFO] [stdout] test world::tests::create_a_world ... ok [INFO] [stdout] test world::tests::no_shadow_when_object_behind_point ... ok [INFO] [stdout] test world::tests::intersect_world_with_ray ... ok [INFO] [stdout] test world::tests::no_shadow_when_not_colinear_with_point_and_light ... ok [INFO] [stdout] test shape::sphere::tests::sphere_normal_on_x ... ok [INFO] [stdout] test world::tests::no_shadow_when_object_behind_light ... ok [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/ch11-bc5a843b998bce46) [INFO] [stdout] test camera::tests::render_world_with_camera ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 145 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.12s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 165 tests [INFO] [stdout] test camera::tests::pixel_size_for_horizontal_canvas ... ok [INFO] [stdout] test camera::tests::pixel_size_for_vertical_canvas ... ok [INFO] [stdout] test camera::tests::constructing_a_camera ... ok [INFO] [stdout] test materials::tests::lighting_with_eye_in_reflection_path ... ok [INFO] [stdout] test lights::tests::point_light_has_position_and_intensity ... ok [INFO] [stdout] test materials::tests::lighting_with_eye_offset_by_45 ... ok [INFO] [stdout] test camera::tests::constructing_ray_through_corner_of_canvas ... ok [INFO] [stdout] test camera::tests::constructing_ray_when_camera_transformed ... ok [INFO] [stdout] test materials::tests::default_material ... ok [INFO] [stdout] test camera::tests::constructing_ray_through_center_of_canvas ... ok [INFO] [stdout] test materials::tests::default_reflectivity ... ok [INFO] [stdout] test matrix::tests::invertible ... ok [INFO] [stdout] test matrix::tests::multiply_by_identity ... ok [INFO] [stdout] test matrix::tests::minor_3x3 ... ok [INFO] [stdout] test matrix::tests::equality ... ok [INFO] [stdout] test matrix::tests::multiply_by_matrix ... ok [INFO] [stdout] test matrix::tests::create_4x4 ... ok [INFO] [stdout] test matrix::tests::determinant_2x2 ... ok [INFO] [stdout] test matrix::tests::create_2x2 ... ok [INFO] [stdout] test matrix::tests::create_3x3 ... ok [INFO] [stdout] test matrix::tests::cofactor_3x3 ... ok [INFO] [stdout] test materials::tests::lighting_with_surface_in_shadow ... ok [INFO] [stdout] test matrix::tests::another_inverse_again ... ok [INFO] [stdout] test materials::tests::lighting_with_light_offset_by_45 ... ok [INFO] [stdout] test matrix::tests::another_inverse ... ok [INFO] [stdout] test matrix::tests::not_invertible ... ok [INFO] [stdout] test matrix::tests::submatrix_3x3 ... ok [INFO] [stdout] test matrix::tests::transpose_matrix ... ok [INFO] [stdout] test pattern::stripe::tests::stripe_constant_in_y ... ok [INFO] [stdout] test pattern::checkerboard::tests::checker_should_repeat_in_x ... ok [INFO] [stdout] test pattern::checkerboard::tests::checker_should_repeat_in_y ... ok [INFO] [stdout] test pattern::stripe::tests::stripe_alternates_in_x ... ok [INFO] [stdout] test pattern::checkerboard::tests::checker_should_repeat_in_z ... ok [INFO] [stdout] test pattern::stripe::tests::create_stripe_pattern ... ok [INFO] [stdout] test pattern::stripe::tests::lighting_with_pattern_applied ... ok [INFO] [stdout] test pattern::stripe::tests::stripes_with_both_transformation ... ok [INFO] [stdout] test pattern::stripe::tests::stripe_constant_in_z ... ok [INFO] [stdout] test matrix::tests::submatrix_4x4 ... ok [INFO] [stdout] test pattern::tests::assign_transformation ... ok [INFO] [stdout] test matrix::tests::multiply_by_point ... ok [INFO] [stdout] test materials::tests::default_transparency_and_refractive_index ... ok [INFO] [stdout] test matrix::tests::inverse ... ok [INFO] [stdout] test pattern::tests::pattern_with_object_transformation ... ok [INFO] [stdout] test pattern::tests::pattern_with_pattern_transform ... ok [INFO] [stdout] test matrix::tests::determinant_3x3 ... ok [INFO] [stdout] test ray::tests::create_and_query_ray ... ok [INFO] [stdout] test ray::tests::aggregating_intersections ... ok [INFO] [stdout] test matrix::tests::determinant_4x4 ... ok [INFO] [stdout] test ray::tests::default_sphere_transformation ... ok [INFO] [stdout] test pattern::stripe::tests::stripes_with_object_transformation ... ok [INFO] [stdout] test matrix::tests::inverse_multiplication ... ok [INFO] [stdout] test pattern::tests::pattern_with_both_transforms ... ok [INFO] [stdout] test pattern::tests::default_pattern_transformation ... ok [INFO] [stdout] test pattern::gradient::tests::gradient_linearly_interpolates_between_colors ... ok [INFO] [stdout] test materials::tests::lighting_with_light_behind_surface ... ok [INFO] [stdout] test ray::tests::finding_n1_and_n2_at_various_intersections ... ok [INFO] [stdout] test ray::tests::hit_when_all_negative_t ... ok [INFO] [stdout] test ray::tests::hit_when_some_negative_t ... ok [INFO] [stdout] test ray::tests::hit_is_always_lowest_nonnegative_intersection ... ok [INFO] [stdout] test ray::tests::change_sphere_transformation ... ok [INFO] [stdout] test ray::tests::intersect_scaled_sphere_with_ray ... ok [INFO] [stdout] test pattern::stripe::tests::stripes_with_pattern_transformation ... ok [INFO] [stdout] test matrix::tests::inequality ... ok [INFO] [stdout] test materials::tests::lighting_with_eye_between_light_and_surface ... ok [INFO] [stdout] test matrix::tests::transpose_identity ... ok [INFO] [stdout] test ray::tests::hit_when_all_positive_t ... ok [INFO] [stdout] test ray::tests::Schlick_approximation_under_total_internal_reflection ... ok [INFO] [stdout] test shape::plane::tests::intersect_ray_parallel ... ok [INFO] [stdout] test ray::tests::ray_misses_sphere ... ok [INFO] [stdout] test pattern::ring::tests::ring_should_extend_in_both_x_and_z ... ok [INFO] [stdout] test shape::plane::tests::intersect_coplanar_ray ... ok [INFO] [stdout] test ray::tests::intersect_sets_object_on_intersection ... ok [INFO] [stdout] test ray::tests::schlick_approximation_with_small_angle_and_n2_gt_n1 ... ok [INFO] [stdout] test ray::tests::schlick_approximation_with_perpendicular_viewing_angle ... ok [INFO] [stdout] test ray::tests::ray_intersect_sphere_at_two_points ... ok [INFO] [stdout] test ray::tests::intersect_translated_sphere_with_ray ... ok [INFO] [stdout] test ray::tests::ray_intersect_sphere_at_tangent ... ok [INFO] [stdout] test ray::tests::scale_ray ... ok [INFO] [stdout] test ray::tests::sphere_behind_ray ... ok [INFO] [stdout] test ray::tests::point_from_distance ... ok [INFO] [stdout] test ray::tests::translate_ray ... ok [INFO] [stdout] test ray::tests::under_point_offset_below_surface ... ok [INFO] [stdout] test shape::sphere::tests::sphere_normal_at_nonaxial ... ok [INFO] [stdout] test shape::sphere::tests::reflect_vector_off_slant ... ok [INFO] [stdout] test shape::sphere::tests::helper_for_producing_sphere_with_glassy_material ... ok [INFO] [stdout] test ray::tests::intersection_encapsulates_t_and_object ... ok [INFO] [stdout] test shape::sphere::tests::sphere_normal_on_x ... ok [INFO] [stdout] test shape::plane::tests::ray_intersect_from_above ... ok [INFO] [stdout] test shape::plane::tests::normal_of_plane_is_constant ... ok [INFO] [stdout] test transformations::tests::multiply_by_transformation ... ok [INFO] [stdout] test transformations::tests::scaling_a_vector ... ok [INFO] [stdout] test transformations::tests::shear_x_by_y ... ok [INFO] [stdout] test transformations::tests::inverse_scaling_a_vector ... ok [INFO] [stdout] test shape::tests::intersect_translated_sphere_with_ray ... ok [INFO] [stdout] test shape::tests::intersect_scaled_shape_with_ray ... ok [INFO] [stdout] test transformations::tests::shear_x_by_z ... ok [INFO] [stdout] test transformations::tests::reflection ... ok [INFO] [stdout] test shape::sphere::tests::sphere_normal_on_z ... ok [INFO] [stdout] test transformations::tests::rotate_around_z ... ok [INFO] [stdout] test transformations::tests::scaling_a_point ... ok [INFO] [stdout] test canvas::tests::canvas_creation ... ok [INFO] [stdout] test transformations::tests::rotate_around_x ... ok [INFO] [stdout] test transformations::tests::individual_transformations_applied_in_sequence ... ok [INFO] [stdout] test canvas::tests::write_pixel ... ok [INFO] [stdout] test transformations::tests::multiply_by_translation_inverse ... ok [INFO] [stdout] test shape::tests::assign_transformation ... ok [INFO] [stdout] test ray::tests::ray_originates_in_sphere ... ok [INFO] [stdout] test shape::tests::default_transformation ... ok [INFO] [stdout] test shape::sphere::tests::normal_is_normalized ... ok [INFO] [stdout] test transformations::tests::rotate_around_y ... ok [INFO] [stdout] test shape::tests::compute_normal_of_translated_shape ... ok [INFO] [stdout] test shape::tests::assign_material ... ok [INFO] [stdout] test shape::sphere::tests::reflect_vector_at_45 ... ok [INFO] [stdout] test shape::plane::tests::ray_intersect_from_below ... ok [INFO] [stdout] test tuple::color::tests::addition ... ok [INFO] [stdout] test transformations::tests::view_transformation_moves_the_world ... ok [INFO] [stdout] test shape::tests::compute_normal_of_transformed_shape ... ok [INFO] [stdout] test shape::sphere::tests::sphere_normal_on_y ... ok [INFO] [stdout] test transformations::tests::shear_y_by_x ... ok [INFO] [stdout] test transformations::tests::shear_y_by_z ... ok [INFO] [stdout] test shape::tests::default_material ... ok [INFO] [stdout] test transformations::tests::shear_z_by_x ... ok [INFO] [stdout] test transformations::tests::shear_z_by_y ... ok [INFO] [stdout] test transformations::tests::transformation_matrix_for_default_orientation ... ok [INFO] [stdout] test transformations::tests::translation_does_not_affect_vector ... ok [INFO] [stdout] test tuple::tests::point_plus_vector ... ok [INFO] [stdout] test tuple::tests::vector_plus_vector ... ok [INFO] [stdout] test tuple::color::tests::color_multiplication ... ok [INFO] [stdout] test transformations::tests::view_transformation_matrix_looking_in_positive_z ... ok [INFO] [stdout] test world::tests::precomputing_state_of_intersection ... ok [INFO] [stdout] test world::tests::color_when_ray_hits ... ok [INFO] [stdout] test world::tests::no_shadow_when_object_behind_point ... ok [INFO] [stdout] test world::tests::reflection_for_nonreflective_material ... ok [INFO] [stdout] test world::tests::refracted_color_with_opaque_surface ... ok [INFO] [stdout] test world::tests::no_shadow_when_not_colinear_with_point_and_light ... ok [INFO] [stdout] test world::tests::refracted_color_at_maximum_recursive_depth ... ok [INFO] [stdout] test world::tests::refracted_color_under_total_internal_reflection ... ok [INFO] [stdout] test tuple::tests::point_minus_point ... ok [INFO] [stdout] test world::tests::intersect_world_with_ray ... ok [INFO] [stdout] test world::tests::color_when_ray_misses ... ok [INFO] [stdout] test tuple::color::tests::subtraction ... ok [INFO] [stdout] test tuple::color::tests::multiplication_by_scalar ... ok [INFO] [stdout] test transformations::tests::arbitrary_view_transformation ... ok [INFO] [stdout] test transformations::tests::chained_transformations_applied_in_reverse ... ok [INFO] [stdout] test transformations::tests::inverse_rotation_around_x ... ok [INFO] [stdout] test world::tests::color_with_intersection_behind_ray ... ok [INFO] [stdout] test world::tests::create_a_world ... ok [INFO] [stdout] test world::tests::precomputing_reflection_vector ... ok [INFO] [stdout] test world::tests::reflected_color_for_reflective_material ... ok [INFO] [stdout] test world::tests::reflected_color_at_max_recursive_depth ... ok [INFO] [stdout] test world::tests::shading_an_intersection_from_inside ... ok [INFO] [stdout] test world::tests::shade_hit_with_reflective_material ... ok [INFO] [stdout] test world::tests::hit_should_offset_point ... ok [INFO] [stdout] test world::tests::hit_when_intersection_occurs_on_exterior ... ok [INFO] [stdout] test world::tests::default_world ... ok [INFO] [stdout] test world::tests::hit_when_intersection_occurs_on_interior ... ok [INFO] [stdout] test world::tests::color_at_with_mutually_reflective_surfaces ... ok [INFO] [stdout] test world::tests::shade_hit_given_intersection_in_shadow ... ok [INFO] [stdout] test world::tests::no_shadow_when_object_behind_light ... ok [INFO] [stdout] test world::tests::refracted_color_with_refracted_ray ... ok [INFO] [stdout] test world::tests::shading_an_intersection ... ok [INFO] [stdout] test world::tests::shadow_when_object_between_point_and_light ... ok [INFO] [stdout] test world::tests::shade_hit_with_reflective_transparent_material ... FAILED [INFO] [stdout] test world::tests::shade_hit_with_transparent_material ... FAILED [INFO] [stderr] error: test failed, to rerun pass '--bin ch11' [INFO] [stdout] test camera::tests::render_world_with_camera ... ok [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- world::tests::shade_hit_with_reflective_transparent_material stdout ---- [INFO] [stdout] thread 'world::tests::shade_hit_with_reflective_transparent_material' panicked at 'assertion failed: `(left == right)` [INFO] [stdout] left: `Color { red: 1.2960892990565474, green: 0.6964335591668306, blue: 0.6924299229628201 }`, [INFO] [stdout] right: `Color { red: 0.93391, green: 0.69643, blue: 0.69243 }`', src/bin/ch11/world.rs:706:9 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x560a41dd2da0 - std::backtrace_rs::backtrace::libunwind::trace::h1037ca7e6eeef65c [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/../../backtrace/src/backtrace/libunwind.rs:90:5 [INFO] [stdout] 1: 0x560a41dd2da0 - std::backtrace_rs::backtrace::trace_unsynchronized::haaefac1bc3669450 [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x560a41dd2da0 - std::sys_common::backtrace::_print_fmt::h863a6f5e6d995885 [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/sys_common/backtrace.rs:67:5 [INFO] [stdout] 3: 0x560a41dd2da0 - ::fmt::h767e17e1aa7df6a8 [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/sys_common/backtrace.rs:46:22 [INFO] [stdout] 4: 0x560a41df555c - core::fmt::write::h7aa6cd0067dca82a [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/core/src/fmt/mod.rs:1110:17 [INFO] [stdout] 5: 0x560a41dcfe15 - std::io::Write::write_fmt::h6f1a9b91376a1376 [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/io/mod.rs:1584:15 [INFO] [stdout] 6: 0x560a41dd4f0b - std::sys_common::backtrace::_print::h2769edb26a7eb606 [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/sys_common/backtrace.rs:49:5 [INFO] [stdout] 7: 0x560a41dd4f0b - std::sys_common::backtrace::print::ha71f3549862b4cb6 [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/sys_common/backtrace.rs:36:9 [INFO] [stdout] 8: 0x560a41dd4f0b - std::panicking::default_hook::{{closure}}::h95488a3bade217f6 [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/panicking.rs:208:50 [INFO] [stdout] 9: 0x560a41dd4a1c - std::panicking::default_hook::h290aa602c0fb11df [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/panicking.rs:222:9 [INFO] [stdout] 10: 0x560a41dd55b1 - std::panicking::rust_panic_with_hook::hf32c4fa635e215f2 [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/panicking.rs:622:17 [INFO] [stdout] 11: 0x560a41dd50b7 - std::panicking::begin_panic_handler::{{closure}}::h95197ccd88846f7a [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/panicking.rs:519:13 [INFO] [stdout] 12: 0x560a41dd327c - std::sys_common::backtrace::__rust_end_short_backtrace::h7641df9566f7b7d0 [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/sys_common/backtrace.rs:141:18 [INFO] [stdout] 13: 0x560a41dd5019 - rust_begin_unwind [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/panicking.rs:515:5 [INFO] [stdout] 14: 0x560a41d31531 - core::panicking::panic_fmt::hbe99dddd3092ba3c [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/core/src/panicking.rs:92:14 [INFO] [stdout] 15: 0x560a41df3e78 - core::panicking::assert_failed_inner::h4fdb1013d187f202 [INFO] [stdout] 16: 0x560a41d64a9a - core::panicking::assert_failed::hc9a3a6aadbb0d872 [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/core/src/panicking.rs:117:5 [INFO] [stdout] 17: 0x560a41d59b51 - ch11::world::tests::shade_hit_with_reflective_transparent_material::h4a9e3d5b92ffd57c [INFO] [stdout] at /opt/rustwide/workdir/src/bin/ch11/world.rs:706:9 [INFO] [stdout] 18: 0x560a41d594ba - ch11::world::tests::shade_hit_with_reflective_transparent_material::{{closure}}::ha72c0655eede4ff2 [INFO] [stdout] at /opt/rustwide/workdir/src/bin/ch11/world.rs:682:5 [INFO] [stdout] 19: 0x560a41d7202e - core::ops::function::FnOnce::call_once::hd2ce76cc97681793 [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 20: 0x560a41daa003 - core::ops::function::FnOnce::call_once::h673fbe3f96486fd2 [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 21: 0x560a41daa003 - test::__rust_begin_short_backtrace::h8eedc24e104ef6a0 [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/test/src/lib.rs:577:5 [INFO] [stdout] 22: 0x560a41da8ab0 - as core::ops::function::FnOnce>::call_once::h028d0969d3f94d78 [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/alloc/src/boxed.rs:1575:9 [INFO] [stdout] 23: 0x560a41da8ab0 - as core::ops::function::FnOnce<()>>::call_once::h7634b01590b1722b [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/panic.rs:346:9 [INFO] [stdout] 24: 0x560a41da8ab0 - std::panicking::try::do_call::hf74f869706dec63b [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/panicking.rs:401:40 [INFO] [stdout] 25: 0x560a41da8ab0 - std::panicking::try::hd0b7346ebfaaae44 [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/panicking.rs:365:19 [INFO] [stdout] 26: 0x560a41da8ab0 - std::panic::catch_unwind::hdbf6904f7c253080 [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/panic.rs:433:14 [INFO] [stdout] 27: 0x560a41da8ab0 - test::run_test_in_process::h87e95a014ac91067 [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/test/src/lib.rs:600:18 [INFO] [stdout] 28: 0x560a41da8ab0 - test::run_test::run_test_inner::{{closure}}::hdd69ae44aaab3470 [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/test/src/lib.rs:492:39 [INFO] [stdout] 29: 0x560a41d83d82 - test::run_test::run_test_inner::{{closure}}::hc159305704d5b68a [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/test/src/lib.rs:519:37 [INFO] [stdout] 30: 0x560a41d83d82 - std::sys_common::backtrace::__rust_begin_short_backtrace::h33d8a8ad5f788fcc [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/sys_common/backtrace.rs:125:18 [INFO] [stdout] 31: 0x560a41d87af8 - std::thread::Builder::spawn_unchecked::{{closure}}::{{closure}}::h6181011ddf4b8353 [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/thread/mod.rs:481:17 [INFO] [stdout] 32: 0x560a41d87af8 - as core::ops::function::FnOnce<()>>::call_once::hf924ea0a0f25a1c0 [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/panic.rs:346:9 [INFO] [stdout] 33: 0x560a41d87af8 - std::panicking::try::do_call::hd58061792d05fa5c [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/panicking.rs:401:40 [INFO] [stdout] 34: 0x560a41d87af8 - std::panicking::try::h3080747417e5af37 [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/panicking.rs:365:19 [INFO] [stdout] 35: 0x560a41d87af8 - std::panic::catch_unwind::hfeba515dcf36cb66 [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/panic.rs:433:14 [INFO] [stdout] 36: 0x560a41d87af8 - std::thread::Builder::spawn_unchecked::{{closure}}::h29d57a62faff749b [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/thread/mod.rs:480:30 [INFO] [stdout] 37: 0x560a41d87af8 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h44709d312d2a9c59 [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 38: 0x560a41dda067 - as core::ops::function::FnOnce>::call_once::h902e2cf6655e1b0c [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/alloc/src/boxed.rs:1575:9 [INFO] [stdout] 39: 0x560a41dda067 - as core::ops::function::FnOnce>::call_once::h893a5452154309d1 [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/alloc/src/boxed.rs:1575:9 [INFO] [stdout] 40: 0x560a41dda067 - std::sys::unix::thread::Thread::new::thread_start::hdedcb57c96ab37cd [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/sys/unix/thread.rs:71:17 [INFO] [stdout] 41: 0x7f98a6bab609 - start_thread [INFO] [stdout] 42: 0x7f98a697d293 - clone [INFO] [stdout] 43: 0x0 - [INFO] [stdout] [INFO] [stdout] ---- world::tests::shade_hit_with_transparent_material stdout ---- [INFO] [stdout] thread 'world::tests::shade_hit_with_transparent_material' panicked at 'assertion failed: `(left == right)` [INFO] [stdout] left: `Color { red: 1.3145049144674101, green: 0.6864244686568045, blue: 0.6864244686568045 }`, [INFO] [stdout] right: `Color { red: 0.93642, green: 0.68642, blue: 0.68642 }`', src/bin/ch11/world.rs:678:9 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x560a41dd2da0 - std::backtrace_rs::backtrace::libunwind::trace::h1037ca7e6eeef65c [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/../../backtrace/src/backtrace/libunwind.rs:90:5 [INFO] [stdout] 1: 0x560a41dd2da0 - std::backtrace_rs::backtrace::trace_unsynchronized::haaefac1bc3669450 [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x560a41dd2da0 - std::sys_common::backtrace::_print_fmt::h863a6f5e6d995885 [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/sys_common/backtrace.rs:67:5 [INFO] [stdout] 3: 0x560a41dd2da0 - ::fmt::h767e17e1aa7df6a8 [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/sys_common/backtrace.rs:46:22 [INFO] [stdout] 4: 0x560a41df555c - core::fmt::write::h7aa6cd0067dca82a [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/core/src/fmt/mod.rs:1110:17 [INFO] [stdout] 5: 0x560a41dcfe15 - std::io::Write::write_fmt::h6f1a9b91376a1376 [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/io/mod.rs:1584:15 [INFO] [stdout] 6: 0x560a41dd4f0b - std::sys_common::backtrace::_print::h2769edb26a7eb606 [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/sys_common/backtrace.rs:49:5 [INFO] [stdout] 7: 0x560a41dd4f0b - std::sys_common::backtrace::print::ha71f3549862b4cb6 [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/sys_common/backtrace.rs:36:9 [INFO] [stdout] 8: 0x560a41dd4f0b - std::panicking::default_hook::{{closure}}::h95488a3bade217f6 [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/panicking.rs:208:50 [INFO] [stdout] 9: 0x560a41dd4a1c - std::panicking::default_hook::h290aa602c0fb11df [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/panicking.rs:222:9 [INFO] [stdout] 10: 0x560a41dd55b1 - std::panicking::rust_panic_with_hook::hf32c4fa635e215f2 [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/panicking.rs:622:17 [INFO] [stdout] 11: 0x560a41dd50b7 - std::panicking::begin_panic_handler::{{closure}}::h95197ccd88846f7a [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/panicking.rs:519:13 [INFO] [stdout] 12: 0x560a41dd327c - std::sys_common::backtrace::__rust_end_short_backtrace::h7641df9566f7b7d0 [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/sys_common/backtrace.rs:141:18 [INFO] [stdout] 13: 0x560a41dd5019 - rust_begin_unwind [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/panicking.rs:515:5 [INFO] [stdout] 14: 0x560a41d31531 - core::panicking::panic_fmt::hbe99dddd3092ba3c [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/core/src/panicking.rs:92:14 [INFO] [stdout] 15: 0x560a41df3e78 - core::panicking::assert_failed_inner::h4fdb1013d187f202 [INFO] [stdout] 16: 0x560a41d64a9a - core::panicking::assert_failed::hc9a3a6aadbb0d872 [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/core/src/panicking.rs:117:5 [INFO] [stdout] 17: 0x560a41d59415 - ch11::world::tests::shade_hit_with_transparent_material::h3487d851d149eef4 [INFO] [stdout] at /opt/rustwide/workdir/src/bin/ch11/world.rs:678:9 [INFO] [stdout] 18: 0x560a41d58d8a - ch11::world::tests::shade_hit_with_transparent_material::{{closure}}::h172107c85e6aabfb [INFO] [stdout] at /opt/rustwide/workdir/src/bin/ch11/world.rs:655:5 [INFO] [stdout] 19: 0x560a41d6ffee - core::ops::function::FnOnce::call_once::h1227336329917a92 [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 20: 0x560a41daa003 - core::ops::function::FnOnce::call_once::h673fbe3f96486fd2 [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 21: 0x560a41daa003 - test::__rust_begin_short_backtrace::h8eedc24e104ef6a0 [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/test/src/lib.rs:577:5 [INFO] [stdout] 22: 0x560a41da8ab0 - as core::ops::function::FnOnce>::call_once::h028d0969d3f94d78 [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/alloc/src/boxed.rs:1575:9 [INFO] [stdout] 23: 0x560a41da8ab0 - as core::ops::function::FnOnce<()>>::call_once::h7634b01590b1722b [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/panic.rs:346:9 [INFO] [stdout] 24: 0x560a41da8ab0 - std::panicking::try::do_call::hf74f869706dec63b [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/panicking.rs:401:40 [INFO] [stdout] 25: 0x560a41da8ab0 - std::panicking::try::hd0b7346ebfaaae44 [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/panicking.rs:365:19 [INFO] [stdout] 26: 0x560a41da8ab0 - std::panic::catch_unwind::hdbf6904f7c253080 [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/panic.rs:433:14 [INFO] [stdout] 27: 0x560a41da8ab0 - test::run_test_in_process::h87e95a014ac91067 [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/test/src/lib.rs:600:18 [INFO] [stdout] 28: 0x560a41da8ab0 - test::run_test::run_test_inner::{{closure}}::hdd69ae44aaab3470 [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/test/src/lib.rs:492:39 [INFO] [stdout] 29: 0x560a41d83d82 - test::run_test::run_test_inner::{{closure}}::hc159305704d5b68a [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/test/src/lib.rs:519:37 [INFO] [stdout] 30: 0x560a41d83d82 - std::sys_common::backtrace::__rust_begin_short_backtrace::h33d8a8ad5f788fcc [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/sys_common/backtrace.rs:125:18 [INFO] [stdout] 31: 0x560a41d87af8 - std::thread::Builder::spawn_unchecked::{{closure}}::{{closure}}::h6181011ddf4b8353 [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/thread/mod.rs:481:17 [INFO] [stdout] 32: 0x560a41d87af8 - as core::ops::function::FnOnce<()>>::call_once::hf924ea0a0f25a1c0 [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/panic.rs:346:9 [INFO] [stdout] 33: 0x560a41d87af8 - std::panicking::try::do_call::hd58061792d05fa5c [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/panicking.rs:401:40 [INFO] [stdout] 34: 0x560a41d87af8 - std::panicking::try::h3080747417e5af37 [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/panicking.rs:365:19 [INFO] [stdout] 35: 0x560a41d87af8 - std::panic::catch_unwind::hfeba515dcf36cb66 [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/panic.rs:433:14 [INFO] [stdout] 36: 0x560a41d87af8 - std::thread::Builder::spawn_unchecked::{{closure}}::h29d57a62faff749b [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/thread/mod.rs:480:30 [INFO] [stdout] 37: 0x560a41d87af8 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h44709d312d2a9c59 [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 38: 0x560a41dda067 - as core::ops::function::FnOnce>::call_once::h902e2cf6655e1b0c [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/alloc/src/boxed.rs:1575:9 [INFO] [stdout] 39: 0x560a41dda067 - as core::ops::function::FnOnce>::call_once::h893a5452154309d1 [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/alloc/src/boxed.rs:1575:9 [INFO] [stdout] 40: 0x560a41dda067 - std::sys::unix::thread::Thread::new::thread_start::hdedcb57c96ab37cd [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/sys/unix/thread.rs:71:17 [INFO] [stdout] 41: 0x7f98a6bab609 - start_thread [INFO] [stdout] 42: 0x7f98a697d293 - clone [INFO] [stdout] 43: 0x0 - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] world::tests::shade_hit_with_reflective_transparent_material [INFO] [stdout] world::tests::shade_hit_with_transparent_material [INFO] [stdout] [INFO] [stdout] test result: FAILED. 163 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.19s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "12d208adc3ae1bf4e3cb1267c133945d38706a7dd24b88cf6d6af255b3299094", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "12d208adc3ae1bf4e3cb1267c133945d38706a7dd24b88cf6d6af255b3299094", kill_on_drop: false }` [INFO] [stdout] 12d208adc3ae1bf4e3cb1267c133945d38706a7dd24b88cf6d6af255b3299094