[INFO] cloning repository https://github.com/leviathan88/ray_tracer [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/leviathan88/ray_tracer" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fleviathan88%2Fray_tracer", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fleviathan88%2Fray_tracer'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] bb18c665f678c99141053d2fbe5e3f8c38b881ca [INFO] checking leviathan88/ray_tracer against try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fleviathan88%2Fray_tracer" "/workspace/builds/worker-40/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-40/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/leviathan88/ray_tracer on toolchain a7a572ce3edd6d476191fbfe92c9c1986e009b34 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/leviathan88/ray_tracer [INFO] finished tweaking git repo https://github.com/leviathan88/ray_tracer [INFO] tweaked toml for git repo https://github.com/leviathan88/ray_tracer written to /workspace/builds/worker-40/source/Cargo.toml [INFO] crate git repo https://github.com/leviathan88/ray_tracer already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-40/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-40/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" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bdf229b19718015d50d08a3eea45efdc5a033db428ee9034837dc2b8467dd484 [INFO] running `Command { std: "docker" "start" "-a" "bdf229b19718015d50d08a3eea45efdc5a033db428ee9034837dc2b8467dd484", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bdf229b19718015d50d08a3eea45efdc5a033db428ee9034837dc2b8467dd484", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bdf229b19718015d50d08a3eea45efdc5a033db428ee9034837dc2b8467dd484", kill_on_drop: false }` [INFO] [stdout] bdf229b19718015d50d08a3eea45efdc5a033db428ee9034837dc2b8467dd484 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-40/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-40/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" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bdfd2de39201a3fe029786df615f1a76b97e40cf6b3da9a29d714c0290bc8d9f [INFO] running `Command { std: "docker" "start" "-a" "bdfd2de39201a3fe029786df615f1a76b97e40cf6b3da9a29d714c0290bc8d9f", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Checking ray_tracer v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2018 edition to 2021 [INFO] [stderr] Fixed src/main.rs (1 fix) [INFO] [stdout] warning: associated function is never used: `green` [INFO] [stdout] --> src/color/mod.rs:66:12 [INFO] [stdout] | [INFO] [stdout] 66 | pub fn green() -> Self { [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: `blue` [INFO] [stdout] --> src/color/mod.rs:74:12 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn blue() -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `save_to_disk` [INFO] [stdout] --> src/canvas/mod.rs:80:12 [INFO] [stdout] | [INFO] [stdout] 80 | pub fn save_to_disk(&self) -> std::io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `construct_empty_2x2` [INFO] [stdout] --> src/matrix/mod.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn construct_empty_2x2() -> MatrixType { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/canvas/mod.rs:86:9 [INFO] [stdout] | [INFO] [stdout] 86 | file.write(header.as_bytes()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/canvas/mod.rs:87:9 [INFO] [stdout] | [INFO] [stdout] 87 | file.write(data.as_bytes()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/color/mod.rs (1 fix) [INFO] [stderr] Fixed src/canvas/mod.rs (1 fix) [INFO] [stderr] Fixed src/matrix/mod.rs (1 fix) [INFO] [stderr] Fixed src/tuples/mod.rs (1 fix) [INFO] [stderr] Fixed src/utils/mod.rs (1 fix) [INFO] [stdout] warning: associated function is never used: `is_equal_to` [INFO] [stdout] --> src/tuples/mod.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 60 | pub fn is_equal_to(&self, tuple: &Tuple) -> bool { [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: `negate` [INFO] [stdout] --> src/tuples/mod.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 67 | pub fn negate(&self) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `calculate_dot_product` [INFO] [stdout] --> src/tuples/mod.rs:88:12 [INFO] [stdout] | [INFO] [stdout] 88 | pub fn calculate_dot_product(&self, tuple: &Tuple) -> Float { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_vector_cross_product` [INFO] [stdout] --> src/tuples/mod.rs:92:12 [INFO] [stdout] | [INFO] [stdout] 92 | pub fn get_vector_cross_product(&self, vector: &Tuple) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `compare_floats_32` [INFO] [stdout] --> src/utils/mod.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn compare_floats_32(a: f32, b: f32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/color/mod.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn new(red: ColorType, green: ColorType, blue: ColorType) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_ppm_value` [INFO] [stdout] --> src/color/mod.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | fn to_ppm_value(value: ColorType) -> ColorType { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_equal_to` [INFO] [stdout] --> src/color/mod.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn is_equal_to(self, other_color: Color) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_string` [INFO] [stdout] --> src/color/mod.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn to_string(&self) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `red` [INFO] [stdout] --> src/color/mod.rs:58:12 [INFO] [stdout] | [INFO] [stdout] 58 | pub fn red() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `green` [INFO] [stdout] --> src/color/mod.rs:66:12 [INFO] [stdout] | [INFO] [stdout] 66 | pub fn green() -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `blue` [INFO] [stdout] --> src/color/mod.rs:74:12 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn blue() -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `width` [INFO] [stdout] --> src/canvas/mod.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | width: Size, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `height` [INFO] [stdout] --> src/canvas/mod.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | height: Size, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new_with_color` [INFO] [stdout] --> src/canvas/mod.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn new_with_color(width: Size, height: Size, color: Color) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_pixel_at` [INFO] [stdout] --> src/canvas/mod.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn get_pixel_at(&self, x: Size, y: Size) -> Color { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `format_ppm_header` [INFO] [stdout] --> src/canvas/mod.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn format_ppm_header(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `format_ppm_data` [INFO] [stdout] --> src/canvas/mod.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn format_ppm_data(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `format_vector` [INFO] [stdout] --> src/canvas/mod.rs:54:8 [INFO] [stdout] | [INFO] [stdout] 54 | fn format_vector(vec: Vec) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `save_to_disk` [INFO] [stdout] --> src/canvas/mod.rs:80:12 [INFO] [stdout] | [INFO] [stdout] 80 | pub fn save_to_disk(&self) -> std::io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `construct_empty_4x4` [INFO] [stdout] --> src/matrix/mod.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn construct_empty_4x4() -> MatrixType { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `construct_empty_2x2` [INFO] [stdout] --> src/matrix/mod.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn construct_empty_2x2() -> MatrixType { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `are_equal` [INFO] [stdout] --> src/matrix/mod.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn are_equal(m1: &MatrixType, m2: &MatrixType) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/canvas/mod.rs:86:9 [INFO] [stdout] | [INFO] [stdout] 86 | file.write(header.as_bytes()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/canvas/mod.rs:87:9 [INFO] [stdout] | [INFO] [stdout] 87 | file.write(data.as_bytes()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 25 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 50.16s [INFO] [stderr] Running `cargo check` to verify 2021 [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Checking ray_tracer v0.1.0 (/tmp/fixit) [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TupleType` [INFO] [stdout] --> src/tuples/mod.rs:172:38 [INFO] [stdout] | [INFO] [stdout] 172 | assert_eq!(point.get_type(), TupleType::Point); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TupleType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TupleType` [INFO] [stdout] --> src/tuples/mod.rs:184:39 [INFO] [stdout] | [INFO] [stdout] 184 | assert_eq!(vector.get_type(), TupleType::Vector); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TupleType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TupleType` [INFO] [stdout] --> src/tuples/mod.rs:190:40 [INFO] [stdout] | [INFO] [stdout] 190 | assert_eq!(new_vec.get_type(), TupleType::Vector); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TupleType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TupleType` [INFO] [stdout] --> src/tuples/mod.rs:197:42 [INFO] [stdout] | [INFO] [stdout] 197 | assert_eq!(new_point.get_type(), TupleType::Point); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TupleType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TupleType` [INFO] [stdout] --> src/tuples/mod.rs:216:40 [INFO] [stdout] | [INFO] [stdout] 216 | assert_eq!(tuple_3.get_type(), TupleType::Point); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TupleType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TupleType` [INFO] [stdout] --> src/tuples/mod.rs:227:40 [INFO] [stdout] | [INFO] [stdout] 227 | assert_eq!(tuple_3.get_type(), TupleType::Vector); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TupleType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TupleType` [INFO] [stdout] --> src/tuples/mod.rs:238:40 [INFO] [stdout] | [INFO] [stdout] 238 | assert_eq!(tuple_3.get_type(), TupleType::Point); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TupleType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TupleType` [INFO] [stdout] --> src/tuples/mod.rs:249:40 [INFO] [stdout] | [INFO] [stdout] 249 | assert_eq!(tuple_3.get_type(), TupleType::Vector); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TupleType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TupleType` [INFO] [stdout] --> src/tuples/mod.rs:260:40 [INFO] [stdout] | [INFO] [stdout] 260 | assert_eq!(tuple_3.get_type(), TupleType::Vector); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TupleType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TupleType` [INFO] [stdout] --> src/tuples/mod.rs:269:40 [INFO] [stdout] | [INFO] [stdout] 269 | assert_eq!(tuple_2.get_type(), TupleType::Point); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TupleType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Tuple` in this scope [INFO] [stdout] --> src/tuples/mod.rs:165:21 [INFO] [stdout] | [INFO] [stdout] 165 | let point = Tuple { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 164 | use crate::Tuple; [INFO] [stdout] | [INFO] [stdout] 164 | use crate::tuples::TupleType::Tuple; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Tuple` in this scope [INFO] [stdout] --> src/tuples/mod.rs:177:22 [INFO] [stdout] | [INFO] [stdout] 177 | let vector = Tuple { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 164 | use crate::Tuple; [INFO] [stdout] | [INFO] [stdout] 164 | use crate::tuples::TupleType::Tuple; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Tuple` [INFO] [stdout] --> src/tuples/mod.rs:189:23 [INFO] [stdout] | [INFO] [stdout] 189 | let new_vec = Tuple::new_vector(3.4, 3.1, 1.0); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 164 | use crate::Tuple; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Tuple` [INFO] [stdout] --> src/tuples/mod.rs:196:25 [INFO] [stdout] | [INFO] [stdout] 196 | let new_point = Tuple::new_point(2.1, 0.0, 1.9); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 164 | use crate::Tuple; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Tuple` [INFO] [stdout] --> src/tuples/mod.rs:203:23 [INFO] [stdout] | [INFO] [stdout] 203 | let tuple_1 = Tuple::new_point(1.2, 3.2, 2.0); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 164 | use crate::Tuple; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Tuple` [INFO] [stdout] --> src/tuples/mod.rs:204:23 [INFO] [stdout] | [INFO] [stdout] 204 | let tuple_2 = Tuple::new_point(1.2, 3.2, 2.000000000000000002); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 164 | use crate::Tuple; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Tuple` [INFO] [stdout] --> src/tuples/mod.rs:211:23 [INFO] [stdout] | [INFO] [stdout] 211 | let tuple_1 = Tuple::new_point(1.2, 3.2, 2.0); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 164 | use crate::Tuple; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Tuple` [INFO] [stdout] --> src/tuples/mod.rs:212:23 [INFO] [stdout] | [INFO] [stdout] 212 | let tuple_2 = Tuple::new_vector(1.2, 3.2, 2.000000000000000002); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 164 | use crate::Tuple; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Tuple` in this scope [INFO] [stdout] --> src/tuples/mod.rs:215:29 [INFO] [stdout] | [INFO] [stdout] 215 | assert_eq!(tuple_3, Tuple { x: 2.4, y: 6.4, z: 4.0, w: 1.0}); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 164 | use crate::Tuple; [INFO] [stdout] | [INFO] [stdout] 164 | use crate::tuples::TupleType::Tuple; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Tuple` [INFO] [stdout] --> src/tuples/mod.rs:221:23 [INFO] [stdout] | [INFO] [stdout] 221 | let tuple_1 = Tuple::new_point(3.0, 2.0, 1.0); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 164 | use crate::Tuple; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Tuple` [INFO] [stdout] --> src/tuples/mod.rs:222:23 [INFO] [stdout] | [INFO] [stdout] 222 | let tuple_2 = Tuple::new_point(5.0, 6.0, 7.0); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 164 | use crate::Tuple; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Tuple` in this scope [INFO] [stdout] --> src/tuples/mod.rs:226:29 [INFO] [stdout] | [INFO] [stdout] 226 | assert_eq!(tuple_3, Tuple { x: -2.0, y: -4.0, z: -6.0, w: 0.0}); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 164 | use crate::Tuple; [INFO] [stdout] | [INFO] [stdout] 164 | use crate::tuples::TupleType::Tuple; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Tuple` [INFO] [stdout] --> src/tuples/mod.rs:232:23 [INFO] [stdout] | [INFO] [stdout] 232 | let tuple_1 = Tuple::new_point(3.0, 2.0, 1.0); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 164 | use crate::Tuple; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Tuple` [INFO] [stdout] --> src/tuples/mod.rs:233:23 [INFO] [stdout] | [INFO] [stdout] 233 | let tuple_2 = Tuple::new_vector(5.0, 6.0, 7.0); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 164 | use crate::Tuple; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Tuple` in this scope [INFO] [stdout] --> src/tuples/mod.rs:237:29 [INFO] [stdout] | [INFO] [stdout] 237 | assert_eq!(tuple_3, Tuple { x: -2.0, y: -4.0, z: -6.0, w: 1.0}); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 164 | use crate::Tuple; [INFO] [stdout] | [INFO] [stdout] 164 | use crate::tuples::TupleType::Tuple; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Tuple` [INFO] [stdout] --> src/tuples/mod.rs:243:23 [INFO] [stdout] | [INFO] [stdout] 243 | let tuple_1 = Tuple::new_vector(3.0, 2.0, 1.0); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 164 | use crate::Tuple; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Tuple` [INFO] [stdout] --> src/tuples/mod.rs:244:23 [INFO] [stdout] | [INFO] [stdout] 244 | let tuple_2 = Tuple::new_vector(5.0, 6.0, 7.0); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 164 | use crate::Tuple; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Tuple` in this scope [INFO] [stdout] --> src/tuples/mod.rs:248:29 [INFO] [stdout] | [INFO] [stdout] 248 | assert_eq!(tuple_3, Tuple { x: -2.0, y: -4.0, z: -6.0, w: 0.0}); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 164 | use crate::Tuple; [INFO] [stdout] | [INFO] [stdout] 164 | use crate::tuples::TupleType::Tuple; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Tuple` [INFO] [stdout] --> src/tuples/mod.rs:254:23 [INFO] [stdout] | [INFO] [stdout] 254 | let tuple_1 = Tuple::new_vector(0.0, 0.0, 0.0); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 164 | use crate::Tuple; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Tuple` [INFO] [stdout] --> src/tuples/mod.rs:255:23 [INFO] [stdout] | [INFO] [stdout] 255 | let tuple_2 = Tuple::new_vector(1.0, -2.0, 3.0); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 164 | use crate::Tuple; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Tuple` in this scope [INFO] [stdout] --> src/tuples/mod.rs:259:29 [INFO] [stdout] | [INFO] [stdout] 259 | assert_eq!(tuple_3, Tuple { x: -1.0, y: 2.0, z: -3.0, w: 0.0}); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 164 | use crate::Tuple; [INFO] [stdout] | [INFO] [stdout] 164 | use crate::tuples::TupleType::Tuple; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Tuple` [INFO] [stdout] --> src/tuples/mod.rs:265:23 [INFO] [stdout] | [INFO] [stdout] 265 | let tuple_1 = Tuple::new_point(-2.0, 3.0, -1.2); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 164 | use crate::Tuple; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Tuple` [INFO] [stdout] --> src/tuples/mod.rs:268:29 [INFO] [stdout] | [INFO] [stdout] 268 | assert_eq!(tuple_2, Tuple::new_point(2.0, -3.0, 1.2)); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 164 | use crate::Tuple; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Tuple` [INFO] [stdout] --> src/tuples/mod.rs:274:23 [INFO] [stdout] | [INFO] [stdout] 274 | let tuple_1 = Tuple::new_tuple(1.0, -2.0, 3.0, -4.0); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 164 | use crate::Tuple; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Tuple` in this scope [INFO] [stdout] --> src/tuples/mod.rs:276:38 [INFO] [stdout] | [INFO] [stdout] 276 | assert_eq!(tuple_multiplied, Tuple { x: 3.5, y: -7.0, z: 10.5, w: -14.0 }); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 164 | use crate::Tuple; [INFO] [stdout] | [INFO] [stdout] 164 | use crate::tuples::TupleType::Tuple; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Tuple` [INFO] [stdout] --> src/tuples/mod.rs:281:23 [INFO] [stdout] | [INFO] [stdout] 281 | let tuple_1 = Tuple::new_tuple(1.0, -2.0, 3.0, -4.0); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 164 | use crate::Tuple; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Tuple` in this scope [INFO] [stdout] --> src/tuples/mod.rs:283:35 [INFO] [stdout] | [INFO] [stdout] 283 | assert_eq!(tuple_divided, Tuple { x: 0.5, y: -1.0, z: 1.5, w: -2.0 }); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 164 | use crate::Tuple; [INFO] [stdout] | [INFO] [stdout] 164 | use crate::tuples::TupleType::Tuple; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Tuple` [INFO] [stdout] --> src/tuples/mod.rs:288:22 [INFO] [stdout] | [INFO] [stdout] 288 | let vector = Tuple::new_vector(0., 1., 0.); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 164 | use crate::Tuple; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Tuple` [INFO] [stdout] --> src/tuples/mod.rs:291:22 [INFO] [stdout] | [INFO] [stdout] 291 | let vector = Tuple::new_vector(1., 2., 3.); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 164 | use crate::Tuple; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Tuple` [INFO] [stdout] --> src/tuples/mod.rs:298:22 [INFO] [stdout] | [INFO] [stdout] 298 | let vector = Tuple::new_vector(4., 0., 0.); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 164 | use crate::Tuple; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Tuple` [INFO] [stdout] --> src/tuples/mod.rs:300:39 [INFO] [stdout] | [INFO] [stdout] 300 | assert_eq!(vector_normalized, Tuple::new_vector(1., 0., 0.)); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 164 | use crate::Tuple; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Tuple` [INFO] [stdout] --> src/tuples/mod.rs:302:22 [INFO] [stdout] | [INFO] [stdout] 302 | let vector = Tuple::new_vector(1., 2., 3.); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 164 | use crate::Tuple; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Tuple` [INFO] [stdout] --> src/tuples/mod.rs:304:51 [INFO] [stdout] | [INFO] [stdout] 304 | assert_eq!(vector_normalized.is_equal_to(&Tuple::new_vector(0.26726, 0.53452, 0.80178)), true); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 164 | use crate::Tuple; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Tuple` [INFO] [stdout] --> src/tuples/mod.rs:309:21 [INFO] [stdout] | [INFO] [stdout] 309 | let vec_1 = Tuple::new_vector(1., 2., 3.); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 164 | use crate::Tuple; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Tuple` [INFO] [stdout] --> src/tuples/mod.rs:310:21 [INFO] [stdout] | [INFO] [stdout] 310 | let vec_2 = Tuple::new_vector(2., 3., 4.); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 164 | use crate::Tuple; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Tuple` [INFO] [stdout] --> src/tuples/mod.rs:316:21 [INFO] [stdout] | [INFO] [stdout] 316 | let vec_1 = Tuple::new_vector(1., 2., 3.); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 164 | use crate::Tuple; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Tuple` [INFO] [stdout] --> src/tuples/mod.rs:317:21 [INFO] [stdout] | [INFO] [stdout] 317 | let vec_2 = Tuple::new_vector(2., 3., 4.); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 164 | use crate::Tuple; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Tuple` [INFO] [stdout] --> src/tuples/mod.rs:318:60 [INFO] [stdout] | [INFO] [stdout] 318 | assert_eq!(vec_1.get_vector_cross_product(&vec_2), Tuple::new_vector(-1., 2., -1.)); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 164 | use crate::Tuple; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Tuple` [INFO] [stdout] --> src/tuples/mod.rs:319:60 [INFO] [stdout] | [INFO] [stdout] 319 | assert_eq!(vec_2.get_vector_cross_product(&vec_1), Tuple::new_vector(1., -2., 1.)); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 164 | use crate::Tuple; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `NumberUtils` [INFO] [stdout] --> src/utils/mod.rs:19:20 [INFO] [stdout] | [INFO] [stdout] 19 | assert_eq!(NumberUtils::compare_floats(0.1, 0.1), true); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 18 | use crate::utils::NumberUtils; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `NumberUtils` [INFO] [stdout] --> src/utils/mod.rs:20:20 [INFO] [stdout] | [INFO] [stdout] 20 | assert_eq!(NumberUtils::compare_floats(0.001, 0.001), true); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 18 | use crate::utils::NumberUtils; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `NumberUtils` [INFO] [stdout] --> src/utils/mod.rs:21:20 [INFO] [stdout] | [INFO] [stdout] 21 | assert_eq!(NumberUtils::compare_floats(0.01, 0.01), true); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 18 | use crate::utils::NumberUtils; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `NumberUtils` [INFO] [stdout] --> src/utils/mod.rs:23:20 [INFO] [stdout] | [INFO] [stdout] 23 | assert_eq!(NumberUtils::compare_floats(0.01, 0.001), false); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 18 | use crate::utils::NumberUtils; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `NumberUtils` [INFO] [stdout] --> src/utils/mod.rs:24:20 [INFO] [stdout] | [INFO] [stdout] 24 | assert_eq!(NumberUtils::compare_floats(0.0001, 0.001), false); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 18 | use crate::utils::NumberUtils; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `NumberUtils` [INFO] [stdout] --> src/utils/mod.rs:29:20 [INFO] [stdout] | [INFO] [stdout] 29 | assert_eq!(NumberUtils::compare_floats(0.000000000001, 0.00001), true); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 18 | use crate::utils::NumberUtils; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/color/mod.rs:161:21 [INFO] [stdout] | [INFO] [stdout] 161 | let color = Color::new(-0.5, 0.4, 1.7); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 160 | use crate::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Color` in this scope [INFO] [stdout] --> src/color/mod.rs:162:27 [INFO] [stdout] | [INFO] [stdout] 162 | assert_eq!(color, Color { red: -0.5, green: 0.4, blue: 1.7 }); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 160 | use crate::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/color/mod.rs:167:23 [INFO] [stdout] | [INFO] [stdout] 167 | let color_1 = Color::new(0.9, 0.6, 0.75); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 160 | use crate::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/color/mod.rs:168:23 [INFO] [stdout] | [INFO] [stdout] 168 | let color_2 = Color::new(0.7, 0.1, 0.25); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 160 | use crate::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Color` in this scope [INFO] [stdout] --> src/color/mod.rs:171:42 [INFO] [stdout] | [INFO] [stdout] 171 | assert_eq!(new_color.is_equal_to(Color { red: 1.6, green: 0.7, blue: 1.0 }), true); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 160 | use crate::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/color/mod.rs:176:23 [INFO] [stdout] | [INFO] [stdout] 176 | let color_1 = Color::new(0.9, 0.6, 0.75); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 160 | use crate::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/color/mod.rs:177:23 [INFO] [stdout] | [INFO] [stdout] 177 | let color_2 = Color::new(0.7, 0.1, 0.25); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 160 | use crate::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Color` in this scope [INFO] [stdout] --> src/color/mod.rs:180:42 [INFO] [stdout] | [INFO] [stdout] 180 | assert_eq!(new_color.is_equal_to(Color { red: 0.2, green: 0.5, blue: 0.5}), true); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 160 | use crate::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/color/mod.rs:185:21 [INFO] [stdout] | [INFO] [stdout] 185 | let color = Color::new(0.2, 0.3, 0.4); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 160 | use crate::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Color` in this scope [INFO] [stdout] --> src/color/mod.rs:190:42 [INFO] [stdout] | [INFO] [stdout] 190 | assert_eq!(new_color.is_equal_to(Color { red: 0.4, green: 0.6, blue: 0.8 }), true); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 160 | use crate::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/color/mod.rs:195:23 [INFO] [stdout] | [INFO] [stdout] 195 | let color_1 = Color::new(1., 0.2, 0.4); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 160 | use crate::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_equal_to` [INFO] [stdout] --> src/tuples/mod.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 60 | pub fn is_equal_to(&self, tuple: &Tuple) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/color/mod.rs:196:23 [INFO] [stdout] | [INFO] [stdout] 196 | let color_2 = Color::new(0.9, 1., 0.1); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 160 | use crate::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Color` in this scope [INFO] [stdout] --> src/color/mod.rs:199:42 [INFO] [stdout] | [INFO] [stdout] 199 | assert_eq!(new_color.is_equal_to(Color { red: 0.9, green: 0.2, blue: 0.04}), true); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 160 | use crate::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `negate` [INFO] [stdout] --> src/tuples/mod.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 67 | pub fn negate(&self) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `calculate_dot_product` [INFO] [stdout] --> src/tuples/mod.rs:88:12 [INFO] [stdout] | [INFO] [stdout] 88 | pub fn calculate_dot_product(&self, tuple: &Tuple) -> Float { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Canvas` [INFO] [stdout] --> src/canvas/mod.rs:99:22 [INFO] [stdout] | [INFO] [stdout] 99 | let canvas = Canvas::new(10, 20); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 98 | use crate::Canvas; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_vector_cross_product` [INFO] [stdout] --> src/tuples/mod.rs:92:12 [INFO] [stdout] | [INFO] [stdout] 92 | pub fn get_vector_cross_product(&self, vector: &Tuple) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `compare_floats_32` [INFO] [stdout] --> src/utils/mod.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn compare_floats_32(a: f32, b: f32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/canvas/mod.rs:102:41 [INFO] [stdout] | [INFO] [stdout] 102 | assert_eq!(canvas.pixels[0][0], Color::black()); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 98 | use crate::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/color/mod.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn new(red: ColorType, green: ColorType, blue: ColorType) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/canvas/mod.rs:103:42 [INFO] [stdout] | [INFO] [stdout] 103 | assert_eq!(canvas.pixels[19][9], Color::black()); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 98 | use crate::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_ppm_value` [INFO] [stdout] --> src/color/mod.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | fn to_ppm_value(value: ColorType) -> ColorType { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_equal_to` [INFO] [stdout] --> src/color/mod.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn is_equal_to(self, other_color: Color) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Canvas` [INFO] [stdout] --> src/canvas/mod.rs:108:26 [INFO] [stdout] | [INFO] [stdout] 108 | let mut canvas = Canvas::new(10, 20); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 98 | use crate::Canvas; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_string` [INFO] [stdout] --> src/color/mod.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn to_string(&self) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `red` [INFO] [stdout] --> src/color/mod.rs:58:12 [INFO] [stdout] | [INFO] [stdout] 58 | pub fn red() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/canvas/mod.rs:109:19 [INFO] [stdout] | [INFO] [stdout] 109 | let red = Color::red(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 98 | use crate::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `green` [INFO] [stdout] --> src/color/mod.rs:66:12 [INFO] [stdout] | [INFO] [stdout] 66 | pub fn green() -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `blue` [INFO] [stdout] --> src/color/mod.rs:74:12 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn blue() -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `width` [INFO] [stdout] --> src/canvas/mod.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | width: Size, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `height` [INFO] [stdout] --> src/canvas/mod.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | height: Size, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new_with_color` [INFO] [stdout] --> src/canvas/mod.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn new_with_color(width: Size, height: Size, color: Color) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_pixel_at` [INFO] [stdout] --> src/canvas/mod.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn get_pixel_at(&self, x: Size, y: Size) -> Color { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `format_ppm_header` [INFO] [stdout] --> src/canvas/mod.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn format_ppm_header(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `format_ppm_data` [INFO] [stdout] --> src/canvas/mod.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn format_ppm_data(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/canvas/mod.rs:111:47 [INFO] [stdout] | [INFO] [stdout] 111 | assert_eq!(canvas.get_pixel_at(2, 3), Color::black()); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 98 | use crate::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `format_vector` [INFO] [stdout] --> src/canvas/mod.rs:54:8 [INFO] [stdout] | [INFO] [stdout] 54 | fn format_vector(vec: Vec) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `save_to_disk` [INFO] [stdout] --> src/canvas/mod.rs:80:12 [INFO] [stdout] | [INFO] [stdout] 80 | pub fn save_to_disk(&self) -> std::io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `construct_empty_4x4` [INFO] [stdout] --> src/matrix/mod.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn construct_empty_4x4() -> MatrixType { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/canvas/mod.rs:114:47 [INFO] [stdout] | [INFO] [stdout] 114 | assert_eq!(canvas.get_pixel_at(2, 3), Color::red()); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 98 | use crate::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `construct_empty_2x2` [INFO] [stdout] --> src/matrix/mod.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn construct_empty_2x2() -> MatrixType { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `are_equal` [INFO] [stdout] --> src/matrix/mod.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn are_equal(m1: &MatrixType, m2: &MatrixType) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Canvas` [INFO] [stdout] --> src/canvas/mod.rs:120:22 [INFO] [stdout] | [INFO] [stdout] 120 | let canvas = Canvas::new(10, 20); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 98 | use crate::Canvas; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Canvas` [INFO] [stdout] --> src/canvas/mod.rs:128:26 [INFO] [stdout] | [INFO] [stdout] 128 | let mut canvas = Canvas::new(5, 3); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 98 | use crate::Canvas; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/canvas/mod.rs:130:18 [INFO] [stdout] | [INFO] [stdout] 130 | let c1 = Color::new(1.5, 0., 0.); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 98 | use crate::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/canvas/mod.rs:131:18 [INFO] [stdout] | [INFO] [stdout] 131 | let c2 = Color::new(0., 0.5, 0.); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 98 | use crate::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/canvas/mod.rs:132:18 [INFO] [stdout] | [INFO] [stdout] 132 | let c3 = Color::new(-0.5, 0., 1.); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 98 | use crate::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/canvas/mod.rs:145:21 [INFO] [stdout] | [INFO] [stdout] 145 | let color = Color::new(1., 0.8, 0.6); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 98 | use crate::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Canvas` [INFO] [stdout] --> src/canvas/mod.rs:146:22 [INFO] [stdout] | [INFO] [stdout] 146 | let canvas = Canvas::new_with_color(10, 2, color); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 98 | use crate::Canvas; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Matrix` [INFO] [stdout] --> src/matrix/mod.rs:50:17 [INFO] [stdout] | [INFO] [stdout] 50 | let m = Matrix::construct_empty_4x4(); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 49 | use crate::Matrix; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Matrix` [INFO] [stdout] --> src/matrix/mod.rs:58:22 [INFO] [stdout] | [INFO] [stdout] 58 | let mut m1 = Matrix::construct_empty_4x4(); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 49 | use crate::Matrix; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Matrix` [INFO] [stdout] --> src/matrix/mod.rs:59:18 [INFO] [stdout] | [INFO] [stdout] 59 | let m2 = Matrix::construct_empty_4x4(); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 49 | use crate::Matrix; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Matrix` [INFO] [stdout] --> src/matrix/mod.rs:60:18 [INFO] [stdout] | [INFO] [stdout] 60 | let m3 = Matrix::construct_empty_3x3(); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 49 | use crate::Matrix; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Matrix` [INFO] [stdout] --> src/matrix/mod.rs:62:20 [INFO] [stdout] | [INFO] [stdout] 62 | assert_eq!(Matrix::are_equal(&m1, &m2), true); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 49 | use crate::Matrix; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Matrix` [INFO] [stdout] --> src/matrix/mod.rs:63:20 [INFO] [stdout] | [INFO] [stdout] 63 | assert_eq!(Matrix::are_equal(&m2, &m3), false); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 49 | use crate::Matrix; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Matrix` [INFO] [stdout] --> src/matrix/mod.rs:67:20 [INFO] [stdout] | [INFO] [stdout] 67 | assert_eq!(Matrix::are_equal(&m1, &m2), false); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 49 | use crate::Matrix; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/canvas/mod.rs:86:9 [INFO] [stdout] | [INFO] [stdout] 86 | file.write(header.as_bytes()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/canvas/mod.rs:87:9 [INFO] [stdout] | [INFO] [stdout] 87 | file.write(data.as_bytes()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 25 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 89 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0422, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0422`. [INFO] [stdout] [INFO] [stderr] error: could not compile `ray_tracer` due to 90 previous errors [INFO] [stderr] error: failed to check after updating to 2021 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "bdfd2de39201a3fe029786df615f1a76b97e40cf6b3da9a29d714c0290bc8d9f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bdfd2de39201a3fe029786df615f1a76b97e40cf6b3da9a29d714c0290bc8d9f", kill_on_drop: false }` [INFO] [stdout] bdfd2de39201a3fe029786df615f1a76b97e40cf6b3da9a29d714c0290bc8d9f