[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] db8ad4754445c49e59e9a2f86dfedc2aae96f00b [INFO] checking dbearden/Ray-Tracer-Challenge against try#3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f for pr-87248 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdbearden%2FRay-Tracer-Challenge" "/workspace/builds/worker-7/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/dbearden/Ray-Tracer-Challenge on toolchain 3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "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-7/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" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0347154b3cca05dbb0c679ab08310c8205363a86844a87096584ccdb387af744 [INFO] running `Command { std: "docker" "start" "-a" "0347154b3cca05dbb0c679ab08310c8205363a86844a87096584ccdb387af744", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0347154b3cca05dbb0c679ab08310c8205363a86844a87096584ccdb387af744", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0347154b3cca05dbb0c679ab08310c8205363a86844a87096584ccdb387af744", kill_on_drop: false }` [INFO] [stdout] 0347154b3cca05dbb0c679ab08310c8205363a86844a87096584ccdb387af744 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] dd7d997918d03c89f4cb0a6e755fe0a2e49b5911d5c77f84bcc843809a051f08 [INFO] running `Command { std: "docker" "start" "-a" "dd7d997918d03c89f4cb0a6e755fe0a2e49b5911d5c77f84bcc843809a051f08", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Checking float-cmp v0.8.0 [INFO] [stderr] Checking 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/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/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_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/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: 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_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] error: cannot find macro `assert_matches` in this scope [INFO] [stdout] --> src/bin/ch11/world.rs:553:9 [INFO] [stdout] | [INFO] [stdout] 553 | assert_matches!(w.color_at(&r, DEFAULT_REFLECTION_COUNT), Color { .. }); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing one of these items: [INFO] [stdout] core::assert_matches::assert_matches [INFO] [stdout] std::assert_matches::assert_matches [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_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: 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: 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 is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [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: 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: 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: 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: 2 warnings emitted [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 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: 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: `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 is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [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/ch12/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_evaluatable_checked` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stdout] --> src/bin/ch12/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/ch12/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/ch12/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/ch12/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/ch12/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: the feature `const_generics` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stdout] --> src/bin/ch13/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/ch13/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/ch13/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/ch13/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/ch13/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/ch13/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/ch13/pattern/stripe.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | shape::Shape, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `shape::Shape` [INFO] [stdout] --> src/bin/ch12/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/ch13/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 imports: `cell::RefCell`, `rc::Rc` [INFO] [stdout] --> src/bin/ch12/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/ch12/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/ch12/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 is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see issue #80165 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `World` [INFO] [stdout] --> src/bin/ch12/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: `Point` [INFO] [stdout] --> src/bin/ch12/shape/cube.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | tuple::{Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rc::Rc` [INFO] [stdout] --> src/bin/ch12/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/ch12/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/ch12/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/ch12/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/ch12/shape/mod.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | 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/ch12/shape/mod.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | pattern::Pattern, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 14 | ray::{Intersection, Ray}, [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: unused import: `materials::Material` [INFO] [stdout] --> src/bin/ch12/main.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use materials::Material; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FRAC_PI_3`, `FRAC_PI_4`, `FRAC_PI_6` [INFO] [stdout] --> src/bin/ch12/main.rs:25:30 [INFO] [stdout] | [INFO] [stdout] 25 | 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: `transformations::Transformation` [INFO] [stdout] --> src/bin/ch13/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/ch13/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 is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see issue #80165 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `World` [INFO] [stdout] --> src/bin/ch13/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: `Point` [INFO] [stdout] --> src/bin/ch13/shape/cube.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | tuple::{Point, Tuple, Vector}, [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/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 imports: `Gradient`, `Ring`, `lights::PointLight` [INFO] [stdout] --> src/bin/ch12/main.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | lights::PointLight, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 35 | pattern::{Checkerboard, Gradient, Pattern, Ring, Stripe}, [INFO] [stdout] | ^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rc::Rc` [INFO] [stdout] --> src/bin/ch13/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/ch13/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/ch13/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/ch13/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/ch13/shape/mod.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | use std::{cell::RefCell, fmt::Debug, rc::Rc}; [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: unused imports: `Intersection`, `pattern::Pattern` [INFO] [stdout] --> src/bin/ch13/shape/mod.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | pattern::Pattern, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 18 | ray::{Intersection, Ray}, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `materials::Material` [INFO] [stdout] --> src/bin/ch13/main.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use materials::Material; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FRAC_PI_3`, `FRAC_PI_4`, `FRAC_PI_6` [INFO] [stdout] --> src/bin/ch13/main.rs:25:30 [INFO] [stdout] | [INFO] [stdout] 25 | 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: `Cone`, `Gradient`, `Ring`, `lights::PointLight` [INFO] [stdout] --> src/bin/ch13/main.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | lights::PointLight, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 35 | pattern::{Checkerboard, Gradient, Pattern, Ring, Stripe}, [INFO] [stdout] | ^^^^^^^^ ^^^^ [INFO] [stdout] 36 | shape::{Cone, Cylinder}, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `assert_matches` in this scope [INFO] [stdout] --> src/bin/ch13/world.rs:553:9 [INFO] [stdout] | [INFO] [stdout] 553 | assert_matches!(w.color_at(&r, DEFAULT_REFLECTION_COUNT), Color { .. }); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing one of these items: [INFO] [stdout] core::assert_matches::assert_matches [INFO] [stdout] std::assert_matches::assert_matches [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/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_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: `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 is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [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: 2 warnings emitted [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_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: 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: 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 is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [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: 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: 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: `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: `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: `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_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: 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: unused import: `pattern::Pattern` [INFO] [stdout] --> src/bin/ch12/ray.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::{pattern::Pattern, shape::Shape}; [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/ch12/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/ch12/shape/sphere.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | pattern::Pattern, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `transform` [INFO] [stdout] --> src/bin/ch12/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/ch12/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/ch12/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: `transform` [INFO] [stdout] --> src/bin/ch12/shape/cube.rs:58:33 [INFO] [stdout] | [INFO] [stdout] 58 | fn set_transform(&mut self, transform: crate::matrix::Matrix<4>) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_transform` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `material` [INFO] [stdout] --> src/bin/ch12/shape/cube.rs:66:32 [INFO] [stdout] | [INFO] [stdout] 66 | fn set_material(&mut self, material: crate::materials::Material) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_material` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> src/bin/ch12/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: 1 warning emitted [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/ch13/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/ch13/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/ch13/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/ch13/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/ch13/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/ch13/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/ch13/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/ch13/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 is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see issue #80165 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `World` [INFO] [stdout] --> src/bin/ch13/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/ch13/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: 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: unused import: `Point` [INFO] [stdout] --> src/bin/ch13/shape/cube.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | tuple::{Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `float_cmp::approx_eq` [INFO] [stdout] --> src/bin/ch13/shape/plane.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use float_cmp::approx_eq; [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: unused imports: `cell::RefCell`, `rc::Rc` [INFO] [stdout] --> src/bin/ch13/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/ch13/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/ch13/shape/mod.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | use std::{cell::RefCell, fmt::Debug, rc::Rc}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Intersection` [INFO] [stdout] --> src/bin/ch13/shape/mod.rs:18:11 [INFO] [stdout] | [INFO] [stdout] 18 | ray::{Intersection, Ray}, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `any::type_name` [INFO] [stdout] --> src/bin/ch13/shape/mod.rs:63:9 [INFO] [stdout] | [INFO] [stdout] 63 | any::type_name, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cell::RefMut` [INFO] [stdout] --> src/bin/ch13/world.rs:275:9 [INFO] [stdout] | [INFO] [stdout] 275 | cell::RefMut, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `materials::Material` [INFO] [stdout] --> src/bin/ch13/main.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use materials::Material; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FRAC_PI_3`, `FRAC_PI_4`, `FRAC_PI_6` [INFO] [stdout] --> src/bin/ch13/main.rs:25:30 [INFO] [stdout] | [INFO] [stdout] 25 | 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: `Cone`, `Gradient`, `Ring`, `lights::PointLight` [INFO] [stdout] --> src/bin/ch13/main.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | lights::PointLight, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 35 | pattern::{Checkerboard, Gradient, Pattern, Ring, Stripe}, [INFO] [stdout] | ^^^^^^^^ ^^^^ [INFO] [stdout] 36 | shape::{Cone, Cylinder}, [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/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: associated function is never used: `pixel_at` [INFO] [stdout] --> src/bin/ch12/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/ch12/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/ch12/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/ch12/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/ch12/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/ch12/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/ch12/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/ch12/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/ch12/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/ch12/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/ch12/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: `magnitude` [INFO] [stdout] --> src/bin/ch12/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/ch12/world.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `float_cmp` [INFO] [stdout] --> src/bin/ch12/main.rs:145:4 [INFO] [stdout] | [INFO] [stdout] 145 | fn float_cmp(first: &f64, second: &f64) -> std::cmp::Ordering { [INFO] [stdout] | ^^^^^^^^^ [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: 14 warnings emitted [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: 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] error: cannot find macro `assert_matches` in this scope [INFO] [stdout] --> src/bin/ch12/world.rs:553:9 [INFO] [stdout] | [INFO] [stdout] 553 | assert_matches!(w.color_at(&r, DEFAULT_REFLECTION_COUNT), Color { .. }); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing one of these items: [INFO] [stdout] core::assert_matches::assert_matches [INFO] [stdout] std::assert_matches::assert_matches [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: 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: 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 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: 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: 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: 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: 23 warnings emitted [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: 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: 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: 44 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 42 warnings emitted [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: 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: `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: `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: 2 warnings emitted [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/ch12/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/ch12/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/ch12/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/ch12/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/ch12/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/ch12/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/ch12/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/ch12/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 is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see issue #80165 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `World` [INFO] [stdout] --> src/bin/ch12/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/ch12/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: unused import: `Point` [INFO] [stdout] --> src/bin/ch12/shape/cube.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | tuple::{Point, Tuple, Vector}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `float_cmp::approx_eq` [INFO] [stdout] --> src/bin/ch12/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/ch12/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/ch12/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/ch12/shape/mod.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | use std::{cell::RefCell, fmt::Debug, rc::Rc}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Intersection` [INFO] [stdout] --> src/bin/ch12/shape/mod.rs:14:11 [INFO] [stdout] | [INFO] [stdout] 14 | ray::{Intersection, Ray}, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `any::type_name` [INFO] [stdout] --> src/bin/ch12/shape/mod.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 59 | any::type_name, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cell::RefMut` [INFO] [stdout] --> src/bin/ch12/world.rs:275:9 [INFO] [stdout] | [INFO] [stdout] 275 | cell::RefMut, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `materials::Material` [INFO] [stdout] --> src/bin/ch12/main.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use materials::Material; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FRAC_PI_3`, `FRAC_PI_4`, `FRAC_PI_6` [INFO] [stdout] --> src/bin/ch12/main.rs:25:30 [INFO] [stdout] | [INFO] [stdout] 25 | 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`, `lights::PointLight` [INFO] [stdout] --> src/bin/ch12/main.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | lights::PointLight, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 35 | pattern::{Checkerboard, Gradient, Pattern, Ring, Stripe}, [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: 15 warnings emitted [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: 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: 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: 13 warnings emitted [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: 36 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 24 warnings emitted [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/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: 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pattern::Pattern` [INFO] [stdout] --> src/bin/ch13/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/ch13/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/ch13/shape/sphere.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | pattern::Pattern, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `transform` [INFO] [stdout] --> src/bin/ch13/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/ch13/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/ch13/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: `transform` [INFO] [stdout] --> src/bin/ch13/shape/cone.rs:75:33 [INFO] [stdout] | [INFO] [stdout] 75 | 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: `material` [INFO] [stdout] --> src/bin/ch13/shape/cone.rs:83:32 [INFO] [stdout] | [INFO] [stdout] 83 | fn set_material(&mut self, material: Material) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_material` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `transform` [INFO] [stdout] --> src/bin/ch13/shape/cube.rs:58:33 [INFO] [stdout] | [INFO] [stdout] 58 | fn set_transform(&mut self, transform: crate::matrix::Matrix<4>) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_transform` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `material` [INFO] [stdout] --> src/bin/ch13/shape/cube.rs:66:32 [INFO] [stdout] | [INFO] [stdout] 66 | fn set_material(&mut self, material: crate::materials::Material) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_material` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `transform` [INFO] [stdout] --> src/bin/ch13/shape/cylinder.rs:76:33 [INFO] [stdout] | [INFO] [stdout] 76 | fn set_transform(&mut self, transform: crate::matrix::Matrix<4>) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_transform` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `material` [INFO] [stdout] --> src/bin/ch13/shape/cylinder.rs:84:32 [INFO] [stdout] | [INFO] [stdout] 84 | fn set_material(&mut self, material: crate::materials::Material) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_material` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> src/bin/ch13/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: 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: 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: 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: 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: 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: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pattern::Pattern` [INFO] [stdout] --> src/bin/ch13/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/ch13/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/ch13/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/ch13/shape/mod.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | pattern::Pattern, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 25 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `ray_tracer` due to 2 previous errors; 25 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: associated function is never used: `pixel_at` [INFO] [stdout] --> src/bin/ch13/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/ch13/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/ch13/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/ch13/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/ch13/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/ch13/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/ch13/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/ch13/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/ch13/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/ch13/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/ch13/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/ch13/shape/cone.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn new(id: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `magnitude` [INFO] [stdout] --> src/bin/ch13/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/ch13/world.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `float_cmp` [INFO] [stdout] --> src/bin/ch13/main.rs:161:4 [INFO] [stdout] | [INFO] [stdout] 161 | fn float_cmp(first: &f64, second: &f64) -> std::cmp::Ordering { [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] = 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: 49 warnings emitted [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: unused import: `pattern::Pattern` [INFO] [stdout] --> src/bin/ch12/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/ch12/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/ch12/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/ch12/shape/mod.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | pattern::Pattern, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 25 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 14 warnings emitted [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: 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: 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] error: aborting due to previous error; 24 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 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: 16 warnings emitted [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: 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: 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 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: 14 warnings emitted [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: 36 warnings emitted [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: 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/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: 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: 14 warnings emitted [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: 14 warnings emitted [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: 27 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "dd7d997918d03c89f4cb0a6e755fe0a2e49b5911d5c77f84bcc843809a051f08", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dd7d997918d03c89f4cb0a6e755fe0a2e49b5911d5c77f84bcc843809a051f08", kill_on_drop: false }` [INFO] [stdout] dd7d997918d03c89f4cb0a6e755fe0a2e49b5911d5c77f84bcc843809a051f08