[INFO] cloning repository https://github.com/eatrero/rust_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/eatrero/rust_ray_tracer" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Featrero%2Frust_ray_tracer", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Featrero%2Frust_ray_tracer'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 8f1f3d20c2cfaf825116eb00e0ea657349f1ab07 [INFO] checking eatrero/rust_ray_tracer against try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Featrero%2Frust_ray_tracer" "/workspace/builds/worker-30/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-30/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/eatrero/rust_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/eatrero/rust_ray_tracer [INFO] finished tweaking git repo https://github.com/eatrero/rust_ray_tracer [INFO] tweaked toml for git repo https://github.com/eatrero/rust_ray_tracer written to /workspace/builds/worker-30/source/Cargo.toml [INFO] crate git repo https://github.com/eatrero/rust_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] Updating git repository `https://github.com/rust-lang/rand` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-30/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-30/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] c6826b966e14430a47811f682b898479a381a451019bc020c4a5f86a372c51c3 [INFO] running `Command { std: "docker" "start" "-a" "c6826b966e14430a47811f682b898479a381a451019bc020c4a5f86a372c51c3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c6826b966e14430a47811f682b898479a381a451019bc020c4a5f86a372c51c3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c6826b966e14430a47811f682b898479a381a451019bc020c4a5f86a372c51c3", kill_on_drop: false }` [INFO] [stdout] c6826b966e14430a47811f682b898479a381a451019bc020c4a5f86a372c51c3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-30/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-30/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] 9981b99496d562c8b3ca7a828bbd5de3291c8eef1a63f8da2fcdf6888ab75d57 [INFO] running `Command { std: "docker" "start" "-a" "9981b99496d562c8b3ca7a828bbd5de3291c8eef1a63f8da2fcdf6888ab75d57", 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] Compiling autocfg v0.1.2 [INFO] [stderr] Checking rand_core v0.4.0 (https://github.com/rust-lang/rand#8d7d0b6d) [INFO] [stderr] Compiling libc v0.2.50 [INFO] [stderr] Compiling arrayvec v0.4.10 [INFO] [stderr] Checking nodrop v0.1.13 [INFO] [stderr] Checking cfg-if v0.1.7 [INFO] [stderr] Checking scopeguard v0.3.3 [INFO] [stderr] Compiling rayon-core v1.4.1 [INFO] [stderr] Checking lazy_static v1.3.0 [INFO] [stderr] Checking memoffset v0.2.1 [INFO] [stderr] Compiling rayon v1.0.3 [INFO] [stderr] Checking either v1.5.2 [INFO] [stderr] Checking crossbeam-utils v0.2.2 [INFO] [stderr] Compiling rand_pcg v0.1.2 (https://github.com/rust-lang/rand#8d7d0b6d) [INFO] [stderr] Compiling rand_chacha v0.1.1 (https://github.com/rust-lang/rand#8d7d0b6d) [INFO] [stderr] Compiling rand v0.6.5 (https://github.com/rust-lang/rand#8d7d0b6d) [INFO] [stderr] Checking rand_jitter v0.1.3 (https://github.com/rust-lang/rand#8d7d0b6d) [INFO] [stderr] Checking rand_xorshift v0.1.1 (https://github.com/rust-lang/rand#8d7d0b6d) [INFO] [stderr] Checking rand_hc v0.1.0 (https://github.com/rust-lang/rand#8d7d0b6d) [INFO] [stderr] Checking rand_isaac v0.1.1 (https://github.com/rust-lang/rand#8d7d0b6d) [INFO] [stderr] Checking num_cpus v1.10.0 [INFO] [stderr] Checking rand_os v0.1.3 (https://github.com/rust-lang/rand#8d7d0b6d) [INFO] [stderr] Checking crossbeam-epoch v0.3.1 [INFO] [stderr] Checking crossbeam-deque v0.2.0 [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/intersections/mod.rs (3 fixes) [INFO] [stderr] Fixed src/ray/mod.rs (2 fixes) [INFO] [stderr] Fixed src/world/mod.rs (2 fixes) [INFO] [stderr] Fixed src/transform/mod.rs (1 fix) [INFO] [stderr] Fixed src/pattern/checker.rs (2 fixes) [INFO] [stderr] Fixed src/shape/mod.rs (2 fixes) [INFO] [stderr] Fixed src/pattern/ring.rs (2 fixes) [INFO] [stderr] Fixed src/camera/mod.rs (2 fixes) [INFO] [stderr] Fixed src/light/mod.rs (2 fixes) [INFO] [stderr] Fixed src/pattern/gradient.rs (2 fixes) [INFO] [stderr] Fixed src/pattern/stripe.rs (2 fixes) [INFO] [stderr] Fixed src/shape/sphere.rs (4 fixes) [INFO] [stderr] Fixed src/material/mod.rs (4 fixes) [INFO] [stderr] Fixed src/pattern/mod.rs (3 fixes) [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/world/mod.rs:198:5 [INFO] [stdout] | [INFO] [stdout] 196 | return Color::mult(color, comps.object.material.transparency); [INFO] [stdout] | ------------------------------------------------------------- any code following this expression is unreachable [INFO] [stdout] 197 | [INFO] [stdout] 198 | return color; [INFO] [stdout] | ^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/canvas/mod.rs:42:65 [INFO] [stdout] | [INFO] [stdout] 42 | Err(why) => panic!("couldn't create {}: {}", display, why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/canvas/mod.rs:49:67 [INFO] [stdout] | [INFO] [stdout] 49 | Err(why) => panic!("couldn't write to {}: {}", display, why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/light/mod.rs (3 fixes) [INFO] [stderr] Fixed src/material/mod.rs (1 fix) [INFO] [stderr] Fixed src/shape/sphere.rs (2 fixes) [INFO] [stderr] Fixed src/shape/plane.rs (7 fixes) [INFO] [stderr] Fixed src/pattern/mod.rs (1 fix) [INFO] [stderr] Fixed src/pattern/stripe.rs (5 fixes) [INFO] [stderr] Fixed src/shape/mod.rs (3 fixes) [INFO] [stderr] Fixed src/pattern/checker.rs (4 fixes) [INFO] [stderr] Fixed src/pattern/gradient.rs (4 fixes) [INFO] [stderr] Fixed src/camera/mod.rs (7 fixes) [INFO] [stderr] Fixed src/pattern/ring.rs (4 fixes) [INFO] [stderr] Fixed src/world/mod.rs (10 fixes) [INFO] [stderr] Fixed src/main.rs (7 fixes) [INFO] [stderr] Fixed src/intersections/mod.rs (3 fixes) [INFO] [stdout] warning: associated function is never used: `is_a_point` [INFO] [stdout] --> src/vectors/mod.rs:19:10 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn is_a_point(&self) -> 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: `is_a_vector` [INFO] [stdout] --> src/vectors/mod.rs:22:10 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn is_a_vector(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `equals` [INFO] [stdout] --> src/vectors/mod.rs:25:10 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn equals(&self, p: Tuple) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `approx_equals` [INFO] [stdout] --> src/vectors/mod.rs:31:10 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn approx_equals(&self, p: Tuple) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/world/mod.rs:22:10 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn new(pos: Tuple, vel: Tuple) -> Proj { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `wind` [INFO] [stdout] --> src/world/mod.rs:29:3 [INFO] [stdout] | [INFO] [stdout] 29 | wind: Tuple, // vector [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `grav` [INFO] [stdout] --> src/world/mod.rs:30:3 [INFO] [stdout] | [INFO] [stdout] 30 | grav: Tuple, // vector [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/world/mod.rs:34:10 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn new(wind: Tuple, grav: Tuple) -> Env { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `tick` [INFO] [stdout] --> src/world/mod.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn tick(env: Env, proj: Proj) -> Proj { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `default_world` [INFO] [stdout] --> src/world/mod.rs:68:10 [INFO] [stdout] | [INFO] [stdout] 68 | pub fn default_world() -> World { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `default_world2` [INFO] [stdout] --> src/world/mod.rs:87:10 [INFO] [stdout] | [INFO] [stdout] 87 | pub fn default_world2() -> World { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `negate` [INFO] [stdout] --> src/colors/mod.rs:19:10 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn negate(&self) -> Color { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `div` [INFO] [stdout] --> src/colors/mod.rs:28:10 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn div(c: Color, a: f64) -> Color { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `equals` [INFO] [stdout] --> src/colors/mod.rs:31:10 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn equals(a: Color, b: Color) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `approx_equals` [INFO] [stdout] --> src/colors/mod.rs:34:10 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn approx_equals(a: Color, b: Color) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get` [INFO] [stdout] --> src/canvas/mod.rs:28:10 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn get(&mut self, x: usize, y: usize) -> Color { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set` [INFO] [stdout] --> src/matrix/mod.rs:23:10 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn set(&mut self, r: usize, c: usize, d: f64) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `equals` [INFO] [stdout] --> src/matrix/mod.rs:27:10 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn equals(a: &Matrix, b: &Matrix) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `approx_equals` [INFO] [stdout] --> src/matrix/mod.rs:41:10 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn approx_equals(a: &Matrix, b: &Matrix) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `minor` [INFO] [stdout] --> src/matrix/mod.rs:140:10 [INFO] [stdout] | [INFO] [stdout] 140 | pub fn minor(a: &Matrix, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `rotate_z` [INFO] [stdout] --> src/transform/mod.rs:83:10 [INFO] [stdout] | [INFO] [stdout] 83 | pub fn rotate_z(&self, rot: f64) -> Transform { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `shear` [INFO] [stdout] --> src/transform/mod.rs:108:10 [INFO] [stdout] | [INFO] [stdout] 108 | pub fn shear(&self, xy: f64, xz: f64, yx: f64, yz: f64, zx: f64, zy: f64) -> Transform { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/shape/plane.rs:20:10 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn new() -> Plane { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_transform` [INFO] [stdout] --> src/shape/plane.rs:42:10 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn set_transform(object: &mut Shape, transform: Matrix) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/shape/sphere.rs:22:10 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn new(origin: Tuple, radius: f64) -> Sphere { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_transform` [INFO] [stdout] --> src/shape/sphere.rs:65:10 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn set_transform(object: &mut Shape, transform: Matrix) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Test` [INFO] [stdout] --> src/shape/mod.rs:18:3 [INFO] [stdout] | [INFO] [stdout] 18 | Test, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `glass_sphere` [INFO] [stdout] --> src/shape/mod.rs:42:10 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn glass_sphere() -> Shape { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_transform` [INFO] [stdout] --> src/shape/mod.rs:61:10 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn set_transform(&mut self, transform: Matrix) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `fov` [INFO] [stdout] --> src/camera/mod.rs:18:3 [INFO] [stdout] | [INFO] [stdout] 18 | fov: f64, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/pattern/checker.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn new(color1: Color, color2: Color) -> Checker { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/pattern/gradient.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn new(color1: Color, color2: Color) -> Gradient { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/pattern/ring.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn new(color1: Color, color2: Color) -> Ring { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/pattern/stripe.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn new(color1: Color, color2: Color) -> Stripe { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Gradient` [INFO] [stdout] --> src/pattern/mod.rs:15:3 [INFO] [stdout] | [INFO] [stdout] 15 | Gradient, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Ring` [INFO] [stdout] --> src/pattern/mod.rs:16:3 [INFO] [stdout] | [INFO] [stdout] 16 | Ring, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Stripe` [INFO] [stdout] --> src/pattern/mod.rs:17:3 [INFO] [stdout] | [INFO] [stdout] 17 | Stripe, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Test` [INFO] [stdout] --> src/pattern/mod.rs:18:3 [INFO] [stdout] | [INFO] [stdout] 18 | Test, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_transform` [INFO] [stdout] --> src/pattern/mod.rs:55:10 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn set_transform(&mut self, transform: Matrix) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 42 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PatternType` [INFO] [stdout] --> src/world/mod.rs:529:5 [INFO] [stdout] | [INFO] [stdout] 529 | PatternType::Test, [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `PatternType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ShapeType` [INFO] [stdout] --> src/intersections/mod.rs:168:22 [INFO] [stdout] | [INFO] [stdout] 168 | let s = Shape::new(ShapeType::Sphere); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `ShapeType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ShapeType` [INFO] [stdout] --> src/intersections/mod.rs:178:22 [INFO] [stdout] | [INFO] [stdout] 178 | let s = Shape::new(ShapeType::Sphere); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `ShapeType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ShapeType` [INFO] [stdout] --> src/intersections/mod.rs:193:22 [INFO] [stdout] | [INFO] [stdout] 193 | let s = Shape::new(ShapeType::Sphere); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `ShapeType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ShapeType` [INFO] [stdout] --> src/intersections/mod.rs:204:22 [INFO] [stdout] | [INFO] [stdout] 204 | let s = Shape::new(ShapeType::Sphere); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `ShapeType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ShapeType` [INFO] [stdout] --> src/intersections/mod.rs:221:22 [INFO] [stdout] | [INFO] [stdout] 221 | let s = Shape::new(ShapeType::Sphere); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `ShapeType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ShapeType` [INFO] [stdout] --> src/intersections/mod.rs:239:22 [INFO] [stdout] | [INFO] [stdout] 239 | let s = Shape::new(ShapeType::Sphere); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `ShapeType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ShapeType` [INFO] [stdout] --> src/intersections/mod.rs:254:22 [INFO] [stdout] | [INFO] [stdout] 254 | let s = Shape::new(ShapeType::Sphere); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `ShapeType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ShapeType` [INFO] [stdout] --> src/intersections/mod.rs:278:22 [INFO] [stdout] | [INFO] [stdout] 278 | let s = Shape::new(ShapeType::Sphere); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `ShapeType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ShapeType` [INFO] [stdout] --> src/intersections/mod.rs:294:22 [INFO] [stdout] | [INFO] [stdout] 294 | let s = Shape::new(ShapeType::Sphere); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `ShapeType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ShapeType` [INFO] [stdout] --> src/intersections/mod.rs:306:22 [INFO] [stdout] | [INFO] [stdout] 306 | let s = Shape::new(ShapeType::Sphere); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `ShapeType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ShapeType` [INFO] [stdout] --> src/intersections/mod.rs:321:26 [INFO] [stdout] | [INFO] [stdout] 321 | let mut s = Shape::new(ShapeType::Sphere); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `ShapeType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ShapeType` [INFO] [stdout] --> src/intersections/mod.rs:336:26 [INFO] [stdout] | [INFO] [stdout] 336 | let shape = Shape::new(ShapeType::Plane); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `ShapeType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ShapeType` [INFO] [stdout] --> src/shape/sphere.rs:81:22 [INFO] [stdout] | [INFO] [stdout] 81 | let s = Shape::new(ShapeType::Sphere); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `ShapeType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ShapeType` [INFO] [stdout] --> src/shape/sphere.rs:94:22 [INFO] [stdout] | [INFO] [stdout] 94 | let s = Shape::new(ShapeType::Sphere); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `ShapeType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ShapeType` [INFO] [stdout] --> src/shape/sphere.rs:107:22 [INFO] [stdout] | [INFO] [stdout] 107 | let s = Shape::new(ShapeType::Sphere); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `ShapeType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ShapeType` [INFO] [stdout] --> src/shape/sphere.rs:118:22 [INFO] [stdout] | [INFO] [stdout] 118 | let s = Shape::new(ShapeType::Sphere); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `ShapeType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ShapeType` [INFO] [stdout] --> src/shape/sphere.rs:132:22 [INFO] [stdout] | [INFO] [stdout] 132 | let s = Shape::new(ShapeType::Sphere); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `ShapeType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ShapeType` [INFO] [stdout] --> src/shape/sphere.rs:142:22 [INFO] [stdout] | [INFO] [stdout] 142 | let s = Shape::new(ShapeType::Sphere); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `ShapeType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ShapeType` [INFO] [stdout] --> src/shape/sphere.rs:151:26 [INFO] [stdout] | [INFO] [stdout] 151 | let mut s = Shape::new(ShapeType::Sphere); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `ShapeType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ShapeType` [INFO] [stdout] --> src/shape/sphere.rs:162:26 [INFO] [stdout] | [INFO] [stdout] 162 | let mut s = Shape::new(ShapeType::Sphere); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `ShapeType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ShapeType` [INFO] [stdout] --> src/shape/sphere.rs:175:26 [INFO] [stdout] | [INFO] [stdout] 175 | let mut s = Shape::new(ShapeType::Sphere); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `ShapeType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ShapeType` [INFO] [stdout] --> src/shape/sphere.rs:185:22 [INFO] [stdout] | [INFO] [stdout] 185 | let s = Shape::new(ShapeType::Sphere); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `ShapeType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ShapeType` [INFO] [stdout] --> src/shape/sphere.rs:193:22 [INFO] [stdout] | [INFO] [stdout] 193 | let s = Shape::new(ShapeType::Sphere); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `ShapeType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ShapeType` [INFO] [stdout] --> src/shape/sphere.rs:201:22 [INFO] [stdout] | [INFO] [stdout] 201 | let s = Shape::new(ShapeType::Sphere); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `ShapeType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ShapeType` [INFO] [stdout] --> src/shape/sphere.rs:209:22 [INFO] [stdout] | [INFO] [stdout] 209 | let s = Shape::new(ShapeType::Sphere); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `ShapeType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ShapeType` [INFO] [stdout] --> src/shape/sphere.rs:218:22 [INFO] [stdout] | [INFO] [stdout] 218 | let s = Shape::new(ShapeType::Sphere); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `ShapeType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ShapeType` [INFO] [stdout] --> src/shape/sphere.rs:229:26 [INFO] [stdout] | [INFO] [stdout] 229 | let mut s = Shape::new(ShapeType::Sphere); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `ShapeType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ShapeType` [INFO] [stdout] --> src/shape/sphere.rs:240:26 [INFO] [stdout] | [INFO] [stdout] 240 | let mut s = Shape::new(ShapeType::Sphere); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `ShapeType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ShapeType` [INFO] [stdout] --> src/light/mod.rs:85:22 [INFO] [stdout] | [INFO] [stdout] 85 | let o = Shape::new(ShapeType::Sphere); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `ShapeType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ShapeType` [INFO] [stdout] --> src/light/mod.rs:100:22 [INFO] [stdout] | [INFO] [stdout] 100 | let o = Shape::new(ShapeType::Sphere); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `ShapeType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ShapeType` [INFO] [stdout] --> src/light/mod.rs:115:22 [INFO] [stdout] | [INFO] [stdout] 115 | let o = Shape::new(ShapeType::Sphere); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `ShapeType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ShapeType` [INFO] [stdout] --> src/light/mod.rs:133:22 [INFO] [stdout] | [INFO] [stdout] 133 | let o = Shape::new(ShapeType::Sphere); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `ShapeType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ShapeType` [INFO] [stdout] --> src/light/mod.rs:151:22 [INFO] [stdout] | [INFO] [stdout] 151 | let o = Shape::new(ShapeType::Sphere); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `ShapeType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ShapeType` [INFO] [stdout] --> src/light/mod.rs:167:22 [INFO] [stdout] | [INFO] [stdout] 167 | let o = Shape::new(ShapeType::Sphere); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `ShapeType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PatternType` [INFO] [stdout] --> src/material/mod.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 54 | PatternType::Stripe, [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `PatternType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ShapeType` [INFO] [stdout] --> src/material/mod.rs:66:26 [INFO] [stdout] | [INFO] [stdout] 66 | let mut o = Shape::new(ShapeType::Sphere); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `ShapeType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PatternType` [INFO] [stdout] --> src/pattern/checker.rs:39:30 [INFO] [stdout] | [INFO] [stdout] 39 | let pattern = Pattern::new(PatternType::Checker, white, black); [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `PatternType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PatternType` [INFO] [stdout] --> src/pattern/checker.rs:59:30 [INFO] [stdout] | [INFO] [stdout] 59 | let pattern = Pattern::new(PatternType::Checker, white, black); [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `PatternType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PatternType` [INFO] [stdout] --> src/pattern/checker.rs:79:30 [INFO] [stdout] | [INFO] [stdout] 79 | let pattern = Pattern::new(PatternType::Checker, white, black); [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `PatternType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PatternType` [INFO] [stdout] --> src/pattern/gradient.rs:35:30 [INFO] [stdout] | [INFO] [stdout] 35 | let pattern = Pattern::new(PatternType::Gradient, white, black); [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `PatternType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PatternType` [INFO] [stdout] --> src/pattern/ring.rs:36:30 [INFO] [stdout] | [INFO] [stdout] 36 | let pattern = Pattern::new(PatternType::Ring, white, black); [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `PatternType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PatternType` [INFO] [stdout] --> src/pattern/stripe.rs:42:30 [INFO] [stdout] | [INFO] [stdout] 42 | let pattern = Pattern::new(PatternType::Stripe, white, black); [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `PatternType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PatternType` [INFO] [stdout] --> src/pattern/stripe.rs:52:30 [INFO] [stdout] | [INFO] [stdout] 52 | let pattern = Pattern::new(PatternType::Stripe, white, black); [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `PatternType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PatternType` [INFO] [stdout] --> src/pattern/stripe.rs:81:30 [INFO] [stdout] | [INFO] [stdout] 81 | let pattern = Pattern::new(PatternType::Stripe, white, black); [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `PatternType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PatternType` [INFO] [stdout] --> src/pattern/stripe.rs:111:30 [INFO] [stdout] | [INFO] [stdout] 111 | let pattern = Pattern::new(PatternType::Stripe, white, black); [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `PatternType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ShapeType` [INFO] [stdout] --> src/pattern/mod.rs:71:31 [INFO] [stdout] | [INFO] [stdout] 71 | let mut object = Shape::new(ShapeType::Sphere); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `ShapeType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ShapeType` [INFO] [stdout] --> src/pattern/mod.rs:88:31 [INFO] [stdout] | [INFO] [stdout] 88 | let mut object = Shape::new(ShapeType::Sphere); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `ShapeType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ShapeType` [INFO] [stdout] --> src/pattern/mod.rs:105:31 [INFO] [stdout] | [INFO] [stdout] 105 | let mut object = Shape::new(ShapeType::Sphere); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `ShapeType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ShapeType` [INFO] [stdout] --> src/pattern/mod.rs:124:31 [INFO] [stdout] | [INFO] [stdout] 124 | let mut object = Shape::new(ShapeType::Sphere); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `ShapeType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ShapeType` [INFO] [stdout] --> src/pattern/mod.rs:141:31 [INFO] [stdout] | [INFO] [stdout] 141 | let mut object = Shape::new(ShapeType::Sphere); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `ShapeType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ShapeType` [INFO] [stdout] --> src/pattern/mod.rs:158:31 [INFO] [stdout] | [INFO] [stdout] 158 | let mut object = Shape::new(ShapeType::Sphere); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `ShapeType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `vector` in this scope [INFO] [stdout] --> src/world/mod.rs:253:40 [INFO] [stdout] | [INFO] [stdout] 253 | let r = Ray::new(point(0., 0., -5.), vector(0., 0., 1.)); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::vector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `vector` in this scope [INFO] [stdout] --> src/world/mod.rs:266:40 [INFO] [stdout] | [INFO] [stdout] 266 | let r = Ray::new(point(0., 0., -5.), vector(0., 0., 1.)); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::vector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `vector` in this scope [INFO] [stdout] --> src/world/mod.rs:284:39 [INFO] [stdout] | [INFO] [stdout] 284 | let r = Ray::new(point(0., 0., 0.), vector(0., 0., 1.)); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::vector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `vector` in this scope [INFO] [stdout] --> src/world/mod.rs:300:40 [INFO] [stdout] | [INFO] [stdout] 300 | let r = Ray::new(point(0., 0., -5.), vector(0., 1., 0.)); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::vector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `vector` in this scope [INFO] [stdout] --> src/world/mod.rs:309:40 [INFO] [stdout] | [INFO] [stdout] 309 | let r = Ray::new(point(0., 0., -5.), vector(0., 0., 1.)); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::vector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `vector` in this scope [INFO] [stdout] --> src/world/mod.rs:322:41 [INFO] [stdout] | [INFO] [stdout] 322 | let r = Ray::new(point(0., 0., 0.75), vector(0., 0., -1.)); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::vector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `vector` in this scope [INFO] [stdout] --> src/world/mod.rs:367:39 [INFO] [stdout] | [INFO] [stdout] 367 | let r = Ray::new(point(0., 0., 0.), vector(0., 0., 1.)); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::vector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `vector` in this scope [INFO] [stdout] --> src/world/mod.rs:391:40 [INFO] [stdout] | [INFO] [stdout] 391 | let r = Ray::new(point(0., 0., -3.), vector(0., -half_root2, half_root2)); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::vector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `vector` in this scope [INFO] [stdout] --> src/world/mod.rs:414:40 [INFO] [stdout] | [INFO] [stdout] 414 | let r = Ray::new(point(0., 0., -3.), vector(0., -half_root2, half_root2)); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::vector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `vector` in this scope [INFO] [stdout] --> src/world/mod.rs:444:39 [INFO] [stdout] | [INFO] [stdout] 444 | let r = Ray::new(point(0., 0., 0.), vector(0., 1., 0.)); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::vector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `vector` in this scope [INFO] [stdout] --> src/world/mod.rs:460:40 [INFO] [stdout] | [INFO] [stdout] 460 | let r = Ray::new(point(0., 0., -3.), vector(0., -half_root2, half_root2)); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::vector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `vector` in this scope [INFO] [stdout] --> src/world/mod.rs:473:40 [INFO] [stdout] | [INFO] [stdout] 473 | let r = Ray::new(point(0., 0., -5.), vector(0., 0., 1.)); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::vector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `vector` in this scope [INFO] [stdout] --> src/world/mod.rs:488:40 [INFO] [stdout] | [INFO] [stdout] 488 | let r = Ray::new(point(0., 0., -5.), vector(0., 0., 1.)); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::vector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `vector` in this scope [INFO] [stdout] --> src/world/mod.rs:506:47 [INFO] [stdout] | [INFO] [stdout] 506 | let r = Ray::new(point(0., 0., half_root2), vector(0., 1., 0.)); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::vector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `vector` in this scope [INFO] [stdout] --> src/world/mod.rs:524:40 [INFO] [stdout] | [INFO] [stdout] 524 | let r = Ray::new(point(0., 0., 0.1), vector(0., 1., 0.)); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::vector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Pattern` [INFO] [stdout] --> src/world/mod.rs:528:17 [INFO] [stdout] | [INFO] [stdout] 528 | let pattern = Pattern::new( [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use core::str::pattern::Pattern; [INFO] [stdout] | [INFO] [stdout] 1 | use crate::Pattern; [INFO] [stdout] | [INFO] [stdout] 1 | use std::str::pattern::Pattern; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `vector` in this scope [INFO] [stdout] --> src/world/mod.rs:570:41 [INFO] [stdout] | [INFO] [stdout] 570 | let r = Ray::new(point(0., 0., -3.0), vector(0., -half_root2, half_root2)); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::vector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `vector` in this scope [INFO] [stdout] --> src/world/mod.rs:588:41 [INFO] [stdout] | [INFO] [stdout] 588 | let r = Ray::new(point(0., 0., -3.0), vector(0., -half_root2, half_root2)); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::vector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/transform/mod.rs:138:11 [INFO] [stdout] | [INFO] [stdout] 138 | let p = point(-3., 4., 5.); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/transform/mod.rs:141:18 [INFO] [stdout] | [INFO] [stdout] 141 | let expected = point(2., 1., 7.); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/transform/mod.rs:148:11 [INFO] [stdout] | [INFO] [stdout] 148 | let p = point(-3., 4., 5.); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/transform/mod.rs:152:18 [INFO] [stdout] | [INFO] [stdout] 152 | let expected = point(-8., 7., 3.); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `vector` in this scope [INFO] [stdout] --> src/transform/mod.rs:159:11 [INFO] [stdout] | [INFO] [stdout] 159 | let v = vector(-3., 4., 5.); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::vector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `vector` in this scope [INFO] [stdout] --> src/transform/mod.rs:162:18 [INFO] [stdout] | [INFO] [stdout] 162 | let expected = vector(-3., 4., 5.); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::vector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/transform/mod.rs:170:11 [INFO] [stdout] | [INFO] [stdout] 170 | let p = point(-4., 6., 8.); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/transform/mod.rs:172:18 [INFO] [stdout] | [INFO] [stdout] 172 | let expected = point(-8., 18., 32.); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `vector` in this scope [INFO] [stdout] --> src/transform/mod.rs:180:11 [INFO] [stdout] | [INFO] [stdout] 180 | let v = vector(-4., 6., 8.); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::vector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `vector` in this scope [INFO] [stdout] --> src/transform/mod.rs:182:18 [INFO] [stdout] | [INFO] [stdout] 182 | let expected = vector(-8., 18., 32.); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::vector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `vector` in this scope [INFO] [stdout] --> src/transform/mod.rs:191:11 [INFO] [stdout] | [INFO] [stdout] 191 | let v = vector(-4., 6., 8.); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::vector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `vector` in this scope [INFO] [stdout] --> src/transform/mod.rs:193:18 [INFO] [stdout] | [INFO] [stdout] 193 | let expected = vector(-2., 2., 2.); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::vector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/transform/mod.rs:200:11 [INFO] [stdout] | [INFO] [stdout] 200 | let p = point(2., 3., 4.); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/transform/mod.rs:202:18 [INFO] [stdout] | [INFO] [stdout] 202 | let expected = point(-2., 3., 4.); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/transform/mod.rs:211:11 [INFO] [stdout] | [INFO] [stdout] 211 | let p = point(0., 1., 0.); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/transform/mod.rs:213:13 [INFO] [stdout] | [INFO] [stdout] 213 | let ex1 = point(0., 2f64.sqrt() / 2., 2f64.sqrt() / 2.); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/transform/mod.rs:217:13 [INFO] [stdout] | [INFO] [stdout] 217 | let ex2 = point(0., 0., 1.); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/transform/mod.rs:223:11 [INFO] [stdout] | [INFO] [stdout] 223 | let p = point(0., 1., 0.); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/transform/mod.rs:225:13 [INFO] [stdout] | [INFO] [stdout] 225 | let ex1 = point(0., 2f64.sqrt() / 2., -2f64.sqrt() / 2.); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/transform/mod.rs:233:11 [INFO] [stdout] | [INFO] [stdout] 233 | let p = point(0., 0., 1.); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/transform/mod.rs:235:12 [INFO] [stdout] | [INFO] [stdout] 235 | let ex = point(2f64.sqrt() / 2., 0., 2f64.sqrt() / 2.); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/transform/mod.rs:239:13 [INFO] [stdout] | [INFO] [stdout] 239 | let ex2 = point(1., 0., 0.); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/transform/mod.rs:247:11 [INFO] [stdout] | [INFO] [stdout] 247 | let p = point(0., 1., 0.); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/transform/mod.rs:249:12 [INFO] [stdout] | [INFO] [stdout] 249 | let ex = point(-2f64.sqrt() / 2., 2f64.sqrt() / 2., 0.); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/transform/mod.rs:253:13 [INFO] [stdout] | [INFO] [stdout] 253 | let ex2 = point(-1., 0., 0.); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/transform/mod.rs:260:11 [INFO] [stdout] | [INFO] [stdout] 260 | let p = point(2., 3., 4.); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/transform/mod.rs:262:12 [INFO] [stdout] | [INFO] [stdout] 262 | let ex = point(5., 3., 4.); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/transform/mod.rs:269:11 [INFO] [stdout] | [INFO] [stdout] 269 | let p = point(2., 3., 4.); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/transform/mod.rs:271:12 [INFO] [stdout] | [INFO] [stdout] 271 | let ex = point(6., 3., 4.); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/transform/mod.rs:278:11 [INFO] [stdout] | [INFO] [stdout] 278 | let p = point(2., 3., 4.); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/transform/mod.rs:280:12 [INFO] [stdout] | [INFO] [stdout] 280 | let ex = point(2., 5., 4.); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/transform/mod.rs:287:11 [INFO] [stdout] | [INFO] [stdout] 287 | let p = point(2., 3., 4.); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/transform/mod.rs:289:12 [INFO] [stdout] | [INFO] [stdout] 289 | let ex = point(2., 7., 4.); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/transform/mod.rs:296:11 [INFO] [stdout] | [INFO] [stdout] 296 | let p = point(2., 3., 4.); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/transform/mod.rs:298:12 [INFO] [stdout] | [INFO] [stdout] 298 | let ex = point(2., 3., 6.); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/transform/mod.rs:305:11 [INFO] [stdout] | [INFO] [stdout] 305 | let p = point(2., 3., 4.); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/transform/mod.rs:307:12 [INFO] [stdout] | [INFO] [stdout] 307 | let ex = point(2., 3., 7.); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/transform/mod.rs:313:11 [INFO] [stdout] | [INFO] [stdout] 313 | let p = point(1., 0., 1.); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/transform/mod.rs:319:13 [INFO] [stdout] | [INFO] [stdout] 319 | let ex1 = point(1., -1., 0.); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/transform/mod.rs:323:13 [INFO] [stdout] | [INFO] [stdout] 323 | let ex2 = point(5., -5., 0.); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/transform/mod.rs:327:13 [INFO] [stdout] | [INFO] [stdout] 327 | let ex3 = point(15., 0., 7.); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/transform/mod.rs:333:11 [INFO] [stdout] | [INFO] [stdout] 333 | let p = point(1., 0., 1.); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/transform/mod.rs:340:12 [INFO] [stdout] | [INFO] [stdout] 340 | let ex = point(15., 0., 7.); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/transform/mod.rs:346:14 [INFO] [stdout] | [INFO] [stdout] 346 | let from = point(0., 0., 0.); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/transform/mod.rs:347:12 [INFO] [stdout] | [INFO] [stdout] 347 | let to = point(0., 0., -1.); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `vector` in this scope [INFO] [stdout] --> src/transform/mod.rs:348:12 [INFO] [stdout] | [INFO] [stdout] 348 | let up = vector(0., 1., 0.); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::vector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/transform/mod.rs:356:14 [INFO] [stdout] | [INFO] [stdout] 356 | let from = point(0., 0., 0.); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/transform/mod.rs:357:12 [INFO] [stdout] | [INFO] [stdout] 357 | let to = point(0., 0., 1.); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `vector` in this scope [INFO] [stdout] --> src/transform/mod.rs:358:12 [INFO] [stdout] | [INFO] [stdout] 358 | let up = vector(0., 1., 0.); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::vector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/transform/mod.rs:366:14 [INFO] [stdout] | [INFO] [stdout] 366 | let from = point(0., 0., 8.); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/transform/mod.rs:367:12 [INFO] [stdout] | [INFO] [stdout] 367 | let to = point(0., 0., 0.); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `vector` in this scope [INFO] [stdout] --> src/transform/mod.rs:368:12 [INFO] [stdout] | [INFO] [stdout] 368 | let up = vector(0., 1., 0.); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::vector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/transform/mod.rs:377:14 [INFO] [stdout] | [INFO] [stdout] 377 | let from = point(1., 3., 2.); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/transform/mod.rs:378:12 [INFO] [stdout] | [INFO] [stdout] 378 | let to = point(4., -2., 8.); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `vector` in this scope [INFO] [stdout] --> src/transform/mod.rs:379:12 [INFO] [stdout] | [INFO] [stdout] 379 | let up = vector(1., 1., 0.); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::vector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/intersections/mod.rs:192:20 [INFO] [stdout] | [INFO] [stdout] 192 | let r = Ray::new(point(0., 0., 5.), vector(0., 0., 1.)); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `vector` in this scope [INFO] [stdout] --> src/intersections/mod.rs:192:39 [INFO] [stdout] | [INFO] [stdout] 192 | let r = Ray::new(point(0., 0., 5.), vector(0., 0., 1.)); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::vector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/intersections/mod.rs:277:20 [INFO] [stdout] | [INFO] [stdout] 277 | let r = Ray::new(point(0., 0., -5.), vector(0., 0., 1.)); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `vector` in this scope [INFO] [stdout] --> src/intersections/mod.rs:277:40 [INFO] [stdout] | [INFO] [stdout] 277 | let r = Ray::new(point(0., 0., -5.), vector(0., 0., 1.)); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::vector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/intersections/mod.rs:286:33 [INFO] [stdout] | [INFO] [stdout] 286 | assert_eq!(comps.point.equals(point(0., 0., -1.)), true); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `vector` in this scope [INFO] [stdout] --> src/intersections/mod.rs:287:32 [INFO] [stdout] | [INFO] [stdout] 287 | assert_eq!(comps.eyev.equals(vector(0., 0., -1.)), true); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::vector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `vector` in this scope [INFO] [stdout] --> src/intersections/mod.rs:288:35 [INFO] [stdout] | [INFO] [stdout] 288 | assert_eq!(comps.normalv.equals(vector(0., 0., -1.)), true); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::vector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/intersections/mod.rs:293:20 [INFO] [stdout] | [INFO] [stdout] 293 | let r = Ray::new(point(0., 0., -5.), vector(0., 0., 1.)); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `vector` in this scope [INFO] [stdout] --> src/intersections/mod.rs:293:40 [INFO] [stdout] | [INFO] [stdout] 293 | let r = Ray::new(point(0., 0., -5.), vector(0., 0., 1.)); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::vector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/intersections/mod.rs:305:20 [INFO] [stdout] | [INFO] [stdout] 305 | let r = Ray::new(point(0., 0., 0.), vector(0., 0., 1.)); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `vector` in this scope [INFO] [stdout] --> src/intersections/mod.rs:305:39 [INFO] [stdout] | [INFO] [stdout] 305 | let r = Ray::new(point(0., 0., 0.), vector(0., 0., 1.)); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::vector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/intersections/mod.rs:313:33 [INFO] [stdout] | [INFO] [stdout] 313 | assert_eq!(comps.point.equals(point(0., 0., 1.)), true); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `vector` in this scope [INFO] [stdout] --> src/intersections/mod.rs:314:32 [INFO] [stdout] | [INFO] [stdout] 314 | assert_eq!(comps.eyev.equals(vector(0., 0., -1.)), true); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::vector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `vector` in this scope [INFO] [stdout] --> src/intersections/mod.rs:315:35 [INFO] [stdout] | [INFO] [stdout] 315 | assert_eq!(comps.normalv.equals(vector(0., 0., -1.)), true); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::vector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/intersections/mod.rs:320:20 [INFO] [stdout] | [INFO] [stdout] 320 | let r = Ray::new(point(0., 0., -5.), vector(0., 0., 1.)); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `vector` in this scope [INFO] [stdout] --> src/intersections/mod.rs:320:40 [INFO] [stdout] | [INFO] [stdout] 320 | let r = Ray::new(point(0., 0., -5.), vector(0., 0., 1.)); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::vector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Transform` [INFO] [stdout] --> src/intersections/mod.rs:322:17 [INFO] [stdout] | [INFO] [stdout] 322 | s.transform = Transform::new().translate(0., 0., 1.).transform; [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::Transform; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/intersections/mod.rs:335:20 [INFO] [stdout] | [INFO] [stdout] 335 | let r = Ray::new(point(0., 1., -1.), vector(0., -half_root2, half_root2)); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `vector` in this scope [INFO] [stdout] --> src/intersections/mod.rs:335:40 [INFO] [stdout] | [INFO] [stdout] 335 | let r = Ray::new(point(0., 1., -1.), vector(0., -half_root2, half_root2)); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::vector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `vector` in this scope [INFO] [stdout] --> src/intersections/mod.rs:343:27 [INFO] [stdout] | [INFO] [stdout] 343 | comps.reflectv.equals(vector(0.0, half_root2, half_root2)), [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::vector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/intersections/mod.rs:350:20 [INFO] [stdout] | [INFO] [stdout] 350 | let r = Ray::new(point(0., 0., -5.), vector(0., 0., 1.0)); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `vector` in this scope [INFO] [stdout] --> src/intersections/mod.rs:350:40 [INFO] [stdout] | [INFO] [stdout] 350 | let r = Ray::new(point(0., 0., -5.), vector(0., 0., 1.0)); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::vector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Transform` [INFO] [stdout] --> src/intersections/mod.rs:352:12 [INFO] [stdout] | [INFO] [stdout] 352 | let tx = Transform::new().translate(0., 0., 1.).transform; [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::Transform; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/intersections/mod.rs:365:20 [INFO] [stdout] | [INFO] [stdout] 365 | let r = Ray::new(point(0., 0., 2.0f64.sqrt() / 2.), vector(0., 1., 0.)); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `vector` in this scope [INFO] [stdout] --> src/intersections/mod.rs:365:55 [INFO] [stdout] | [INFO] [stdout] 365 | let r = Ray::new(point(0., 0., 2.0f64.sqrt() / 2.), vector(0., 1., 0.)); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::vector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/intersections/mod.rs:378:20 [INFO] [stdout] | [INFO] [stdout] 378 | let r = Ray::new(point(0., 0., 0.), vector(0., 1., 0.)); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `vector` in this scope [INFO] [stdout] --> src/intersections/mod.rs:378:39 [INFO] [stdout] | [INFO] [stdout] 378 | let r = Ray::new(point(0., 0., 0.), vector(0., 1., 0.)); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::vector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/intersections/mod.rs:391:20 [INFO] [stdout] | [INFO] [stdout] 391 | let r = Ray::new(point(0., 0.99, -2.), vector(0., 0., 1.)); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `vector` in this scope [INFO] [stdout] --> src/intersections/mod.rs:391:42 [INFO] [stdout] | [INFO] [stdout] 391 | let r = Ray::new(point(0., 0.99, -2.), vector(0., 0., 1.)); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::vector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/ray/mod.rs:36:16 [INFO] [stdout] | [INFO] [stdout] 36 | let origin = point(2., 3., 4.); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `vector` in this scope [INFO] [stdout] --> src/ray/mod.rs:37:19 [INFO] [stdout] | [INFO] [stdout] 37 | let direction = vector(1., 0., 0.); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::vector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/ray/mod.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 41 | let e1 = point(2., 3., 4.); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/ray/mod.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | let e2 = point(3., 3., 4.); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/ray/mod.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 49 | let e3 = point(1., 3., 4.); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/ray/mod.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 53 | let e4 = point(4.5, 3., 4.); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/ray/mod.rs:59:20 [INFO] [stdout] | [INFO] [stdout] 59 | let r = Ray::new(point(1., 2., 3.), vector(0., 1., 0.)); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `vector` in this scope [INFO] [stdout] --> src/ray/mod.rs:59:39 [INFO] [stdout] | [INFO] [stdout] 59 | let r = Ray::new(point(1., 2., 3.), vector(0., 1., 0.)); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::vector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Transform` [INFO] [stdout] --> src/ray/mod.rs:60:11 [INFO] [stdout] | [INFO] [stdout] 60 | let m = Transform::new().translate(3., 4., 5.).transform; [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::Transform; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/ray/mod.rs:67:31 [INFO] [stdout] | [INFO] [stdout] 67 | assert_eq!(r2.origin.equals(point(4., 6., 8.)), true); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `vector` in this scope [INFO] [stdout] --> src/ray/mod.rs:68:34 [INFO] [stdout] | [INFO] [stdout] 68 | assert_eq!(r2.direction.equals(vector(0., 1., 0.)), true); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::vector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/ray/mod.rs:73:20 [INFO] [stdout] | [INFO] [stdout] 73 | let r = Ray::new(point(1., 2., 3.), vector(0., 1., 0.)); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `vector` in this scope [INFO] [stdout] --> src/ray/mod.rs:73:39 [INFO] [stdout] | [INFO] [stdout] 73 | let r = Ray::new(point(1., 2., 3.), vector(0., 1., 0.)); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::vector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Transform` [INFO] [stdout] --> src/ray/mod.rs:74:11 [INFO] [stdout] | [INFO] [stdout] 74 | let m = Transform::new().scale(2., 3., 4.).transform; [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::Transform; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/ray/mod.rs:77:31 [INFO] [stdout] | [INFO] [stdout] 77 | assert_eq!(r2.origin.equals(point(2., 6., 12.)), true); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `vector` in this scope [INFO] [stdout] --> src/ray/mod.rs:78:34 [INFO] [stdout] | [INFO] [stdout] 78 | assert_eq!(r2.direction.equals(vector(0., 3., 0.)), true); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::vector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `vector` in this scope [INFO] [stdout] --> src/shape/sphere.rs:79:19 [INFO] [stdout] | [INFO] [stdout] 79 | let direction = vector(0., 0., 1.); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 | use crate::vector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `vector` in this scope [INFO] [stdout] --> src/shape/sphere.rs:92:19 [INFO] [stdout] | [INFO] [stdout] 92 | let direction = vector(0., 0., 1.); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 | use crate::vector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `vector` in this scope [INFO] [stdout] --> src/shape/sphere.rs:105:19 [INFO] [stdout] | [INFO] [stdout] 105 | let direction = vector(0., 0., 1.); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 | use crate::vector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `vector` in this scope [INFO] [stdout] --> src/shape/sphere.rs:116:19 [INFO] [stdout] | [INFO] [stdout] 116 | let direction = vector(0., 0., 1.); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 | use crate::vector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `vector` in this scope [INFO] [stdout] --> src/shape/sphere.rs:129:19 [INFO] [stdout] | [INFO] [stdout] 129 | let direction = vector(0., 0., 1.); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 | use crate::vector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Transform` [INFO] [stdout] --> src/shape/sphere.rs:152:19 [INFO] [stdout] | [INFO] [stdout] 152 | let transform = Transform::new().translate(2., 3., 4.).transform; [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use crate::Transform; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Transform` [INFO] [stdout] --> src/shape/sphere.rs:154:13 [INFO] [stdout] | [INFO] [stdout] 154 | let exp = Transform::new().translate(2., 3., 4.).transform; [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use crate::Transform; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `vector` in this scope [INFO] [stdout] --> src/shape/sphere.rs:161:40 [INFO] [stdout] | [INFO] [stdout] 161 | let r = Ray::new(point(0., 0., -5.), vector(0., 0., 1.)); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 | use crate::vector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Transform` [INFO] [stdout] --> src/shape/sphere.rs:163:19 [INFO] [stdout] | [INFO] [stdout] 163 | let transform = Transform::new().scale(2., 2., 2.).transform; [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use crate::Transform; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `vector` in this scope [INFO] [stdout] --> src/shape/sphere.rs:174:40 [INFO] [stdout] | [INFO] [stdout] 174 | let r = Ray::new(point(0., 0., -5.), vector(0., 0., 1.)); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 | use crate::vector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Transform` [INFO] [stdout] --> src/shape/sphere.rs:176:19 [INFO] [stdout] | [INFO] [stdout] 176 | let transform = Transform::new().translate(5., 0., 0.).transform; [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use crate::Transform; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `vector` in this scope [INFO] [stdout] --> src/shape/sphere.rs:188:23 [INFO] [stdout] | [INFO] [stdout] 188 | assert_eq!(n.equals(vector(1., 0., 0.)), true); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 | use crate::vector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `vector` in this scope [INFO] [stdout] --> src/shape/sphere.rs:196:23 [INFO] [stdout] | [INFO] [stdout] 196 | assert_eq!(n.equals(vector(0., 1., 0.)), true); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 | use crate::vector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `vector` in this scope [INFO] [stdout] --> src/shape/sphere.rs:204:23 [INFO] [stdout] | [INFO] [stdout] 204 | assert_eq!(n.equals(vector(0., 0., 1.)), true); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 | use crate::vector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `vector` in this scope [INFO] [stdout] --> src/shape/sphere.rs:213:23 [INFO] [stdout] | [INFO] [stdout] 213 | assert_eq!(n.equals(vector(root3, root3, root3)), true); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 | use crate::vector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Transform` [INFO] [stdout] --> src/shape/sphere.rs:230:19 [INFO] [stdout] | [INFO] [stdout] 230 | let transform = Transform::new().translate(0., 1., 0.).transform; [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use crate::Transform; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `vector` in this scope [INFO] [stdout] --> src/shape/sphere.rs:235:30 [INFO] [stdout] | [INFO] [stdout] 235 | assert_eq!(n.approx_equals(vector(0., 0.70711, -0.70711)), true); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 | use crate::vector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Transform` [INFO] [stdout] --> src/shape/sphere.rs:241:19 [INFO] [stdout] | [INFO] [stdout] 241 | let transform = Transform::new() [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use crate::Transform; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `vector` in this scope [INFO] [stdout] --> src/shape/sphere.rs:248:30 [INFO] [stdout] | [INFO] [stdout] 248 | assert_eq!(n.approx_equals(vector(0., 0.97014, -0.24254)), true); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 | use crate::vector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/shape/sphere.rs:256:14 [INFO] [stdout] | [INFO] [stdout] 256 | assert_eq!(Color::equals(m.color, Color::new(1., 1., 1.)), true); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use crate::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/shape/sphere.rs:256:37 [INFO] [stdout] | [INFO] [stdout] 256 | assert_eq!(Color::equals(m.color, Color::new(1., 1., 1.)), true); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use crate::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/shape/sphere.rs:263:22 [INFO] [stdout] | [INFO] [stdout] 263 | s.material.color = Color::new(1., 0.2, 1.0); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use crate::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/shape/sphere.rs:267:5 [INFO] [stdout] | [INFO] [stdout] 267 | Color::equals(s.material.color, Color::new(1., 0.2, 1.0)), [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use crate::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/shape/sphere.rs:267:37 [INFO] [stdout] | [INFO] [stdout] 267 | Color::equals(s.material.color, Color::new(1., 0.2, 1.0)), [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use crate::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Transform` [INFO] [stdout] --> src/shape/mod.rs:101:19 [INFO] [stdout] | [INFO] [stdout] 101 | let transform = Transform::new().translate(2., 3., 4.).transform; [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use crate::Transform; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Transform` [INFO] [stdout] --> src/shape/mod.rs:130:21 [INFO] [stdout] | [INFO] [stdout] 130 | let a_transform = Transform::new().scale(2., 2., 2.).transform; [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use crate::Transform; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Transform` [INFO] [stdout] --> src/shape/mod.rs:135:21 [INFO] [stdout] | [INFO] [stdout] 135 | let b_transform = Transform::new().translate(0., 0., -0.25).transform; [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use crate::Transform; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Transform` [INFO] [stdout] --> src/shape/mod.rs:140:21 [INFO] [stdout] | [INFO] [stdout] 140 | let c_transform = Transform::new().translate(0., 0., 0.25).transform; [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use crate::Transform; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Intersection` [INFO] [stdout] --> src/shape/mod.rs:146:5 [INFO] [stdout] | [INFO] [stdout] 146 | Intersection::new(2., a.clone()), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/intersections/mod.rs:24:1 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct Intersections { [INFO] [stdout] | ------------------------ similarly named struct `Intersections` defined here [INFO] [stdout] | [INFO] [stdout] help: a struct with a similar name exists [INFO] [stdout] | [INFO] [stdout] 146 | Intersections::new(2., a.clone()), [INFO] [stdout] | ~~~~~~~~~~~~~ [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 | use crate::intersections::Intersection; [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::btree_set::Intersection; [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::hash_set::Intersection; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Intersection` [INFO] [stdout] --> src/shape/mod.rs:147:5 [INFO] [stdout] | [INFO] [stdout] 147 | Intersection::new(2.75, b.clone()), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/intersections/mod.rs:24:1 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct Intersections { [INFO] [stdout] | ------------------------ similarly named struct `Intersections` defined here [INFO] [stdout] | [INFO] [stdout] help: a struct with a similar name exists [INFO] [stdout] | [INFO] [stdout] 147 | Intersections::new(2.75, b.clone()), [INFO] [stdout] | ~~~~~~~~~~~~~ [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 | use crate::intersections::Intersection; [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::btree_set::Intersection; [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::hash_set::Intersection; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Intersection` [INFO] [stdout] --> src/shape/mod.rs:148:5 [INFO] [stdout] | [INFO] [stdout] 148 | Intersection::new(3.25, c.clone()), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/intersections/mod.rs:24:1 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct Intersections { [INFO] [stdout] | ------------------------ similarly named struct `Intersections` defined here [INFO] [stdout] | [INFO] [stdout] help: a struct with a similar name exists [INFO] [stdout] | [INFO] [stdout] 148 | Intersections::new(3.25, c.clone()), [INFO] [stdout] | ~~~~~~~~~~~~~ [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 | use crate::intersections::Intersection; [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::btree_set::Intersection; [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::hash_set::Intersection; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Intersection` [INFO] [stdout] --> src/shape/mod.rs:149:5 [INFO] [stdout] | [INFO] [stdout] 149 | Intersection::new(4.75, b.clone()), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/intersections/mod.rs:24:1 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct Intersections { [INFO] [stdout] | ------------------------ similarly named struct `Intersections` defined here [INFO] [stdout] | [INFO] [stdout] help: a struct with a similar name exists [INFO] [stdout] | [INFO] [stdout] 149 | Intersections::new(4.75, b.clone()), [INFO] [stdout] | ~~~~~~~~~~~~~ [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 | use crate::intersections::Intersection; [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::btree_set::Intersection; [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::hash_set::Intersection; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Intersection` [INFO] [stdout] --> src/shape/mod.rs:150:5 [INFO] [stdout] | [INFO] [stdout] 150 | Intersection::new(5.25, c.clone()), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/intersections/mod.rs:24:1 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct Intersections { [INFO] [stdout] | ------------------------ similarly named struct `Intersections` defined here [INFO] [stdout] | [INFO] [stdout] help: a struct with a similar name exists [INFO] [stdout] | [INFO] [stdout] 150 | Intersections::new(5.25, c.clone()), [INFO] [stdout] | ~~~~~~~~~~~~~ [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 | use crate::intersections::Intersection; [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::btree_set::Intersection; [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::hash_set::Intersection; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Intersection` [INFO] [stdout] --> src/shape/mod.rs:151:5 [INFO] [stdout] | [INFO] [stdout] 151 | Intersection::new(6., a.clone()), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/intersections/mod.rs:24:1 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct Intersections { [INFO] [stdout] | ------------------------ similarly named struct `Intersections` defined here [INFO] [stdout] | [INFO] [stdout] help: a struct with a similar name exists [INFO] [stdout] | [INFO] [stdout] 151 | Intersections::new(6., a.clone()), [INFO] [stdout] | ~~~~~~~~~~~~~ [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 | use crate::intersections::Intersection; [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::btree_set::Intersection; [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::hash_set::Intersection; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `prepare_computations` in this scope [INFO] [stdout] --> src/shape/mod.rs:154:15 [INFO] [stdout] | [INFO] [stdout] 154 | let comp1 = prepare_computations(xs.intersections[0].clone(), r, xs.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 | use crate::intersections::prepare_computations; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `prepare_computations` in this scope [INFO] [stdout] --> src/shape/mod.rs:158:15 [INFO] [stdout] | [INFO] [stdout] 158 | let comp2 = prepare_computations(xs.intersections[1].clone(), r, xs.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 | use crate::intersections::prepare_computations; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `prepare_computations` in this scope [INFO] [stdout] --> src/shape/mod.rs:162:15 [INFO] [stdout] | [INFO] [stdout] 162 | let comp3 = prepare_computations(xs.intersections[2].clone(), r, xs.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 | use crate::intersections::prepare_computations; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `prepare_computations` in this scope [INFO] [stdout] --> src/shape/mod.rs:166:15 [INFO] [stdout] | [INFO] [stdout] 166 | let comp4 = prepare_computations(xs.intersections[3].clone(), r, xs.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 | use crate::intersections::prepare_computations; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `prepare_computations` in this scope [INFO] [stdout] --> src/shape/mod.rs:170:15 [INFO] [stdout] | [INFO] [stdout] 170 | let comp5 = prepare_computations(xs.intersections[4].clone(), r, xs.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 | use crate::intersections::prepare_computations; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `prepare_computations` in this scope [INFO] [stdout] --> src/shape/mod.rs:174:15 [INFO] [stdout] | [INFO] [stdout] 174 | let comp6 = prepare_computations(xs.intersections[5].clone(), r, xs.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 | use crate::intersections::prepare_computations; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/light/mod.rs:70:18 [INFO] [stdout] | [INFO] [stdout] 70 | let position = point(0., 0., 0.); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/light/mod.rs:80:18 [INFO] [stdout] | [INFO] [stdout] 80 | let position = point(0., 0., 0.); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/light/mod.rs:82:27 [INFO] [stdout] | [INFO] [stdout] 82 | let l = PointLight::new(point(0., 0., -10.), intensity); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `vector` in this scope [INFO] [stdout] --> src/light/mod.rs:83:14 [INFO] [stdout] | [INFO] [stdout] 83 | let eyev = vector(0., 0., -1.); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::vector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `vector` in this scope [INFO] [stdout] --> src/light/mod.rs:84:17 [INFO] [stdout] | [INFO] [stdout] 84 | let normalv = vector(0., 0., -1.); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::vector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/light/mod.rs:95:18 [INFO] [stdout] | [INFO] [stdout] 95 | let position = point(0., 0., 0.); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/light/mod.rs:97:27 [INFO] [stdout] | [INFO] [stdout] 97 | let l = PointLight::new(point(0., 0., -10.), intensity); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `vector` in this scope [INFO] [stdout] --> src/light/mod.rs:98:14 [INFO] [stdout] | [INFO] [stdout] 98 | let eyev = vector(0., 2.0f64.sqrt() / 2., -2.0f64.sqrt() / 2.); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::vector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `vector` in this scope [INFO] [stdout] --> src/light/mod.rs:99:17 [INFO] [stdout] | [INFO] [stdout] 99 | let normalv = vector(0., 0., -1.); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::vector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/light/mod.rs:110:18 [INFO] [stdout] | [INFO] [stdout] 110 | let position = point(0., 0., 0.); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/light/mod.rs:112:27 [INFO] [stdout] | [INFO] [stdout] 112 | let l = PointLight::new(point(0., 10., -10.), intensity); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `vector` in this scope [INFO] [stdout] --> src/light/mod.rs:113:14 [INFO] [stdout] | [INFO] [stdout] 113 | let eyev = vector(0., 0., -1.); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::vector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `vector` in this scope [INFO] [stdout] --> src/light/mod.rs:114:17 [INFO] [stdout] | [INFO] [stdout] 114 | let normalv = vector(0., 0., -1.); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::vector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/light/mod.rs:128:18 [INFO] [stdout] | [INFO] [stdout] 128 | let position = point(0., 0., 0.); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/light/mod.rs:130:27 [INFO] [stdout] | [INFO] [stdout] 130 | let l = PointLight::new(point(0., 10., -10.), intensity); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `vector` in this scope [INFO] [stdout] --> src/light/mod.rs:131:14 [INFO] [stdout] | [INFO] [stdout] 131 | let eyev = vector(0., -2.0f64.sqrt() / 2., -2.0f64.sqrt() / 2.); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::vector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `vector` in this scope [INFO] [stdout] --> src/light/mod.rs:132:17 [INFO] [stdout] | [INFO] [stdout] 132 | let normalv = vector(0., 0., -1.); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::vector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/light/mod.rs:146:18 [INFO] [stdout] | [INFO] [stdout] 146 | let position = point(0., 0., 0.); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/light/mod.rs:148:27 [INFO] [stdout] | [INFO] [stdout] 148 | let l = PointLight::new(point(0., 0., 10.), intensity); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `vector` in this scope [INFO] [stdout] --> src/light/mod.rs:149:14 [INFO] [stdout] | [INFO] [stdout] 149 | let eyev = vector(0., 0., -1.); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::vector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `vector` in this scope [INFO] [stdout] --> src/light/mod.rs:150:17 [INFO] [stdout] | [INFO] [stdout] 150 | let normalv = vector(0., 0., -1.); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::vector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/light/mod.rs:161:18 [INFO] [stdout] | [INFO] [stdout] 161 | let position = point(0., 0., 0.); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `vector` in this scope [INFO] [stdout] --> src/light/mod.rs:162:14 [INFO] [stdout] | [INFO] [stdout] 162 | let eyev = vector(0., 0., -1.); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::vector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `vector` in this scope [INFO] [stdout] --> src/light/mod.rs:163:17 [INFO] [stdout] | [INFO] [stdout] 163 | let normalv = vector(0., 0., -1.); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::vector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/light/mod.rs:165:27 [INFO] [stdout] | [INFO] [stdout] 165 | let l = PointLight::new(point(0., 0., -10.), intensity); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `vector` in this scope [INFO] [stdout] --> src/camera/mod.rs:131:33 [INFO] [stdout] | [INFO] [stdout] 131 | assert_eq!(r.direction.equals(vector(0., 0., -1.)), true); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::vector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `vector` in this scope [INFO] [stdout] --> src/camera/mod.rs:142:22 [INFO] [stdout] | [INFO] [stdout] 142 | .approx_equals(vector(0.66519, 0.33259, -0.66851)), [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::vector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Transform` [INFO] [stdout] --> src/camera/mod.rs:150:17 [INFO] [stdout] | [INFO] [stdout] 150 | c.transform = Transform::new() [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::Transform; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `vector` in this scope [INFO] [stdout] --> src/camera/mod.rs:159:22 [INFO] [stdout] | [INFO] [stdout] 159 | .approx_equals(vector(2.0f64.sqrt() / 2., 0., -2.0f64.sqrt() / 2.)), [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::vector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `vector` in this scope [INFO] [stdout] --> src/camera/mod.rs:170:12 [INFO] [stdout] | [INFO] [stdout] 170 | let up = vector(0., 1., 0.); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::vector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Transform` [INFO] [stdout] --> src/camera/mod.rs:172:17 [INFO] [stdout] | [INFO] [stdout] 172 | c.transform = Transform::view_transform(from, to, up); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::Transform; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `vector` in this scope [INFO] [stdout] --> src/material/mod.rs:62:14 [INFO] [stdout] | [INFO] [stdout] 62 | let eyev = vector(0., 0., -1.); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::vector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `vector` in this scope [INFO] [stdout] --> src/material/mod.rs:63:17 [INFO] [stdout] | [INFO] [stdout] 63 | let normalv = vector(0., 0., -1.); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::vector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PointLight` [INFO] [stdout] --> src/material/mod.rs:64:15 [INFO] [stdout] | [INFO] [stdout] 64 | let light = PointLight::new(point(0., 0., -10.), Color::new(1., 1., 1.)); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::PointLight; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/material/mod.rs:64:31 [INFO] [stdout] | [INFO] [stdout] 64 | let light = PointLight::new(point(0., 0., -10.), Color::new(1., 1., 1.)); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Shape` [INFO] [stdout] --> src/material/mod.rs:66:15 [INFO] [stdout] | [INFO] [stdout] 66 | let mut o = Shape::new(ShapeType::Sphere); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::Shape; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `lighting` in this scope [INFO] [stdout] --> src/material/mod.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 69 | let c1 = lighting( [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::light::lighting; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/material/mod.rs:73:5 [INFO] [stdout] | [INFO] [stdout] 73 | point(0.9, 0., 0.), [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `lighting` in this scope [INFO] [stdout] --> src/material/mod.rs:78:12 [INFO] [stdout] | [INFO] [stdout] 78 | let c2 = lighting( [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::light::lighting; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/material/mod.rs:82:5 [INFO] [stdout] | [INFO] [stdout] 82 | point(1.5, 0., 0.), [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/pattern/checker.rs:42:38 [INFO] [stdout] | [INFO] [stdout] 42 | Color::equals(pattern.pattern_at(point(0., 0., 0.,)), white.clone()), [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/pattern/checker.rs:46:38 [INFO] [stdout] | [INFO] [stdout] 46 | Color::equals(pattern.pattern_at(point(0.99, 0., 0.,)), black.clone()), [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/pattern/checker.rs:50:38 [INFO] [stdout] | [INFO] [stdout] 50 | Color::equals(pattern.pattern_at(point(1.01, 0., 0.,)), black.clone()), [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/pattern/checker.rs:62:38 [INFO] [stdout] | [INFO] [stdout] 62 | Color::equals(pattern.pattern_at(point(0., 0., 0.,)), white.clone()), [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/pattern/checker.rs:66:38 [INFO] [stdout] | [INFO] [stdout] 66 | Color::equals(pattern.pattern_at(point(0., 0.99, 0.,)), black.clone()), [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/pattern/checker.rs:70:38 [INFO] [stdout] | [INFO] [stdout] 70 | Color::equals(pattern.pattern_at(point(0.0, 1.01, 0.,)), black.clone()), [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/pattern/checker.rs:82:38 [INFO] [stdout] | [INFO] [stdout] 82 | Color::equals(pattern.pattern_at(point(0., 0., 0.,)), white.clone()), [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/pattern/checker.rs:86:38 [INFO] [stdout] | [INFO] [stdout] 86 | Color::equals(pattern.pattern_at(point(0., 0., 0.99,)), black.clone()), [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/pattern/checker.rs:90:38 [INFO] [stdout] | [INFO] [stdout] 90 | Color::equals(pattern.pattern_at(point(0.0, 0., 1.01,)), black.clone()), [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/pattern/gradient.rs:38:38 [INFO] [stdout] | [INFO] [stdout] 38 | Color::equals(pattern.pattern_at(point(0., 0., 0.,)), white.clone()), [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/pattern/gradient.rs:44:26 [INFO] [stdout] | [INFO] [stdout] 44 | pattern.pattern_at(point(0.25, 0., 0.,)), [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/pattern/gradient.rs:52:26 [INFO] [stdout] | [INFO] [stdout] 52 | pattern.pattern_at(point(0.5, 0., 0.,)), [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/pattern/gradient.rs:60:26 [INFO] [stdout] | [INFO] [stdout] 60 | pattern.pattern_at(point(0.75, 0., 0.,)), [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/pattern/ring.rs:39:38 [INFO] [stdout] | [INFO] [stdout] 39 | Color::equals(pattern.pattern_at(point(0., 0., 0.,)), white.clone()), [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/pattern/ring.rs:44:38 [INFO] [stdout] | [INFO] [stdout] 44 | Color::equals(pattern.pattern_at(point(0., 0., 1.,)), black.clone()), [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/pattern/ring.rs:49:38 [INFO] [stdout] | [INFO] [stdout] 49 | Color::equals(pattern.pattern_at(point(1., 0., 0.,)), black.clone()), [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/pattern/ring.rs:54:38 [INFO] [stdout] | [INFO] [stdout] 54 | Color::equals(pattern.pattern_at(point(0.708, 0., 0.708,)), black.clone()), [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/pattern/stripe.rs:56:36 [INFO] [stdout] | [INFO] [stdout] 56 | Stripe::pattern_at(&pattern, point(0., 0., 0.)), [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/pattern/stripe.rs:63:36 [INFO] [stdout] | [INFO] [stdout] 63 | Stripe::pattern_at(&pattern, point(0., 1., 0.)), [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/pattern/stripe.rs:70:36 [INFO] [stdout] | [INFO] [stdout] 70 | Stripe::pattern_at(&pattern, point(0., 2., 0.)), [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/pattern/stripe.rs:85:36 [INFO] [stdout] | [INFO] [stdout] 85 | Stripe::pattern_at(&pattern, point(0., 0., 0.)), [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/pattern/stripe.rs:92:36 [INFO] [stdout] | [INFO] [stdout] 92 | Stripe::pattern_at(&pattern, point(0., 0., 1.)), [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/pattern/stripe.rs:99:36 [INFO] [stdout] | [INFO] [stdout] 99 | Stripe::pattern_at(&pattern, point(0., 0., 2.)), [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/pattern/stripe.rs:113:41 [INFO] [stdout] | [INFO] [stdout] 113 | let _x = Stripe::pattern_at(&pattern, point(-0.1, 0., 0.)); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/pattern/stripe.rs:117:36 [INFO] [stdout] | [INFO] [stdout] 117 | Stripe::pattern_at(&pattern, point(0., 0., 0.)), [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/pattern/stripe.rs:124:36 [INFO] [stdout] | [INFO] [stdout] 124 | Stripe::pattern_at(&pattern, point(0.9, 0., 0.)), [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/pattern/stripe.rs:132:36 [INFO] [stdout] | [INFO] [stdout] 132 | Stripe::pattern_at(&pattern, point(1., 0., 0.)), [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/pattern/stripe.rs:139:36 [INFO] [stdout] | [INFO] [stdout] 139 | Stripe::pattern_at(&pattern, point(-0.1, 0., 0.)), [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/pattern/stripe.rs:146:36 [INFO] [stdout] | [INFO] [stdout] 146 | Stripe::pattern_at(&pattern, point(-1.0, 0., 0.)), [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/pattern/stripe.rs:153:36 [INFO] [stdout] | [INFO] [stdout] 153 | Stripe::pattern_at(&pattern, point(-1.1, 1., 0.)), [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Transform` [INFO] [stdout] --> src/pattern/mod.rs:72:19 [INFO] [stdout] | [INFO] [stdout] 72 | let transform = Transform::new().scale(2., 2., 2.).transform; [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::Transform; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/pattern/mod.rs:81:45 [INFO] [stdout] | [INFO] [stdout] 81 | let c = pattern.pattern_at_object(object, point(2., 3., 4.)); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Transform` [INFO] [stdout] --> src/pattern/mod.rs:89:19 [INFO] [stdout] | [INFO] [stdout] 89 | let transform = Transform::new().scale(2., 2., 2.).transform; [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::Transform; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/pattern/mod.rs:98:45 [INFO] [stdout] | [INFO] [stdout] 98 | let c = pattern.pattern_at_object(object, point(2., 3., 4.)); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Transform` [INFO] [stdout] --> src/pattern/mod.rs:106:20 [INFO] [stdout] | [INFO] [stdout] 106 | let transform1 = Transform::new().translate(0.5, 1., 1.5).transform; [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::Transform; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Transform` [INFO] [stdout] --> src/pattern/mod.rs:107:20 [INFO] [stdout] | [INFO] [stdout] 107 | let transform2 = Transform::new().scale(2., 2., 2.).transform; [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::Transform; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/pattern/mod.rs:117:45 [INFO] [stdout] | [INFO] [stdout] 117 | let c = pattern.pattern_at_object(object, point(2.5, 3., 3.5)); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Transform` [INFO] [stdout] --> src/pattern/mod.rs:125:19 [INFO] [stdout] | [INFO] [stdout] 125 | let transform = Transform::new().scale(2., 2., 2.).transform; [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::Transform; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/pattern/mod.rs:134:45 [INFO] [stdout] | [INFO] [stdout] 134 | let c = pattern.pattern_at_object(object, point(1.5, 0., 0.)); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Transform` [INFO] [stdout] --> src/pattern/mod.rs:142:19 [INFO] [stdout] | [INFO] [stdout] 142 | let transform = Transform::new().scale(2., 2., 2.).transform; [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::Transform; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/pattern/mod.rs:151:45 [INFO] [stdout] | [INFO] [stdout] 151 | let c = pattern.pattern_at_object(object, point(2.5, 0., 0.)); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Transform` [INFO] [stdout] --> src/pattern/mod.rs:159:20 [INFO] [stdout] | [INFO] [stdout] 159 | let transform1 = Transform::new().translate(0.5, 0., 0.).transform; [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::Transform; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Transform` [INFO] [stdout] --> src/pattern/mod.rs:160:20 [INFO] [stdout] | [INFO] [stdout] 160 | let transform2 = Transform::new().scale(2., 2., 2.).transform; [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::Transform; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `point` in this scope [INFO] [stdout] --> src/pattern/mod.rs:170:45 [INFO] [stdout] | [INFO] [stdout] 170 | let c = pattern.pattern_at_object(object, point(2.5, 0., 0.)); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::point; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/world/mod.rs:198:5 [INFO] [stdout] | [INFO] [stdout] 196 | return Color::mult(color, comps.object.material.transparency); [INFO] [stdout] | ------------------------------------------------------------- any code following this expression is unreachable [INFO] [stdout] 197 | [INFO] [stdout] 198 | return color; [INFO] [stdout] | ^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/canvas/mod.rs:42:65 [INFO] [stdout] | [INFO] [stdout] 42 | Err(why) => panic!("couldn't create {}: {}", display, why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/canvas/mod.rs:49:67 [INFO] [stdout] | [INFO] [stdout] 49 | Err(why) => panic!("couldn't write to {}: {}", display, why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 294 previous errors; 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stderr] error: could not compile `ray_tracer` due to 295 previous errors; 3 warnings emitted [INFO] [stderr] error: failed to migrate to next edition [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo fix --edition --allow-no-vcs --allow-dirty --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "9981b99496d562c8b3ca7a828bbd5de3291c8eef1a63f8da2fcdf6888ab75d57", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9981b99496d562c8b3ca7a828bbd5de3291c8eef1a63f8da2fcdf6888ab75d57", kill_on_drop: false }` [INFO] [stdout] 9981b99496d562c8b3ca7a828bbd5de3291c8eef1a63f8da2fcdf6888ab75d57