[INFO] cloning repository https://github.com/ncihnegn/ray-tracer-challenge [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ncihnegn/ray-tracer-challenge" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fncihnegn%2Fray-tracer-challenge", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fncihnegn%2Fray-tracer-challenge'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0a5a3ded0e8573f4e1dffa2f1be193214ebc3203 [INFO] checking ncihnegn/ray-tracer-challenge against master#af4a5a13a15fa0c60e06321077ef452f769b42fd for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fncihnegn%2Fray-tracer-challenge" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ncihnegn/ray-tracer-challenge on toolchain af4a5a13a15fa0c60e06321077ef452f769b42fd [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ncihnegn/ray-tracer-challenge [INFO] finished tweaking git repo https://github.com/ncihnegn/ray-tracer-challenge [INFO] tweaked toml for git repo https://github.com/ncihnegn/ray-tracer-challenge written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/ncihnegn/ray-tracer-challenge already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating git repository `https://github.com/ncihnegn/rust-rgb` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded semver v1.0.7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2c137a550bba48d82ff42244a89a7823da8f5030dfc5eb335eceb765d25477ca [INFO] running `Command { std: "docker" "start" "-a" "2c137a550bba48d82ff42244a89a7823da8f5030dfc5eb335eceb765d25477ca", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2c137a550bba48d82ff42244a89a7823da8f5030dfc5eb335eceb765d25477ca", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2c137a550bba48d82ff42244a89a7823da8f5030dfc5eb335eceb765d25477ca", kill_on_drop: false }` [INFO] [stdout] 2c137a550bba48d82ff42244a89a7823da8f5030dfc5eb335eceb765d25477ca [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7c72d25dedc676ede12cd9775f1a2f24ffc1592b54a3071f84db6c2ff88e8c6a [INFO] running `Command { std: "docker" "start" "-a" "7c72d25dedc676ede12cd9775f1a2f24ffc1592b54a3071f84db6c2ff88e8c6a", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.37 [INFO] [stderr] Compiling syn v1.0.91 [INFO] [stderr] Compiling cgmath v0.18.0 [INFO] [stderr] Checking bytemuck v1.9.1 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling heck v0.4.0 [INFO] [stderr] Compiling quote v1.0.17 [INFO] [stderr] Checking approx v0.5.1 [INFO] [stderr] Checking approx v0.4.0 [INFO] [stderr] Checking rgb v0.8.32 (https://github.com/ncihnegn/rust-rgb?branch=approx#78b9bd7b) [INFO] [stderr] Compiling enum-as-inner v0.4.0 [INFO] [stderr] Compiling derivative v2.2.0 [INFO] [stderr] Compiling derive_more v0.99.17 [INFO] [stderr] Checking ray-tracer-challenge v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `EuclideanSpace`, `assert_relative_eq` [INFO] [stdout] --> src/computation.rs:60:18 [INFO] [stdout] | [INFO] [stdout] 60 | use cgmath::{assert_relative_eq, EuclideanSpace}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::f32::consts::FRAC_1_SQRT_2` [INFO] [stdout] --> src/computation.rs:61:9 [INFO] [stdout] | [INFO] [stdout] 61 | use std::f32::consts::FRAC_1_SQRT_2; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Shape`, `intersection::Intersection`, `ray::Ray`, `sphere::Sphere` [INFO] [stdout] --> src/computation.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 64 | intersection::Intersection, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 65 | ray::Ray, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 66 | shape::{sphere::Sphere, Shape}, [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/computation.rs:69:9 [INFO] [stdout] | [INFO] [stdout] 69 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/intersection.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `material::Material`, `plane::Plane`, `sphere::Sphere` [INFO] [stdout] --> src/intersection.rs:69:9 [INFO] [stdout] | [INFO] [stdout] 69 | material::Material, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 70 | shape::{plane::Plane, sphere::Sphere}, [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `EuclideanSpace`, `Matrix4`, `Point3`, `SquareMatrix`, `Vector3` [INFO] [stdout] --> src/intersection.rs:72:18 [INFO] [stdout] | [INFO] [stdout] 72 | use cgmath::{EuclideanSpace, Matrix4, Point3, SquareMatrix, Vector3}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^ ^^^^^^ ^^^^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `EPSILON`, `consts::FRAC_1_SQRT_2` [INFO] [stdout] --> src/intersection.rs:73:20 [INFO] [stdout] | [INFO] [stdout] 73 | use std::f32::{consts::FRAC_1_SQRT_2, EPSILON}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/material.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 62 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `approx::assert_relative_eq` [INFO] [stdout] --> src/material.rs:63:9 [INFO] [stdout] | [INFO] [stdout] 63 | use approx::assert_relative_eq; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cgmath::EuclideanSpace` [INFO] [stdout] --> src/material.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 64 | use cgmath::EuclideanSpace; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::f32::consts::FRAC_1_SQRT_2` [INFO] [stdout] --> src/material.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 65 | use std::f32::consts::FRAC_1_SQRT_2; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/pattern/checker.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `EuclideanSpace`, `SquareMatrix` [INFO] [stdout] --> src/pattern/checker.rs:29:18 [INFO] [stdout] | [INFO] [stdout] 29 | use cgmath::{EuclideanSpace, SquareMatrix}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/pattern/gradient.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `EuclideanSpace`, `SquareMatrix` [INFO] [stdout] --> src/pattern/gradient.rs:26:18 [INFO] [stdout] | [INFO] [stdout] 26 | use cgmath::{EuclideanSpace, SquareMatrix}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/pattern/ring.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `EuclideanSpace`, `SquareMatrix`, `Vector3` [INFO] [stdout] --> src/pattern/ring.rs:29:18 [INFO] [stdout] | [INFO] [stdout] 29 | use cgmath::{EuclideanSpace, SquareMatrix, Vector3}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/pattern/stripe.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `EuclideanSpace`, `SquareMatrix`, `Vector3` [INFO] [stdout] --> src/pattern/stripe.rs:29:18 [INFO] [stdout] | [INFO] [stdout] 29 | use cgmath::{EuclideanSpace, SquareMatrix, Vector3}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/pattern/test.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `EuclideanSpace`, `SquareMatrix` [INFO] [stdout] --> src/pattern/test.rs:22:18 [INFO] [stdout] | [INFO] [stdout] 22 | use cgmath::{EuclideanSpace, SquareMatrix}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/pattern/mod.rs:70:9 [INFO] [stdout] | [INFO] [stdout] 70 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `material::Material`, `shape::sphere::Sphere` [INFO] [stdout] --> src/pattern/mod.rs:71:17 [INFO] [stdout] | [INFO] [stdout] 71 | use crate::{material::Material, shape::sphere::Sphere}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `EuclideanSpace`, `Vector3` [INFO] [stdout] --> src/pattern/mod.rs:72:18 [INFO] [stdout] | [INFO] [stdout] 72 | use cgmath::{EuclideanSpace, Vector3}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/ray.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::material::Material` [INFO] [stdout] --> src/ray.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | use crate::material::Material; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/shape/cone.rs:129:9 [INFO] [stdout] | [INFO] [stdout] 129 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `EuclideanSpace`, `InnerSpace`, `Rad`, `Zero`, `assert_relative_eq` [INFO] [stdout] --> src/shape/cone.rs:130:18 [INFO] [stdout] | [INFO] [stdout] 130 | use cgmath::{assert_relative_eq, EuclideanSpace, InnerSpace, Rad, Zero}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^ ^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `PI`, `SQRT_2` [INFO] [stdout] --> src/shape/cone.rs:131:28 [INFO] [stdout] | [INFO] [stdout] 131 | use std::f32::consts::{PI, SQRT_2}; [INFO] [stdout] | ^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/shape/cube.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 62 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Rad`, `assert_relative_eq` [INFO] [stdout] --> src/shape/cube.rs:63:18 [INFO] [stdout] | [INFO] [stdout] 63 | use cgmath::{assert_relative_eq, Rad}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::f32::consts::PI` [INFO] [stdout] --> src/shape/cube.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 64 | use std::f32::consts::PI; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/shape/cylinder.rs:123:9 [INFO] [stdout] | [INFO] [stdout] 123 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `EuclideanSpace`, `InnerSpace`, `Rad`, `assert_relative_eq` [INFO] [stdout] --> src/shape/cylinder.rs:124:18 [INFO] [stdout] | [INFO] [stdout] 124 | use cgmath::{assert_relative_eq, EuclideanSpace, InnerSpace, Rad}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::f32::consts::PI` [INFO] [stdout] --> src/shape/cylinder.rs:125:9 [INFO] [stdout] | [INFO] [stdout] 125 | use std::f32::consts::PI; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `material::Material` [INFO] [stdout] --> src/shape/group.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | material::Material, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/shape/group.rs:81:9 [INFO] [stdout] | [INFO] [stdout] 81 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Cylinder`, `Sphere`, `get_rc` [INFO] [stdout] --> src/shape/group.rs:82:24 [INFO] [stdout] | [INFO] [stdout] 82 | use crate::shape::{get_rc, Cylinder, Sphere}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `EuclideanSpace`, `Matrix4`, `Point3`, `Rad`, `Vector3`, `assert_relative_eq` [INFO] [stdout] --> src/shape/group.rs:83:18 [INFO] [stdout] | [INFO] [stdout] 83 | use cgmath::{assert_relative_eq, EuclideanSpace, Matrix4, Point3, Rad, Vector3}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^ ^^^^^^ ^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FRAC_PI_2`, `FRAC_PI_3`, `FRAC_PI_6`, `SQRT_2`, `cell::RefCell`, `ops::Deref`, `rc::Rc` [INFO] [stdout] --> src/shape/group.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 85 | cell::RefCell, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 86 | f32::consts::{FRAC_PI_2, FRAC_PI_3, FRAC_PI_6, SQRT_2}, [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^ ^^^^^^ [INFO] [stdout] 87 | ops::Deref, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 88 | rc::Rc, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/shape/obj_file.rs:114:9 [INFO] [stdout] | [INFO] [stdout] 114 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Deref` [INFO] [stdout] --> src/shape/obj_file.rs:115:9 [INFO] [stdout] | [INFO] [stdout] 115 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/shape/plane.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 54 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `EuclideanSpace`, `assert_relative_eq` [INFO] [stdout] --> src/shape/plane.rs:55:18 [INFO] [stdout] | [INFO] [stdout] 55 | use cgmath::{assert_relative_eq, EuclideanSpace}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Matrix4`, `SquareMatrix` [INFO] [stdout] --> src/shape/smooth_triangle.rs:8:25 [INFO] [stdout] | [INFO] [stdout] 8 | use cgmath::{BaseFloat, Matrix4, Point3, SquareMatrix, Vector3}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/shape/smooth_triangle.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `EuclideanSpace`, `assert_relative_eq` [INFO] [stdout] --> src/shape/smooth_triangle.rs:44:18 [INFO] [stdout] | [INFO] [stdout] 44 | use cgmath::{assert_relative_eq, EuclideanSpace}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/shape/sphere.rs:72:9 [INFO] [stdout] | [INFO] [stdout] 72 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cgmath::assert_relative_eq` [INFO] [stdout] --> src/shape/sphere.rs:73:9 [INFO] [stdout] | [INFO] [stdout] 73 | use cgmath::assert_relative_eq; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/shape/triangle.rs:84:9 [INFO] [stdout] | [INFO] [stdout] 84 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cgmath::assert_relative_eq` [INFO] [stdout] --> src/shape/triangle.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 85 | use cgmath::assert_relative_eq; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/shape/mod.rs:220:9 [INFO] [stdout] | [INFO] [stdout] 220 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `EuclideanSpace`, `Rad`, `assert_relative_eq` [INFO] [stdout] --> src/shape/mod.rs:221:18 [INFO] [stdout] | [INFO] [stdout] 221 | use cgmath::{assert_relative_eq, EuclideanSpace, Rad}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FRAC_1_SQRT_2`, `PI` [INFO] [stdout] --> src/shape/mod.rs:222:28 [INFO] [stdout] | [INFO] [stdout] 222 | use std::f32::consts::{FRAC_1_SQRT_2, PI}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/world.rs:144:9 [INFO] [stdout] | [INFO] [stdout] 144 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `pattern::test::Test`, `shape::plane::Plane` [INFO] [stdout] --> src/world.rs:145:17 [INFO] [stdout] | [INFO] [stdout] 145 | use crate::{pattern::test::Test, shape::plane::Plane}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `approx::assert_relative_eq` [INFO] [stdout] --> src/world.rs:146:9 [INFO] [stdout] | [INFO] [stdout] 146 | use approx::assert_relative_eq; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `EuclideanSpace`, `Vector3` [INFO] [stdout] --> src/world.rs:147:18 [INFO] [stdout] | [INFO] [stdout] 147 | use cgmath::{EuclideanSpace, Vector3}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::f32::consts::FRAC_1_SQRT_2` [INFO] [stdout] --> src/world.rs:148:9 [INFO] [stdout] | [INFO] [stdout] 148 | use std::f32::consts::FRAC_1_SQRT_2; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Shape` is imported redundantly [INFO] [stdout] --> src/computation.rs:66:33 [INFO] [stdout] | [INFO] [stdout] 66 | shape::{sphere::Sphere, Shape}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | use super::*; [INFO] [stdout] | -------- the item `Shape` is already imported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SquareMatrix` [INFO] [stdout] --> src/intersection.rs:72:51 [INFO] [stdout] | [INFO] [stdout] 72 | use cgmath::{EuclideanSpace, Matrix4, Point3, SquareMatrix, Vector3}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::material::Material` [INFO] [stdout] --> src/ray.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | use crate::material::Material; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Rad` [INFO] [stdout] --> src/shape/cone.rs:130:66 [INFO] [stdout] | [INFO] [stdout] 130 | use cgmath::{assert_relative_eq, EuclideanSpace, InnerSpace, Rad, Zero}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PI` [INFO] [stdout] --> src/shape/cone.rs:131:28 [INFO] [stdout] | [INFO] [stdout] 131 | use std::f32::consts::{PI, SQRT_2}; [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Rad`, `assert_relative_eq` [INFO] [stdout] --> src/shape/cube.rs:63:18 [INFO] [stdout] | [INFO] [stdout] 63 | use cgmath::{assert_relative_eq, Rad}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::f32::consts::PI` [INFO] [stdout] --> src/shape/cube.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 64 | use std::f32::consts::PI; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Rad` [INFO] [stdout] --> src/shape/cylinder.rs:124:66 [INFO] [stdout] | [INFO] [stdout] 124 | use cgmath::{assert_relative_eq, EuclideanSpace, InnerSpace, Rad}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::f32::consts::PI` [INFO] [stdout] --> src/shape/cylinder.rs:125:9 [INFO] [stdout] | [INFO] [stdout] 125 | use std::f32::consts::PI; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Cylinder` [INFO] [stdout] --> src/shape/group.rs:82:32 [INFO] [stdout] | [INFO] [stdout] 82 | use crate::shape::{get_rc, Cylinder, Sphere}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Matrix4` is imported redundantly [INFO] [stdout] --> src/shape/group.rs:83:54 [INFO] [stdout] | [INFO] [stdout] 81 | use super::*; [INFO] [stdout] | -------- the item `Matrix4` is already imported here [INFO] [stdout] 82 | use crate::shape::{get_rc, Cylinder, Sphere}; [INFO] [stdout] 83 | use cgmath::{assert_relative_eq, EuclideanSpace, Matrix4, Point3, Rad, Vector3}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FRAC_PI_3`, `FRAC_PI_6`, `SQRT_2`, `cell::RefCell`, `rc::Rc` [INFO] [stdout] --> src/shape/group.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 85 | cell::RefCell, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 86 | f32::consts::{FRAC_PI_2, FRAC_PI_3, FRAC_PI_6, SQRT_2}, [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^ ^^^^^^ [INFO] [stdout] 87 | ops::Deref, [INFO] [stdout] 88 | rc::Rc, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `assert_relative_eq` [INFO] [stdout] --> src/shape/plane.rs:55:18 [INFO] [stdout] | [INFO] [stdout] 55 | use cgmath::{assert_relative_eq, EuclideanSpace}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Matrix4`, `SquareMatrix` [INFO] [stdout] --> src/shape/smooth_triangle.rs:8:25 [INFO] [stdout] | [INFO] [stdout] 8 | use cgmath::{BaseFloat, Matrix4, Point3, SquareMatrix, Vector3}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cgmath::assert_relative_eq` [INFO] [stdout] --> src/shape/triangle.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 85 | use cgmath::assert_relative_eq; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `EuclideanSpace` [INFO] [stdout] --> src/shape/mod.rs:221:38 [INFO] [stdout] | [INFO] [stdout] 221 | use cgmath::{assert_relative_eq, EuclideanSpace, Rad}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `vertices` and `normals` are never read [INFO] [stdout] --> src/shape/obj_file.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Parser { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 13 | groups: HashMap>, [INFO] [stdout] 14 | vertices: Vec>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 15 | normals: Vec>, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 61 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `filter_intersections` is never used [INFO] [stdout] --> src/shape/constructive_solid_geometry.rs:74:8 [INFO] [stdout] | [INFO] [stdout] 74 | fn filter_intersections() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `local_intersect` is never used [INFO] [stdout] --> src/shape/constructive_solid_geometry.rs:102:8 [INFO] [stdout] | [INFO] [stdout] 102 | fn local_intersect() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `normals` is never read [INFO] [stdout] --> src/shape/obj_file.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Parser { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 15 | normals: Vec>, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 19 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 6.90s [INFO] running `Command { std: "docker" "inspect" "7c72d25dedc676ede12cd9775f1a2f24ffc1592b54a3071f84db6c2ff88e8c6a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7c72d25dedc676ede12cd9775f1a2f24ffc1592b54a3071f84db6c2ff88e8c6a", kill_on_drop: false }` [INFO] [stdout] 7c72d25dedc676ede12cd9775f1a2f24ffc1592b54a3071f84db6c2ff88e8c6a [INFO] checking ncihnegn/ray-tracer-challenge against try#36dbcaee1a55543dfc181be52a69d99ff46ff62f for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fncihnegn%2Fray-tracer-challenge" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ncihnegn/ray-tracer-challenge on toolchain 36dbcaee1a55543dfc181be52a69d99ff46ff62f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ncihnegn/ray-tracer-challenge [INFO] finished tweaking git repo https://github.com/ncihnegn/ray-tracer-challenge [INFO] tweaked toml for git repo https://github.com/ncihnegn/ray-tracer-challenge written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/ncihnegn/ray-tracer-challenge already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 166c45927cbd41e6389df9243ffdf4c2c13302ee98fb7a5a4631e38578966de8 [INFO] running `Command { std: "docker" "start" "-a" "166c45927cbd41e6389df9243ffdf4c2c13302ee98fb7a5a4631e38578966de8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "166c45927cbd41e6389df9243ffdf4c2c13302ee98fb7a5a4631e38578966de8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "166c45927cbd41e6389df9243ffdf4c2c13302ee98fb7a5a4631e38578966de8", kill_on_drop: false }` [INFO] [stdout] 166c45927cbd41e6389df9243ffdf4c2c13302ee98fb7a5a4631e38578966de8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7e07baab716546f2babf2f0be77bc5954efecd615f4558b406ee86ec342a4cfa [INFO] running `Command { std: "docker" "start" "-a" "7e07baab716546f2babf2f0be77bc5954efecd615f4558b406ee86ec342a4cfa", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Compiling proc-macro2 v1.0.37 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling syn v1.0.91 [INFO] [stderr] Compiling cgmath v0.18.0 [INFO] [stderr] Compiling heck v0.4.0 [INFO] [stderr] Checking bytemuck v1.9.1 [INFO] [stderr] Compiling quote v1.0.17 [INFO] [stderr] Checking approx v0.4.0 [INFO] [stderr] Checking approx v0.5.1 [INFO] [stderr] Checking rgb v0.8.32 (https://github.com/ncihnegn/rust-rgb?branch=approx#78b9bd7b) [INFO] [stderr] Compiling derive_more v0.99.17 [INFO] [stderr] Compiling enum-as-inner v0.4.0 [INFO] [stderr] Compiling derivative v2.2.0 [INFO] [stderr] Checking ray-tracer-challenge v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/intersection.rs (1 fix) [INFO] [stderr] Fixed src/ray.rs (1 fix) [INFO] [stderr] Fixed src/shape/group.rs (2 fixes) [INFO] [stderr] Fixed src/shape/smooth_triangle.rs (1 fix) [INFO] [stderr] Fixed src/shape/cone.rs (2 fixes) [INFO] [stderr] Fixed src/shape/cylinder.rs (2 fixes) [INFO] [stderr] Fixed src/shape/cube.rs (2 fixes) [INFO] [stderr] Fixed src/shape/mod.rs (1 fix) [INFO] [stderr] Fixed src/shape/triangle.rs (1 fix) [INFO] [stderr] Fixed src/shape/plane.rs (1 fix) [INFO] [stdout] warning: the item `Shape` is imported redundantly [INFO] [stdout] --> src/computation.rs:66:33 [INFO] [stdout] | [INFO] [stdout] 66 | shape::{sphere::Sphere, Shape}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | use super::*; [INFO] [stdout] | -------- the item `Shape` is already imported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Matrix4` is imported redundantly [INFO] [stdout] --> src/shape/group.rs:83:54 [INFO] [stdout] | [INFO] [stdout] 81 | use super::*; [INFO] [stdout] | -------- the item `Matrix4` is already imported here [INFO] [stdout] 82 | use crate::shape::{get_rc, Sphere}; [INFO] [stdout] 83 | use cgmath::{assert_relative_eq, EuclideanSpace, Matrix4, Point3, Rad, Vector3}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `filter_intersections` is never used [INFO] [stdout] --> src/shape/constructive_solid_geometry.rs:74:8 [INFO] [stdout] | [INFO] [stdout] 74 | fn filter_intersections() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `local_intersect` is never used [INFO] [stdout] --> src/shape/constructive_solid_geometry.rs:102:8 [INFO] [stdout] | [INFO] [stdout] 102 | fn local_intersect() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `normals` is never read [INFO] [stdout] --> src/shape/obj_file.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Parser { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 15 | normals: Vec>, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/shape/cylinder.rs (2 fixes) [INFO] [stderr] Fixed src/material.rs (4 fixes) [INFO] [stderr] Fixed src/shape/plane.rs (2 fixes) [INFO] [stderr] Fixed src/world.rs (5 fixes) [INFO] [stderr] Fixed src/pattern/mod.rs (3 fixes) [INFO] [stderr] Fixed src/pattern/stripe.rs (2 fixes) [INFO] [stderr] Fixed src/ray.rs (1 fix) [INFO] [stderr] Fixed src/shape/sphere.rs (2 fixes) [INFO] [stderr] Fixed src/shape/smooth_triangle.rs (2 fixes) [INFO] [stderr] Fixed src/computation.rs (4 fixes) [INFO] [stderr] Fixed src/shape/group.rs (5 fixes) [INFO] [stderr] Fixed src/pattern/checker.rs (2 fixes) [INFO] [stderr] Fixed src/shape/cube.rs (1 fix) [INFO] [stderr] Fixed src/pattern/gradient.rs (2 fixes) [INFO] [stderr] Fixed src/pattern/ring.rs (2 fixes) [INFO] [stderr] Fixed src/pattern/test.rs (2 fixes) [INFO] [stderr] Fixed src/shape/mod.rs (3 fixes) [INFO] [stderr] Fixed src/intersection.rs (4 fixes) [INFO] [stderr] Fixed src/shape/obj_file.rs (2 fixes) [INFO] [stderr] Fixed src/shape/cone.rs (3 fixes) [INFO] [stderr] Fixed src/shape/triangle.rs (1 fix) [INFO] [stdout] warning: fields `vertices` and `normals` are never read [INFO] [stdout] --> src/shape/obj_file.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Parser { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 13 | groups: HashMap>, [INFO] [stdout] 14 | vertices: Vec>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 15 | normals: Vec>, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating src/bin/silhouette.rs from 2021 edition to 2024 [INFO] [stderr] Migrating src/bin/spheres.rs from 2021 edition to 2024 [INFO] [stderr] Migrating src/bin/projectile.rs from 2021 edition to 2024 [INFO] [stderr] Migrating src/bin/clock.rs from 2021 edition to 2024 [INFO] [stderr] Migrating src/bin/plane.rs from 2021 edition to 2024 [INFO] [stderr] Migrating src/bin/sphere.rs from 2021 edition to 2024 [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 9.48s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking ray-tracer-challenge v0.1.0 (/tmp/fixit) [INFO] [stdout] error: cannot find macro `assert_relative_eq` in this scope [INFO] [stdout] --> src/computation.rs:89:13 [INFO] [stdout] | [INFO] [stdout] 89 | assert_relative_eq!(comps.schlick(), 0.04); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 67 + use approx::assert_relative_eq; [INFO] [stdout] | [INFO] [stdout] 67 + use cgmath::assert_relative_eq; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `assert_relative_eq` in this scope [INFO] [stdout] --> src/computation.rs:95:13 [INFO] [stdout] | [INFO] [stdout] 95 | assert_relative_eq!(comps.schlick(), 0.48873, max_relative = 0.00001); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 67 + use approx::assert_relative_eq; [INFO] [stdout] | [INFO] [stdout] 67 + use cgmath::assert_relative_eq; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `assert_relative_eq` in this scope [INFO] [stdout] --> src/material.rs:94:9 [INFO] [stdout] | [INFO] [stdout] 94 | assert_relative_eq!( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 67 + use approx::assert_relative_eq; [INFO] [stdout] | [INFO] [stdout] 67 + use cgmath::assert_relative_eq; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `assert_relative_eq` in this scope [INFO] [stdout] --> src/material.rs:107:9 [INFO] [stdout] | [INFO] [stdout] 107 | assert_relative_eq!( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 67 + use approx::assert_relative_eq; [INFO] [stdout] | [INFO] [stdout] 67 + use cgmath::assert_relative_eq; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `assert_relative_eq` in this scope [INFO] [stdout] --> src/shape/cone.rs:138:13 [INFO] [stdout] | [INFO] [stdout] 138 | assert_relative_eq!( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 133 + use approx::assert_relative_eq; [INFO] [stdout] | [INFO] [stdout] 133 + use cgmath::assert_relative_eq; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `assert_relative_eq` in this scope [INFO] [stdout] --> src/shape/cone.rs:156:13 [INFO] [stdout] | [INFO] [stdout] 156 | assert_relative_eq!( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 133 + use approx::assert_relative_eq; [INFO] [stdout] | [INFO] [stdout] 133 + use cgmath::assert_relative_eq; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `assert_relative_eq` in this scope [INFO] [stdout] --> src/shape/cone.rs:167:13 [INFO] [stdout] | [INFO] [stdout] 167 | assert_relative_eq!( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 133 + use approx::assert_relative_eq; [INFO] [stdout] | [INFO] [stdout] 133 + use cgmath::assert_relative_eq; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `assert_relative_eq` in this scope [INFO] [stdout] --> src/shape/cone.rs:178:13 [INFO] [stdout] | [INFO] [stdout] 178 | assert_relative_eq!( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 133 + use approx::assert_relative_eq; [INFO] [stdout] | [INFO] [stdout] 133 + use cgmath::assert_relative_eq; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `assert_relative_eq` in this scope [INFO] [stdout] --> src/shape/cylinder.rs:161:13 [INFO] [stdout] | [INFO] [stdout] 161 | assert_relative_eq!( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 127 + use approx::assert_relative_eq; [INFO] [stdout] | [INFO] [stdout] 127 + use cgmath::assert_relative_eq; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `assert_relative_eq` in this scope [INFO] [stdout] --> src/shape/group.rs:173:9 [INFO] [stdout] | [INFO] [stdout] 173 | assert_relative_eq!( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 85 + use approx::assert_relative_eq; [INFO] [stdout] | [INFO] [stdout] 85 + use cgmath::assert_relative_eq; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `assert_relative_eq` in this scope [INFO] [stdout] --> src/shape/group.rs:206:9 [INFO] [stdout] | [INFO] [stdout] 206 | assert_relative_eq!( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 85 + use approx::assert_relative_eq; [INFO] [stdout] | [INFO] [stdout] 85 + use cgmath::assert_relative_eq; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `assert_relative_eq` in this scope [INFO] [stdout] --> src/shape/group.rs:237:9 [INFO] [stdout] | [INFO] [stdout] 237 | assert_relative_eq!( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 85 + use approx::assert_relative_eq; [INFO] [stdout] | [INFO] [stdout] 85 + use cgmath::assert_relative_eq; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `assert_relative_eq` in this scope [INFO] [stdout] --> src/shape/smooth_triangle.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 60 | assert_relative_eq!(u, 0.45); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 46 + use approx::assert_relative_eq; [INFO] [stdout] | [INFO] [stdout] 46 + use cgmath::assert_relative_eq; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `assert_relative_eq` in this scope [INFO] [stdout] --> src/shape/smooth_triangle.rs:61:9 [INFO] [stdout] | [INFO] [stdout] 61 | assert_relative_eq!(v, 0.25); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 46 + use approx::assert_relative_eq; [INFO] [stdout] | [INFO] [stdout] 46 + use cgmath::assert_relative_eq; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `assert_relative_eq` in this scope [INFO] [stdout] --> src/shape/smooth_triangle.rs:76:9 [INFO] [stdout] | [INFO] [stdout] 76 | assert_relative_eq!( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 46 + use approx::assert_relative_eq; [INFO] [stdout] | [INFO] [stdout] 46 + use cgmath::assert_relative_eq; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `assert_relative_eq` in this scope [INFO] [stdout] --> src/shape/smooth_triangle.rs:102:9 [INFO] [stdout] | [INFO] [stdout] 102 | assert_relative_eq!( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 46 + use approx::assert_relative_eq; [INFO] [stdout] | [INFO] [stdout] 46 + use cgmath::assert_relative_eq; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `assert_relative_eq` in this scope [INFO] [stdout] --> src/shape/sphere.rs:93:17 [INFO] [stdout] | [INFO] [stdout] 93 | assert_relative_eq!(sphere.local_normal_at(Point3::from_vec(v)), v); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 75 + use approx::assert_relative_eq; [INFO] [stdout] | [INFO] [stdout] 75 + use cgmath::assert_relative_eq; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `assert_relative_eq` in this scope [INFO] [stdout] --> src/shape/mod.rs:226:9 [INFO] [stdout] | [INFO] [stdout] 226 | assert_relative_eq!( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 224 + use approx::assert_relative_eq; [INFO] [stdout] | [INFO] [stdout] 224 + use cgmath::assert_relative_eq; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `assert_relative_eq` in this scope [INFO] [stdout] --> src/shape/mod.rs:237:9 [INFO] [stdout] | [INFO] [stdout] 237 | assert_relative_eq!( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 224 + use approx::assert_relative_eq; [INFO] [stdout] | [INFO] [stdout] 224 + use cgmath::assert_relative_eq; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `assert_relative_eq` in this scope [INFO] [stdout] --> src/shape/mod.rs:252:9 [INFO] [stdout] | [INFO] [stdout] 252 | assert_relative_eq!( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 224 + use approx::assert_relative_eq; [INFO] [stdout] | [INFO] [stdout] 224 + use cgmath::assert_relative_eq; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `assert_relative_eq` in this scope [INFO] [stdout] --> src/shape/mod.rs:256:9 [INFO] [stdout] | [INFO] [stdout] 256 | assert_relative_eq!( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 224 + use approx::assert_relative_eq; [INFO] [stdout] | [INFO] [stdout] 224 + use cgmath::assert_relative_eq; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `assert_relative_eq` in this scope [INFO] [stdout] --> src/world.rs:155:13 [INFO] [stdout] | [INFO] [stdout] 155 | assert_relative_eq!( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 150 + use approx::assert_relative_eq; [INFO] [stdout] | [INFO] [stdout] 150 + use cgmath::assert_relative_eq; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `assert_relative_eq` in this scope [INFO] [stdout] --> src/world.rs:169:13 [INFO] [stdout] | [INFO] [stdout] 169 | assert_relative_eq!( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 150 + use approx::assert_relative_eq; [INFO] [stdout] | [INFO] [stdout] 150 + use cgmath::assert_relative_eq; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `assert_relative_eq` in this scope [INFO] [stdout] --> src/world.rs:192:13 [INFO] [stdout] | [INFO] [stdout] 192 | assert_relative_eq!( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 150 + use approx::assert_relative_eq; [INFO] [stdout] | [INFO] [stdout] 150 + use cgmath::assert_relative_eq; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `assert_relative_eq` in this scope [INFO] [stdout] --> src/world.rs:217:13 [INFO] [stdout] | [INFO] [stdout] 217 | assert_relative_eq!( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 150 + use approx::assert_relative_eq; [INFO] [stdout] | [INFO] [stdout] 150 + use cgmath::assert_relative_eq; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `assert_relative_eq` in this scope [INFO] [stdout] --> src/world.rs:243:13 [INFO] [stdout] | [INFO] [stdout] 243 | assert_relative_eq!( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 150 + use approx::assert_relative_eq; [INFO] [stdout] | [INFO] [stdout] 150 + use cgmath::assert_relative_eq; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `assert_relative_eq` in this scope [INFO] [stdout] --> src/world.rs:258:9 [INFO] [stdout] | [INFO] [stdout] 258 | assert_relative_eq!( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 150 + use approx::assert_relative_eq; [INFO] [stdout] | [INFO] [stdout] 150 + use cgmath::assert_relative_eq; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `assert_relative_eq` in this scope [INFO] [stdout] --> src/world.rs:310:13 [INFO] [stdout] | [INFO] [stdout] 310 | assert_relative_eq!( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 150 + use approx::assert_relative_eq; [INFO] [stdout] | [INFO] [stdout] 150 + use cgmath::assert_relative_eq; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `assert_relative_eq` in this scope [INFO] [stdout] --> src/world.rs:394:13 [INFO] [stdout] | [INFO] [stdout] 394 | assert_relative_eq!( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 150 + use approx::assert_relative_eq; [INFO] [stdout] | [INFO] [stdout] 150 + use cgmath::assert_relative_eq; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `vertices` and `normals` are never read [INFO] [stdout] --> src/shape/obj_file.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Parser { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 13 | groups: HashMap>, [INFO] [stdout] 14 | vertices: Vec>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 15 | normals: Vec>, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Sphere` [INFO] [stdout] --> src/computation.rs:69:26 [INFO] [stdout] | [INFO] [stdout] 69 | let mut sphere = Sphere::default(); [INFO] [stdout] | ^^^^^^ use of undeclared type `Sphere` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 67 + use crate::shape::sphere::Sphere; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Shape` [INFO] [stdout] --> src/computation.rs:72:21 [INFO] [stdout] | [INFO] [stdout] 72 | let shape = Shape::Sphere(sphere); [INFO] [stdout] | ^^^^^ use of undeclared type `Shape` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 67 + use crate::shape::Shape; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ray` [INFO] [stdout] --> src/computation.rs:74:21 [INFO] [stdout] | [INFO] [stdout] 74 | let r = Ray::new(Point3::new(0., 0., FRAC_1_SQRT_2), Vector3::unit_y()); [INFO] [stdout] | ^^^ use of undeclared type `Ray` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 67 + use crate::ray::Ray; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/computation.rs:74:30 [INFO] [stdout] | [INFO] [stdout] 74 | let r = Ray::new(Point3::new(0., 0., FRAC_1_SQRT_2), Vector3::unit_y()); [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 67 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 67 + use crate::computation::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FRAC_1_SQRT_2` in this scope [INFO] [stdout] --> src/computation.rs:74:50 [INFO] [stdout] | [INFO] [stdout] 74 | let r = Ray::new(Point3::new(0., 0., FRAC_1_SQRT_2), Vector3::unit_y()); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 67 + use core::f32::consts::FRAC_1_SQRT_2; [INFO] [stdout] | [INFO] [stdout] 67 + use core::f64::consts::FRAC_1_SQRT_2; [INFO] [stdout] | [INFO] [stdout] 67 + use std::f32::consts::FRAC_1_SQRT_2; [INFO] [stdout] | [INFO] [stdout] 67 + use std::f64::consts::FRAC_1_SQRT_2; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/computation.rs:74:66 [INFO] [stdout] | [INFO] [stdout] 74 | let r = Ray::new(Point3::new(0., 0., FRAC_1_SQRT_2), Vector3::unit_y()); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 67 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 67 + use crate::computation::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Intersection` [INFO] [stdout] --> src/computation.rs:76:17 [INFO] [stdout] | [INFO] [stdout] 76 | Intersection::new(-FRAC_1_SQRT_2, shape.clone(), None), [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `Intersection` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 67 + use crate::intersection::Intersection; [INFO] [stdout] | [INFO] [stdout] 67 + use std::collections::btree_set::Intersection; [INFO] [stdout] | [INFO] [stdout] 67 + use std::collections::hash_set::Intersection; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FRAC_1_SQRT_2` in this scope [INFO] [stdout] --> src/computation.rs:76:36 [INFO] [stdout] | [INFO] [stdout] 76 | Intersection::new(-FRAC_1_SQRT_2, shape.clone(), None), [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 67 + use core::f32::consts::FRAC_1_SQRT_2; [INFO] [stdout] | [INFO] [stdout] 67 + use core::f64::consts::FRAC_1_SQRT_2; [INFO] [stdout] | [INFO] [stdout] 67 + use std::f32::consts::FRAC_1_SQRT_2; [INFO] [stdout] | [INFO] [stdout] 67 + use std::f64::consts::FRAC_1_SQRT_2; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Intersection` [INFO] [stdout] --> src/computation.rs:77:17 [INFO] [stdout] | [INFO] [stdout] 77 | Intersection::new(FRAC_1_SQRT_2, shape.clone(), None), [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `Intersection` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 67 + use crate::intersection::Intersection; [INFO] [stdout] | [INFO] [stdout] 67 + use std::collections::btree_set::Intersection; [INFO] [stdout] | [INFO] [stdout] 67 + use std::collections::hash_set::Intersection; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FRAC_1_SQRT_2` in this scope [INFO] [stdout] --> src/computation.rs:77:35 [INFO] [stdout] | [INFO] [stdout] 77 | Intersection::new(FRAC_1_SQRT_2, shape.clone(), None), [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 67 + use core::f32::consts::FRAC_1_SQRT_2; [INFO] [stdout] | [INFO] [stdout] 67 + use core::f64::consts::FRAC_1_SQRT_2; [INFO] [stdout] | [INFO] [stdout] 67 + use std::f32::consts::FRAC_1_SQRT_2; [INFO] [stdout] | [INFO] [stdout] 67 + use std::f64::consts::FRAC_1_SQRT_2; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ray` [INFO] [stdout] --> src/computation.rs:83:21 [INFO] [stdout] | [INFO] [stdout] 83 | let r = Ray::new(Point3::origin(), Vector3::unit_y()); [INFO] [stdout] | ^^^ use of undeclared type `Ray` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 67 + use crate::ray::Ray; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/computation.rs:83:30 [INFO] [stdout] | [INFO] [stdout] 83 | let r = Ray::new(Point3::origin(), Vector3::unit_y()); [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 67 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 67 + use crate::computation::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/computation.rs:83:48 [INFO] [stdout] | [INFO] [stdout] 83 | let r = Ray::new(Point3::origin(), Vector3::unit_y()); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 67 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 67 + use crate::computation::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Intersection` [INFO] [stdout] --> src/computation.rs:85:17 [INFO] [stdout] | [INFO] [stdout] 85 | Intersection::new(-1., shape.clone(), None), [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `Intersection` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 67 + use crate::intersection::Intersection; [INFO] [stdout] | [INFO] [stdout] 67 + use std::collections::btree_set::Intersection; [INFO] [stdout] | [INFO] [stdout] 67 + 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/computation.rs:86:17 [INFO] [stdout] | [INFO] [stdout] 86 | Intersection::new(1., shape.clone(), None), [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `Intersection` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 67 + use crate::intersection::Intersection; [INFO] [stdout] | [INFO] [stdout] 67 + use std::collections::btree_set::Intersection; [INFO] [stdout] | [INFO] [stdout] 67 + use std::collections::hash_set::Intersection; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ray` [INFO] [stdout] --> src/computation.rs:92:21 [INFO] [stdout] | [INFO] [stdout] 92 | let r = Ray::new(Point3::new(0., 0.99, -2.), Vector3::unit_z()); [INFO] [stdout] | ^^^ use of undeclared type `Ray` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 67 + use crate::ray::Ray; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/computation.rs:92:30 [INFO] [stdout] | [INFO] [stdout] 92 | let r = Ray::new(Point3::new(0., 0.99, -2.), Vector3::unit_z()); [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 67 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 67 + use crate::computation::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/computation.rs:92:58 [INFO] [stdout] | [INFO] [stdout] 92 | let r = Ray::new(Point3::new(0., 0.99, -2.), Vector3::unit_z()); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 67 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 67 + use crate::computation::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Intersection` [INFO] [stdout] --> src/computation.rs:93:27 [INFO] [stdout] | [INFO] [stdout] 93 | let xs = vec![Intersection::new(1.8589, shape, None)]; [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `Intersection` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 67 + use crate::intersection::Intersection; [INFO] [stdout] | [INFO] [stdout] 67 + use std::collections::btree_set::Intersection; [INFO] [stdout] | [INFO] [stdout] 67 + use std::collections::hash_set::Intersection; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Shape` [INFO] [stdout] --> src/intersection.rs:74:22 [INFO] [stdout] | [INFO] [stdout] 74 | let sphere = Shape::Sphere(Sphere::default()); [INFO] [stdout] | ^^^^^ use of undeclared type `Shape` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 72 + use crate::shape::Shape; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Sphere` [INFO] [stdout] --> src/intersection.rs:74:36 [INFO] [stdout] | [INFO] [stdout] 74 | let sphere = Shape::Sphere(Sphere::default()); [INFO] [stdout] | ^^^^^^ use of undeclared type `Sphere` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 72 + use crate::shape::sphere::Sphere; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Intersection` [INFO] [stdout] --> src/intersection.rs:77:22 [INFO] [stdout] | [INFO] [stdout] 77 | let i1 = Intersection::new(1., sphere.clone(), None); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `Intersection` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 72 + use crate::intersection::Intersection; [INFO] [stdout] | [INFO] [stdout] 72 + use std::collections::btree_set::Intersection; [INFO] [stdout] | [INFO] [stdout] 72 + 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/intersection.rs:81:21 [INFO] [stdout] | [INFO] [stdout] 81 | Intersection::new(2., sphere.clone(), None) [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `Intersection` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 72 + use crate::intersection::Intersection; [INFO] [stdout] | [INFO] [stdout] 72 + use std::collections::btree_set::Intersection; [INFO] [stdout] | [INFO] [stdout] 72 + 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/intersection.rs:88:21 [INFO] [stdout] | [INFO] [stdout] 88 | Intersection::new(-1., sphere.clone(), None), [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `Intersection` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 72 + use crate::intersection::Intersection; [INFO] [stdout] | [INFO] [stdout] 72 + use std::collections::btree_set::Intersection; [INFO] [stdout] | [INFO] [stdout] 72 + 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/intersection.rs:97:17 [INFO] [stdout] | [INFO] [stdout] 97 | Intersection::new(-2., sphere.clone(), None), [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `Intersection` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 72 + use crate::intersection::Intersection; [INFO] [stdout] | [INFO] [stdout] 72 + use std::collections::btree_set::Intersection; [INFO] [stdout] | [INFO] [stdout] 72 + 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/intersection.rs:98:17 [INFO] [stdout] | [INFO] [stdout] 98 | Intersection::new(-1., sphere, None) [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `Intersection` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 72 + use crate::intersection::Intersection; [INFO] [stdout] | [INFO] [stdout] 72 + use std::collections::btree_set::Intersection; [INFO] [stdout] | [INFO] [stdout] 72 + use std::collections::hash_set::Intersection; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/intersection.rs:107:22 [INFO] [stdout] | [INFO] [stdout] 107 | let vz = Vector3::unit_z(); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 72 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ray` [INFO] [stdout] --> src/intersection.rs:108:21 [INFO] [stdout] | [INFO] [stdout] 108 | let r = Ray::new(Point3::from_vec(-5. * vz), vz); [INFO] [stdout] | ^^^ use of undeclared type `Ray` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 72 + use crate::ray::Ray; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/intersection.rs:108:30 [INFO] [stdout] | [INFO] [stdout] 108 | let r = Ray::new(Point3::from_vec(-5. * vz), vz); [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 72 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Shape` [INFO] [stdout] --> src/intersection.rs:109:25 [INFO] [stdout] | [INFO] [stdout] 109 | let shape = Shape::Sphere(Sphere::new( [INFO] [stdout] | ^^^^^ use of undeclared type `Shape` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 72 + use crate::shape::Shape; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Sphere` [INFO] [stdout] --> src/intersection.rs:109:39 [INFO] [stdout] | [INFO] [stdout] 109 | let shape = Shape::Sphere(Sphere::new( [INFO] [stdout] | ^^^^^^ use of undeclared type `Sphere` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 72 + use crate::shape::sphere::Sphere; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Matrix4` [INFO] [stdout] --> src/intersection.rs:110:17 [INFO] [stdout] | [INFO] [stdout] 110 | Matrix4::from_translation(vz), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Matrix4` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 72 + use cgmath::Matrix4; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Material` [INFO] [stdout] --> src/intersection.rs:111:17 [INFO] [stdout] | [INFO] [stdout] 111 | Material::default(), [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Material` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 72 + use crate::material::Material; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Intersection` [INFO] [stdout] --> src/intersection.rs:114:21 [INFO] [stdout] | [INFO] [stdout] 114 | let i = Intersection::new(5., shape, None); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `Intersection` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 72 + use crate::intersection::Intersection; [INFO] [stdout] | [INFO] [stdout] 72 + use std::collections::btree_set::Intersection; [INFO] [stdout] | [INFO] [stdout] 72 + use std::collections::hash_set::Intersection; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `EPSILON` in this scope [INFO] [stdout] --> src/intersection.rs:117:44 [INFO] [stdout] | [INFO] [stdout] 117 | assert!(comps.over_point().z < EPSILON / 2.); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 72 + use core::f32::EPSILON; [INFO] [stdout] | [INFO] [stdout] 72 + use core::f64::EPSILON; [INFO] [stdout] | [INFO] [stdout] 72 + use std::f32::EPSILON; [INFO] [stdout] | [INFO] [stdout] 72 + use std::f64::EPSILON; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `EPSILON` in this scope [INFO] [stdout] --> src/intersection.rs:119:45 [INFO] [stdout] | [INFO] [stdout] 119 | assert!(comps.under_point().z > EPSILON / 2.); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 72 + use core::f32::EPSILON; [INFO] [stdout] | [INFO] [stdout] 72 + use core::f64::EPSILON; [INFO] [stdout] | [INFO] [stdout] 72 + use std::f32::EPSILON; [INFO] [stdout] | [INFO] [stdout] 72 + use std::f64::EPSILON; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Shape` [INFO] [stdout] --> src/intersection.rs:123:26 [INFO] [stdout] | [INFO] [stdout] 123 | let object = Shape::Sphere(Sphere::default()); [INFO] [stdout] | ^^^^^ use of undeclared type `Shape` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 72 + use crate::shape::Shape; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Sphere` [INFO] [stdout] --> src/intersection.rs:123:40 [INFO] [stdout] | [INFO] [stdout] 123 | let object = Shape::Sphere(Sphere::default()); [INFO] [stdout] | ^^^^^^ use of undeclared type `Sphere` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 72 + use crate::shape::sphere::Sphere; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/intersection.rs:124:22 [INFO] [stdout] | [INFO] [stdout] 124 | let vz = Vector3::unit_z(); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 72 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/intersection.rs:125:25 [INFO] [stdout] | [INFO] [stdout] 125 | let point = Point3::from_vec(vz); [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 72 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Intersection` [INFO] [stdout] --> src/intersection.rs:126:21 [INFO] [stdout] | [INFO] [stdout] 126 | let i = Intersection::new(1., object.clone(), None); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `Intersection` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 72 + use crate::intersection::Intersection; [INFO] [stdout] | [INFO] [stdout] 72 + use std::collections::btree_set::Intersection; [INFO] [stdout] | [INFO] [stdout] 72 + use std::collections::hash_set::Intersection; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ray` [INFO] [stdout] --> src/intersection.rs:129:30 [INFO] [stdout] | [INFO] [stdout] 129 | i.precompute(Ray::new(Point3::origin(), vz), &xs).unwrap(), [INFO] [stdout] | ^^^ use of undeclared type `Ray` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 72 + use crate::ray::Ray; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/intersection.rs:129:39 [INFO] [stdout] | [INFO] [stdout] 129 | i.precompute(Ray::new(Point3::origin(), vz), &xs).unwrap(), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 72 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Computation` [INFO] [stdout] --> src/intersection.rs:130:17 [INFO] [stdout] | [INFO] [stdout] 130 | Computation::new(1., object, point, -vz, -vz, true, -vz, 1., 1.) [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `Computation` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 72 + use crate::intersection::Computation; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Plane` [INFO] [stdout] --> src/intersection.rs:134:25 [INFO] [stdout] | [INFO] [stdout] 134 | let shape = Plane::default(); [INFO] [stdout] | ^^^^^ use of undeclared type `Plane` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 72 + use crate::shape::plane::Plane; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ray` [INFO] [stdout] --> src/intersection.rs:135:21 [INFO] [stdout] | [INFO] [stdout] 135 | let r = Ray::new( [INFO] [stdout] | ^^^ use of undeclared type `Ray` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 72 + use crate::ray::Ray; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/intersection.rs:136:17 [INFO] [stdout] | [INFO] [stdout] 136 | Point3::new(0., 1., -1.), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 72 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/intersection.rs:137:17 [INFO] [stdout] | [INFO] [stdout] 137 | Vector3::new(0., -FRAC_1_SQRT_2, FRAC_1_SQRT_2), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 72 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FRAC_1_SQRT_2` in this scope [INFO] [stdout] --> src/intersection.rs:137:35 [INFO] [stdout] | [INFO] [stdout] 137 | Vector3::new(0., -FRAC_1_SQRT_2, FRAC_1_SQRT_2), [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 72 + use core::f32::consts::FRAC_1_SQRT_2; [INFO] [stdout] | [INFO] [stdout] 72 + use core::f64::consts::FRAC_1_SQRT_2; [INFO] [stdout] | [INFO] [stdout] 72 + use std::f32::consts::FRAC_1_SQRT_2; [INFO] [stdout] | [INFO] [stdout] 72 + use std::f64::consts::FRAC_1_SQRT_2; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FRAC_1_SQRT_2` in this scope [INFO] [stdout] --> src/intersection.rs:137:50 [INFO] [stdout] | [INFO] [stdout] 137 | Vector3::new(0., -FRAC_1_SQRT_2, FRAC_1_SQRT_2), [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 72 + use core::f32::consts::FRAC_1_SQRT_2; [INFO] [stdout] | [INFO] [stdout] 72 + use core::f64::consts::FRAC_1_SQRT_2; [INFO] [stdout] | [INFO] [stdout] 72 + use std::f32::consts::FRAC_1_SQRT_2; [INFO] [stdout] | [INFO] [stdout] 72 + use std::f64::consts::FRAC_1_SQRT_2; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Intersection` [INFO] [stdout] --> src/intersection.rs:139:21 [INFO] [stdout] | [INFO] [stdout] 139 | let i = Intersection::new(2.0_f32.sqrt(), Shape::Plane(shape), None); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `Intersection` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 72 + use crate::intersection::Intersection; [INFO] [stdout] | [INFO] [stdout] 72 + use std::collections::btree_set::Intersection; [INFO] [stdout] | [INFO] [stdout] 72 + use std::collections::hash_set::Intersection; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Shape` [INFO] [stdout] --> src/intersection.rs:139:55 [INFO] [stdout] | [INFO] [stdout] 139 | let i = Intersection::new(2.0_f32.sqrt(), Shape::Plane(shape), None); [INFO] [stdout] | ^^^^^ use of undeclared type `Shape` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 72 + use crate::shape::Shape; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/intersection.rs:144:17 [INFO] [stdout] | [INFO] [stdout] 144 | Vector3::new(0., FRAC_1_SQRT_2, FRAC_1_SQRT_2) [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 72 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FRAC_1_SQRT_2` in this scope [INFO] [stdout] --> src/intersection.rs:144:34 [INFO] [stdout] | [INFO] [stdout] 144 | Vector3::new(0., FRAC_1_SQRT_2, FRAC_1_SQRT_2) [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 72 + use core::f32::consts::FRAC_1_SQRT_2; [INFO] [stdout] | [INFO] [stdout] 72 + use core::f64::consts::FRAC_1_SQRT_2; [INFO] [stdout] | [INFO] [stdout] 72 + use std::f32::consts::FRAC_1_SQRT_2; [INFO] [stdout] | [INFO] [stdout] 72 + use std::f64::consts::FRAC_1_SQRT_2; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FRAC_1_SQRT_2` in this scope [INFO] [stdout] --> src/intersection.rs:144:49 [INFO] [stdout] | [INFO] [stdout] 144 | Vector3::new(0., FRAC_1_SQRT_2, FRAC_1_SQRT_2) [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 72 + use core::f32::consts::FRAC_1_SQRT_2; [INFO] [stdout] | [INFO] [stdout] 72 + use core::f64::consts::FRAC_1_SQRT_2; [INFO] [stdout] | [INFO] [stdout] 72 + use std::f32::consts::FRAC_1_SQRT_2; [INFO] [stdout] | [INFO] [stdout] 72 + use std::f64::consts::FRAC_1_SQRT_2; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/intersection.rs:148:22 [INFO] [stdout] | [INFO] [stdout] 148 | let vz = Vector3::unit_z(); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 72 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Material` [INFO] [stdout] --> src/intersection.rs:149:32 [INFO] [stdout] | [INFO] [stdout] 149 | let mut material = Material::default(); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Material` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 72 + use crate::material::Material; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Shape` [INFO] [stdout] --> src/intersection.rs:152:21 [INFO] [stdout] | [INFO] [stdout] 152 | let a = Shape::Sphere(Sphere::new(Matrix4::from_scale(2.), material, None)); [INFO] [stdout] | ^^^^^ use of undeclared type `Shape` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 72 + use crate::shape::Shape; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Sphere` [INFO] [stdout] --> src/intersection.rs:152:35 [INFO] [stdout] | [INFO] [stdout] 152 | let a = Shape::Sphere(Sphere::new(Matrix4::from_scale(2.), material, None)); [INFO] [stdout] | ^^^^^^ use of undeclared type `Sphere` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 72 + use crate::shape::sphere::Sphere; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Matrix4` [INFO] [stdout] --> src/intersection.rs:152:47 [INFO] [stdout] | [INFO] [stdout] 152 | let a = Shape::Sphere(Sphere::new(Matrix4::from_scale(2.), material, None)); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Matrix4` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 72 + use cgmath::Matrix4; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Shape` [INFO] [stdout] --> src/intersection.rs:154:21 [INFO] [stdout] | [INFO] [stdout] 154 | let b = Shape::Sphere(Sphere::new( [INFO] [stdout] | ^^^^^ use of undeclared type `Shape` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 72 + use crate::shape::Shape; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Sphere` [INFO] [stdout] --> src/intersection.rs:154:35 [INFO] [stdout] | [INFO] [stdout] 154 | let b = Shape::Sphere(Sphere::new( [INFO] [stdout] | ^^^^^^ use of undeclared type `Sphere` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 72 + use crate::shape::sphere::Sphere; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Matrix4` [INFO] [stdout] --> src/intersection.rs:155:17 [INFO] [stdout] | [INFO] [stdout] 155 | Matrix4::from_translation(vz * -0.25), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Matrix4` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 72 + use cgmath::Matrix4; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Shape` [INFO] [stdout] --> src/intersection.rs:160:21 [INFO] [stdout] | [INFO] [stdout] 160 | let c = Shape::Sphere(Sphere::new( [INFO] [stdout] | ^^^^^ use of undeclared type `Shape` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 72 + use crate::shape::Shape; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Sphere` [INFO] [stdout] --> src/intersection.rs:160:35 [INFO] [stdout] | [INFO] [stdout] 160 | let c = Shape::Sphere(Sphere::new( [INFO] [stdout] | ^^^^^^ use of undeclared type `Sphere` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 72 + use crate::shape::sphere::Sphere; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Matrix4` [INFO] [stdout] --> src/intersection.rs:161:17 [INFO] [stdout] | [INFO] [stdout] 161 | Matrix4::from_translation(vz * 0.25), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Matrix4` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 72 + use cgmath::Matrix4; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ray` [INFO] [stdout] --> src/intersection.rs:165:21 [INFO] [stdout] | [INFO] [stdout] 165 | let r = Ray::new(Point3::from_vec(vz * -4.), vz); [INFO] [stdout] | ^^^ use of undeclared type `Ray` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 72 + use crate::ray::Ray; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/intersection.rs:165:30 [INFO] [stdout] | [INFO] [stdout] 165 | let r = Ray::new(Point3::from_vec(vz * -4.), vz); [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 72 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Intersection` [INFO] [stdout] --> src/intersection.rs:167:17 [INFO] [stdout] | [INFO] [stdout] 167 | Intersection::new(2., a.clone(), None), [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `Intersection` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 72 + use crate::intersection::Intersection; [INFO] [stdout] | [INFO] [stdout] 72 + use std::collections::btree_set::Intersection; [INFO] [stdout] | [INFO] [stdout] 72 + 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/intersection.rs:168:17 [INFO] [stdout] | [INFO] [stdout] 168 | Intersection::new(2.75, b.clone(), None), [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `Intersection` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 72 + use crate::intersection::Intersection; [INFO] [stdout] | [INFO] [stdout] 72 + use std::collections::btree_set::Intersection; [INFO] [stdout] | [INFO] [stdout] 72 + 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/intersection.rs:169:17 [INFO] [stdout] | [INFO] [stdout] 169 | Intersection::new(3.25, c.clone(), None), [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `Intersection` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 72 + use crate::intersection::Intersection; [INFO] [stdout] | [INFO] [stdout] 72 + use std::collections::btree_set::Intersection; [INFO] [stdout] | [INFO] [stdout] 72 + 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/intersection.rs:170:17 [INFO] [stdout] | [INFO] [stdout] 170 | Intersection::new(4.75, b, None), [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `Intersection` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 72 + use crate::intersection::Intersection; [INFO] [stdout] | [INFO] [stdout] 72 + use std::collections::btree_set::Intersection; [INFO] [stdout] | [INFO] [stdout] 72 + 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/intersection.rs:171:17 [INFO] [stdout] | [INFO] [stdout] 171 | Intersection::new(5.25, c, None), [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `Intersection` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 72 + use crate::intersection::Intersection; [INFO] [stdout] | [INFO] [stdout] 72 + use std::collections::btree_set::Intersection; [INFO] [stdout] | [INFO] [stdout] 72 + 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/intersection.rs:172:17 [INFO] [stdout] | [INFO] [stdout] 172 | Intersection::new(6., a, None), [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `Intersection` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 72 + use crate::intersection::Intersection; [INFO] [stdout] | [INFO] [stdout] 72 + use std::collections::btree_set::Intersection; [INFO] [stdout] | [INFO] [stdout] 72 + use std::collections::hash_set::Intersection; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/material.rs:69:22 [INFO] [stdout] | [INFO] [stdout] 69 | let origin = Point3::origin(); [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 67 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 67 + use crate::material::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/material.rs:70:21 [INFO] [stdout] | [INFO] [stdout] 70 | let negz = -Vector3::unit_z(); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 67 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 67 + use crate::material::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Material` [INFO] [stdout] --> src/material.rs:73:13 [INFO] [stdout] | [INFO] [stdout] 73 | Material::default().lighting( [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Material` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 67 + use crate::material::Material; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Light` [INFO] [stdout] --> src/material.rs:74:17 [INFO] [stdout] | [INFO] [stdout] 74 | Light::new(Point3::new(0., 0., -10.), RGB::new(1., 1., 1.)), [INFO] [stdout] | ^^^^^ use of undeclared type `Light` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 67 + use crate::material::Light; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/material.rs:74:28 [INFO] [stdout] | [INFO] [stdout] 74 | Light::new(Point3::new(0., 0., -10.), RGB::new(1., 1., 1.)), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 67 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 67 + use crate::material::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RGB` [INFO] [stdout] --> src/material.rs:74:55 [INFO] [stdout] | [INFO] [stdout] 74 | Light::new(Point3::new(0., 0., -10.), RGB::new(1., 1., 1.)), [INFO] [stdout] | ^^^ use of undeclared type `RGB` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 67 + use crate::material::RGB; [INFO] [stdout] | [INFO] [stdout] 67 + use rgb::RGB; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RGB` [INFO] [stdout] --> src/material.rs:80:13 [INFO] [stdout] | [INFO] [stdout] 80 | RGB::new(1.9, 1.9, 1.9) [INFO] [stdout] | ^^^ use of undeclared type `RGB` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 67 + use crate::material::RGB; [INFO] [stdout] | [INFO] [stdout] 67 + use rgb::RGB; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Material` [INFO] [stdout] --> src/material.rs:84:13 [INFO] [stdout] | [INFO] [stdout] 84 | Material::default().lighting( [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Material` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 67 + use crate::material::Material; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Light` [INFO] [stdout] --> src/material.rs:85:17 [INFO] [stdout] | [INFO] [stdout] 85 | Light::new(Point3::new(0., 0., -10.), RGB::new(1., 1., 1.)), [INFO] [stdout] | ^^^^^ use of undeclared type `Light` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 67 + use crate::material::Light; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/material.rs:85:28 [INFO] [stdout] | [INFO] [stdout] 85 | Light::new(Point3::new(0., 0., -10.), RGB::new(1., 1., 1.)), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 67 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 67 + use crate::material::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RGB` [INFO] [stdout] --> src/material.rs:85:55 [INFO] [stdout] | [INFO] [stdout] 85 | Light::new(Point3::new(0., 0., -10.), RGB::new(1., 1., 1.)), [INFO] [stdout] | ^^^ use of undeclared type `RGB` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 67 + use crate::material::RGB; [INFO] [stdout] | [INFO] [stdout] 67 + use rgb::RGB; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/material.rs:87:17 [INFO] [stdout] | [INFO] [stdout] 87 | Vector3::new(0., FRAC_1_SQRT_2, -FRAC_1_SQRT_2), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 67 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 67 + use crate::material::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FRAC_1_SQRT_2` in this scope [INFO] [stdout] --> src/material.rs:87:34 [INFO] [stdout] | [INFO] [stdout] 87 | Vector3::new(0., FRAC_1_SQRT_2, -FRAC_1_SQRT_2), [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 67 + use core::f32::consts::FRAC_1_SQRT_2; [INFO] [stdout] | [INFO] [stdout] 67 + use core::f64::consts::FRAC_1_SQRT_2; [INFO] [stdout] | [INFO] [stdout] 67 + use std::f32::consts::FRAC_1_SQRT_2; [INFO] [stdout] | [INFO] [stdout] 67 + use std::f64::consts::FRAC_1_SQRT_2; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FRAC_1_SQRT_2` in this scope [INFO] [stdout] --> src/material.rs:87:50 [INFO] [stdout] | [INFO] [stdout] 87 | Vector3::new(0., FRAC_1_SQRT_2, -FRAC_1_SQRT_2), [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 67 + use core::f32::consts::FRAC_1_SQRT_2; [INFO] [stdout] | [INFO] [stdout] 67 + use core::f64::consts::FRAC_1_SQRT_2; [INFO] [stdout] | [INFO] [stdout] 67 + use std::f32::consts::FRAC_1_SQRT_2; [INFO] [stdout] | [INFO] [stdout] 67 + use std::f64::consts::FRAC_1_SQRT_2; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RGB` [INFO] [stdout] --> src/material.rs:91:13 [INFO] [stdout] | [INFO] [stdout] 91 | RGB::new(1., 1., 1.) [INFO] [stdout] | ^^^ use of undeclared type `RGB` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 67 + use crate::material::RGB; [INFO] [stdout] | [INFO] [stdout] 67 + use rgb::RGB; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Material` [INFO] [stdout] --> src/material.rs:120:13 [INFO] [stdout] | [INFO] [stdout] 120 | Material::default().lighting( [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Material` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 67 + use crate::material::Material; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Light` [INFO] [stdout] --> src/material.rs:121:17 [INFO] [stdout] | [INFO] [stdout] 121 | Light::new(Point3::new(0., 0., 10.), RGB::new(1., 1., 1.)), [INFO] [stdout] | ^^^^^ use of undeclared type `Light` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 67 + use crate::material::Light; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/material.rs:121:28 [INFO] [stdout] | [INFO] [stdout] 121 | Light::new(Point3::new(0., 0., 10.), RGB::new(1., 1., 1.)), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 67 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 67 + use crate::material::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RGB` [INFO] [stdout] --> src/material.rs:121:54 [INFO] [stdout] | [INFO] [stdout] 121 | Light::new(Point3::new(0., 0., 10.), RGB::new(1., 1., 1.)), [INFO] [stdout] | ^^^ use of undeclared type `RGB` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 67 + use crate::material::RGB; [INFO] [stdout] | [INFO] [stdout] 67 + use rgb::RGB; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RGB` [INFO] [stdout] --> src/material.rs:127:13 [INFO] [stdout] | [INFO] [stdout] 127 | RGB::new(0.1, 0.1, 0.1) [INFO] [stdout] | ^^^ use of undeclared type `RGB` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 67 + use crate::material::RGB; [INFO] [stdout] | [INFO] [stdout] 67 + use rgb::RGB; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RGB` [INFO] [stdout] --> src/pattern/checker.rs:33:21 [INFO] [stdout] | [INFO] [stdout] 33 | let white = RGB::new(1., 1., 1.); [INFO] [stdout] | ^^^ use of undeclared type `RGB` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 31 + use crate::pattern::RGB; [INFO] [stdout] | [INFO] [stdout] 31 + use rgb::RGB; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RGB` [INFO] [stdout] --> src/pattern/checker.rs:34:21 [INFO] [stdout] | [INFO] [stdout] 34 | let black = RGB::new(0., 0., 0.); [INFO] [stdout] | ^^^ use of undeclared type `RGB` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 31 + use crate::pattern::RGB; [INFO] [stdout] | [INFO] [stdout] 31 + use rgb::RGB; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Checker` [INFO] [stdout] --> src/pattern/checker.rs:35:23 [INFO] [stdout] | [INFO] [stdout] 35 | let checker = Checker::new(white, black, Matrix4::identity()); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Checker` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 31 + use crate::pattern::Checker; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Matrix4` [INFO] [stdout] --> src/pattern/checker.rs:35:50 [INFO] [stdout] | [INFO] [stdout] 35 | let checker = Checker::new(white, black, Matrix4::identity()); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Matrix4` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 31 + use cgmath::Matrix4; [INFO] [stdout] | [INFO] [stdout] 31 + use crate::pattern::Matrix4; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/pattern/checker.rs:36:31 [INFO] [stdout] | [INFO] [stdout] 36 | assert_eq!(checker.at(Point3::origin()), white); [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 31 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 31 + use crate::pattern::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/pattern/checker.rs:37:31 [INFO] [stdout] | [INFO] [stdout] 37 | assert_eq!(checker.at(Point3::new(0.99, 0., 0.)), white); [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 31 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 31 + use crate::pattern::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/pattern/checker.rs:38:31 [INFO] [stdout] | [INFO] [stdout] 38 | assert_eq!(checker.at(Point3::new(1.01, 0., 0.)), black); [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 31 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 31 + use crate::pattern::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/pattern/checker.rs:39:31 [INFO] [stdout] | [INFO] [stdout] 39 | assert_eq!(checker.at(Point3::new(0., 0.99, 0.)), white); [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 31 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 31 + use crate::pattern::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/pattern/checker.rs:40:31 [INFO] [stdout] | [INFO] [stdout] 40 | assert_eq!(checker.at(Point3::new(0., 1.01, 0.)), black); [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 31 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 31 + use crate::pattern::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/pattern/checker.rs:41:31 [INFO] [stdout] | [INFO] [stdout] 41 | assert_eq!(checker.at(Point3::new(0., 0., 0.99)), white); [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 31 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 31 + use crate::pattern::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/pattern/checker.rs:42:31 [INFO] [stdout] | [INFO] [stdout] 42 | assert_eq!(checker.at(Point3::new(0., 0., 1.01)), black); [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 31 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 31 + use crate::pattern::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RGB` [INFO] [stdout] --> src/pattern/gradient.rs:30:21 [INFO] [stdout] | [INFO] [stdout] 30 | let white = RGB::new(1., 1., 1.); [INFO] [stdout] | ^^^ use of undeclared type `RGB` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 28 + use crate::pattern::RGB; [INFO] [stdout] | [INFO] [stdout] 28 + use rgb::RGB; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RGB` [INFO] [stdout] --> src/pattern/gradient.rs:31:21 [INFO] [stdout] | [INFO] [stdout] 31 | let black = RGB::new(0., 0., 0.); [INFO] [stdout] | ^^^ use of undeclared type `RGB` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 28 + use crate::pattern::RGB; [INFO] [stdout] | [INFO] [stdout] 28 + use rgb::RGB; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Gradient` [INFO] [stdout] --> src/pattern/gradient.rs:32:24 [INFO] [stdout] | [INFO] [stdout] 32 | let gradient = Gradient::new(white, black, Matrix4::identity()); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Gradient` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 28 + use crate::pattern::Gradient; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Matrix4` [INFO] [stdout] --> src/pattern/gradient.rs:32:52 [INFO] [stdout] | [INFO] [stdout] 32 | let gradient = Gradient::new(white, black, Matrix4::identity()); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Matrix4` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 28 + use cgmath::Matrix4; [INFO] [stdout] | [INFO] [stdout] 28 + use crate::pattern::Matrix4; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/pattern/gradient.rs:33:32 [INFO] [stdout] | [INFO] [stdout] 33 | assert_eq!(gradient.at(Point3::origin()), white); [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 28 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 28 + use crate::pattern::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/pattern/gradient.rs:35:25 [INFO] [stdout] | [INFO] [stdout] 35 | gradient.at(Point3::new(0.25, 0., 0.)), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 28 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 28 + use crate::pattern::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RGB` [INFO] [stdout] --> src/pattern/gradient.rs:36:13 [INFO] [stdout] | [INFO] [stdout] 36 | RGB::new(0.75, 0.75, 0.75) [INFO] [stdout] | ^^^ use of undeclared type `RGB` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 28 + use crate::pattern::RGB; [INFO] [stdout] | [INFO] [stdout] 28 + use rgb::RGB; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/pattern/gradient.rs:39:25 [INFO] [stdout] | [INFO] [stdout] 39 | gradient.at(Point3::new(0.5, 0., 0.)), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 28 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 28 + use crate::pattern::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RGB` [INFO] [stdout] --> src/pattern/gradient.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 40 | RGB::new(0.5, 0.5, 0.5) [INFO] [stdout] | ^^^ use of undeclared type `RGB` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 28 + use crate::pattern::RGB; [INFO] [stdout] | [INFO] [stdout] 28 + use rgb::RGB; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/pattern/gradient.rs:43:25 [INFO] [stdout] | [INFO] [stdout] 43 | gradient.at(Point3::new(0.75, 0., 0.)), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 28 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 28 + use crate::pattern::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RGB` [INFO] [stdout] --> src/pattern/gradient.rs:44:13 [INFO] [stdout] | [INFO] [stdout] 44 | RGB::new(0.25, 0.25, 0.25) [INFO] [stdout] | ^^^ use of undeclared type `RGB` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 28 + use crate::pattern::RGB; [INFO] [stdout] | [INFO] [stdout] 28 + use rgb::RGB; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RGB` [INFO] [stdout] --> src/pattern/ring.rs:33:21 [INFO] [stdout] | [INFO] [stdout] 33 | let white = RGB::new(1., 1., 1.); [INFO] [stdout] | ^^^ use of undeclared type `RGB` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 31 + use crate::pattern::RGB; [INFO] [stdout] | [INFO] [stdout] 31 + use rgb::RGB; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RGB` [INFO] [stdout] --> src/pattern/ring.rs:34:21 [INFO] [stdout] | [INFO] [stdout] 34 | let black = RGB::new(0., 0., 0.); [INFO] [stdout] | ^^^ use of undeclared type `RGB` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 31 + use crate::pattern::RGB; [INFO] [stdout] | [INFO] [stdout] 31 + use rgb::RGB; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ring` [INFO] [stdout] --> src/pattern/ring.rs:35:20 [INFO] [stdout] | [INFO] [stdout] 35 | let ring = Ring::new(white, black, Matrix4::identity()); [INFO] [stdout] | ^^^^ use of undeclared type `Ring` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 31 + use crate::pattern::Ring; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Matrix4` [INFO] [stdout] --> src/pattern/ring.rs:35:44 [INFO] [stdout] | [INFO] [stdout] 35 | let ring = Ring::new(white, black, Matrix4::identity()); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Matrix4` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 31 + use cgmath::Matrix4; [INFO] [stdout] | [INFO] [stdout] 31 + use crate::pattern::Matrix4; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/pattern/ring.rs:36:28 [INFO] [stdout] | [INFO] [stdout] 36 | assert_eq!(ring.at(Point3::origin()), white); [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 31 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 31 + use crate::pattern::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/pattern/ring.rs:37:28 [INFO] [stdout] | [INFO] [stdout] 37 | assert_eq!(ring.at(Point3::from_vec(Vector3::unit_x())), black); [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 31 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 31 + use crate::pattern::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/pattern/ring.rs:37:45 [INFO] [stdout] | [INFO] [stdout] 37 | assert_eq!(ring.at(Point3::from_vec(Vector3::unit_x())), black); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 31 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/pattern/ring.rs:38:28 [INFO] [stdout] | [INFO] [stdout] 38 | assert_eq!(ring.at(Point3::from_vec(Vector3::unit_z())), black); [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 31 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 31 + use crate::pattern::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/pattern/ring.rs:38:45 [INFO] [stdout] | [INFO] [stdout] 38 | assert_eq!(ring.at(Point3::from_vec(Vector3::unit_z())), black); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 31 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/pattern/ring.rs:39:28 [INFO] [stdout] | [INFO] [stdout] 39 | assert_eq!(ring.at(Point3::new(0.708, 0., 0.708)), black); [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 31 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 31 + use crate::pattern::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RGB` [INFO] [stdout] --> src/pattern/stripe.rs:33:21 [INFO] [stdout] | [INFO] [stdout] 33 | let white = RGB::new(1., 1., 1.); [INFO] [stdout] | ^^^ use of undeclared type `RGB` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 31 + use crate::pattern::RGB; [INFO] [stdout] | [INFO] [stdout] 31 + use rgb::RGB; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RGB` [INFO] [stdout] --> src/pattern/stripe.rs:34:21 [INFO] [stdout] | [INFO] [stdout] 34 | let black = RGB::new(0., 0., 0.); [INFO] [stdout] | ^^^ use of undeclared type `RGB` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 31 + use crate::pattern::RGB; [INFO] [stdout] | [INFO] [stdout] 31 + use rgb::RGB; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Stripe` [INFO] [stdout] --> src/pattern/stripe.rs:35:22 [INFO] [stdout] | [INFO] [stdout] 35 | let stripe = Stripe::new(white, black, Matrix4::identity()); [INFO] [stdout] | ^^^^^^ use of undeclared type `Stripe` [INFO] [stdout] | [INFO] [stdout] help: a struct with a similar name exists [INFO] [stdout] | [INFO] [stdout] 35 | let stripe = String::new(white, black, Matrix4::identity()); [INFO] [stdout] | ~~~~~~ [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 31 + use crate::pattern::Stripe; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Matrix4` [INFO] [stdout] --> src/pattern/stripe.rs:35:48 [INFO] [stdout] | [INFO] [stdout] 35 | let stripe = Stripe::new(white, black, Matrix4::identity()); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Matrix4` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 31 + use cgmath::Matrix4; [INFO] [stdout] | [INFO] [stdout] 31 + use crate::pattern::Matrix4; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/pattern/stripe.rs:36:30 [INFO] [stdout] | [INFO] [stdout] 36 | assert_eq!(stripe.at(Point3::origin()), white); [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 31 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 31 + use crate::pattern::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/pattern/stripe.rs:37:30 [INFO] [stdout] | [INFO] [stdout] 37 | assert_eq!(stripe.at(Point3::from_vec(Vector3::unit_y())), white); [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 31 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 31 + use crate::pattern::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/pattern/stripe.rs:37:47 [INFO] [stdout] | [INFO] [stdout] 37 | assert_eq!(stripe.at(Point3::from_vec(Vector3::unit_y())), white); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 31 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/pattern/stripe.rs:38:30 [INFO] [stdout] | [INFO] [stdout] 38 | assert_eq!(stripe.at(Point3::from_vec(Vector3::unit_y() * 2.)), white); [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 31 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 31 + use crate::pattern::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/pattern/stripe.rs:38:47 [INFO] [stdout] | [INFO] [stdout] 38 | assert_eq!(stripe.at(Point3::from_vec(Vector3::unit_y() * 2.)), white); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 31 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/pattern/stripe.rs:39:30 [INFO] [stdout] | [INFO] [stdout] 39 | assert_eq!(stripe.at(Point3::from_vec(Vector3::unit_z())), white); [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 31 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 31 + use crate::pattern::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/pattern/stripe.rs:39:47 [INFO] [stdout] | [INFO] [stdout] 39 | assert_eq!(stripe.at(Point3::from_vec(Vector3::unit_z())), white); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 31 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/pattern/stripe.rs:40:30 [INFO] [stdout] | [INFO] [stdout] 40 | assert_eq!(stripe.at(Point3::from_vec(Vector3::unit_z() * 2.)), white); [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 31 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 31 + use crate::pattern::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/pattern/stripe.rs:40:47 [INFO] [stdout] | [INFO] [stdout] 40 | assert_eq!(stripe.at(Point3::from_vec(Vector3::unit_z() * 2.)), white); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 31 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/pattern/stripe.rs:41:30 [INFO] [stdout] | [INFO] [stdout] 41 | assert_eq!(stripe.at(Point3::from_vec(Vector3::unit_x() * 0.9)), white); [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 31 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 31 + use crate::pattern::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/pattern/stripe.rs:41:47 [INFO] [stdout] | [INFO] [stdout] 41 | assert_eq!(stripe.at(Point3::from_vec(Vector3::unit_x() * 0.9)), white); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 31 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/pattern/stripe.rs:42:30 [INFO] [stdout] | [INFO] [stdout] 42 | assert_eq!(stripe.at(Point3::from_vec(Vector3::unit_x())), black); [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 31 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 31 + use crate::pattern::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/pattern/stripe.rs:42:47 [INFO] [stdout] | [INFO] [stdout] 42 | assert_eq!(stripe.at(Point3::from_vec(Vector3::unit_x())), black); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 31 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/pattern/stripe.rs:43:30 [INFO] [stdout] | [INFO] [stdout] 43 | assert_eq!(stripe.at(Point3::from_vec(Vector3::unit_x() * -0.1)), black); [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 31 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 31 + use crate::pattern::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/pattern/stripe.rs:43:47 [INFO] [stdout] | [INFO] [stdout] 43 | assert_eq!(stripe.at(Point3::from_vec(Vector3::unit_x() * -0.1)), black); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 31 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/pattern/stripe.rs:44:30 [INFO] [stdout] | [INFO] [stdout] 44 | assert_eq!(stripe.at(Point3::from_vec(-Vector3::unit_x())), black); [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 31 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 31 + use crate::pattern::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/pattern/stripe.rs:44:48 [INFO] [stdout] | [INFO] [stdout] 44 | assert_eq!(stripe.at(Point3::from_vec(-Vector3::unit_x())), black); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 31 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/pattern/stripe.rs:45:30 [INFO] [stdout] | [INFO] [stdout] 45 | assert_eq!(stripe.at(Point3::from_vec(Vector3::unit_x() * -1.1)), white); [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 31 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 31 + use crate::pattern::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/pattern/stripe.rs:45:47 [INFO] [stdout] | [INFO] [stdout] 45 | assert_eq!(stripe.at(Point3::from_vec(Vector3::unit_x() * -1.1)), white); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 31 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RGB` [INFO] [stdout] --> src/pattern/test.rs:26:21 [INFO] [stdout] | [INFO] [stdout] 26 | let white = RGB::new(1., 1., 1.); [INFO] [stdout] | ^^^ use of undeclared type `RGB` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 24 + use crate::pattern::RGB; [INFO] [stdout] | [INFO] [stdout] 24 + use rgb::RGB; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RGB` [INFO] [stdout] --> src/pattern/test.rs:27:21 [INFO] [stdout] | [INFO] [stdout] 27 | let black = RGB::new(0., 0., 0.); [INFO] [stdout] | ^^^ use of undeclared type `RGB` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 24 + use crate::pattern::RGB; [INFO] [stdout] | [INFO] [stdout] 24 + use rgb::RGB; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Test` [INFO] [stdout] --> src/pattern/test.rs:28:20 [INFO] [stdout] | [INFO] [stdout] 28 | let test = Test::new(Matrix4::identity()); [INFO] [stdout] | ^^^^ use of undeclared type `Test` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 24 + use crate::pattern::Test; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Matrix4` [INFO] [stdout] --> src/pattern/test.rs:28:30 [INFO] [stdout] | [INFO] [stdout] 28 | let test = Test::new(Matrix4::identity()); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Matrix4` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 24 + use cgmath::Matrix4; [INFO] [stdout] | [INFO] [stdout] 24 + use crate::pattern::Matrix4; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/pattern/test.rs:29:28 [INFO] [stdout] | [INFO] [stdout] 29 | assert_eq!(test.at(Point3::origin()), black); [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 24 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 24 + use crate::pattern::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/pattern/test.rs:30:28 [INFO] [stdout] | [INFO] [stdout] 30 | assert_eq!(test.at(Point3::new(1., 1., 1.)), white); [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 24 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 24 + use crate::pattern::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RGB` [INFO] [stdout] --> src/pattern/mod.rs:76:21 [INFO] [stdout] | [INFO] [stdout] 76 | let white = RGB::new(1., 1., 1.); [INFO] [stdout] | ^^^ use of undeclared type `RGB` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 74 + use crate::pattern::RGB; [INFO] [stdout] | [INFO] [stdout] 74 + use rgb::RGB; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RGB` [INFO] [stdout] --> src/pattern/mod.rs:77:21 [INFO] [stdout] | [INFO] [stdout] 77 | let black = RGB::new(0., 0., 0.); [INFO] [stdout] | ^^^ use of undeclared type `RGB` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 74 + use crate::pattern::RGB; [INFO] [stdout] | [INFO] [stdout] 74 + use rgb::RGB; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Test` [INFO] [stdout] --> src/pattern/mod.rs:79:24 [INFO] [stdout] | [INFO] [stdout] 79 | let test = Test::new(Matrix4::identity()); [INFO] [stdout] | ^^^^ use of undeclared type `Test` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 74 + use crate::pattern::Test; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Matrix4` [INFO] [stdout] --> src/pattern/mod.rs:79:34 [INFO] [stdout] | [INFO] [stdout] 79 | let test = Test::new(Matrix4::identity()); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Matrix4` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 74 + use cgmath::Matrix4; [INFO] [stdout] | [INFO] [stdout] 74 + use crate::pattern::Matrix4; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/pattern/mod.rs:80:32 [INFO] [stdout] | [INFO] [stdout] 80 | assert_eq!(test.at(Point3::origin()), black); [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 74 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 74 + use crate::pattern::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/pattern/mod.rs:81:32 [INFO] [stdout] | [INFO] [stdout] 81 | assert_eq!(test.at(Point3::new(1., 1., 1.)), white); [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 74 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 74 + use crate::pattern::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RGB` [INFO] [stdout] --> src/pattern/mod.rs:87:21 [INFO] [stdout] | [INFO] [stdout] 87 | let white = RGB::new(1., 1., 1.); [INFO] [stdout] | ^^^ use of undeclared type `RGB` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 74 + use crate::pattern::RGB; [INFO] [stdout] | [INFO] [stdout] 74 + use rgb::RGB; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RGB` [INFO] [stdout] --> src/pattern/mod.rs:88:21 [INFO] [stdout] | [INFO] [stdout] 88 | let black = RGB::new(0., 0., 0.); [INFO] [stdout] | ^^^ use of undeclared type `RGB` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 74 + use crate::pattern::RGB; [INFO] [stdout] | [INFO] [stdout] 74 + use rgb::RGB; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Shape` [INFO] [stdout] --> src/pattern/mod.rs:90:26 [INFO] [stdout] | [INFO] [stdout] 90 | let object = Shape::Sphere(Sphere::new( [INFO] [stdout] | ^^^^^ use of undeclared type `Shape` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 74 + use crate::shape::Shape; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Sphere` [INFO] [stdout] --> src/pattern/mod.rs:90:40 [INFO] [stdout] | [INFO] [stdout] 90 | let object = Shape::Sphere(Sphere::new( [INFO] [stdout] | ^^^^^^ use of undeclared type `Sphere` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 74 + use crate::shape::sphere::Sphere; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Matrix4` [INFO] [stdout] --> src/pattern/mod.rs:91:17 [INFO] [stdout] | [INFO] [stdout] 91 | Matrix4::from_scale(2.), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Matrix4` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 74 + use cgmath::Matrix4; [INFO] [stdout] | [INFO] [stdout] 74 + use crate::pattern::Matrix4; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Material` [INFO] [stdout] --> src/pattern/mod.rs:92:17 [INFO] [stdout] | [INFO] [stdout] 92 | Material::default(), [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Material` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 74 + use crate::material::Material; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Stripe` [INFO] [stdout] --> src/pattern/mod.rs:95:27 [INFO] [stdout] | [INFO] [stdout] 95 | let pattern = Stripe::new(white, black, Matrix4::identity()); [INFO] [stdout] | ^^^^^^ use of undeclared type `Stripe` [INFO] [stdout] | [INFO] [stdout] help: a struct with a similar name exists [INFO] [stdout] | [INFO] [stdout] 95 | let pattern = String::new(white, black, Matrix4::identity()); [INFO] [stdout] | ~~~~~~ [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 74 + use crate::pattern::Stripe; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Matrix4` [INFO] [stdout] --> src/pattern/mod.rs:95:53 [INFO] [stdout] | [INFO] [stdout] 95 | let pattern = Stripe::new(white, black, Matrix4::identity()); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Matrix4` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 74 + use cgmath::Matrix4; [INFO] [stdout] | [INFO] [stdout] 74 + use crate::pattern::Matrix4; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/pattern/mod.rs:96:49 [INFO] [stdout] | [INFO] [stdout] 96 | assert_eq!(pattern.at_shape(object, Point3::new(1.5, 0., 0.)), white); [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 74 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 74 + use crate::pattern::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Shape` [INFO] [stdout] --> src/pattern/mod.rs:99:26 [INFO] [stdout] | [INFO] [stdout] 99 | let object = Shape::Sphere(Sphere::default()); [INFO] [stdout] | ^^^^^ use of undeclared type `Shape` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 74 + use crate::shape::Shape; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Sphere` [INFO] [stdout] --> src/pattern/mod.rs:99:40 [INFO] [stdout] | [INFO] [stdout] 99 | let object = Shape::Sphere(Sphere::default()); [INFO] [stdout] | ^^^^^^ use of undeclared type `Sphere` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 74 + use crate::shape::sphere::Sphere; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Stripe` [INFO] [stdout] --> src/pattern/mod.rs:100:27 [INFO] [stdout] | [INFO] [stdout] 100 | let pattern = Stripe::new(white, black, Matrix4::from_scale(2.)); [INFO] [stdout] | ^^^^^^ use of undeclared type `Stripe` [INFO] [stdout] | [INFO] [stdout] help: a struct with a similar name exists [INFO] [stdout] | [INFO] [stdout] 100 | let pattern = String::new(white, black, Matrix4::from_scale(2.)); [INFO] [stdout] | ~~~~~~ [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 74 + use crate::pattern::Stripe; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Matrix4` [INFO] [stdout] --> src/pattern/mod.rs:100:53 [INFO] [stdout] | [INFO] [stdout] 100 | let pattern = Stripe::new(white, black, Matrix4::from_scale(2.)); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Matrix4` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 74 + use cgmath::Matrix4; [INFO] [stdout] | [INFO] [stdout] 74 + use crate::pattern::Matrix4; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/pattern/mod.rs:101:49 [INFO] [stdout] | [INFO] [stdout] 101 | assert_eq!(pattern.at_shape(object, Point3::new(1.5, 0., 0.)), white); [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 74 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 74 + use crate::pattern::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Shape` [INFO] [stdout] --> src/pattern/mod.rs:104:26 [INFO] [stdout] | [INFO] [stdout] 104 | let object = Shape::Sphere(Sphere::new( [INFO] [stdout] | ^^^^^ use of undeclared type `Shape` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 74 + use crate::shape::Shape; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Sphere` [INFO] [stdout] --> src/pattern/mod.rs:104:40 [INFO] [stdout] | [INFO] [stdout] 104 | let object = Shape::Sphere(Sphere::new( [INFO] [stdout] | ^^^^^^ use of undeclared type `Sphere` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 74 + use crate::shape::sphere::Sphere; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Matrix4` [INFO] [stdout] --> src/pattern/mod.rs:105:17 [INFO] [stdout] | [INFO] [stdout] 105 | Matrix4::from_scale(2.), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Matrix4` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 74 + use cgmath::Matrix4; [INFO] [stdout] | [INFO] [stdout] 74 + use crate::pattern::Matrix4; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Material` [INFO] [stdout] --> src/pattern/mod.rs:106:17 [INFO] [stdout] | [INFO] [stdout] 106 | Material::default(), [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Material` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 74 + use crate::material::Material; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Stripe` [INFO] [stdout] --> src/pattern/mod.rs:109:27 [INFO] [stdout] | [INFO] [stdout] 109 | let pattern = Stripe::new( [INFO] [stdout] | ^^^^^^ use of undeclared type `Stripe` [INFO] [stdout] | [INFO] [stdout] help: a struct with a similar name exists [INFO] [stdout] | [INFO] [stdout] 109 | let pattern = String::new( [INFO] [stdout] | ~~~~~~ [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 74 + use crate::pattern::Stripe; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Matrix4` [INFO] [stdout] --> src/pattern/mod.rs:112:17 [INFO] [stdout] | [INFO] [stdout] 112 | Matrix4::from_translation(Vector3::unit_x() * 0.5), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Matrix4` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 74 + use cgmath::Matrix4; [INFO] [stdout] | [INFO] [stdout] 74 + use crate::pattern::Matrix4; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/pattern/mod.rs:112:43 [INFO] [stdout] | [INFO] [stdout] 112 | Matrix4::from_translation(Vector3::unit_x() * 0.5), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 74 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/pattern/mod.rs:114:49 [INFO] [stdout] | [INFO] [stdout] 114 | assert_eq!(pattern.at_shape(object, Point3::new(2.5, 0., 0.)), white); [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 74 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 74 + use crate::pattern::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Shape` [INFO] [stdout] --> src/pattern/mod.rs:117:26 [INFO] [stdout] | [INFO] [stdout] 117 | let object = Shape::Sphere(Sphere::new( [INFO] [stdout] | ^^^^^ use of undeclared type `Shape` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 74 + use crate::shape::Shape; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Sphere` [INFO] [stdout] --> src/pattern/mod.rs:117:40 [INFO] [stdout] | [INFO] [stdout] 117 | let object = Shape::Sphere(Sphere::new( [INFO] [stdout] | ^^^^^^ use of undeclared type `Sphere` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 74 + use crate::shape::sphere::Sphere; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Matrix4` [INFO] [stdout] --> src/pattern/mod.rs:118:17 [INFO] [stdout] | [INFO] [stdout] 118 | Matrix4::from_scale(2.), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Matrix4` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 74 + use cgmath::Matrix4; [INFO] [stdout] | [INFO] [stdout] 74 + use crate::pattern::Matrix4; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Material` [INFO] [stdout] --> src/pattern/mod.rs:119:17 [INFO] [stdout] | [INFO] [stdout] 119 | Material::default(), [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Material` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 74 + use crate::material::Material; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Test` [INFO] [stdout] --> src/pattern/mod.rs:122:27 [INFO] [stdout] | [INFO] [stdout] 122 | let pattern = Test::new(Matrix4::identity()); [INFO] [stdout] | ^^^^ use of undeclared type `Test` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 74 + use crate::pattern::Test; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Matrix4` [INFO] [stdout] --> src/pattern/mod.rs:122:37 [INFO] [stdout] | [INFO] [stdout] 122 | let pattern = Test::new(Matrix4::identity()); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Matrix4` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 74 + use cgmath::Matrix4; [INFO] [stdout] | [INFO] [stdout] 74 + use crate::pattern::Matrix4; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/pattern/mod.rs:124:42 [INFO] [stdout] | [INFO] [stdout] 124 | pattern.at_shape(object, Point3::new(2., 3., 4.)), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 74 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 74 + use crate::pattern::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RGB` [INFO] [stdout] --> src/pattern/mod.rs:125:17 [INFO] [stdout] | [INFO] [stdout] 125 | RGB::new(1., 1.5, 2.) [INFO] [stdout] | ^^^ use of undeclared type `RGB` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 74 + use crate::pattern::RGB; [INFO] [stdout] | [INFO] [stdout] 74 + use rgb::RGB; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Shape` [INFO] [stdout] --> src/pattern/mod.rs:129:26 [INFO] [stdout] | [INFO] [stdout] 129 | let object = Shape::Sphere(Sphere::new( [INFO] [stdout] | ^^^^^ use of undeclared type `Shape` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 74 + use crate::shape::Shape; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Sphere` [INFO] [stdout] --> src/pattern/mod.rs:129:40 [INFO] [stdout] | [INFO] [stdout] 129 | let object = Shape::Sphere(Sphere::new( [INFO] [stdout] | ^^^^^^ use of undeclared type `Sphere` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 74 + use crate::shape::sphere::Sphere; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Matrix4` [INFO] [stdout] --> src/pattern/mod.rs:130:17 [INFO] [stdout] | [INFO] [stdout] 130 | Matrix4::from_scale(2.), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Matrix4` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 74 + use cgmath::Matrix4; [INFO] [stdout] | [INFO] [stdout] 74 + use crate::pattern::Matrix4; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Material` [INFO] [stdout] --> src/pattern/mod.rs:131:17 [INFO] [stdout] | [INFO] [stdout] 131 | Material::default(), [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Material` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 74 + use crate::material::Material; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Test` [INFO] [stdout] --> src/pattern/mod.rs:134:27 [INFO] [stdout] | [INFO] [stdout] 134 | let pattern = Test::new(Matrix4::from_translation(Vector3::new(0.5, 1., 1.5))); [INFO] [stdout] | ^^^^ use of undeclared type `Test` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 74 + use crate::pattern::Test; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Matrix4` [INFO] [stdout] --> src/pattern/mod.rs:134:37 [INFO] [stdout] | [INFO] [stdout] 134 | let pattern = Test::new(Matrix4::from_translation(Vector3::new(0.5, 1., 1.5))); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Matrix4` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 74 + use cgmath::Matrix4; [INFO] [stdout] | [INFO] [stdout] 74 + use crate::pattern::Matrix4; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/pattern/mod.rs:134:63 [INFO] [stdout] | [INFO] [stdout] 134 | let pattern = Test::new(Matrix4::from_translation(Vector3::new(0.5, 1., 1.5))); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 74 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/pattern/mod.rs:136:42 [INFO] [stdout] | [INFO] [stdout] 136 | pattern.at_shape(object, Point3::new(2.5, 3., 3.5)), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 74 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 74 + use crate::pattern::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RGB` [INFO] [stdout] --> src/pattern/mod.rs:137:17 [INFO] [stdout] | [INFO] [stdout] 137 | RGB::new(0.75, 0.5, 0.25) [INFO] [stdout] | ^^^ use of undeclared type `RGB` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 74 + use crate::pattern::RGB; [INFO] [stdout] | [INFO] [stdout] 74 + use rgb::RGB; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ray` [INFO] [stdout] --> src/ray.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 32 | Ray::new(Point3::new(2., 3., 4.), Vector3::unit_x()).position(0.), [INFO] [stdout] | ^^^ use of undeclared type `Ray` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 29 + use crate::ray::Ray; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/ray.rs:32:22 [INFO] [stdout] | [INFO] [stdout] 32 | Ray::new(Point3::new(2., 3., 4.), Vector3::unit_x()).position(0.), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 29 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 29 + use crate::ray::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/ray.rs:32:47 [INFO] [stdout] | [INFO] [stdout] 32 | Ray::new(Point3::new(2., 3., 4.), Vector3::unit_x()).position(0.), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 29 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 29 + use crate::ray::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/ray.rs:33:13 [INFO] [stdout] | [INFO] [stdout] 33 | Point3::new(2., 3., 4.) [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 29 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 29 + use crate::ray::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ray` [INFO] [stdout] --> src/ray.rs:36:13 [INFO] [stdout] | [INFO] [stdout] 36 | Ray::new(Point3::new(2., 3., 4.), Vector3::unit_x()).position(-1.), [INFO] [stdout] | ^^^ use of undeclared type `Ray` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 29 + use crate::ray::Ray; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/ray.rs:36:22 [INFO] [stdout] | [INFO] [stdout] 36 | Ray::new(Point3::new(2., 3., 4.), Vector3::unit_x()).position(-1.), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 29 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 29 + use crate::ray::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/ray.rs:36:47 [INFO] [stdout] | [INFO] [stdout] 36 | Ray::new(Point3::new(2., 3., 4.), Vector3::unit_x()).position(-1.), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 29 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 29 + use crate::ray::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/ray.rs:37:13 [INFO] [stdout] | [INFO] [stdout] 37 | Point3::new(1., 3., 4.) [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 29 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 29 + use crate::ray::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ray` [INFO] [stdout] --> src/ray.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 40 | Ray::new(Point3::new(2., 3., 4.), Vector3::unit_x()).position(2.5), [INFO] [stdout] | ^^^ use of undeclared type `Ray` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 29 + use crate::ray::Ray; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/ray.rs:40:22 [INFO] [stdout] | [INFO] [stdout] 40 | Ray::new(Point3::new(2., 3., 4.), Vector3::unit_x()).position(2.5), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 29 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 29 + use crate::ray::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/ray.rs:40:47 [INFO] [stdout] | [INFO] [stdout] 40 | Ray::new(Point3::new(2., 3., 4.), Vector3::unit_x()).position(2.5), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 29 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 29 + use crate::ray::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/ray.rs:41:13 [INFO] [stdout] | [INFO] [stdout] 41 | Point3::new(4.5, 3., 4.) [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 29 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 29 + use crate::ray::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ray` [INFO] [stdout] --> src/ray.rs:48:13 [INFO] [stdout] | [INFO] [stdout] 48 | Ray::new(Point3::new(1., 2., 3.), Vector3::unit_y(),) [INFO] [stdout] | ^^^ use of undeclared type `Ray` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 29 + use crate::ray::Ray; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/ray.rs:48:22 [INFO] [stdout] | [INFO] [stdout] 48 | Ray::new(Point3::new(1., 2., 3.), Vector3::unit_y(),) [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 29 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 29 + use crate::ray::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/ray.rs:48:47 [INFO] [stdout] | [INFO] [stdout] 48 | Ray::new(Point3::new(1., 2., 3.), Vector3::unit_y(),) [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 29 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 29 + use crate::ray::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Matrix4` [INFO] [stdout] --> src/ray.rs:49:28 [INFO] [stdout] | [INFO] [stdout] 49 | .transform(Matrix4::from_translation(Vector3::new(3., 4., 5.))), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Matrix4` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 29 + use cgmath::Matrix4; [INFO] [stdout] | [INFO] [stdout] 29 + use crate::ray::Matrix4; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/ray.rs:49:54 [INFO] [stdout] | [INFO] [stdout] 49 | .transform(Matrix4::from_translation(Vector3::new(3., 4., 5.))), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 29 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 29 + use crate::ray::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ray` [INFO] [stdout] --> src/ray.rs:50:13 [INFO] [stdout] | [INFO] [stdout] 50 | Ray::new(Point3::new(4., 6., 8.), Vector3::unit_y(),) [INFO] [stdout] | ^^^ use of undeclared type `Ray` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 29 + use crate::ray::Ray; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/ray.rs:50:22 [INFO] [stdout] | [INFO] [stdout] 50 | Ray::new(Point3::new(4., 6., 8.), Vector3::unit_y(),) [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 29 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 29 + use crate::ray::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/ray.rs:50:47 [INFO] [stdout] | [INFO] [stdout] 50 | Ray::new(Point3::new(4., 6., 8.), Vector3::unit_y(),) [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 29 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 29 + use crate::ray::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ray` [INFO] [stdout] --> src/ray.rs:53:13 [INFO] [stdout] | [INFO] [stdout] 53 | Ray::new(Point3::new(1., 2., 3.), Vector3::unit_y(),) [INFO] [stdout] | ^^^ use of undeclared type `Ray` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 29 + use crate::ray::Ray; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/ray.rs:53:22 [INFO] [stdout] | [INFO] [stdout] 53 | Ray::new(Point3::new(1., 2., 3.), Vector3::unit_y(),) [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 29 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 29 + use crate::ray::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/ray.rs:53:47 [INFO] [stdout] | [INFO] [stdout] 53 | Ray::new(Point3::new(1., 2., 3.), Vector3::unit_y(),) [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 29 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 29 + use crate::ray::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Matrix4` [INFO] [stdout] --> src/ray.rs:54:28 [INFO] [stdout] | [INFO] [stdout] 54 | .transform(Matrix4::from_nonuniform_scale(2., 3., 4.)), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Matrix4` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 29 + use cgmath::Matrix4; [INFO] [stdout] | [INFO] [stdout] 29 + use crate::ray::Matrix4; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ray` [INFO] [stdout] --> src/ray.rs:55:13 [INFO] [stdout] | [INFO] [stdout] 55 | Ray::new(Point3::new(2., 6., 12.), Vector3::new(0., 3., 0.),) [INFO] [stdout] | ^^^ use of undeclared type `Ray` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 29 + use crate::ray::Ray; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/ray.rs:55:22 [INFO] [stdout] | [INFO] [stdout] 55 | Ray::new(Point3::new(2., 6., 12.), Vector3::new(0., 3., 0.),) [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 29 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 29 + use crate::ray::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/ray.rs:55:48 [INFO] [stdout] | [INFO] [stdout] 55 | Ray::new(Point3::new(2., 6., 12.), Vector3::new(0., 3., 0.),) [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 29 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 29 + use crate::ray::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Cone` [INFO] [stdout] --> src/shape/cone.rs:136:24 [INFO] [stdout] | [INFO] [stdout] 136 | let cone = Cone::default(); [INFO] [stdout] | ^^^^ use of undeclared type `Cone` [INFO] [stdout] | [INFO] [stdout] help: a trait with a similar name exists [INFO] [stdout] | [INFO] [stdout] 136 | let cone = Clone::default(); [INFO] [stdout] | ~~~~~ [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 133 + use crate::shape::Cone; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Shape` [INFO] [stdout] --> src/shape/cone.rs:137:25 [INFO] [stdout] | [INFO] [stdout] 137 | let shape = Shape::Cone(cone.clone()); [INFO] [stdout] | ^^^^^ use of undeclared type `Shape` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 133 + use crate::shape::Shape; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ray` [INFO] [stdout] --> src/shape/cone.rs:150:38 [INFO] [stdout] | [INFO] [stdout] 150 | cone.local_intersect(Ray::new(Point3::new(0., 0., -5.), Vector3::unit_z())), [INFO] [stdout] | ^^^ use of undeclared type `Ray` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 133 + use crate::shape::Ray; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/cone.rs:150:47 [INFO] [stdout] | [INFO] [stdout] 150 | cone.local_intersect(Ray::new(Point3::new(0., 0., -5.), Vector3::unit_z())), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 133 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 133 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/shape/cone.rs:150:73 [INFO] [stdout] | [INFO] [stdout] 150 | cone.local_intersect(Ray::new(Point3::new(0., 0., -5.), Vector3::unit_z())), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 133 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 133 + use crate::shape::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Intersection` [INFO] [stdout] --> src/shape/cone.rs:152:21 [INFO] [stdout] | [INFO] [stdout] 152 | Intersection::new(5., shape.clone(), None), [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `Intersection` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 133 + use crate::shape::Intersection; [INFO] [stdout] | [INFO] [stdout] 133 + use std::collections::btree_set::Intersection; [INFO] [stdout] | [INFO] [stdout] 133 + 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/cone.rs:153:21 [INFO] [stdout] | [INFO] [stdout] 153 | Intersection::new(5., shape, None) [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `Intersection` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 133 + use crate::shape::Intersection; [INFO] [stdout] | [INFO] [stdout] 133 + use std::collections::btree_set::Intersection; [INFO] [stdout] | [INFO] [stdout] 133 + use std::collections::hash_set::Intersection; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Cone` [INFO] [stdout] --> src/shape/cone.rs:191:28 [INFO] [stdout] | [INFO] [stdout] 191 | let mut cone = Cone::default(); [INFO] [stdout] | ^^^^ use of undeclared type `Cone` [INFO] [stdout] | [INFO] [stdout] help: a trait with a similar name exists [INFO] [stdout] | [INFO] [stdout] 191 | let mut cone = Clone::default(); [INFO] [stdout] | ~~~~~ [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 133 + use crate::shape::Cone; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ray` [INFO] [stdout] --> src/shape/cone.rs:196:38 [INFO] [stdout] | [INFO] [stdout] 196 | cone.local_intersect(Ray::new(Point3::new(0., 0., -5.), -Vector3::unit_y())), [INFO] [stdout] | ^^^ use of undeclared type `Ray` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 133 + use crate::shape::Ray; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/cone.rs:196:47 [INFO] [stdout] | [INFO] [stdout] 196 | cone.local_intersect(Ray::new(Point3::new(0., 0., -5.), -Vector3::unit_y())), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 133 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 133 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/shape/cone.rs:196:74 [INFO] [stdout] | [INFO] [stdout] 196 | cone.local_intersect(Ray::new(Point3::new(0., 0., -5.), -Vector3::unit_y())), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 133 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 133 + use crate::shape::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ray` [INFO] [stdout] --> src/shape/cone.rs:200:38 [INFO] [stdout] | [INFO] [stdout] 200 | cone.local_intersect(Ray::new( [INFO] [stdout] | ^^^ use of undeclared type `Ray` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 133 + use crate::shape::Ray; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/cone.rs:201:21 [INFO] [stdout] | [INFO] [stdout] 201 | Point3::new(0., 0., -0.25), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 133 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 133 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/shape/cone.rs:202:21 [INFO] [stdout] | [INFO] [stdout] 202 | Vector3::new(0., 1., 1.).normalize() [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 133 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 133 + use crate::shape::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ray` [INFO] [stdout] --> src/shape/cone.rs:208:38 [INFO] [stdout] | [INFO] [stdout] 208 | cone.local_intersect(Ray::new(Point3::new(0., 0., -0.25), Vector3::unit_y())) [INFO] [stdout] | ^^^ use of undeclared type `Ray` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 133 + use crate::shape::Ray; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/cone.rs:208:47 [INFO] [stdout] | [INFO] [stdout] 208 | cone.local_intersect(Ray::new(Point3::new(0., 0., -0.25), Vector3::unit_y())) [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 133 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 133 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/shape/cone.rs:208:75 [INFO] [stdout] | [INFO] [stdout] 208 | cone.local_intersect(Ray::new(Point3::new(0., 0., -0.25), Vector3::unit_y())) [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 133 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 133 + use crate::shape::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Cone` [INFO] [stdout] --> src/shape/cone.rs:217:20 [INFO] [stdout] | [INFO] [stdout] 217 | let cone = Cone::default(); [INFO] [stdout] | ^^^^ use of undeclared type `Cone` [INFO] [stdout] | [INFO] [stdout] help: a trait with a similar name exists [INFO] [stdout] | [INFO] [stdout] 217 | let cone = Clone::default(); [INFO] [stdout] | ~~~~~ [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 133 + use crate::shape::Cone; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/cone.rs:218:41 [INFO] [stdout] | [INFO] [stdout] 218 | assert_eq!(cone.local_normal_at(Point3::origin()), Vector3::zero()); [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 133 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 133 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/shape/cone.rs:218:60 [INFO] [stdout] | [INFO] [stdout] 218 | assert_eq!(cone.local_normal_at(Point3::origin()), Vector3::zero()); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 133 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 133 + use crate::shape::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/cone.rs:220:34 [INFO] [stdout] | [INFO] [stdout] 220 | cone.local_normal_at(Point3::new(1., 1., 1.)), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 133 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 133 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/shape/cone.rs:221:13 [INFO] [stdout] | [INFO] [stdout] 221 | Vector3::new(1., -SQRT_2, 1.) [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 133 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 133 + use crate::shape::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SQRT_2` in this scope [INFO] [stdout] --> src/shape/cone.rs:221:31 [INFO] [stdout] | [INFO] [stdout] 221 | Vector3::new(1., -SQRT_2, 1.) [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 133 + use core::f32::consts::SQRT_2; [INFO] [stdout] | [INFO] [stdout] 133 + use core::f64::consts::SQRT_2; [INFO] [stdout] | [INFO] [stdout] 133 + use std::f32::consts::SQRT_2; [INFO] [stdout] | [INFO] [stdout] 133 + use std::f64::consts::SQRT_2; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/cone.rs:224:34 [INFO] [stdout] | [INFO] [stdout] 224 | cone.local_normal_at(Point3::new(-1., -1., 0.)), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 133 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 133 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/shape/cone.rs:225:13 [INFO] [stdout] | [INFO] [stdout] 225 | Vector3::new(-1., 1., 0.) [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 133 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 133 + use crate::shape::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Cube` [INFO] [stdout] --> src/shape/cube.rs:68:20 [INFO] [stdout] | [INFO] [stdout] 68 | let cube = Cube::default(); [INFO] [stdout] | ^^^^ use of undeclared type `Cube` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 66 + use crate::shape::Cube; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Shape` [INFO] [stdout] --> src/shape/cube.rs:69:21 [INFO] [stdout] | [INFO] [stdout] 69 | let shape = Shape::Cube(cube.clone()); [INFO] [stdout] | ^^^^^ use of undeclared type `Shape` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 66 + use crate::shape::Shape; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ray` [INFO] [stdout] --> src/shape/cube.rs:71:23 [INFO] [stdout] | [INFO] [stdout] 71 | let ray = Ray::new(Point3::new(5., 0.5, 0.), -Vector3::unit_x()); [INFO] [stdout] | ^^^ use of undeclared type `Ray` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 66 + use crate::shape::Ray; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/cube.rs:71:32 [INFO] [stdout] | [INFO] [stdout] 71 | let ray = Ray::new(Point3::new(5., 0.5, 0.), -Vector3::unit_x()); [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 66 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 66 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/shape/cube.rs:71:59 [INFO] [stdout] | [INFO] [stdout] 71 | let ray = Ray::new(Point3::new(5., 0.5, 0.), -Vector3::unit_x()); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 66 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 66 + use crate::shape::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Intersection` [INFO] [stdout] --> src/shape/cube.rs:75:21 [INFO] [stdout] | [INFO] [stdout] 75 | Intersection::new(4., shape.clone(), None), [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `Intersection` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 66 + use crate::shape::Intersection; [INFO] [stdout] | [INFO] [stdout] 66 + use std::collections::btree_set::Intersection; [INFO] [stdout] | [INFO] [stdout] 66 + 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/cube.rs:76:21 [INFO] [stdout] | [INFO] [stdout] 76 | Intersection::new(6., shape.clone(), None) [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `Intersection` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 66 + use crate::shape::Intersection; [INFO] [stdout] | [INFO] [stdout] 66 + use std::collections::btree_set::Intersection; [INFO] [stdout] | [INFO] [stdout] 66 + use std::collections::hash_set::Intersection; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ray` [INFO] [stdout] --> src/shape/cube.rs:81:23 [INFO] [stdout] | [INFO] [stdout] 81 | let ray = Ray::new(Point3::new(-5., 0.5, 0.), Vector3::unit_x()); [INFO] [stdout] | ^^^ use of undeclared type `Ray` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 66 + use crate::shape::Ray; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/cube.rs:81:32 [INFO] [stdout] | [INFO] [stdout] 81 | let ray = Ray::new(Point3::new(-5., 0.5, 0.), Vector3::unit_x()); [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 66 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 66 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/shape/cube.rs:81:59 [INFO] [stdout] | [INFO] [stdout] 81 | let ray = Ray::new(Point3::new(-5., 0.5, 0.), Vector3::unit_x()); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 66 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 66 + use crate::shape::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Intersection` [INFO] [stdout] --> src/shape/cube.rs:85:21 [INFO] [stdout] | [INFO] [stdout] 85 | Intersection::new(4., shape.clone(), None), [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `Intersection` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 66 + use crate::shape::Intersection; [INFO] [stdout] | [INFO] [stdout] 66 + use std::collections::btree_set::Intersection; [INFO] [stdout] | [INFO] [stdout] 66 + 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/cube.rs:86:21 [INFO] [stdout] | [INFO] [stdout] 86 | Intersection::new(6., shape.clone(), None) [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `Intersection` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 66 + use crate::shape::Intersection; [INFO] [stdout] | [INFO] [stdout] 66 + use std::collections::btree_set::Intersection; [INFO] [stdout] | [INFO] [stdout] 66 + use std::collections::hash_set::Intersection; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ray` [INFO] [stdout] --> src/shape/cube.rs:91:23 [INFO] [stdout] | [INFO] [stdout] 91 | let ray = Ray::new(Point3::new(0.5, 5., 0.), -Vector3::unit_y()); [INFO] [stdout] | ^^^ use of undeclared type `Ray` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 66 + use crate::shape::Ray; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/cube.rs:91:32 [INFO] [stdout] | [INFO] [stdout] 91 | let ray = Ray::new(Point3::new(0.5, 5., 0.), -Vector3::unit_y()); [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 66 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 66 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/shape/cube.rs:91:59 [INFO] [stdout] | [INFO] [stdout] 91 | let ray = Ray::new(Point3::new(0.5, 5., 0.), -Vector3::unit_y()); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 66 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 66 + use crate::shape::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Intersection` [INFO] [stdout] --> src/shape/cube.rs:95:21 [INFO] [stdout] | [INFO] [stdout] 95 | Intersection::new(4., shape.clone(), None), [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `Intersection` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 66 + use crate::shape::Intersection; [INFO] [stdout] | [INFO] [stdout] 66 + use std::collections::btree_set::Intersection; [INFO] [stdout] | [INFO] [stdout] 66 + 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/cube.rs:96:21 [INFO] [stdout] | [INFO] [stdout] 96 | Intersection::new(6., shape.clone(), None) [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `Intersection` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 66 + use crate::shape::Intersection; [INFO] [stdout] | [INFO] [stdout] 66 + use std::collections::btree_set::Intersection; [INFO] [stdout] | [INFO] [stdout] 66 + use std::collections::hash_set::Intersection; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ray` [INFO] [stdout] --> src/shape/cube.rs:101:23 [INFO] [stdout] | [INFO] [stdout] 101 | let ray = Ray::new(Point3::new(0.5, -5., 0.), Vector3::unit_y()); [INFO] [stdout] | ^^^ use of undeclared type `Ray` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 66 + use crate::shape::Ray; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/cube.rs:101:32 [INFO] [stdout] | [INFO] [stdout] 101 | let ray = Ray::new(Point3::new(0.5, -5., 0.), Vector3::unit_y()); [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 66 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 66 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/shape/cube.rs:101:59 [INFO] [stdout] | [INFO] [stdout] 101 | let ray = Ray::new(Point3::new(0.5, -5., 0.), Vector3::unit_y()); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 66 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 66 + use crate::shape::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Intersection` [INFO] [stdout] --> src/shape/cube.rs:105:21 [INFO] [stdout] | [INFO] [stdout] 105 | Intersection::new(4., shape.clone(), None), [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `Intersection` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 66 + use crate::shape::Intersection; [INFO] [stdout] | [INFO] [stdout] 66 + use std::collections::btree_set::Intersection; [INFO] [stdout] | [INFO] [stdout] 66 + 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/cube.rs:106:21 [INFO] [stdout] | [INFO] [stdout] 106 | Intersection::new(6., shape.clone(), None) [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `Intersection` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 66 + use crate::shape::Intersection; [INFO] [stdout] | [INFO] [stdout] 66 + use std::collections::btree_set::Intersection; [INFO] [stdout] | [INFO] [stdout] 66 + use std::collections::hash_set::Intersection; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ray` [INFO] [stdout] --> src/shape/cube.rs:111:23 [INFO] [stdout] | [INFO] [stdout] 111 | let ray = Ray::new(Point3::new(0.5, 0., 5.), -Vector3::unit_z()); [INFO] [stdout] | ^^^ use of undeclared type `Ray` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 66 + use crate::shape::Ray; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/cube.rs:111:32 [INFO] [stdout] | [INFO] [stdout] 111 | let ray = Ray::new(Point3::new(0.5, 0., 5.), -Vector3::unit_z()); [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 66 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 66 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/shape/cube.rs:111:59 [INFO] [stdout] | [INFO] [stdout] 111 | let ray = Ray::new(Point3::new(0.5, 0., 5.), -Vector3::unit_z()); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 66 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 66 + use crate::shape::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Intersection` [INFO] [stdout] --> src/shape/cube.rs:115:21 [INFO] [stdout] | [INFO] [stdout] 115 | Intersection::new(4., shape.clone(), None), [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `Intersection` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 66 + use crate::shape::Intersection; [INFO] [stdout] | [INFO] [stdout] 66 + use std::collections::btree_set::Intersection; [INFO] [stdout] | [INFO] [stdout] 66 + 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/cube.rs:116:21 [INFO] [stdout] | [INFO] [stdout] 116 | Intersection::new(6., shape.clone(), None) [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `Intersection` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 66 + use crate::shape::Intersection; [INFO] [stdout] | [INFO] [stdout] 66 + use std::collections::btree_set::Intersection; [INFO] [stdout] | [INFO] [stdout] 66 + use std::collections::hash_set::Intersection; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ray` [INFO] [stdout] --> src/shape/cube.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | let ray = Ray::new(Point3::new(0.5, 0., -5.), Vector3::unit_z()); [INFO] [stdout] | ^^^ use of undeclared type `Ray` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 66 + use crate::shape::Ray; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/cube.rs:121:32 [INFO] [stdout] | [INFO] [stdout] 121 | let ray = Ray::new(Point3::new(0.5, 0., -5.), Vector3::unit_z()); [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 66 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 66 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/shape/cube.rs:121:59 [INFO] [stdout] | [INFO] [stdout] 121 | let ray = Ray::new(Point3::new(0.5, 0., -5.), Vector3::unit_z()); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 66 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 66 + use crate::shape::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Intersection` [INFO] [stdout] --> src/shape/cube.rs:125:21 [INFO] [stdout] | [INFO] [stdout] 125 | Intersection::new(4., shape.clone(), None), [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `Intersection` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 66 + use crate::shape::Intersection; [INFO] [stdout] | [INFO] [stdout] 66 + use std::collections::btree_set::Intersection; [INFO] [stdout] | [INFO] [stdout] 66 + 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/cube.rs:126:21 [INFO] [stdout] | [INFO] [stdout] 126 | Intersection::new(6., shape.clone(), None) [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `Intersection` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 66 + use crate::shape::Intersection; [INFO] [stdout] | [INFO] [stdout] 66 + use std::collections::btree_set::Intersection; [INFO] [stdout] | [INFO] [stdout] 66 + use std::collections::hash_set::Intersection; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ray` [INFO] [stdout] --> src/shape/cube.rs:131:23 [INFO] [stdout] | [INFO] [stdout] 131 | let ray = Ray::new(Point3::new(0., 0.5, 0.), Vector3::unit_z()); [INFO] [stdout] | ^^^ use of undeclared type `Ray` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 66 + use crate::shape::Ray; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/cube.rs:131:32 [INFO] [stdout] | [INFO] [stdout] 131 | let ray = Ray::new(Point3::new(0., 0.5, 0.), Vector3::unit_z()); [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 66 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 66 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/shape/cube.rs:131:58 [INFO] [stdout] | [INFO] [stdout] 131 | let ray = Ray::new(Point3::new(0., 0.5, 0.), Vector3::unit_z()); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 66 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 66 + use crate::shape::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Intersection` [INFO] [stdout] --> src/shape/cube.rs:135:21 [INFO] [stdout] | [INFO] [stdout] 135 | Intersection::new(-1., shape.clone(), None), [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `Intersection` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 66 + use crate::shape::Intersection; [INFO] [stdout] | [INFO] [stdout] 66 + use std::collections::btree_set::Intersection; [INFO] [stdout] | [INFO] [stdout] 66 + 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/cube.rs:136:21 [INFO] [stdout] | [INFO] [stdout] 136 | Intersection::new(1., shape, None) [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `Intersection` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 66 + use crate::shape::Intersection; [INFO] [stdout] | [INFO] [stdout] 66 + use std::collections::btree_set::Intersection; [INFO] [stdout] | [INFO] [stdout] 66 + use std::collections::hash_set::Intersection; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ray` [INFO] [stdout] --> src/shape/cube.rs:141:23 [INFO] [stdout] | [INFO] [stdout] 141 | let ray = Ray::new( [INFO] [stdout] | ^^^ use of undeclared type `Ray` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 66 + use crate::shape::Ray; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/cube.rs:142:17 [INFO] [stdout] | [INFO] [stdout] 142 | Point3::new(-2., 0., 0.), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 66 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 66 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/shape/cube.rs:143:17 [INFO] [stdout] | [INFO] [stdout] 143 | Vector3::new(0.2673, 0.5345, 0.8018), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 66 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 66 + use crate::shape::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ray` [INFO] [stdout] --> src/shape/cube.rs:148:23 [INFO] [stdout] | [INFO] [stdout] 148 | let ray = Ray::new( [INFO] [stdout] | ^^^ use of undeclared type `Ray` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 66 + use crate::shape::Ray; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/cube.rs:149:17 [INFO] [stdout] | [INFO] [stdout] 149 | Point3::new(0., -2., 0.), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 66 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 66 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/shape/cube.rs:150:17 [INFO] [stdout] | [INFO] [stdout] 150 | Vector3::new(0.8018, 0.2673, 0.5345), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 66 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 66 + use crate::shape::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ray` [INFO] [stdout] --> src/shape/cube.rs:155:23 [INFO] [stdout] | [INFO] [stdout] 155 | let ray = Ray::new( [INFO] [stdout] | ^^^ use of undeclared type `Ray` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 66 + use crate::shape::Ray; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/cube.rs:156:17 [INFO] [stdout] | [INFO] [stdout] 156 | Point3::new(0., 0., -2.), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 66 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 66 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/shape/cube.rs:157:17 [INFO] [stdout] | [INFO] [stdout] 157 | Vector3::new(0.5345, 0.8018, 0.2673), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 66 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 66 + use crate::shape::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ray` [INFO] [stdout] --> src/shape/cube.rs:162:23 [INFO] [stdout] | [INFO] [stdout] 162 | let ray = Ray::new(Point3::new(2., 0., 2.), -Vector3::unit_z()); [INFO] [stdout] | ^^^ use of undeclared type `Ray` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 66 + use crate::shape::Ray; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/cube.rs:162:32 [INFO] [stdout] | [INFO] [stdout] 162 | let ray = Ray::new(Point3::new(2., 0., 2.), -Vector3::unit_z()); [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 66 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 66 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/shape/cube.rs:162:58 [INFO] [stdout] | [INFO] [stdout] 162 | let ray = Ray::new(Point3::new(2., 0., 2.), -Vector3::unit_z()); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 66 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 66 + use crate::shape::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ray` [INFO] [stdout] --> src/shape/cube.rs:166:23 [INFO] [stdout] | [INFO] [stdout] 166 | let ray = Ray::new(Point3::new(0., 2., 2.), -Vector3::unit_y()); [INFO] [stdout] | ^^^ use of undeclared type `Ray` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 66 + use crate::shape::Ray; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/cube.rs:166:32 [INFO] [stdout] | [INFO] [stdout] 166 | let ray = Ray::new(Point3::new(0., 2., 2.), -Vector3::unit_y()); [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 66 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 66 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/shape/cube.rs:166:58 [INFO] [stdout] | [INFO] [stdout] 166 | let ray = Ray::new(Point3::new(0., 2., 2.), -Vector3::unit_y()); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 66 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 66 + use crate::shape::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ray` [INFO] [stdout] --> src/shape/cube.rs:170:23 [INFO] [stdout] | [INFO] [stdout] 170 | let ray = Ray::new(Point3::new(2., 2., 0.), -Vector3::unit_x()); [INFO] [stdout] | ^^^ use of undeclared type `Ray` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 66 + use crate::shape::Ray; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/cube.rs:170:32 [INFO] [stdout] | [INFO] [stdout] 170 | let ray = Ray::new(Point3::new(2., 2., 0.), -Vector3::unit_x()); [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 66 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 66 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/shape/cube.rs:170:58 [INFO] [stdout] | [INFO] [stdout] 170 | let ray = Ray::new(Point3::new(2., 2., 0.), -Vector3::unit_x()); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 66 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 66 + use crate::shape::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Cube` [INFO] [stdout] --> src/shape/cube.rs:177:20 [INFO] [stdout] | [INFO] [stdout] 177 | let cube = Cube::default(); [INFO] [stdout] | ^^^^ use of undeclared type `Cube` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 66 + use crate::shape::Cube; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/cube.rs:179:34 [INFO] [stdout] | [INFO] [stdout] 179 | cube.local_normal_at(Point3::new(1., 0.5, -0.8)), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 66 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 66 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/shape/cube.rs:180:13 [INFO] [stdout] | [INFO] [stdout] 180 | Vector3::unit_x() [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 66 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 66 + use crate::shape::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/cube.rs:183:34 [INFO] [stdout] | [INFO] [stdout] 183 | cube.local_normal_at(Point3::new(-1., -0.2, 0.9)), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 66 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 66 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/shape/cube.rs:184:14 [INFO] [stdout] | [INFO] [stdout] 184 | -Vector3::unit_x() [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 66 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 66 + use crate::shape::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/cube.rs:187:34 [INFO] [stdout] | [INFO] [stdout] 187 | cube.local_normal_at(Point3::new(-0.4, 1., -0.1)), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 66 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 66 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/shape/cube.rs:188:13 [INFO] [stdout] | [INFO] [stdout] 188 | Vector3::unit_y() [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 66 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 66 + use crate::shape::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/cube.rs:191:34 [INFO] [stdout] | [INFO] [stdout] 191 | cube.local_normal_at(Point3::new(0.3, -1., -0.7)), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 66 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 66 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/shape/cube.rs:192:14 [INFO] [stdout] | [INFO] [stdout] 192 | -Vector3::unit_y() [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 66 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 66 + use crate::shape::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/cube.rs:195:34 [INFO] [stdout] | [INFO] [stdout] 195 | cube.local_normal_at(Point3::new(-0.6, 0.3, 1.)), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 66 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 66 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/shape/cube.rs:196:13 [INFO] [stdout] | [INFO] [stdout] 196 | Vector3::unit_z() [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 66 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 66 + use crate::shape::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/cube.rs:199:34 [INFO] [stdout] | [INFO] [stdout] 199 | cube.local_normal_at(Point3::new(0.4, 0.4, -1.)), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 66 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 66 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/shape/cube.rs:200:14 [INFO] [stdout] | [INFO] [stdout] 200 | -Vector3::unit_z() [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 66 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 66 + use crate::shape::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/cube.rs:203:34 [INFO] [stdout] | [INFO] [stdout] 203 | cube.local_normal_at(Point3::new(1., 1., 1.)), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 66 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 66 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/shape/cube.rs:204:13 [INFO] [stdout] | [INFO] [stdout] 204 | Vector3::unit_x() [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 66 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 66 + use crate::shape::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/cube.rs:207:34 [INFO] [stdout] | [INFO] [stdout] 207 | cube.local_normal_at(Point3::new(-1., -1., -1.)), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 66 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 66 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/shape/cube.rs:208:14 [INFO] [stdout] | [INFO] [stdout] 208 | -Vector3::unit_x() [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 66 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 66 + use crate::shape::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Cylinder` [INFO] [stdout] --> src/shape/cylinder.rs:130:28 [INFO] [stdout] | [INFO] [stdout] 130 | let cylinder = Cylinder::default(); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Cylinder` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 127 + use crate::shape::Cylinder; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Shape` [INFO] [stdout] --> src/shape/cylinder.rs:131:25 [INFO] [stdout] | [INFO] [stdout] 131 | let shape = Shape::Cylinder(cylinder.clone()); [INFO] [stdout] | ^^^^^ use of undeclared type `Shape` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 127 + use crate::shape::Shape; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ray` [INFO] [stdout] --> src/shape/cylinder.rs:133:42 [INFO] [stdout] | [INFO] [stdout] 133 | cylinder.local_intersect(Ray::new(Point3::new(1., 0., 0.), Vector3::unit_y())), [INFO] [stdout] | ^^^ use of undeclared type `Ray` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 127 + use crate::shape::Ray; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/cylinder.rs:133:51 [INFO] [stdout] | [INFO] [stdout] 133 | cylinder.local_intersect(Ray::new(Point3::new(1., 0., 0.), Vector3::unit_y())), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 127 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 127 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/shape/cylinder.rs:133:76 [INFO] [stdout] | [INFO] [stdout] 133 | cylinder.local_intersect(Ray::new(Point3::new(1., 0., 0.), Vector3::unit_y())), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 127 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 127 + use crate::shape::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ray` [INFO] [stdout] --> src/shape/cylinder.rs:137:42 [INFO] [stdout] | [INFO] [stdout] 137 | cylinder.local_intersect(Ray::new(Point3::origin(), Vector3::unit_y())), [INFO] [stdout] | ^^^ use of undeclared type `Ray` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 127 + use crate::shape::Ray; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/cylinder.rs:137:51 [INFO] [stdout] | [INFO] [stdout] 137 | cylinder.local_intersect(Ray::new(Point3::origin(), Vector3::unit_y())), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 127 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 127 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/shape/cylinder.rs:137:69 [INFO] [stdout] | [INFO] [stdout] 137 | cylinder.local_intersect(Ray::new(Point3::origin(), Vector3::unit_y())), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 127 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 127 + use crate::shape::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ray` [INFO] [stdout] --> src/shape/cylinder.rs:141:42 [INFO] [stdout] | [INFO] [stdout] 141 | cylinder.local_intersect(Ray::new( [INFO] [stdout] | ^^^ use of undeclared type `Ray` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 127 + use crate::shape::Ray; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/cylinder.rs:142:21 [INFO] [stdout] | [INFO] [stdout] 142 | Point3::new(0., 0., -5.), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 127 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 127 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/shape/cylinder.rs:143:21 [INFO] [stdout] | [INFO] [stdout] 143 | Vector3::new(1., 1., 1.).normalize() [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 127 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 127 + use crate::shape::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ray` [INFO] [stdout] --> src/shape/cylinder.rs:148:42 [INFO] [stdout] | [INFO] [stdout] 148 | cylinder.local_intersect(Ray::new(Point3::new(1., 0., -5.), Vector3::unit_z())), [INFO] [stdout] | ^^^ use of undeclared type `Ray` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 127 + use crate::shape::Ray; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/cylinder.rs:148:51 [INFO] [stdout] | [INFO] [stdout] 148 | cylinder.local_intersect(Ray::new(Point3::new(1., 0., -5.), Vector3::unit_z())), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 127 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 127 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/shape/cylinder.rs:148:77 [INFO] [stdout] | [INFO] [stdout] 148 | cylinder.local_intersect(Ray::new(Point3::new(1., 0., -5.), Vector3::unit_z())), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 127 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 127 + use crate::shape::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Intersection` [INFO] [stdout] --> src/shape/cylinder.rs:150:21 [INFO] [stdout] | [INFO] [stdout] 150 | Intersection::new(5., shape.clone(), None), [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `Intersection` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 127 + use crate::shape::Intersection; [INFO] [stdout] | [INFO] [stdout] 127 + use std::collections::btree_set::Intersection; [INFO] [stdout] | [INFO] [stdout] 127 + 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/cylinder.rs:151:21 [INFO] [stdout] | [INFO] [stdout] 151 | Intersection::new(5., shape.clone(), None) [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `Intersection` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 127 + use crate::shape::Intersection; [INFO] [stdout] | [INFO] [stdout] 127 + use std::collections::btree_set::Intersection; [INFO] [stdout] | [INFO] [stdout] 127 + use std::collections::hash_set::Intersection; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ray` [INFO] [stdout] --> src/shape/cylinder.rs:155:42 [INFO] [stdout] | [INFO] [stdout] 155 | cylinder.local_intersect(Ray::new(Point3::new(0., 0., -5.), Vector3::unit_z())), [INFO] [stdout] | ^^^ use of undeclared type `Ray` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 127 + use crate::shape::Ray; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/cylinder.rs:155:51 [INFO] [stdout] | [INFO] [stdout] 155 | cylinder.local_intersect(Ray::new(Point3::new(0., 0., -5.), Vector3::unit_z())), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 127 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 127 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/shape/cylinder.rs:155:77 [INFO] [stdout] | [INFO] [stdout] 155 | cylinder.local_intersect(Ray::new(Point3::new(0., 0., -5.), Vector3::unit_z())), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 127 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 127 + use crate::shape::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Intersection` [INFO] [stdout] --> src/shape/cylinder.rs:157:21 [INFO] [stdout] | [INFO] [stdout] 157 | Intersection::new(4., shape.clone(), None), [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `Intersection` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 127 + use crate::shape::Intersection; [INFO] [stdout] | [INFO] [stdout] 127 + use std::collections::btree_set::Intersection; [INFO] [stdout] | [INFO] [stdout] 127 + 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/cylinder.rs:158:21 [INFO] [stdout] | [INFO] [stdout] 158 | Intersection::new(6., shape, None) [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `Intersection` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 127 + use crate::shape::Intersection; [INFO] [stdout] | [INFO] [stdout] 127 + use std::collections::btree_set::Intersection; [INFO] [stdout] | [INFO] [stdout] 127 + use std::collections::hash_set::Intersection; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Cylinder` [INFO] [stdout] --> src/shape/cylinder.rs:175:32 [INFO] [stdout] | [INFO] [stdout] 175 | let mut cylinder = Cylinder::default(); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Cylinder` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 127 + use crate::shape::Cylinder; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ray` [INFO] [stdout] --> src/shape/cylinder.rs:179:42 [INFO] [stdout] | [INFO] [stdout] 179 | cylinder.local_intersect(Ray::new( [INFO] [stdout] | ^^^ use of undeclared type `Ray` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 127 + use crate::shape::Ray; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/cylinder.rs:180:21 [INFO] [stdout] | [INFO] [stdout] 180 | Point3::new(0., 1.5, 0.), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 127 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 127 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/shape/cylinder.rs:181:21 [INFO] [stdout] | [INFO] [stdout] 181 | Vector3::new(0.1, 1., 0.).normalize() [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 127 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 127 + use crate::shape::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ray` [INFO] [stdout] --> src/shape/cylinder.rs:186:42 [INFO] [stdout] | [INFO] [stdout] 186 | cylinder.local_intersect(Ray::new(Point3::new(0., 3., -5.), Vector3::unit_z())), [INFO] [stdout] | ^^^ use of undeclared type `Ray` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 127 + use crate::shape::Ray; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/cylinder.rs:186:51 [INFO] [stdout] | [INFO] [stdout] 186 | cylinder.local_intersect(Ray::new(Point3::new(0., 3., -5.), Vector3::unit_z())), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 127 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 127 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/shape/cylinder.rs:186:77 [INFO] [stdout] | [INFO] [stdout] 186 | cylinder.local_intersect(Ray::new(Point3::new(0., 3., -5.), Vector3::unit_z())), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 127 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 127 + use crate::shape::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ray` [INFO] [stdout] --> src/shape/cylinder.rs:190:42 [INFO] [stdout] | [INFO] [stdout] 190 | cylinder.local_intersect(Ray::new(Point3::new(0., 0., -5.), Vector3::unit_z())), [INFO] [stdout] | ^^^ use of undeclared type `Ray` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 127 + use crate::shape::Ray; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/cylinder.rs:190:51 [INFO] [stdout] | [INFO] [stdout] 190 | cylinder.local_intersect(Ray::new(Point3::new(0., 0., -5.), Vector3::unit_z())), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 127 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 127 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/shape/cylinder.rs:190:77 [INFO] [stdout] | [INFO] [stdout] 190 | cylinder.local_intersect(Ray::new(Point3::new(0., 0., -5.), Vector3::unit_z())), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 127 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 127 + use crate::shape::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ray` [INFO] [stdout] --> src/shape/cylinder.rs:194:42 [INFO] [stdout] | [INFO] [stdout] 194 | cylinder.local_intersect(Ray::new(Point3::new(0., 2., -5.), Vector3::unit_z())), [INFO] [stdout] | ^^^ use of undeclared type `Ray` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 127 + use crate::shape::Ray; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/cylinder.rs:194:51 [INFO] [stdout] | [INFO] [stdout] 194 | cylinder.local_intersect(Ray::new(Point3::new(0., 2., -5.), Vector3::unit_z())), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 127 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 127 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/shape/cylinder.rs:194:77 [INFO] [stdout] | [INFO] [stdout] 194 | cylinder.local_intersect(Ray::new(Point3::new(0., 2., -5.), Vector3::unit_z())), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 127 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 127 + use crate::shape::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ray` [INFO] [stdout] --> src/shape/cylinder.rs:198:42 [INFO] [stdout] | [INFO] [stdout] 198 | cylinder.local_intersect(Ray::new(Point3::new(0., 1., -5.), Vector3::unit_z())), [INFO] [stdout] | ^^^ use of undeclared type `Ray` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 127 + use crate::shape::Ray; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/cylinder.rs:198:51 [INFO] [stdout] | [INFO] [stdout] 198 | cylinder.local_intersect(Ray::new(Point3::new(0., 1., -5.), Vector3::unit_z())), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 127 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 127 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/shape/cylinder.rs:198:77 [INFO] [stdout] | [INFO] [stdout] 198 | cylinder.local_intersect(Ray::new(Point3::new(0., 1., -5.), Vector3::unit_z())), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 127 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 127 + use crate::shape::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ray` [INFO] [stdout] --> src/shape/cylinder.rs:203:38 [INFO] [stdout] | [INFO] [stdout] 203 | .local_intersect(Ray::new(Point3::new(0., 1.5, -2.), Vector3::unit_z())) [INFO] [stdout] | ^^^ use of undeclared type `Ray` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 127 + use crate::shape::Ray; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/cylinder.rs:203:47 [INFO] [stdout] | [INFO] [stdout] 203 | .local_intersect(Ray::new(Point3::new(0., 1.5, -2.), Vector3::unit_z())) [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 127 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 127 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/shape/cylinder.rs:203:74 [INFO] [stdout] | [INFO] [stdout] 203 | .local_intersect(Ray::new(Point3::new(0., 1.5, -2.), Vector3::unit_z())) [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 127 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 127 + use crate::shape::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Cylinder` [INFO] [stdout] --> src/shape/cylinder.rs:209:32 [INFO] [stdout] | [INFO] [stdout] 209 | let mut cylinder = Cylinder::default(); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Cylinder` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 127 + use crate::shape::Cylinder; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ray` [INFO] [stdout] --> src/shape/cylinder.rs:215:38 [INFO] [stdout] | [INFO] [stdout] 215 | .local_intersect(Ray::new(Point3::new(0., 3., 0.), -Vector3::unit_y())) [INFO] [stdout] | ^^^ use of undeclared type `Ray` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 127 + use crate::shape::Ray; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/cylinder.rs:215:47 [INFO] [stdout] | [INFO] [stdout] 215 | .local_intersect(Ray::new(Point3::new(0., 3., 0.), -Vector3::unit_y())) [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 127 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 127 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/shape/cylinder.rs:215:73 [INFO] [stdout] | [INFO] [stdout] 215 | .local_intersect(Ray::new(Point3::new(0., 3., 0.), -Vector3::unit_y())) [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 127 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 127 + use crate::shape::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ray` [INFO] [stdout] --> src/shape/cylinder.rs:221:38 [INFO] [stdout] | [INFO] [stdout] 221 | .local_intersect(Ray::new( [INFO] [stdout] | ^^^ use of undeclared type `Ray` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 127 + use crate::shape::Ray; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/cylinder.rs:222:25 [INFO] [stdout] | [INFO] [stdout] 222 | Point3::new(0., 3., -2.), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 127 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 127 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/shape/cylinder.rs:223:26 [INFO] [stdout] | [INFO] [stdout] 223 | -Vector3::new(0., -1., 2.).normalize() [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 127 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 127 + use crate::shape::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ray` [INFO] [stdout] --> src/shape/cylinder.rs:230:38 [INFO] [stdout] | [INFO] [stdout] 230 | .local_intersect(Ray::new( [INFO] [stdout] | ^^^ use of undeclared type `Ray` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 127 + use crate::shape::Ray; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/cylinder.rs:231:25 [INFO] [stdout] | [INFO] [stdout] 231 | Point3::new(0., 4., -2.), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 127 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 127 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/shape/cylinder.rs:232:26 [INFO] [stdout] | [INFO] [stdout] 232 | -Vector3::new(0., -1., 1.).normalize() [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 127 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 127 + use crate::shape::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ray` [INFO] [stdout] --> src/shape/cylinder.rs:239:38 [INFO] [stdout] | [INFO] [stdout] 239 | .local_intersect(Ray::new( [INFO] [stdout] | ^^^ use of undeclared type `Ray` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 127 + use crate::shape::Ray; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/cylinder.rs:240:25 [INFO] [stdout] | [INFO] [stdout] 240 | Point3::new(0., 0., -2.), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 127 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 127 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/shape/cylinder.rs:241:26 [INFO] [stdout] | [INFO] [stdout] 241 | -Vector3::new(0., 1., 2.).normalize() [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 127 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 127 + use crate::shape::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ray` [INFO] [stdout] --> src/shape/cylinder.rs:248:38 [INFO] [stdout] | [INFO] [stdout] 248 | .local_intersect(Ray::new( [INFO] [stdout] | ^^^ use of undeclared type `Ray` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 127 + use crate::shape::Ray; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/cylinder.rs:249:25 [INFO] [stdout] | [INFO] [stdout] 249 | Point3::new(0., -1., -2.), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 127 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 127 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/shape/cylinder.rs:250:26 [INFO] [stdout] | [INFO] [stdout] 250 | -Vector3::new(0., 1., 1.).normalize() [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 127 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 127 + use crate::shape::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Cylinder` [INFO] [stdout] --> src/shape/cylinder.rs:261:28 [INFO] [stdout] | [INFO] [stdout] 261 | let cylinder = Cylinder::default(); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Cylinder` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 127 + use crate::shape::Cylinder; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/cylinder.rs:263:42 [INFO] [stdout] | [INFO] [stdout] 263 | cylinder.local_normal_at(Point3::new(1., 0., 0.)), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 127 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 127 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/shape/cylinder.rs:264:17 [INFO] [stdout] | [INFO] [stdout] 264 | Vector3::unit_x() [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 127 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 127 + use crate::shape::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/cylinder.rs:267:42 [INFO] [stdout] | [INFO] [stdout] 267 | cylinder.local_normal_at(Point3::new(0., 5., -1.)), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 127 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 127 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/shape/cylinder.rs:268:18 [INFO] [stdout] | [INFO] [stdout] 268 | -Vector3::unit_z() [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 127 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 127 + use crate::shape::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/cylinder.rs:271:42 [INFO] [stdout] | [INFO] [stdout] 271 | cylinder.local_normal_at(Point3::new(0., -2., 1.)), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 127 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 127 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/shape/cylinder.rs:272:17 [INFO] [stdout] | [INFO] [stdout] 272 | Vector3::unit_z() [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 127 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 127 + use crate::shape::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/cylinder.rs:275:42 [INFO] [stdout] | [INFO] [stdout] 275 | cylinder.local_normal_at(Point3::new(-1., 1., 0.)), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 127 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 127 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/shape/cylinder.rs:276:18 [INFO] [stdout] | [INFO] [stdout] 276 | -Vector3::unit_x() [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 127 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 127 + use crate::shape::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Cylinder` [INFO] [stdout] --> src/shape/cylinder.rs:280:32 [INFO] [stdout] | [INFO] [stdout] 280 | let mut cylinder = Cylinder::default(); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Cylinder` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 127 + use crate::shape::Cylinder; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/cylinder.rs:285:42 [INFO] [stdout] | [INFO] [stdout] 285 | cylinder.local_normal_at(Point3::new(0., 1., 0.)), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 127 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 127 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/shape/cylinder.rs:286:18 [INFO] [stdout] | [INFO] [stdout] 286 | -Vector3::unit_y() [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 127 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 127 + use crate::shape::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/cylinder.rs:289:42 [INFO] [stdout] | [INFO] [stdout] 289 | cylinder.local_normal_at(Point3::new(0.5, 1., 0.)), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 127 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 127 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/shape/cylinder.rs:290:18 [INFO] [stdout] | [INFO] [stdout] 290 | -Vector3::unit_y() [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 127 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 127 + use crate::shape::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/cylinder.rs:293:42 [INFO] [stdout] | [INFO] [stdout] 293 | cylinder.local_normal_at(Point3::new(0., 1., 0.5)), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 127 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 127 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/shape/cylinder.rs:294:18 [INFO] [stdout] | [INFO] [stdout] 294 | -Vector3::unit_y() [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 127 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 127 + use crate::shape::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/cylinder.rs:297:42 [INFO] [stdout] | [INFO] [stdout] 297 | cylinder.local_normal_at(Point3::new(0., 2., 0.)), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 127 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 127 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/shape/cylinder.rs:298:17 [INFO] [stdout] | [INFO] [stdout] 298 | Vector3::unit_y() [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 127 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 127 + use crate::shape::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/cylinder.rs:301:42 [INFO] [stdout] | [INFO] [stdout] 301 | cylinder.local_normal_at(Point3::new(0.5, 2., 0.)), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 127 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 127 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/shape/cylinder.rs:302:17 [INFO] [stdout] | [INFO] [stdout] 302 | Vector3::unit_y() [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 127 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 127 + use crate::shape::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/cylinder.rs:305:42 [INFO] [stdout] | [INFO] [stdout] 305 | cylinder.local_normal_at(Point3::new(0., 2., 0.5)), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 127 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 127 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/shape/cylinder.rs:306:17 [INFO] [stdout] | [INFO] [stdout] 306 | Vector3::unit_y() [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 127 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 127 + use crate::shape::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Shape` [INFO] [stdout] --> src/shape/group.rs:87:21 [INFO] [stdout] | [INFO] [stdout] 87 | let shape = Shape::Group(Group::::new(Matrix4::from_scale(2.), Vec::new(), None)); [INFO] [stdout] | ^^^^^ use of undeclared type `Shape` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 85 + use crate::shape::Shape; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Group` [INFO] [stdout] --> src/shape/group.rs:87:34 [INFO] [stdout] | [INFO] [stdout] 87 | let shape = Shape::Group(Group::::new(Matrix4::from_scale(2.), Vec::new(), None)); [INFO] [stdout] | ^^^^^ use of undeclared type `Group` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 85 + use crate::shape::Group; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Matrix4` [INFO] [stdout] --> src/shape/group.rs:87:52 [INFO] [stdout] | [INFO] [stdout] 87 | let shape = Shape::Group(Group::::new(Matrix4::from_scale(2.), Vec::new(), None)); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Matrix4` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 85 + use cgmath::Matrix4; [INFO] [stdout] | [INFO] [stdout] 85 + use crate::shape::Matrix4; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `get_rc` in this scope [INFO] [stdout] --> src/shape/group.rs:88:18 [INFO] [stdout] | [INFO] [stdout] 88 | let rc = get_rc(shape); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 85 + use crate::shape::get_rc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `push` in this scope [INFO] [stdout] --> src/shape/group.rs:89:9 [INFO] [stdout] | [INFO] [stdout] 89 | push( [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 85 + use crate::shape::group::push; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Shape` [INFO] [stdout] --> src/shape/group.rs:91:13 [INFO] [stdout] | [INFO] [stdout] 91 | Shape::Sphere(Sphere::new( [INFO] [stdout] | ^^^^^ use of undeclared type `Shape` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 85 + use crate::shape::Shape; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Sphere` [INFO] [stdout] --> src/shape/group.rs:91:27 [INFO] [stdout] | [INFO] [stdout] 91 | Shape::Sphere(Sphere::new( [INFO] [stdout] | ^^^^^^ use of undeclared type `Sphere` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 85 + use crate::shape::Sphere; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Matrix4` [INFO] [stdout] --> src/shape/group.rs:92:17 [INFO] [stdout] | [INFO] [stdout] 92 | Matrix4::from_translation(Vector3::unit_x() * 5.), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Matrix4` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 85 + use cgmath::Matrix4; [INFO] [stdout] | [INFO] [stdout] 85 + use crate::shape::Matrix4; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/shape/group.rs:92:43 [INFO] [stdout] | [INFO] [stdout] 92 | Matrix4::from_translation(Vector3::unit_x() * 5.), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 85 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 85 + use crate::shape::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Material` [INFO] [stdout] --> src/shape/group.rs:93:17 [INFO] [stdout] | [INFO] [stdout] 93 | Material::default(), [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Material` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 85 + use crate::shape::Material; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Group` [INFO] [stdout] --> src/shape/group.rs:102:25 [INFO] [stdout] | [INFO] [stdout] 102 | let group = Group::::default(); [INFO] [stdout] | ^^^^^ use of undeclared type `Group` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 85 + use crate::shape::Group; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ray` [INFO] [stdout] --> src/shape/group.rs:104:39 [INFO] [stdout] | [INFO] [stdout] 104 | group.local_intersect(Ray::new(Point3::origin(), Vector3::unit_z())), [INFO] [stdout] | ^^^ use of undeclared type `Ray` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 85 + use crate::shape::Ray; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/group.rs:104:48 [INFO] [stdout] | [INFO] [stdout] 104 | group.local_intersect(Ray::new(Point3::origin(), Vector3::unit_z())), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 85 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 85 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/shape/group.rs:104:66 [INFO] [stdout] | [INFO] [stdout] 104 | group.local_intersect(Ray::new(Point3::origin(), Vector3::unit_z())), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 85 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 85 + use crate::shape::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `get_rc` in this scope [INFO] [stdout] --> src/shape/group.rs:109:22 [INFO] [stdout] | [INFO] [stdout] 109 | let rc = get_rc(Shape::Group(Group::::default())); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 85 + use crate::shape::get_rc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Shape` [INFO] [stdout] --> src/shape/group.rs:109:29 [INFO] [stdout] | [INFO] [stdout] 109 | let rc = get_rc(Shape::Group(Group::::default())); [INFO] [stdout] | ^^^^^ use of undeclared type `Shape` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 85 + use crate::shape::Shape; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Group` [INFO] [stdout] --> src/shape/group.rs:109:42 [INFO] [stdout] | [INFO] [stdout] 109 | let rc = get_rc(Shape::Group(Group::::default())); [INFO] [stdout] | ^^^^^ use of undeclared type `Group` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 85 + use crate::shape::Group; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `push` in this scope [INFO] [stdout] --> src/shape/group.rs:110:13 [INFO] [stdout] | [INFO] [stdout] 110 | push(&rc, Shape::Sphere(Sphere::default())); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 85 + use crate::shape::group::push; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Shape` [INFO] [stdout] --> src/shape/group.rs:110:23 [INFO] [stdout] | [INFO] [stdout] 110 | push(&rc, Shape::Sphere(Sphere::default())); [INFO] [stdout] | ^^^^^ use of undeclared type `Shape` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 85 + use crate::shape::Shape; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Sphere` [INFO] [stdout] --> src/shape/group.rs:110:37 [INFO] [stdout] | [INFO] [stdout] 110 | push(&rc, Shape::Sphere(Sphere::default())); [INFO] [stdout] | ^^^^^^ use of undeclared type `Sphere` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 85 + use crate::shape::Sphere; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `push` in this scope [INFO] [stdout] --> src/shape/group.rs:111:13 [INFO] [stdout] | [INFO] [stdout] 111 | push( [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 85 + use crate::shape::group::push; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Shape` [INFO] [stdout] --> src/shape/group.rs:113:17 [INFO] [stdout] | [INFO] [stdout] 113 | Shape::Sphere(Sphere::new( [INFO] [stdout] | ^^^^^ use of undeclared type `Shape` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 85 + use crate::shape::Shape; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Sphere` [INFO] [stdout] --> src/shape/group.rs:113:31 [INFO] [stdout] | [INFO] [stdout] 113 | Shape::Sphere(Sphere::new( [INFO] [stdout] | ^^^^^^ use of undeclared type `Sphere` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 85 + use crate::shape::Sphere; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Matrix4` [INFO] [stdout] --> src/shape/group.rs:114:21 [INFO] [stdout] | [INFO] [stdout] 114 | Matrix4::from_translation(Vector3::unit_z() * -3.), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Matrix4` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 85 + use cgmath::Matrix4; [INFO] [stdout] | [INFO] [stdout] 85 + use crate::shape::Matrix4; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/shape/group.rs:114:47 [INFO] [stdout] | [INFO] [stdout] 114 | Matrix4::from_translation(Vector3::unit_z() * -3.), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 85 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 85 + use crate::shape::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Material` [INFO] [stdout] --> src/shape/group.rs:115:21 [INFO] [stdout] | [INFO] [stdout] 115 | Material::default(), [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Material` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 85 + use crate::shape::Material; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `push` in this scope [INFO] [stdout] --> src/shape/group.rs:119:13 [INFO] [stdout] | [INFO] [stdout] 119 | push( [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 85 + use crate::shape::group::push; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Shape` [INFO] [stdout] --> src/shape/group.rs:121:17 [INFO] [stdout] | [INFO] [stdout] 121 | Shape::Sphere(Sphere::new( [INFO] [stdout] | ^^^^^ use of undeclared type `Shape` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 85 + use crate::shape::Shape; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Sphere` [INFO] [stdout] --> src/shape/group.rs:121:31 [INFO] [stdout] | [INFO] [stdout] 121 | Shape::Sphere(Sphere::new( [INFO] [stdout] | ^^^^^^ use of undeclared type `Sphere` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 85 + use crate::shape::Sphere; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Matrix4` [INFO] [stdout] --> src/shape/group.rs:122:21 [INFO] [stdout] | [INFO] [stdout] 122 | Matrix4::from_translation(Vector3::unit_x() * 5.), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Matrix4` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 85 + use cgmath::Matrix4; [INFO] [stdout] | [INFO] [stdout] 85 + use crate::shape::Matrix4; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/shape/group.rs:122:47 [INFO] [stdout] | [INFO] [stdout] 122 | Matrix4::from_translation(Vector3::unit_x() * 5.), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 85 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 85 + use crate::shape::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Material` [INFO] [stdout] --> src/shape/group.rs:123:21 [INFO] [stdout] | [INFO] [stdout] 123 | Material::default(), [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Material` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 85 + use crate::shape::Material; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ray` [INFO] [stdout] --> src/shape/group.rs:129:44 [INFO] [stdout] | [INFO] [stdout] 129 | let xs = group.local_intersect(Ray::new(Point3::new(0., 0., -5.), Vector3::unit_z())); [INFO] [stdout] | ^^^ use of undeclared type `Ray` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 85 + use crate::shape::Ray; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/group.rs:129:53 [INFO] [stdout] | [INFO] [stdout] 129 | let xs = group.local_intersect(Ray::new(Point3::new(0., 0., -5.), Vector3::unit_z())); [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 85 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 85 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/shape/group.rs:129:79 [INFO] [stdout] | [INFO] [stdout] 129 | let xs = group.local_intersect(Ray::new(Point3::new(0., 0., -5.), Vector3::unit_z())); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 85 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 85 + use crate::shape::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Shape` [INFO] [stdout] --> src/shape/group.rs:137:25 [INFO] [stdout] | [INFO] [stdout] 137 | let shape = Shape::Group(Group::::new(Matrix4::from_scale(2.), Vec::new(), None)); [INFO] [stdout] | ^^^^^ use of undeclared type `Shape` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 85 + use crate::shape::Shape; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Group` [INFO] [stdout] --> src/shape/group.rs:137:38 [INFO] [stdout] | [INFO] [stdout] 137 | let shape = Shape::Group(Group::::new(Matrix4::from_scale(2.), Vec::new(), None)); [INFO] [stdout] | ^^^^^ use of undeclared type `Group` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 85 + use crate::shape::Group; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Matrix4` [INFO] [stdout] --> src/shape/group.rs:137:56 [INFO] [stdout] | [INFO] [stdout] 137 | let shape = Shape::Group(Group::::new(Matrix4::from_scale(2.), Vec::new(), None)); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Matrix4` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 85 + use cgmath::Matrix4; [INFO] [stdout] | [INFO] [stdout] 85 + use crate::shape::Matrix4; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `get_rc` in this scope [INFO] [stdout] --> src/shape/group.rs:138:22 [INFO] [stdout] | [INFO] [stdout] 138 | let rc = get_rc(shape); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 85 + use crate::shape::get_rc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `push` in this scope [INFO] [stdout] --> src/shape/group.rs:139:13 [INFO] [stdout] | [INFO] [stdout] 139 | push( [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 85 + use crate::shape::group::push; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Shape` [INFO] [stdout] --> src/shape/group.rs:141:17 [INFO] [stdout] | [INFO] [stdout] 141 | Shape::Sphere(Sphere::new( [INFO] [stdout] | ^^^^^ use of undeclared type `Shape` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 85 + use crate::shape::Shape; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Sphere` [INFO] [stdout] --> src/shape/group.rs:141:31 [INFO] [stdout] | [INFO] [stdout] 141 | Shape::Sphere(Sphere::new( [INFO] [stdout] | ^^^^^^ use of undeclared type `Sphere` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 85 + use crate::shape::Sphere; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Matrix4` [INFO] [stdout] --> src/shape/group.rs:142:21 [INFO] [stdout] | [INFO] [stdout] 142 | Matrix4::from_translation(Vector3::unit_x() * 5.), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Matrix4` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 85 + use cgmath::Matrix4; [INFO] [stdout] | [INFO] [stdout] 85 + use crate::shape::Matrix4; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/shape/group.rs:142:47 [INFO] [stdout] | [INFO] [stdout] 142 | Matrix4::from_translation(Vector3::unit_x() * 5.), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 85 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 85 + use crate::shape::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Material` [INFO] [stdout] --> src/shape/group.rs:143:21 [INFO] [stdout] | [INFO] [stdout] 143 | Material::default(), [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Material` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 85 + use crate::shape::Material; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ray` [INFO] [stdout] --> src/shape/group.rs:149:32 [INFO] [stdout] | [INFO] [stdout] 149 | .intersect(Ray::new(Point3::new(10., 0., -10.), Vector3::unit_z())) [INFO] [stdout] | ^^^ use of undeclared type `Ray` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 85 + use crate::shape::Ray; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/group.rs:149:41 [INFO] [stdout] | [INFO] [stdout] 149 | .intersect(Ray::new(Point3::new(10., 0., -10.), Vector3::unit_z())) [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 85 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 85 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/shape/group.rs:149:69 [INFO] [stdout] | [INFO] [stdout] 149 | .intersect(Ray::new(Point3::new(10., 0., -10.), Vector3::unit_z())) [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 85 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 85 + use crate::shape::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Shape` [INFO] [stdout] --> src/shape/group.rs:158:18 [INFO] [stdout] | [INFO] [stdout] 158 | let g1 = Shape::Group(Group::new( [INFO] [stdout] | ^^^^^ use of undeclared type `Shape` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 85 + use crate::shape::Shape; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Group` [INFO] [stdout] --> src/shape/group.rs:158:31 [INFO] [stdout] | [INFO] [stdout] 158 | let g1 = Shape::Group(Group::new( [INFO] [stdout] | ^^^^^ use of undeclared type `Group` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 85 + use crate::shape::Group; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Matrix4` [INFO] [stdout] --> src/shape/group.rs:159:13 [INFO] [stdout] | [INFO] [stdout] 159 | Matrix4::from_angle_y(Rad(FRAC_PI_2)), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Matrix4` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 85 + use cgmath::Matrix4; [INFO] [stdout] | [INFO] [stdout] 85 + use crate::shape::Matrix4; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Rad` in this scope [INFO] [stdout] --> src/shape/group.rs:159:35 [INFO] [stdout] | [INFO] [stdout] 159 | Matrix4::from_angle_y(Rad(FRAC_PI_2)), [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple struct [INFO] [stdout] | [INFO] [stdout] 85 + use cgmath::Rad; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FRAC_PI_2` in this scope [INFO] [stdout] --> src/shape/group.rs:159:39 [INFO] [stdout] | [INFO] [stdout] 159 | Matrix4::from_angle_y(Rad(FRAC_PI_2)), [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 85 + use core::f32::consts::FRAC_PI_2; [INFO] [stdout] | [INFO] [stdout] 85 + use core::f64::consts::FRAC_PI_2; [INFO] [stdout] | [INFO] [stdout] 85 + use std::f32::consts::FRAC_PI_2; [INFO] [stdout] | [INFO] [stdout] 85 + use std::f64::consts::FRAC_PI_2; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Shape` [INFO] [stdout] --> src/shape/group.rs:163:18 [INFO] [stdout] | [INFO] [stdout] 163 | let g2 = Shape::Group(Group::new(Matrix4::from_scale(2.), Vec::new(), None)); [INFO] [stdout] | ^^^^^ use of undeclared type `Shape` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 85 + use crate::shape::Shape; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Group` [INFO] [stdout] --> src/shape/group.rs:163:31 [INFO] [stdout] | [INFO] [stdout] 163 | let g2 = Shape::Group(Group::new(Matrix4::from_scale(2.), Vec::new(), None)); [INFO] [stdout] | ^^^^^ use of undeclared type `Group` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 85 + use crate::shape::Group; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Matrix4` [INFO] [stdout] --> src/shape/group.rs:163:42 [INFO] [stdout] | [INFO] [stdout] 163 | let g2 = Shape::Group(Group::new(Matrix4::from_scale(2.), Vec::new(), None)); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Matrix4` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 85 + use cgmath::Matrix4; [INFO] [stdout] | [INFO] [stdout] 85 + use crate::shape::Matrix4; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `get_rc` in this scope [INFO] [stdout] --> src/shape/group.rs:164:18 [INFO] [stdout] | [INFO] [stdout] 164 | let r1 = get_rc(g1); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 85 + use crate::shape::get_rc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `push` in this scope [INFO] [stdout] --> src/shape/group.rs:165:9 [INFO] [stdout] | [INFO] [stdout] 165 | push(&r1, g2); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 85 + use crate::shape::group::push; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Shape` [INFO] [stdout] --> src/shape/group.rs:166:21 [INFO] [stdout] | [INFO] [stdout] 166 | let shape = Shape::Sphere(Sphere::new( [INFO] [stdout] | ^^^^^ use of undeclared type `Shape` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 85 + use crate::shape::Shape; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Sphere` [INFO] [stdout] --> src/shape/group.rs:166:35 [INFO] [stdout] | [INFO] [stdout] 166 | let shape = Shape::Sphere(Sphere::new( [INFO] [stdout] | ^^^^^^ use of undeclared type `Sphere` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 85 + use crate::shape::Sphere; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Matrix4` [INFO] [stdout] --> src/shape/group.rs:167:13 [INFO] [stdout] | [INFO] [stdout] 167 | Matrix4::from_translation(Vector3::unit_x() * 5.), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Matrix4` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 85 + use cgmath::Matrix4; [INFO] [stdout] | [INFO] [stdout] 85 + use crate::shape::Matrix4; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/shape/group.rs:167:39 [INFO] [stdout] | [INFO] [stdout] 167 | Matrix4::from_translation(Vector3::unit_x() * 5.), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 85 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 85 + use crate::shape::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Material` [INFO] [stdout] --> src/shape/group.rs:168:13 [INFO] [stdout] | [INFO] [stdout] 168 | Material::default(), [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Material` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 85 + use crate::shape::Material; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `push` in this scope [INFO] [stdout] --> src/shape/group.rs:172:9 [INFO] [stdout] | [INFO] [stdout] 172 | push(&child, shape); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 85 + use crate::shape::group::push; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Shape` [INFO] [stdout] --> src/shape/group.rs:186:18 [INFO] [stdout] | [INFO] [stdout] 186 | let g1 = Shape::Group(Group::new( [INFO] [stdout] | ^^^^^ use of undeclared type `Shape` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 85 + use crate::shape::Shape; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Group` [INFO] [stdout] --> src/shape/group.rs:186:31 [INFO] [stdout] | [INFO] [stdout] 186 | let g1 = Shape::Group(Group::new( [INFO] [stdout] | ^^^^^ use of undeclared type `Group` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 85 + use crate::shape::Group; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Matrix4` [INFO] [stdout] --> src/shape/group.rs:187:13 [INFO] [stdout] | [INFO] [stdout] 187 | Matrix4::from_angle_y(Rad(FRAC_PI_2)), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Matrix4` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 85 + use cgmath::Matrix4; [INFO] [stdout] | [INFO] [stdout] 85 + use crate::shape::Matrix4; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Rad` in this scope [INFO] [stdout] --> src/shape/group.rs:187:35 [INFO] [stdout] | [INFO] [stdout] 187 | Matrix4::from_angle_y(Rad(FRAC_PI_2)), [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple struct [INFO] [stdout] | [INFO] [stdout] 85 + use cgmath::Rad; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FRAC_PI_2` in this scope [INFO] [stdout] --> src/shape/group.rs:187:39 [INFO] [stdout] | [INFO] [stdout] 187 | Matrix4::from_angle_y(Rad(FRAC_PI_2)), [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 85 + use core::f32::consts::FRAC_PI_2; [INFO] [stdout] | [INFO] [stdout] 85 + use core::f64::consts::FRAC_PI_2; [INFO] [stdout] | [INFO] [stdout] 85 + use std::f32::consts::FRAC_PI_2; [INFO] [stdout] | [INFO] [stdout] 85 + use std::f64::consts::FRAC_PI_2; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Shape` [INFO] [stdout] --> src/shape/group.rs:191:18 [INFO] [stdout] | [INFO] [stdout] 191 | let g2 = Shape::Group(Group::new( [INFO] [stdout] | ^^^^^ use of undeclared type `Shape` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 85 + use crate::shape::Shape; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Group` [INFO] [stdout] --> src/shape/group.rs:191:31 [INFO] [stdout] | [INFO] [stdout] 191 | let g2 = Shape::Group(Group::new( [INFO] [stdout] | ^^^^^ use of undeclared type `Group` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 85 + use crate::shape::Group; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Matrix4` [INFO] [stdout] --> src/shape/group.rs:192:13 [INFO] [stdout] | [INFO] [stdout] 192 | Matrix4::from_nonuniform_scale(1., 2., 3.), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Matrix4` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 85 + use cgmath::Matrix4; [INFO] [stdout] | [INFO] [stdout] 85 + use crate::shape::Matrix4; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `get_rc` in this scope [INFO] [stdout] --> src/shape/group.rs:196:18 [INFO] [stdout] | [INFO] [stdout] 196 | let r1 = get_rc(g1); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 85 + use crate::shape::get_rc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `push` in this scope [INFO] [stdout] --> src/shape/group.rs:197:9 [INFO] [stdout] | [INFO] [stdout] 197 | push(&r1, g2); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 85 + use crate::shape::group::push; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Shape` [INFO] [stdout] --> src/shape/group.rs:198:21 [INFO] [stdout] | [INFO] [stdout] 198 | let shape = Shape::Sphere(Sphere::new( [INFO] [stdout] | ^^^^^ use of undeclared type `Shape` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 85 + use crate::shape::Shape; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Sphere` [INFO] [stdout] --> src/shape/group.rs:198:35 [INFO] [stdout] | [INFO] [stdout] 198 | let shape = Shape::Sphere(Sphere::new( [INFO] [stdout] | ^^^^^^ use of undeclared type `Sphere` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 85 + use crate::shape::Sphere; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Matrix4` [INFO] [stdout] --> src/shape/group.rs:199:13 [INFO] [stdout] | [INFO] [stdout] 199 | Matrix4::from_translation(Vector3::unit_x() * 5.), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Matrix4` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 85 + use cgmath::Matrix4; [INFO] [stdout] | [INFO] [stdout] 85 + use crate::shape::Matrix4; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/shape/group.rs:199:39 [INFO] [stdout] | [INFO] [stdout] 199 | Matrix4::from_translation(Vector3::unit_x() * 5.), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 85 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 85 + use crate::shape::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Material` [INFO] [stdout] --> src/shape/group.rs:200:13 [INFO] [stdout] | [INFO] [stdout] 200 | Material::default(), [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Material` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 85 + use crate::shape::Material; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `push` in this scope [INFO] [stdout] --> src/shape/group.rs:204:9 [INFO] [stdout] | [INFO] [stdout] 204 | push(&child, shape); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 85 + use crate::shape::group::push; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Shape` [INFO] [stdout] --> src/shape/group.rs:218:18 [INFO] [stdout] | [INFO] [stdout] 218 | let g1 = Shape::Group(Group::new( [INFO] [stdout] | ^^^^^ use of undeclared type `Shape` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 85 + use crate::shape::Shape; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Group` [INFO] [stdout] --> src/shape/group.rs:218:31 [INFO] [stdout] | [INFO] [stdout] 218 | let g1 = Shape::Group(Group::new( [INFO] [stdout] | ^^^^^ use of undeclared type `Group` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 85 + use crate::shape::Group; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Matrix4` [INFO] [stdout] --> src/shape/group.rs:219:13 [INFO] [stdout] | [INFO] [stdout] 219 | Matrix4::from_angle_y(Rad(FRAC_PI_2)), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Matrix4` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 85 + use cgmath::Matrix4; [INFO] [stdout] | [INFO] [stdout] 85 + use crate::shape::Matrix4; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Rad` in this scope [INFO] [stdout] --> src/shape/group.rs:219:35 [INFO] [stdout] | [INFO] [stdout] 219 | Matrix4::from_angle_y(Rad(FRAC_PI_2)), [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple struct [INFO] [stdout] | [INFO] [stdout] 85 + use cgmath::Rad; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FRAC_PI_2` in this scope [INFO] [stdout] --> src/shape/group.rs:219:39 [INFO] [stdout] | [INFO] [stdout] 219 | Matrix4::from_angle_y(Rad(FRAC_PI_2)), [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 85 + use core::f32::consts::FRAC_PI_2; [INFO] [stdout] | [INFO] [stdout] 85 + use core::f64::consts::FRAC_PI_2; [INFO] [stdout] | [INFO] [stdout] 85 + use std::f32::consts::FRAC_PI_2; [INFO] [stdout] | [INFO] [stdout] 85 + use std::f64::consts::FRAC_PI_2; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Shape` [INFO] [stdout] --> src/shape/group.rs:223:18 [INFO] [stdout] | [INFO] [stdout] 223 | let g2 = Shape::Group(Group::new( [INFO] [stdout] | ^^^^^ use of undeclared type `Shape` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 85 + use crate::shape::Shape; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Group` [INFO] [stdout] --> src/shape/group.rs:223:31 [INFO] [stdout] | [INFO] [stdout] 223 | let g2 = Shape::Group(Group::new( [INFO] [stdout] | ^^^^^ use of undeclared type `Group` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 85 + use crate::shape::Group; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Matrix4` [INFO] [stdout] --> src/shape/group.rs:224:13 [INFO] [stdout] | [INFO] [stdout] 224 | Matrix4::from_nonuniform_scale(1., 2., 3.), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Matrix4` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 85 + use cgmath::Matrix4; [INFO] [stdout] | [INFO] [stdout] 85 + use crate::shape::Matrix4; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `get_rc` in this scope [INFO] [stdout] --> src/shape/group.rs:228:18 [INFO] [stdout] | [INFO] [stdout] 228 | let r1 = get_rc(g1); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 85 + use crate::shape::get_rc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `push` in this scope [INFO] [stdout] --> src/shape/group.rs:229:9 [INFO] [stdout] | [INFO] [stdout] 229 | push(&r1, g2); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 85 + use crate::shape::group::push; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Shape` [INFO] [stdout] --> src/shape/group.rs:230:21 [INFO] [stdout] | [INFO] [stdout] 230 | let shape = Shape::Sphere(Sphere::new( [INFO] [stdout] | ^^^^^ use of undeclared type `Shape` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 85 + use crate::shape::Shape; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Sphere` [INFO] [stdout] --> src/shape/group.rs:230:35 [INFO] [stdout] | [INFO] [stdout] 230 | let shape = Shape::Sphere(Sphere::new( [INFO] [stdout] | ^^^^^^ use of undeclared type `Sphere` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 85 + use crate::shape::Sphere; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Matrix4` [INFO] [stdout] --> src/shape/group.rs:231:13 [INFO] [stdout] | [INFO] [stdout] 231 | Matrix4::from_translation(Vector3::unit_x() * 5.), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Matrix4` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 85 + use cgmath::Matrix4; [INFO] [stdout] | [INFO] [stdout] 85 + use crate::shape::Matrix4; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/shape/group.rs:231:39 [INFO] [stdout] | [INFO] [stdout] 231 | Matrix4::from_translation(Vector3::unit_x() * 5.), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 85 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 85 + use crate::shape::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Material` [INFO] [stdout] --> src/shape/group.rs:232:13 [INFO] [stdout] | [INFO] [stdout] 232 | Material::default(), [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Material` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 85 + use crate::shape::Material; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `push` in this scope [INFO] [stdout] --> src/shape/group.rs:236:9 [INFO] [stdout] | [INFO] [stdout] 236 | push(&child, shape); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 85 + use crate::shape::group::push; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Parser` [INFO] [stdout] --> src/shape/obj_file.rs:120:26 [INFO] [stdout] | [INFO] [stdout] 120 | let parser = Parser::::parse_obj_file( [INFO] [stdout] | ^^^^^^ use of undeclared type `Parser` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 117 + use crate::shape::obj_file::Parser; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Parser` [INFO] [stdout] --> src/shape/obj_file.rs:132:26 [INFO] [stdout] | [INFO] [stdout] 132 | let parser = Parser::::parse_obj_file( [INFO] [stdout] | ^^^^^^ use of undeclared type `Parser` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 117 + use crate::shape::obj_file::Parser; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/obj_file.rs:143:21 [INFO] [stdout] | [INFO] [stdout] 143 | Point3::new(-1., 1., 0.), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 117 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 117 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/obj_file.rs:144:21 [INFO] [stdout] | [INFO] [stdout] 144 | Point3::new(-1., 0.5, 0.), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 117 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 117 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/obj_file.rs:145:21 [INFO] [stdout] | [INFO] [stdout] 145 | Point3::new(1., 0., 0.), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 117 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 117 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/obj_file.rs:146:21 [INFO] [stdout] | [INFO] [stdout] 146 | Point3::new(1., 1., 0.), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 117 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 117 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Parser` [INFO] [stdout] --> src/shape/obj_file.rs:151:26 [INFO] [stdout] | [INFO] [stdout] 151 | let parser = Parser::::parse_obj_file( [INFO] [stdout] | ^^^^^^ use of undeclared type `Parser` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 117 + use crate::shape::obj_file::Parser; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Shape` [INFO] [stdout] --> src/shape/obj_file.rs:173:17 [INFO] [stdout] | [INFO] [stdout] 173 | Shape::Triangle(Triangle::from( [INFO] [stdout] | ^^^^^ use of undeclared type `Shape` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 117 + use crate::shape::Shape; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Triangle` [INFO] [stdout] --> src/shape/obj_file.rs:173:33 [INFO] [stdout] | [INFO] [stdout] 173 | Shape::Triangle(Triangle::from( [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Triangle` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 117 + use crate::shape::Triangle; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/obj_file.rs:174:21 [INFO] [stdout] | [INFO] [stdout] 174 | Point3::new(-1., 1., 0.), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 117 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 117 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/obj_file.rs:175:21 [INFO] [stdout] | [INFO] [stdout] 175 | Point3::new(-1., 0., 0.), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 117 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 117 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/obj_file.rs:176:21 [INFO] [stdout] | [INFO] [stdout] 176 | Point3::new(1., 0., 0.), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 117 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 117 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Shape` [INFO] [stdout] --> src/shape/obj_file.rs:181:17 [INFO] [stdout] | [INFO] [stdout] 181 | Shape::Triangle(Triangle::from( [INFO] [stdout] | ^^^^^ use of undeclared type `Shape` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 117 + use crate::shape::Shape; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Triangle` [INFO] [stdout] --> src/shape/obj_file.rs:181:33 [INFO] [stdout] | [INFO] [stdout] 181 | Shape::Triangle(Triangle::from( [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Triangle` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 117 + use crate::shape::Triangle; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/obj_file.rs:182:21 [INFO] [stdout] | [INFO] [stdout] 182 | Point3::new(-1., 1., 0.), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 117 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 117 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/obj_file.rs:183:21 [INFO] [stdout] | [INFO] [stdout] 183 | Point3::new(1., 0., 0.), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 117 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 117 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/obj_file.rs:184:21 [INFO] [stdout] | [INFO] [stdout] 184 | Point3::new(1., 1., 0.), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 117 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 117 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Parser` [INFO] [stdout] --> src/shape/obj_file.rs:189:26 [INFO] [stdout] | [INFO] [stdout] 189 | let parser = Parser::::parse_obj_file( [INFO] [stdout] | ^^^^^^ use of undeclared type `Parser` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 117 + use crate::shape::obj_file::Parser; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Shape` [INFO] [stdout] --> src/shape/obj_file.rs:211:17 [INFO] [stdout] | [INFO] [stdout] 211 | Shape::Triangle(Triangle::from( [INFO] [stdout] | ^^^^^ use of undeclared type `Shape` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 117 + use crate::shape::Shape; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Triangle` [INFO] [stdout] --> src/shape/obj_file.rs:211:33 [INFO] [stdout] | [INFO] [stdout] 211 | Shape::Triangle(Triangle::from( [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Triangle` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 117 + use crate::shape::Triangle; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/obj_file.rs:212:21 [INFO] [stdout] | [INFO] [stdout] 212 | Point3::new(-1., 1., 0.), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 117 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 117 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/obj_file.rs:213:21 [INFO] [stdout] | [INFO] [stdout] 213 | Point3::new(-1., 0., 0.), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 117 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 117 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/obj_file.rs:214:21 [INFO] [stdout] | [INFO] [stdout] 214 | Point3::new(1., 0., 0.), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 117 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 117 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Shape` [INFO] [stdout] --> src/shape/obj_file.rs:219:17 [INFO] [stdout] | [INFO] [stdout] 219 | Shape::Triangle(Triangle::from( [INFO] [stdout] | ^^^^^ use of undeclared type `Shape` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 117 + use crate::shape::Shape; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Triangle` [INFO] [stdout] --> src/shape/obj_file.rs:219:33 [INFO] [stdout] | [INFO] [stdout] 219 | Shape::Triangle(Triangle::from( [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Triangle` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 117 + use crate::shape::Triangle; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/obj_file.rs:220:21 [INFO] [stdout] | [INFO] [stdout] 220 | Point3::new(-1., 1., 0.), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 117 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 117 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/obj_file.rs:221:21 [INFO] [stdout] | [INFO] [stdout] 221 | Point3::new(1., 0., 0.), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 117 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 117 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/obj_file.rs:222:21 [INFO] [stdout] | [INFO] [stdout] 222 | Point3::new(1., 1., 0.), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 117 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 117 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Shape` [INFO] [stdout] --> src/shape/obj_file.rs:227:17 [INFO] [stdout] | [INFO] [stdout] 227 | Shape::Triangle(Triangle::from( [INFO] [stdout] | ^^^^^ use of undeclared type `Shape` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 117 + use crate::shape::Shape; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Triangle` [INFO] [stdout] --> src/shape/obj_file.rs:227:33 [INFO] [stdout] | [INFO] [stdout] 227 | Shape::Triangle(Triangle::from( [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Triangle` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 117 + use crate::shape::Triangle; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/obj_file.rs:228:21 [INFO] [stdout] | [INFO] [stdout] 228 | Point3::new(-1., 1., 0.), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 117 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 117 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/obj_file.rs:229:21 [INFO] [stdout] | [INFO] [stdout] 229 | Point3::new(1., 1., 0.), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 117 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 117 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/obj_file.rs:230:21 [INFO] [stdout] | [INFO] [stdout] 230 | Point3::new(0., 2., 0.), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 117 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 117 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Parser` [INFO] [stdout] --> src/shape/obj_file.rs:235:26 [INFO] [stdout] | [INFO] [stdout] 235 | let parser = Parser::::parse_obj_file( [INFO] [stdout] | ^^^^^^ use of undeclared type `Parser` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 117 + use crate::shape::obj_file::Parser; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Shape` [INFO] [stdout] --> src/shape/obj_file.rs:259:17 [INFO] [stdout] | [INFO] [stdout] 259 | Shape::Triangle(Triangle::from( [INFO] [stdout] | ^^^^^ use of undeclared type `Shape` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 117 + use crate::shape::Shape; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Triangle` [INFO] [stdout] --> src/shape/obj_file.rs:259:33 [INFO] [stdout] | [INFO] [stdout] 259 | Shape::Triangle(Triangle::from( [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Triangle` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 117 + use crate::shape::Triangle; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/obj_file.rs:260:21 [INFO] [stdout] | [INFO] [stdout] 260 | Point3::new(-1., 1., 0.), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 117 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 117 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/obj_file.rs:261:21 [INFO] [stdout] | [INFO] [stdout] 261 | Point3::new(-1., 0., 0.), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 117 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 117 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/obj_file.rs:262:21 [INFO] [stdout] | [INFO] [stdout] 262 | Point3::new(1., 0., 0.), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 117 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 117 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Shape` [INFO] [stdout] --> src/shape/obj_file.rs:276:17 [INFO] [stdout] | [INFO] [stdout] 276 | Shape::Triangle(Triangle::from( [INFO] [stdout] | ^^^^^ use of undeclared type `Shape` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 117 + use crate::shape::Shape; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Triangle` [INFO] [stdout] --> src/shape/obj_file.rs:276:33 [INFO] [stdout] | [INFO] [stdout] 276 | Shape::Triangle(Triangle::from( [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Triangle` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 117 + use crate::shape::Triangle; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/obj_file.rs:277:21 [INFO] [stdout] | [INFO] [stdout] 277 | Point3::new(-1., 1., 0.), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 117 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 117 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/obj_file.rs:278:21 [INFO] [stdout] | [INFO] [stdout] 278 | Point3::new(1., 0., 0.), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 117 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 117 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/obj_file.rs:279:21 [INFO] [stdout] | [INFO] [stdout] 279 | Point3::new(1., 1., 0.), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 117 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 117 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Parser` [INFO] [stdout] --> src/shape/obj_file.rs:284:26 [INFO] [stdout] | [INFO] [stdout] 284 | let parser = Parser::::parse_obj_file( [INFO] [stdout] | ^^^^^^ use of undeclared type `Parser` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 117 + use crate::shape::obj_file::Parser; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Shape` [INFO] [stdout] --> src/shape/obj_file.rs:309:17 [INFO] [stdout] | [INFO] [stdout] 309 | Shape::SmoothTriangle(SmoothTriangle::new( [INFO] [stdout] | ^^^^^ use of undeclared type `Shape` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 117 + use crate::shape::Shape; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SmoothTriangle` [INFO] [stdout] --> src/shape/obj_file.rs:309:39 [INFO] [stdout] | [INFO] [stdout] 309 | Shape::SmoothTriangle(SmoothTriangle::new( [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `SmoothTriangle` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 117 + use crate::shape::SmoothTriangle; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Material` [INFO] [stdout] --> src/shape/obj_file.rs:310:21 [INFO] [stdout] | [INFO] [stdout] 310 | Material::default(), [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Material` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 117 + use crate::shape::Material; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/obj_file.rs:311:21 [INFO] [stdout] | [INFO] [stdout] 311 | Point3::new(0., 1., 0.), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 117 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 117 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/obj_file.rs:312:21 [INFO] [stdout] | [INFO] [stdout] 312 | Point3::new(-1., 0., 0.), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 117 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 117 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/obj_file.rs:313:21 [INFO] [stdout] | [INFO] [stdout] 313 | Point3::new(1., 0., 0.), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 117 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 117 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/shape/obj_file.rs:314:21 [INFO] [stdout] | [INFO] [stdout] 314 | Vector3::unit_y(), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 117 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 117 + use crate::shape::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/shape/obj_file.rs:315:22 [INFO] [stdout] | [INFO] [stdout] 315 | -Vector3::unit_x(), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 117 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 117 + use crate::shape::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/shape/obj_file.rs:316:21 [INFO] [stdout] | [INFO] [stdout] 316 | Vector3::unit_x(), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 117 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 117 + use crate::shape::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Plane` [INFO] [stdout] --> src/shape/plane.rs:59:21 [INFO] [stdout] | [INFO] [stdout] 59 | let plane = Plane::default(); [INFO] [stdout] | ^^^^^ use of undeclared type `Plane` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 57 + use crate::shape::Plane; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Shape` [INFO] [stdout] --> src/shape/plane.rs:60:21 [INFO] [stdout] | [INFO] [stdout] 60 | let shape = Shape::Plane(plane.clone()); [INFO] [stdout] | ^^^^^ use of undeclared type `Shape` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 57 + use crate::shape::Shape; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/shape/plane.rs:61:18 [INFO] [stdout] | [INFO] [stdout] 61 | let vy = Vector3::unit_y(); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 57 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 57 + use crate::shape::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Intersection` [INFO] [stdout] --> src/shape/plane.rs:62:22 [INFO] [stdout] | [INFO] [stdout] 62 | let v = vec![Intersection::new(1., shape, None)]; [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `Intersection` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 57 + use crate::shape::Intersection; [INFO] [stdout] | [INFO] [stdout] 57 + use std::collections::btree_set::Intersection; [INFO] [stdout] | [INFO] [stdout] 57 + use std::collections::hash_set::Intersection; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ray` [INFO] [stdout] --> src/shape/plane.rs:64:35 [INFO] [stdout] | [INFO] [stdout] 64 | plane.local_intersect(Ray::new(Point3::from_vec(vy), -vy)), [INFO] [stdout] | ^^^ use of undeclared type `Ray` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 57 + use crate::shape::Ray; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/plane.rs:64:44 [INFO] [stdout] | [INFO] [stdout] 64 | plane.local_intersect(Ray::new(Point3::from_vec(vy), -vy)), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 57 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 57 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ray` [INFO] [stdout] --> src/shape/plane.rs:68:35 [INFO] [stdout] | [INFO] [stdout] 68 | plane.local_intersect(Ray::new(Point3::from_vec(-vy), vy)), [INFO] [stdout] | ^^^ use of undeclared type `Ray` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 57 + use crate::shape::Ray; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/plane.rs:68:44 [INFO] [stdout] | [INFO] [stdout] 68 | plane.local_intersect(Ray::new(Point3::from_vec(-vy), vy)), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 57 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 57 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Plane` [INFO] [stdout] --> src/shape/plane.rs:75:21 [INFO] [stdout] | [INFO] [stdout] 75 | let plane = Plane::default(); [INFO] [stdout] | ^^^^^ use of undeclared type `Plane` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 57 + use crate::shape::Plane; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/shape/plane.rs:76:18 [INFO] [stdout] | [INFO] [stdout] 76 | let vy = Vector3::unit_y(); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 57 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 57 + use crate::shape::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/plane.rs:77:42 [INFO] [stdout] | [INFO] [stdout] 77 | assert_eq!(plane.local_normal_at(Point3::origin()), vy); [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 57 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 57 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/plane.rs:78:48 [INFO] [stdout] | [INFO] [stdout] 78 | assert_eq!(plane.local_normal_at(10. * Point3::new(1., 0., -1.)), vy); [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 57 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 57 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/plane.rs:79:42 [INFO] [stdout] | [INFO] [stdout] 79 | assert_eq!(plane.local_normal_at(Point3::new(-5., 0., 150.)), vy); [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 57 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 57 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SmoothTriangle` [INFO] [stdout] --> src/shape/smooth_triangle.rs:48:19 [INFO] [stdout] | [INFO] [stdout] 48 | let tri = SmoothTriangle::new( [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `SmoothTriangle` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 46 + use crate::shape::SmoothTriangle; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Material` [INFO] [stdout] --> src/shape/smooth_triangle.rs:49:13 [INFO] [stdout] | [INFO] [stdout] 49 | Material::default(), [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Material` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 46 + use crate::shape::Material; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/smooth_triangle.rs:50:13 [INFO] [stdout] | [INFO] [stdout] 50 | Point3::new(0., 1., 0.), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 46 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 46 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/smooth_triangle.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | Point3::new(-1., 0., 0.), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 46 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 46 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/smooth_triangle.rs:52:13 [INFO] [stdout] | [INFO] [stdout] 52 | Point3::new(1., 0., 0.), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 46 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 46 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/shape/smooth_triangle.rs:53:13 [INFO] [stdout] | [INFO] [stdout] 53 | Vector3::unit_y(), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 46 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 46 + use crate::shape::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/shape/smooth_triangle.rs:54:14 [INFO] [stdout] | [INFO] [stdout] 54 | -Vector3::unit_x(), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 46 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 46 + use crate::shape::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/shape/smooth_triangle.rs:55:13 [INFO] [stdout] | [INFO] [stdout] 55 | Vector3::unit_x(), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 46 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 46 + use crate::shape::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ray` [INFO] [stdout] --> src/shape/smooth_triangle.rs:58:19 [INFO] [stdout] | [INFO] [stdout] 58 | let ray = Ray::new(Point3::new(-0.2, 0.3, -2.), Vector3::unit_z()); [INFO] [stdout] | ^^^ use of undeclared type `Ray` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 46 + use crate::shape::Ray; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/smooth_triangle.rs:58:28 [INFO] [stdout] | [INFO] [stdout] 58 | let ray = Ray::new(Point3::new(-0.2, 0.3, -2.), Vector3::unit_z()); [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 46 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 46 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/shape/smooth_triangle.rs:58:57 [INFO] [stdout] | [INFO] [stdout] 58 | let ray = Ray::new(Point3::new(-0.2, 0.3, -2.), Vector3::unit_z()); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 46 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 46 + use crate::shape::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SmoothTriangle` [INFO] [stdout] --> src/shape/smooth_triangle.rs:66:19 [INFO] [stdout] | [INFO] [stdout] 66 | let tri = SmoothTriangle::new( [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `SmoothTriangle` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 46 + use crate::shape::SmoothTriangle; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Material` [INFO] [stdout] --> src/shape/smooth_triangle.rs:67:13 [INFO] [stdout] | [INFO] [stdout] 67 | Material::default(), [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Material` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 46 + use crate::shape::Material; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/smooth_triangle.rs:68:13 [INFO] [stdout] | [INFO] [stdout] 68 | Point3::new(0., 1., 0.), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 46 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 46 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/smooth_triangle.rs:69:13 [INFO] [stdout] | [INFO] [stdout] 69 | Point3::new(-1., 0., 0.), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 46 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 46 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/smooth_triangle.rs:70:13 [INFO] [stdout] | [INFO] [stdout] 70 | Point3::new(1., 0., 0.), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 46 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 46 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/shape/smooth_triangle.rs:71:13 [INFO] [stdout] | [INFO] [stdout] 71 | Vector3::unit_y(), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 46 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 46 + use crate::shape::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/shape/smooth_triangle.rs:72:14 [INFO] [stdout] | [INFO] [stdout] 72 | -Vector3::unit_x(), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 46 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 46 + use crate::shape::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/shape/smooth_triangle.rs:73:13 [INFO] [stdout] | [INFO] [stdout] 73 | Vector3::unit_x(), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 46 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 46 + use crate::shape::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Intersection` [INFO] [stdout] --> src/shape/smooth_triangle.rs:87:17 [INFO] [stdout] | [INFO] [stdout] 87 | let i = Intersection::new( [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `Intersection` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 46 + use crate::shape::Intersection; [INFO] [stdout] | [INFO] [stdout] 46 + use std::collections::btree_set::Intersection; [INFO] [stdout] | [INFO] [stdout] 46 + use std::collections::hash_set::Intersection; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Shape` [INFO] [stdout] --> src/shape/smooth_triangle.rs:89:13 [INFO] [stdout] | [INFO] [stdout] 89 | Shape::SmoothTriangle(SmoothTriangle::new( [INFO] [stdout] | ^^^^^ use of undeclared type `Shape` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 46 + use crate::shape::Shape; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SmoothTriangle` [INFO] [stdout] --> src/shape/smooth_triangle.rs:89:35 [INFO] [stdout] | [INFO] [stdout] 89 | Shape::SmoothTriangle(SmoothTriangle::new( [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `SmoothTriangle` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 46 + use crate::shape::SmoothTriangle; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Material` [INFO] [stdout] --> src/shape/smooth_triangle.rs:90:17 [INFO] [stdout] | [INFO] [stdout] 90 | Material::default(), [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Material` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 46 + use crate::shape::Material; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/smooth_triangle.rs:91:17 [INFO] [stdout] | [INFO] [stdout] 91 | Point3::new(0., 1., 0.), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 46 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 46 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/smooth_triangle.rs:92:17 [INFO] [stdout] | [INFO] [stdout] 92 | Point3::new(-1., 0., 0.), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 46 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 46 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/smooth_triangle.rs:93:17 [INFO] [stdout] | [INFO] [stdout] 93 | Point3::new(1., 0., 0.), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 46 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 46 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/shape/smooth_triangle.rs:94:17 [INFO] [stdout] | [INFO] [stdout] 94 | Vector3::unit_y(), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 46 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 46 + use crate::shape::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/shape/smooth_triangle.rs:95:18 [INFO] [stdout] | [INFO] [stdout] 95 | -Vector3::unit_x(), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 46 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 46 + use crate::shape::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/shape/smooth_triangle.rs:96:17 [INFO] [stdout] | [INFO] [stdout] 96 | Vector3::unit_x(), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 46 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 46 + use crate::shape::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ray` [INFO] [stdout] --> src/shape/smooth_triangle.rs:101:17 [INFO] [stdout] | [INFO] [stdout] 101 | let r = Ray::new(Point3::new(-0.2, 0.3, -2.), Vector3::unit_z()); [INFO] [stdout] | ^^^ use of undeclared type `Ray` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 46 + use crate::shape::Ray; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/smooth_triangle.rs:101:26 [INFO] [stdout] | [INFO] [stdout] 101 | let r = Ray::new(Point3::new(-0.2, 0.3, -2.), Vector3::unit_z()); [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 46 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 46 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/shape/smooth_triangle.rs:101:55 [INFO] [stdout] | [INFO] [stdout] 101 | let r = Ray::new(Point3::new(-0.2, 0.3, -2.), Vector3::unit_z()); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 46 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 46 + use crate::shape::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Sphere` [INFO] [stdout] --> src/shape/sphere.rs:78:26 [INFO] [stdout] | [INFO] [stdout] 78 | let sphere = Sphere::default(); [INFO] [stdout] | ^^^^^^ use of undeclared type `Sphere` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 75 + use crate::shape::Sphere; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/shape/sphere.rs:80:25 [INFO] [stdout] | [INFO] [stdout] 80 | let v = Vector3::unit_x(); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 75 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 75 + use crate::shape::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/sphere.rs:81:51 [INFO] [stdout] | [INFO] [stdout] 81 | assert_eq!(sphere.local_normal_at(Point3::from_vec(v)), v); [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 75 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 75 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/shape/sphere.rs:84:25 [INFO] [stdout] | [INFO] [stdout] 84 | let v = Vector3::unit_y(); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 75 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 75 + use crate::shape::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/sphere.rs:85:51 [INFO] [stdout] | [INFO] [stdout] 85 | assert_eq!(sphere.local_normal_at(Point3::from_vec(v)), v); [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 75 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 75 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/shape/sphere.rs:88:25 [INFO] [stdout] | [INFO] [stdout] 88 | let v = Vector3::unit_z(); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 75 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 75 + use crate::shape::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/sphere.rs:89:51 [INFO] [stdout] | [INFO] [stdout] 89 | assert_eq!(sphere.local_normal_at(Point3::from_vec(v)), v); [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 75 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 75 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/shape/sphere.rs:92:50 [INFO] [stdout] | [INFO] [stdout] 92 | let v = 3.0_f32.sqrt().recip() * Vector3::new(1., 1., 1.); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 75 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 75 + use crate::shape::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Triangle` [INFO] [stdout] --> src/shape/triangle.rs:89:17 [INFO] [stdout] | [INFO] [stdout] 89 | let t = Triangle::from( [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Triangle` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 87 + use crate::shape::Triangle; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/triangle.rs:90:13 [INFO] [stdout] | [INFO] [stdout] 90 | Point3::new(0., 1., 0.), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 87 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 87 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/triangle.rs:91:13 [INFO] [stdout] | [INFO] [stdout] 91 | Point3::new(-1., 0., 0.), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 87 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 87 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/triangle.rs:92:13 [INFO] [stdout] | [INFO] [stdout] 92 | Point3::new(1., 0., 0.), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 87 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 87 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Shape` [INFO] [stdout] --> src/shape/triangle.rs:94:21 [INFO] [stdout] | [INFO] [stdout] 94 | let shape = Shape::Triangle(t.clone()); [INFO] [stdout] | ^^^^^ use of undeclared type `Shape` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 87 + use crate::shape::Shape; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ray` [INFO] [stdout] --> src/shape/triangle.rs:96:31 [INFO] [stdout] | [INFO] [stdout] 96 | t.local_intersect(Ray::new(Point3::new(0., -1., -2.), Vector3::unit_y())), [INFO] [stdout] | ^^^ use of undeclared type `Ray` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 87 + use crate::shape::Ray; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/triangle.rs:96:40 [INFO] [stdout] | [INFO] [stdout] 96 | t.local_intersect(Ray::new(Point3::new(0., -1., -2.), Vector3::unit_y())), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 87 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 87 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/shape/triangle.rs:96:67 [INFO] [stdout] | [INFO] [stdout] 96 | t.local_intersect(Ray::new(Point3::new(0., -1., -2.), Vector3::unit_y())), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 87 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 87 + use crate::shape::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ray` [INFO] [stdout] --> src/shape/triangle.rs:100:31 [INFO] [stdout] | [INFO] [stdout] 100 | t.local_intersect(Ray::new(Point3::new(1., 1., -2.), Vector3::unit_z())), [INFO] [stdout] | ^^^ use of undeclared type `Ray` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 87 + use crate::shape::Ray; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/triangle.rs:100:40 [INFO] [stdout] | [INFO] [stdout] 100 | t.local_intersect(Ray::new(Point3::new(1., 1., -2.), Vector3::unit_z())), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 87 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 87 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/shape/triangle.rs:100:66 [INFO] [stdout] | [INFO] [stdout] 100 | t.local_intersect(Ray::new(Point3::new(1., 1., -2.), Vector3::unit_z())), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 87 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 87 + use crate::shape::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ray` [INFO] [stdout] --> src/shape/triangle.rs:104:31 [INFO] [stdout] | [INFO] [stdout] 104 | t.local_intersect(Ray::new(Point3::new(-1., 1., -2.), Vector3::unit_z())), [INFO] [stdout] | ^^^ use of undeclared type `Ray` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 87 + use crate::shape::Ray; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/triangle.rs:104:40 [INFO] [stdout] | [INFO] [stdout] 104 | t.local_intersect(Ray::new(Point3::new(-1., 1., -2.), Vector3::unit_z())), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 87 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 87 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/shape/triangle.rs:104:67 [INFO] [stdout] | [INFO] [stdout] 104 | t.local_intersect(Ray::new(Point3::new(-1., 1., -2.), Vector3::unit_z())), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 87 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 87 + use crate::shape::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ray` [INFO] [stdout] --> src/shape/triangle.rs:108:31 [INFO] [stdout] | [INFO] [stdout] 108 | t.local_intersect(Ray::new(Point3::new(0., -1., -2.), Vector3::unit_z())), [INFO] [stdout] | ^^^ use of undeclared type `Ray` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 87 + use crate::shape::Ray; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/triangle.rs:108:40 [INFO] [stdout] | [INFO] [stdout] 108 | t.local_intersect(Ray::new(Point3::new(0., -1., -2.), Vector3::unit_z())), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 87 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 87 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/shape/triangle.rs:108:67 [INFO] [stdout] | [INFO] [stdout] 108 | t.local_intersect(Ray::new(Point3::new(0., -1., -2.), Vector3::unit_z())), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 87 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 87 + use crate::shape::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ray` [INFO] [stdout] --> src/shape/triangle.rs:112:31 [INFO] [stdout] | [INFO] [stdout] 112 | t.local_intersect(Ray::new(Point3::new(0., 0.5, -2.), Vector3::unit_z())), [INFO] [stdout] | ^^^ use of undeclared type `Ray` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 87 + use crate::shape::Ray; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/triangle.rs:112:40 [INFO] [stdout] | [INFO] [stdout] 112 | t.local_intersect(Ray::new(Point3::new(0., 0.5, -2.), Vector3::unit_z())), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 87 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 87 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/shape/triangle.rs:112:67 [INFO] [stdout] | [INFO] [stdout] 112 | t.local_intersect(Ray::new(Point3::new(0., 0.5, -2.), Vector3::unit_z())), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 87 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] 87 + use crate::shape::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Intersection` [INFO] [stdout] --> src/shape/triangle.rs:113:18 [INFO] [stdout] | [INFO] [stdout] 113 | vec![Intersection::new(2., shape, Some((0.25, 0.25)))] [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `Intersection` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 87 + use crate::shape::Intersection; [INFO] [stdout] | [INFO] [stdout] 87 + use std::collections::btree_set::Intersection; [INFO] [stdout] | [INFO] [stdout] 87 + use std::collections::hash_set::Intersection; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Triangle` [INFO] [stdout] --> src/shape/triangle.rs:119:17 [INFO] [stdout] | [INFO] [stdout] 119 | let t = Triangle::from( [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Triangle` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 87 + use crate::shape::Triangle; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/triangle.rs:120:13 [INFO] [stdout] | [INFO] [stdout] 120 | Point3::new(0., 1., 0.), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 87 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 87 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/triangle.rs:121:13 [INFO] [stdout] | [INFO] [stdout] 121 | Point3::new(-1., 0., 0.), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 87 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 87 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/triangle.rs:122:13 [INFO] [stdout] | [INFO] [stdout] 122 | Point3::new(1., 0., 0.), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 87 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 87 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/triangle.rs:124:38 [INFO] [stdout] | [INFO] [stdout] 124 | assert_eq!(t.local_normal_at(Point3::new(0., 0.5, 0.)), t.normal); [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 87 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 87 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/triangle.rs:125:38 [INFO] [stdout] | [INFO] [stdout] 125 | assert_eq!(t.local_normal_at(Point3::new(-0.5, 0.75, 0.)), t.normal); [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 87 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 87 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/shape/triangle.rs:126:38 [INFO] [stdout] | [INFO] [stdout] 126 | assert_eq!(t.local_normal_at(Point3::new(0.5, 0.25, 0.)), t.normal); [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 87 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 87 + use crate::shape::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `World` [INFO] [stdout] --> src/world.rs:153:25 [INFO] [stdout] | [INFO] [stdout] 153 | let mut w = World::default(); [INFO] [stdout] | ^^^^^ use of undeclared type `World` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 150 + use crate::world::World; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Intersection` [INFO] [stdout] --> src/world.rs:154:27 [INFO] [stdout] | [INFO] [stdout] 154 | let xs = vec![Intersection::new(4., w.objects[0].clone(), None)]; [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `Intersection` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 150 + use crate::world::Intersection; [INFO] [stdout] | [INFO] [stdout] 150 + use std::collections::btree_set::Intersection; [INFO] [stdout] | [INFO] [stdout] 150 + use std::collections::hash_set::Intersection; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `World` [INFO] [stdout] --> src/world.rs:166:25 [INFO] [stdout] | [INFO] [stdout] 166 | let mut w = World::default(); [INFO] [stdout] | ^^^^^ use of undeclared type `World` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 150 + use crate::world::World; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Light` [INFO] [stdout] --> src/world.rs:167:23 [INFO] [stdout] | [INFO] [stdout] 167 | w.light = Light::new(Point3::new(0., 0.25, 0.), RGB::new(1., 1., 1.)); [INFO] [stdout] | ^^^^^ use of undeclared type `Light` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 150 + use crate::world::Light; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/world.rs:167:34 [INFO] [stdout] | [INFO] [stdout] 167 | w.light = Light::new(Point3::new(0., 0.25, 0.), RGB::new(1., 1., 1.)); [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 150 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 150 + use crate::world::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RGB` [INFO] [stdout] --> src/world.rs:167:61 [INFO] [stdout] | [INFO] [stdout] 167 | w.light = Light::new(Point3::new(0., 0.25, 0.), RGB::new(1., 1., 1.)); [INFO] [stdout] | ^^^ use of undeclared type `RGB` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 150 + use crate::world::RGB; [INFO] [stdout] | [INFO] [stdout] 150 + use rgb::RGB; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Intersection` [INFO] [stdout] --> src/world.rs:168:27 [INFO] [stdout] | [INFO] [stdout] 168 | let xs = vec![Intersection::new(0.5, w.objects[1].clone(), None)]; [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `Intersection` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 150 + use crate::world::Intersection; [INFO] [stdout] | [INFO] [stdout] 150 + use std::collections::btree_set::Intersection; [INFO] [stdout] | [INFO] [stdout] 150 + use std::collections::hash_set::Intersection; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `World` [INFO] [stdout] --> src/world.rs:180:25 [INFO] [stdout] | [INFO] [stdout] 180 | let mut w = World::default(); [INFO] [stdout] | ^^^^^ use of undeclared type `World` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 150 + use crate::world::World; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Plane` [INFO] [stdout] --> src/world.rs:181:29 [INFO] [stdout] | [INFO] [stdout] 181 | let mut plane = Plane::default(); [INFO] [stdout] | ^^^^^ use of undeclared type `Plane` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 150 + use crate::shape::plane::Plane; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Matrix4` [INFO] [stdout] --> src/world.rs:182:31 [INFO] [stdout] | [INFO] [stdout] 182 | plane.transform = Matrix4::from_translation(-Vector3::unit_y()); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Matrix4` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 150 + use cgmath::Matrix4; [INFO] [stdout] | [INFO] [stdout] 150 + use crate::world::Matrix4; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/world.rs:182:58 [INFO] [stdout] | [INFO] [stdout] 182 | plane.transform = Matrix4::from_translation(-Vector3::unit_y()); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 150 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Shape` [INFO] [stdout] --> src/world.rs:184:25 [INFO] [stdout] | [INFO] [stdout] 184 | let shape = Shape::Plane(plane); [INFO] [stdout] | ^^^^^ use of undeclared type `Shape` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 150 + use crate::world::Shape; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ray` [INFO] [stdout] --> src/world.rs:186:21 [INFO] [stdout] | [INFO] [stdout] 186 | let r = Ray::new( [INFO] [stdout] | ^^^ use of undeclared type `Ray` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 150 + use crate::world::Ray; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point3` [INFO] [stdout] --> src/world.rs:187:17 [INFO] [stdout] | [INFO] [stdout] 187 | Point3::from_vec(Vector3::unit_z() * -3.), [INFO] [stdout] | ^^^^^^ use of undeclared type `Point3` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 150 + use cgmath::Point3; [INFO] [stdout] | [INFO] [stdout] 150 + use crate::world::Point3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/world.rs:187:34 [INFO] [stdout] | [INFO] [stdout] 187 | Point3::from_vec(Vector3::unit_z() * -3.), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 150 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vector3` [INFO] [stdout] --> src/world.rs:188:17 [INFO] [stdout] | [INFO] [stdout] 188 | Vector3::new(0., -FRAC_1_SQRT_2, FRAC_1_SQRT_2), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Vector3` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 150 + use cgmath::Vector3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FRAC_1_SQRT_2` in this scope [INFO] [stdout] --> src/world.rs:188:35 [INFO] [stdout] | [INFO] [stdout] 188 | Vector3::new(0., -FRAC_1_SQRT_2, FRAC_1_SQRT_2), [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 150 + use core::f32::consts::FRAC_1_SQRT_2; [INFO] [stdout] | [INFO] [stdout] 150 + use core::f64::consts::FRAC_1_SQRT_2; [INFO] [stdout] | [INFO] [stdout] 150 + use std::f32::consts::FRAC_1_SQRT_2; [INFO] [stdout] | [INFO] [stdout] 150 + use std::f64::consts::FRAC_1_SQRT_2; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FRAC_1_SQRT_2` in this scope [INFO] [stdout] --> src/world.rs:188:50 [INFO] [stdout] | [INFO] [stdout] 188 | Vector3::new(0., -FRAC_1_SQRT_2, FRAC_1_SQRT_2), [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 150 + use core::f32::consts::FRAC_1_SQRT_2; [INFO] [stdout] | [INFO] [stdout] 150 + use core::f64::consts::FRAC_1_SQRT_2; [INFO] [stdout] | [INFO] [stdout] 150 + use std::f32::consts::FRAC_1_SQRT_2; [INFO] [stdout] | [INFO] [stdout] 150 + use std::f64::consts::FRAC_1_SQRT_2; [INFO] [stdout] | [INFO] [stdout] [WARN] too many lines in the log, truncating it