[INFO] cloning repository https://github.com/trcoffman/raytrace [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/trcoffman/raytrace" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftrcoffman%2Fraytrace", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftrcoffman%2Fraytrace'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] bb8ddc74727afe069df5ee67eec212a79383426c [INFO] checking trcoffman/raytrace against try#84addd32a13fa2d3f62fe5d99031611147b7fb13 for pr-147565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftrcoffman%2Fraytrace" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/trcoffman/raytrace [INFO] finished tweaking git repo https://github.com/trcoffman/raytrace [INFO] tweaked toml for git repo https://github.com/trcoffman/raytrace written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/trcoffman/raytrace on toolchain 84addd32a13fa2d3f62fe5d99031611147b7fb13 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+84addd32a13fa2d3f62fe5d99031611147b7fb13" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/trcoffman/raytrace 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" "+84addd32a13fa2d3f62fe5d99031611147b7fb13" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [INFO] checking trcoffman/raytrace against try#84addd32a13fa2d3f62fe5d99031611147b7fb13 for pr-147565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftrcoffman%2Fraytrace" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/trcoffman/raytrace [INFO] finished tweaking git repo https://github.com/trcoffman/raytrace [INFO] tweaked toml for git repo https://github.com/trcoffman/raytrace written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/trcoffman/raytrace on toolchain 84addd32a13fa2d3f62fe5d99031611147b7fb13 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+84addd32a13fa2d3f62fe5d99031611147b7fb13" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/trcoffman/raytrace 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" "+84addd32a13fa2d3f62fe5d99031611147b7fb13" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded num_cpus v1.2.1 [INFO] [stderr] Downloaded deque v0.3.1 [INFO] [stderr] Downloaded rayon v0.6.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+84addd32a13fa2d3f62fe5d99031611147b7fb13" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f499e0e430a256b9eb7e0b3ff93d42efd7a5149f8570c157fc4b0fd50a86e25a [INFO] running `Command { std: "docker" "start" "-a" "f499e0e430a256b9eb7e0b3ff93d42efd7a5149f8570c157fc4b0fd50a86e25a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f499e0e430a256b9eb7e0b3ff93d42efd7a5149f8570c157fc4b0fd50a86e25a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f499e0e430a256b9eb7e0b3ff93d42efd7a5149f8570c157fc4b0fd50a86e25a", kill_on_drop: false }` [INFO] [stdout] f499e0e430a256b9eb7e0b3ff93d42efd7a5149f8570c157fc4b0fd50a86e25a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+84addd32a13fa2d3f62fe5d99031611147b7fb13" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1afd33576a2dc9167cd4c624b2b6e7bb8ed7a11149d67b3a2c6dbcb7eb4d3204 [INFO] running `Command { std: "docker" "start" "-a" "1afd33576a2dc9167cd4c624b2b6e7bb8ed7a11149d67b3a2c6dbcb7eb4d3204", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Checking libc v0.2.20 [INFO] [stderr] Checking rand v0.3.15 [INFO] [stderr] Checking num_cpus v1.2.1 [INFO] [stderr] Checking deque v0.3.1 [INFO] [stderr] Checking rayon v0.6.0 [INFO] [stderr] Checking raytracer v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0583]: file not found for module `vec3` [INFO] [stdout] --> src/main.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub mod vec3; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: to create the module `vec3`, create file "src/vec3.rs" or "src/vec3/mod.rs" [INFO] [stdout] = note: if there is a `mod vec3` elsewhere in the crate already, import it with `use crate::...` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0583]: file not found for module `vec3` [INFO] [stdout] --> src/main.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub mod vec3; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: to create the module `vec3`, create file "src/vec3.rs" or "src/vec3/mod.rs" [INFO] [stdout] = note: if there is a `mod vec3` elsewhere in the crate already, import it with `use crate::...` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Vec3` in this scope [INFO] [stdout] --> src/sphere.rs:7:17 [INFO] [stdout] | [INFO] [stdout] 7 | pub center: Vec3, [INFO] [stdout] | ^^^^ help: a struct with a similar name exists: `Vec` [INFO] [stdout] | [INFO] [stdout] --> /rustc/84addd32a13fa2d3f62fe5d99031611147b7fb13/library/alloc/src/vec/mod.rs:434:1 [INFO] [stdout] | [INFO] [stdout] = note: similarly named struct `Vec` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Vec3` in this scope [INFO] [stdout] --> src/sphere.rs:13:24 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn new(center: Vec3, radius: f32, material: &'a Material) -> Sphere { [INFO] [stdout] | ^^^^ help: a struct with a similar name exists: `Vec` [INFO] [stdout] | [INFO] [stdout] --> /rustc/84addd32a13fa2d3f62fe5d99031611147b7fb13/library/alloc/src/vec/mod.rs:434:1 [INFO] [stdout] | [INFO] [stdout] = note: similarly named struct `Vec` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Vec3` in this scope [INFO] [stdout] --> src/camera.rs:6:17 [INFO] [stdout] | [INFO] [stdout] 6 | pub origin: Vec3, [INFO] [stdout] | ^^^^ help: a struct with a similar name exists: `Vec` [INFO] [stdout] | [INFO] [stdout] --> /rustc/84addd32a13fa2d3f62fe5d99031611147b7fb13/library/alloc/src/vec/mod.rs:434:1 [INFO] [stdout] | [INFO] [stdout] = note: similarly named struct `Vec` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Vec3` in this scope [INFO] [stdout] --> src/camera.rs:7:28 [INFO] [stdout] | [INFO] [stdout] 7 | pub lower_left_corner: Vec3, [INFO] [stdout] | ^^^^ help: a struct with a similar name exists: `Vec` [INFO] [stdout] | [INFO] [stdout] --> /rustc/84addd32a13fa2d3f62fe5d99031611147b7fb13/library/alloc/src/vec/mod.rs:434:1 [INFO] [stdout] | [INFO] [stdout] = note: similarly named struct `Vec` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Vec3` in this scope [INFO] [stdout] --> src/camera.rs:8:21 [INFO] [stdout] | [INFO] [stdout] 8 | pub horizontal: Vec3, [INFO] [stdout] | ^^^^ help: a struct with a similar name exists: `Vec` [INFO] [stdout] | [INFO] [stdout] --> /rustc/84addd32a13fa2d3f62fe5d99031611147b7fb13/library/alloc/src/vec/mod.rs:434:1 [INFO] [stdout] | [INFO] [stdout] = note: similarly named struct `Vec` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Vec3` in this scope [INFO] [stdout] --> src/camera.rs:9:19 [INFO] [stdout] | [INFO] [stdout] 9 | pub vertical: Vec3, [INFO] [stdout] | ^^^^ help: a struct with a similar name exists: `Vec` [INFO] [stdout] | [INFO] [stdout] --> /rustc/84addd32a13fa2d3f62fe5d99031611147b7fb13/library/alloc/src/vec/mod.rs:434:1 [INFO] [stdout] | [INFO] [stdout] = note: similarly named struct `Vec` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Vec3` in this scope [INFO] [stdout] --> src/camera.rs:13:24 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn new(origin: Vec3, lower_left_corner: Vec3, horizontal: Vec3, vertical: Vec3) -> Camera { [INFO] [stdout] | ^^^^ help: a struct with a similar name exists: `Vec` [INFO] [stdout] | [INFO] [stdout] --> /rustc/84addd32a13fa2d3f62fe5d99031611147b7fb13/library/alloc/src/vec/mod.rs:434:1 [INFO] [stdout] | [INFO] [stdout] = note: similarly named struct `Vec` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Vec3` in this scope [INFO] [stdout] --> src/camera.rs:13:49 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn new(origin: Vec3, lower_left_corner: Vec3, horizontal: Vec3, vertical: Vec3) -> Camera { [INFO] [stdout] | ^^^^ help: a struct with a similar name exists: `Vec` [INFO] [stdout] | [INFO] [stdout] --> /rustc/84addd32a13fa2d3f62fe5d99031611147b7fb13/library/alloc/src/vec/mod.rs:434:1 [INFO] [stdout] | [INFO] [stdout] = note: similarly named struct `Vec` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Vec3` in this scope [INFO] [stdout] --> src/camera.rs:13:67 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn new(origin: Vec3, lower_left_corner: Vec3, horizontal: Vec3, vertical: Vec3) -> Camera { [INFO] [stdout] | ^^^^ help: a struct with a similar name exists: `Vec` [INFO] [stdout] | [INFO] [stdout] --> /rustc/84addd32a13fa2d3f62fe5d99031611147b7fb13/library/alloc/src/vec/mod.rs:434:1 [INFO] [stdout] | [INFO] [stdout] = note: similarly named struct `Vec` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Vec3` in this scope [INFO] [stdout] --> src/camera.rs:13:83 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn new(origin: Vec3, lower_left_corner: Vec3, horizontal: Vec3, vertical: Vec3) -> Camera { [INFO] [stdout] | ^^^^ help: a struct with a similar name exists: `Vec` [INFO] [stdout] | [INFO] [stdout] --> /rustc/84addd32a13fa2d3f62fe5d99031611147b7fb13/library/alloc/src/vec/mod.rs:434:1 [INFO] [stdout] | [INFO] [stdout] = note: similarly named struct `Vec` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Vec3` in this scope [INFO] [stdout] --> src/random.rs:14:42 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn random_in_unit_sphere_helper() -> Vec3 { [INFO] [stdout] | ^^^^ help: a struct with a similar name exists: `Vec` [INFO] [stdout] | [INFO] [stdout] --> /rustc/84addd32a13fa2d3f62fe5d99031611147b7fb13/library/alloc/src/vec/mod.rs:434:1 [INFO] [stdout] | [INFO] [stdout] = note: similarly named struct `Vec` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Vec3` in this scope [INFO] [stdout] --> src/random.rs:23:35 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn random_in_unit_sphere() -> Vec3 { [INFO] [stdout] | ^^^^ help: a struct with a similar name exists: `Vec` [INFO] [stdout] | [INFO] [stdout] --> /rustc/84addd32a13fa2d3f62fe5d99031611147b7fb13/library/alloc/src/vec/mod.rs:434:1 [INFO] [stdout] | [INFO] [stdout] = note: similarly named struct `Vec` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Vec3` in this scope [INFO] [stdout] --> src/material.rs:7:72 [INFO] [stdout] | [INFO] [stdout] 7 | fn scatter(&self, ray_in: &Ray, hit_record: &HitRecord) -> Option<(Vec3, Ray)>; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] --> /rustc/84addd32a13fa2d3f62fe5d99031611147b7fb13/library/alloc/src/vec/mod.rs:434:1 [INFO] [stdout] | [INFO] [stdout] = note: similarly named struct `Vec` defined here [INFO] [stdout] help: a struct with a similar name exists [INFO] [stdout] | [INFO] [stdout] 7 - fn scatter(&self, ray_in: &Ray, hit_record: &HitRecord) -> Option<(Vec3, Ray)>; [INFO] [stdout] 7 + fn scatter(&self, ray_in: &Ray, hit_record: &HitRecord) -> Option<(Vec, Ray)>; [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 6 | pub trait Material: Send + Sync { [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Vec3` in this scope [INFO] [stdout] --> src/material.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | albedo: Vec3, [INFO] [stdout] | ^^^^ help: a struct with a similar name exists: `Vec` [INFO] [stdout] | [INFO] [stdout] --> /rustc/84addd32a13fa2d3f62fe5d99031611147b7fb13/library/alloc/src/vec/mod.rs:434:1 [INFO] [stdout] | [INFO] [stdout] = note: similarly named struct `Vec` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Vec3` in this scope [INFO] [stdout] --> src/material.rs:15:24 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn new(albedo: Vec3) -> Lambertian { [INFO] [stdout] | ^^^^ help: a struct with a similar name exists: `Vec` [INFO] [stdout] | [INFO] [stdout] --> /rustc/84addd32a13fa2d3f62fe5d99031611147b7fb13/library/alloc/src/vec/mod.rs:434:1 [INFO] [stdout] | [INFO] [stdout] = note: similarly named struct `Vec` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Vec3` in this scope [INFO] [stdout] --> src/material.rs:21:63 [INFO] [stdout] | [INFO] [stdout] 21 | fn scatter(&self, _: &Ray, record: &HitRecord) -> Option<(Vec3, Ray)> { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] --> /rustc/84addd32a13fa2d3f62fe5d99031611147b7fb13/library/alloc/src/vec/mod.rs:434:1 [INFO] [stdout] | [INFO] [stdout] = note: similarly named struct `Vec` defined here [INFO] [stdout] help: a struct with a similar name exists [INFO] [stdout] | [INFO] [stdout] 21 - fn scatter(&self, _: &Ray, record: &HitRecord) -> Option<(Vec3, Ray)> { [INFO] [stdout] 21 + fn scatter(&self, _: &Ray, record: &HitRecord) -> Option<(Vec, Ray)> { [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 20 | impl Material for Lambertian { [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Vec3` in this scope [INFO] [stdout] --> src/material.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | albedo: Vec3, [INFO] [stdout] | ^^^^ help: a struct with a similar name exists: `Vec` [INFO] [stdout] | [INFO] [stdout] --> /rustc/84addd32a13fa2d3f62fe5d99031611147b7fb13/library/alloc/src/vec/mod.rs:434:1 [INFO] [stdout] | [INFO] [stdout] = note: similarly named struct `Vec` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Vec3` in this scope [INFO] [stdout] --> src/material.rs:34:24 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn new(albedo: Vec3, fuzz: f32) -> Metal { [INFO] [stdout] | ^^^^ help: a struct with a similar name exists: `Vec` [INFO] [stdout] | [INFO] [stdout] --> /rustc/84addd32a13fa2d3f62fe5d99031611147b7fb13/library/alloc/src/vec/mod.rs:434:1 [INFO] [stdout] | [INFO] [stdout] = note: similarly named struct `Vec` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Vec3` in this scope [INFO] [stdout] --> src/material.rs:41:26 [INFO] [stdout] | [INFO] [stdout] 41 | fn reflect(&self, v: Vec3, n: Vec3) -> Vec3 { [INFO] [stdout] | ^^^^ help: a struct with a similar name exists: `Vec` [INFO] [stdout] | [INFO] [stdout] --> /rustc/84addd32a13fa2d3f62fe5d99031611147b7fb13/library/alloc/src/vec/mod.rs:434:1 [INFO] [stdout] | [INFO] [stdout] = note: similarly named struct `Vec` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Vec3` in this scope [INFO] [stdout] --> src/material.rs:41:35 [INFO] [stdout] | [INFO] [stdout] 41 | fn reflect(&self, v: Vec3, n: Vec3) -> Vec3 { [INFO] [stdout] | ^^^^ help: a struct with a similar name exists: `Vec` [INFO] [stdout] | [INFO] [stdout] --> /rustc/84addd32a13fa2d3f62fe5d99031611147b7fb13/library/alloc/src/vec/mod.rs:434:1 [INFO] [stdout] | [INFO] [stdout] = note: similarly named struct `Vec` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Vec3` in this scope [INFO] [stdout] --> src/material.rs:41:44 [INFO] [stdout] | [INFO] [stdout] 41 | fn reflect(&self, v: Vec3, n: Vec3) -> Vec3 { [INFO] [stdout] | ^^^^ help: a struct with a similar name exists: `Vec` [INFO] [stdout] | [INFO] [stdout] --> /rustc/84addd32a13fa2d3f62fe5d99031611147b7fb13/library/alloc/src/vec/mod.rs:434:1 [INFO] [stdout] | [INFO] [stdout] = note: similarly named struct `Vec` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Vec3` in this scope [INFO] [stdout] --> src/material.rs:47:68 [INFO] [stdout] | [INFO] [stdout] 47 | fn scatter(&self, ray_in: &Ray, record: &HitRecord) -> Option<(Vec3, Ray)> { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] --> /rustc/84addd32a13fa2d3f62fe5d99031611147b7fb13/library/alloc/src/vec/mod.rs:434:1 [INFO] [stdout] | [INFO] [stdout] = note: similarly named struct `Vec` defined here [INFO] [stdout] help: a struct with a similar name exists [INFO] [stdout] | [INFO] [stdout] 47 - fn scatter(&self, ray_in: &Ray, record: &HitRecord) -> Option<(Vec3, Ray)> { [INFO] [stdout] 47 + fn scatter(&self, ray_in: &Ray, record: &HitRecord) -> Option<(Vec, Ray)> { [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 46 | impl Material for Metal { [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Vec3` in this scope [INFO] [stdout] --> src/main.rs:23:41 [INFO] [stdout] | [INFO] [stdout] 23 | fn color(ray: &Ray, world: &Hitable) -> Vec3 { [INFO] [stdout] | ^^^^ help: a struct with a similar name exists: `Vec` [INFO] [stdout] | [INFO] [stdout] --> /rustc/84addd32a13fa2d3f62fe5d99031611147b7fb13/library/alloc/src/vec/mod.rs:434:1 [INFO] [stdout] | [INFO] [stdout] = note: similarly named struct `Vec` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Vec3` in this scope [INFO] [stdout] --> src/main.rs:27:61 [INFO] [stdout] | [INFO] [stdout] 27 | fn color_limited(ray: &Ray, world: &Hitable, depth: u32) -> Vec3 { [INFO] [stdout] | ^^^^ help: a struct with a similar name exists: `Vec` [INFO] [stdout] | [INFO] [stdout] --> /rustc/84addd32a13fa2d3f62fe5d99031611147b7fb13/library/alloc/src/vec/mod.rs:434:1 [INFO] [stdout] | [INFO] [stdout] = note: similarly named struct `Vec` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Vec3` in this scope [INFO] [stdout] --> src/main.rs:62:34 [INFO] [stdout] | [INFO] [stdout] 62 | let col_sum: Vec3 = (0..ns).fold(Vec3::new(0.0, 0.0, 0.0), |sum, _| { [INFO] [stdout] | ^^^^ help: a struct with a similar name exists: `Vec` [INFO] [stdout] | [INFO] [stdout] --> /rustc/84addd32a13fa2d3f62fe5d99031611147b7fb13/library/alloc/src/vec/mod.rs:434:1 [INFO] [stdout] | [INFO] [stdout] = note: similarly named struct `Vec` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `vec3::*` [INFO] [stdout] --> src/sphere.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use vec3::*; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `vec3::*` [INFO] [stdout] --> src/camera.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use vec3::*; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `vec3::*` [INFO] [stdout] --> src/random.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use vec3::*; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `vec3::*` [INFO] [stdout] --> src/material.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use vec3::*; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `vec3::*` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use vec3::*; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/sphere.rs:9:23 [INFO] [stdout] | [INFO] [stdout] 9 | pub material: &'a Material, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 9 | pub material: &'a dyn Material, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/hitable.rs:12:23 [INFO] [stdout] | [INFO] [stdout] 12 | pub material: &'a Material, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 12 | pub material: &'a dyn Material, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Vec3` in this scope [INFO] [stdout] --> src/sphere.rs:7:17 [INFO] [stdout] | [INFO] [stdout] 7 | pub center: Vec3, [INFO] [stdout] | ^^^^ help: a struct with a similar name exists: `Vec` [INFO] [stdout] | [INFO] [stdout] --> /rustc/84addd32a13fa2d3f62fe5d99031611147b7fb13/library/alloc/src/vec/mod.rs:434:1 [INFO] [stdout] | [INFO] [stdout] = note: similarly named struct `Vec` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Vec3` in this scope [INFO] [stdout] --> src/sphere.rs:13:24 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn new(center: Vec3, radius: f32, material: &'a Material) -> Sphere { [INFO] [stdout] | ^^^^ help: a struct with a similar name exists: `Vec` [INFO] [stdout] | [INFO] [stdout] --> /rustc/84addd32a13fa2d3f62fe5d99031611147b7fb13/library/alloc/src/vec/mod.rs:434:1 [INFO] [stdout] | [INFO] [stdout] = note: similarly named struct `Vec` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Vec3` in this scope [INFO] [stdout] --> src/camera.rs:6:17 [INFO] [stdout] | [INFO] [stdout] 6 | pub origin: Vec3, [INFO] [stdout] | ^^^^ help: a struct with a similar name exists: `Vec` [INFO] [stdout] | [INFO] [stdout] --> /rustc/84addd32a13fa2d3f62fe5d99031611147b7fb13/library/alloc/src/vec/mod.rs:434:1 [INFO] [stdout] | [INFO] [stdout] = note: similarly named struct `Vec` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Vec3` in this scope [INFO] [stdout] --> src/camera.rs:7:28 [INFO] [stdout] | [INFO] [stdout] 7 | pub lower_left_corner: Vec3, [INFO] [stdout] | ^^^^ help: a struct with a similar name exists: `Vec` [INFO] [stdout] | [INFO] [stdout] --> /rustc/84addd32a13fa2d3f62fe5d99031611147b7fb13/library/alloc/src/vec/mod.rs:434:1 [INFO] [stdout] | [INFO] [stdout] = note: similarly named struct `Vec` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Vec3` in this scope [INFO] [stdout] --> src/camera.rs:8:21 [INFO] [stdout] | [INFO] [stdout] 8 | pub horizontal: Vec3, [INFO] [stdout] | ^^^^ help: a struct with a similar name exists: `Vec` [INFO] [stdout] | [INFO] [stdout] --> /rustc/84addd32a13fa2d3f62fe5d99031611147b7fb13/library/alloc/src/vec/mod.rs:434:1 [INFO] [stdout] | [INFO] [stdout] = note: similarly named struct `Vec` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Vec3` in this scope [INFO] [stdout] --> src/camera.rs:9:19 [INFO] [stdout] | [INFO] [stdout] 9 | pub vertical: Vec3, [INFO] [stdout] | ^^^^ help: a struct with a similar name exists: `Vec` [INFO] [stdout] | [INFO] [stdout] --> /rustc/84addd32a13fa2d3f62fe5d99031611147b7fb13/library/alloc/src/vec/mod.rs:434:1 [INFO] [stdout] | [INFO] [stdout] = note: similarly named struct `Vec` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Vec3` in this scope [INFO] [stdout] --> src/camera.rs:13:24 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn new(origin: Vec3, lower_left_corner: Vec3, horizontal: Vec3, vertical: Vec3) -> Camera { [INFO] [stdout] | ^^^^ help: a struct with a similar name exists: `Vec` [INFO] [stdout] | [INFO] [stdout] --> /rustc/84addd32a13fa2d3f62fe5d99031611147b7fb13/library/alloc/src/vec/mod.rs:434:1 [INFO] [stdout] | [INFO] [stdout] = note: similarly named struct `Vec` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Vec3` in this scope [INFO] [stdout] --> src/camera.rs:13:49 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn new(origin: Vec3, lower_left_corner: Vec3, horizontal: Vec3, vertical: Vec3) -> Camera { [INFO] [stdout] | ^^^^ help: a struct with a similar name exists: `Vec` [INFO] [stdout] | [INFO] [stdout] --> /rustc/84addd32a13fa2d3f62fe5d99031611147b7fb13/library/alloc/src/vec/mod.rs:434:1 [INFO] [stdout] | [INFO] [stdout] = note: similarly named struct `Vec` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Vec3` in this scope [INFO] [stdout] --> src/camera.rs:13:67 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn new(origin: Vec3, lower_left_corner: Vec3, horizontal: Vec3, vertical: Vec3) -> Camera { [INFO] [stdout] | ^^^^ help: a struct with a similar name exists: `Vec` [INFO] [stdout] | [INFO] [stdout] --> /rustc/84addd32a13fa2d3f62fe5d99031611147b7fb13/library/alloc/src/vec/mod.rs:434:1 [INFO] [stdout] | [INFO] [stdout] = note: similarly named struct `Vec` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Vec3` in this scope [INFO] [stdout] --> src/camera.rs:13:83 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn new(origin: Vec3, lower_left_corner: Vec3, horizontal: Vec3, vertical: Vec3) -> Camera { [INFO] [stdout] | ^^^^ help: a struct with a similar name exists: `Vec` [INFO] [stdout] | [INFO] [stdout] --> /rustc/84addd32a13fa2d3f62fe5d99031611147b7fb13/library/alloc/src/vec/mod.rs:434:1 [INFO] [stdout] | [INFO] [stdout] = note: similarly named struct `Vec` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Vec3` in this scope [INFO] [stdout] --> src/random.rs:14:42 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn random_in_unit_sphere_helper() -> Vec3 { [INFO] [stdout] | ^^^^ help: a struct with a similar name exists: `Vec` [INFO] [stdout] | [INFO] [stdout] --> /rustc/84addd32a13fa2d3f62fe5d99031611147b7fb13/library/alloc/src/vec/mod.rs:434:1 [INFO] [stdout] | [INFO] [stdout] = note: similarly named struct `Vec` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Vec3` in this scope [INFO] [stdout] --> src/random.rs:23:35 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn random_in_unit_sphere() -> Vec3 { [INFO] [stdout] | ^^^^ help: a struct with a similar name exists: `Vec` [INFO] [stdout] | [INFO] [stdout] --> /rustc/84addd32a13fa2d3f62fe5d99031611147b7fb13/library/alloc/src/vec/mod.rs:434:1 [INFO] [stdout] | [INFO] [stdout] = note: similarly named struct `Vec` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Vec3` in this scope [INFO] [stdout] --> src/material.rs:7:72 [INFO] [stdout] | [INFO] [stdout] 7 | fn scatter(&self, ray_in: &Ray, hit_record: &HitRecord) -> Option<(Vec3, Ray)>; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] --> /rustc/84addd32a13fa2d3f62fe5d99031611147b7fb13/library/alloc/src/vec/mod.rs:434:1 [INFO] [stdout] | [INFO] [stdout] = note: similarly named struct `Vec` defined here [INFO] [stdout] help: a struct with a similar name exists [INFO] [stdout] | [INFO] [stdout] 7 - fn scatter(&self, ray_in: &Ray, hit_record: &HitRecord) -> Option<(Vec3, Ray)>; [INFO] [stdout] 7 + fn scatter(&self, ray_in: &Ray, hit_record: &HitRecord) -> Option<(Vec, Ray)>; [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 6 | pub trait Material: Send + Sync { [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Vec3` in this scope [INFO] [stdout] --> src/material.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | albedo: Vec3, [INFO] [stdout] | ^^^^ help: a struct with a similar name exists: `Vec` [INFO] [stdout] | [INFO] [stdout] --> /rustc/84addd32a13fa2d3f62fe5d99031611147b7fb13/library/alloc/src/vec/mod.rs:434:1 [INFO] [stdout] | [INFO] [stdout] = note: similarly named struct `Vec` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Vec3` in this scope [INFO] [stdout] --> src/material.rs:15:24 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn new(albedo: Vec3) -> Lambertian { [INFO] [stdout] | ^^^^ help: a struct with a similar name exists: `Vec` [INFO] [stdout] | [INFO] [stdout] --> /rustc/84addd32a13fa2d3f62fe5d99031611147b7fb13/library/alloc/src/vec/mod.rs:434:1 [INFO] [stdout] | [INFO] [stdout] = note: similarly named struct `Vec` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Vec3` in this scope [INFO] [stdout] --> src/material.rs:21:63 [INFO] [stdout] | [INFO] [stdout] 21 | fn scatter(&self, _: &Ray, record: &HitRecord) -> Option<(Vec3, Ray)> { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] --> /rustc/84addd32a13fa2d3f62fe5d99031611147b7fb13/library/alloc/src/vec/mod.rs:434:1 [INFO] [stdout] | [INFO] [stdout] = note: similarly named struct `Vec` defined here [INFO] [stdout] help: a struct with a similar name exists [INFO] [stdout] | [INFO] [stdout] 21 - fn scatter(&self, _: &Ray, record: &HitRecord) -> Option<(Vec3, Ray)> { [INFO] [stdout] 21 + fn scatter(&self, _: &Ray, record: &HitRecord) -> Option<(Vec, Ray)> { [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 20 | impl Material for Lambertian { [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/sphere.rs:13:57 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn new(center: Vec3, radius: f32, material: &'a Material) -> Sphere { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 13 | pub fn new(center: Vec3, radius: f32, material: &'a dyn Material) -> Sphere { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/hitable.rs:16:61 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn new(t: f32, p: Vec3, normal: Vec3, material: &'a Material) -> HitRecord<'a> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 16 | pub fn new(t: f32, p: Vec3, normal: Vec3, material: &'a dyn Material) -> HitRecord<'a> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/hitable.rs:30:30 [INFO] [stdout] | [INFO] [stdout] 30 | impl<'c> Hitable for Vec> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 30 | impl<'c> Hitable for Vec> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Vec3` in this scope [INFO] [stdout] --> src/material.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | albedo: Vec3, [INFO] [stdout] | ^^^^ help: a struct with a similar name exists: `Vec` [INFO] [stdout] | [INFO] [stdout] --> /rustc/84addd32a13fa2d3f62fe5d99031611147b7fb13/library/alloc/src/vec/mod.rs:434:1 [INFO] [stdout] | [INFO] [stdout] = note: similarly named struct `Vec` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Vec3` in this scope [INFO] [stdout] --> src/material.rs:34:24 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn new(albedo: Vec3, fuzz: f32) -> Metal { [INFO] [stdout] | ^^^^ help: a struct with a similar name exists: `Vec` [INFO] [stdout] | [INFO] [stdout] --> /rustc/84addd32a13fa2d3f62fe5d99031611147b7fb13/library/alloc/src/vec/mod.rs:434:1 [INFO] [stdout] | [INFO] [stdout] = note: similarly named struct `Vec` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Vec3` in this scope [INFO] [stdout] --> src/material.rs:41:26 [INFO] [stdout] | [INFO] [stdout] 41 | fn reflect(&self, v: Vec3, n: Vec3) -> Vec3 { [INFO] [stdout] | ^^^^ help: a struct with a similar name exists: `Vec` [INFO] [stdout] | [INFO] [stdout] --> /rustc/84addd32a13fa2d3f62fe5d99031611147b7fb13/library/alloc/src/vec/mod.rs:434:1 [INFO] [stdout] | [INFO] [stdout] = note: similarly named struct `Vec` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Vec3` in this scope [INFO] [stdout] --> src/material.rs:41:35 [INFO] [stdout] | [INFO] [stdout] 41 | fn reflect(&self, v: Vec3, n: Vec3) -> Vec3 { [INFO] [stdout] | ^^^^ help: a struct with a similar name exists: `Vec` [INFO] [stdout] | [INFO] [stdout] --> /rustc/84addd32a13fa2d3f62fe5d99031611147b7fb13/library/alloc/src/vec/mod.rs:434:1 [INFO] [stdout] | [INFO] [stdout] = note: similarly named struct `Vec` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Vec3` in this scope [INFO] [stdout] --> src/material.rs:41:44 [INFO] [stdout] | [INFO] [stdout] 41 | fn reflect(&self, v: Vec3, n: Vec3) -> Vec3 { [INFO] [stdout] | ^^^^ help: a struct with a similar name exists: `Vec` [INFO] [stdout] | [INFO] [stdout] --> /rustc/84addd32a13fa2d3f62fe5d99031611147b7fb13/library/alloc/src/vec/mod.rs:434:1 [INFO] [stdout] | [INFO] [stdout] = note: similarly named struct `Vec` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Vec3` in this scope [INFO] [stdout] --> src/material.rs:47:68 [INFO] [stdout] | [INFO] [stdout] 47 | fn scatter(&self, ray_in: &Ray, record: &HitRecord) -> Option<(Vec3, Ray)> { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] --> /rustc/84addd32a13fa2d3f62fe5d99031611147b7fb13/library/alloc/src/vec/mod.rs:434:1 [INFO] [stdout] | [INFO] [stdout] = note: similarly named struct `Vec` defined here [INFO] [stdout] help: a struct with a similar name exists [INFO] [stdout] | [INFO] [stdout] 47 - fn scatter(&self, ray_in: &Ray, record: &HitRecord) -> Option<(Vec3, Ray)> { [INFO] [stdout] 47 + fn scatter(&self, ray_in: &Ray, record: &HitRecord) -> Option<(Vec, Ray)> { [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 46 | impl Material for Metal { [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Vec3` in this scope [INFO] [stdout] --> src/main.rs:23:41 [INFO] [stdout] | [INFO] [stdout] 23 | fn color(ray: &Ray, world: &Hitable) -> Vec3 { [INFO] [stdout] | ^^^^ help: a struct with a similar name exists: `Vec` [INFO] [stdout] | [INFO] [stdout] --> /rustc/84addd32a13fa2d3f62fe5d99031611147b7fb13/library/alloc/src/vec/mod.rs:434:1 [INFO] [stdout] | [INFO] [stdout] = note: similarly named struct `Vec` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Vec3` in this scope [INFO] [stdout] --> src/main.rs:27:61 [INFO] [stdout] | [INFO] [stdout] 27 | fn color_limited(ray: &Ray, world: &Hitable, depth: u32) -> Vec3 { [INFO] [stdout] | ^^^^ help: a struct with a similar name exists: `Vec` [INFO] [stdout] | [INFO] [stdout] --> /rustc/84addd32a13fa2d3f62fe5d99031611147b7fb13/library/alloc/src/vec/mod.rs:434:1 [INFO] [stdout] | [INFO] [stdout] = note: similarly named struct `Vec` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Vec3` in this scope [INFO] [stdout] --> src/main.rs:62:34 [INFO] [stdout] | [INFO] [stdout] 62 | let col_sum: Vec3 = (0..ns).fold(Vec3::new(0.0, 0.0, 0.0), |sum, _| { [INFO] [stdout] | ^^^^ help: a struct with a similar name exists: `Vec` [INFO] [stdout] | [INFO] [stdout] --> /rustc/84addd32a13fa2d3f62fe5d99031611147b7fb13/library/alloc/src/vec/mod.rs:434:1 [INFO] [stdout] | [INFO] [stdout] = note: similarly named struct `Vec` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `vec3::*` [INFO] [stdout] --> src/sphere.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use vec3::*; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `vec3::*` [INFO] [stdout] --> src/camera.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use vec3::*; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `vec3::*` [INFO] [stdout] --> src/random.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use vec3::*; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `vec3::*` [INFO] [stdout] --> src/material.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use vec3::*; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `vec3::*` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use vec3::*; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/sphere.rs:9:23 [INFO] [stdout] | [INFO] [stdout] 9 | pub material: &'a Material, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 9 | pub material: &'a dyn Material, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/hitable.rs:12:23 [INFO] [stdout] | [INFO] [stdout] 12 | pub material: &'a Material, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 12 | pub material: &'a dyn Material, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:23:29 [INFO] [stdout] | [INFO] [stdout] 23 | fn color(ray: &Ray, world: &Hitable) -> Vec3 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 23 | fn color(ray: &Ray, world: &dyn Hitable) -> Vec3 { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:27:37 [INFO] [stdout] | [INFO] [stdout] 27 | fn color_limited(ray: &Ray, world: &Hitable, depth: u32) -> Vec3 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 27 | fn color_limited(ray: &Ray, world: &dyn Hitable, depth: u32) -> Vec3 { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:53:21 [INFO] [stdout] | [INFO] [stdout] 53 | fn raytrace(world: &Hitable, nx: u32, ny: u32, ns: u32, camera: &Camera) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 53 | fn raytrace(world: &dyn Hitable, nx: u32, ny: u32, ns: u32, camera: &Camera) { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `dot` in this scope [INFO] [stdout] --> src/sphere.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let a = dot(ray.direction, ray.direction); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `dot` in this scope [INFO] [stdout] --> src/sphere.rs:26:23 [INFO] [stdout] | [INFO] [stdout] 26 | let b = 2.0 * dot(oc, ray.direction); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `dot` in this scope [INFO] [stdout] --> src/sphere.rs:27:17 [INFO] [stdout] | [INFO] [stdout] 27 | let c = dot(oc, oc) - (self.radius * self.radius); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0689]: can't call method `sqrt` on ambiguous numeric type `{float}` [INFO] [stdout] --> src/sphere.rs:32:46 [INFO] [stdout] | [INFO] [stdout] 32 | let t_minus = (-b - discriminant.sqrt()) / (2.0 * a); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: you must specify a type for this binding, like `f32` [INFO] [stdout] | [INFO] [stdout] 28 | let discriminant: f32 = (b * b) - (4.0 * a * c); [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Scalar` in this scope [INFO] [stdout] --> src/sphere.rs:37:30 [INFO] [stdout] | [INFO] [stdout] 37 | let normal = Scalar(1.0 / self.radius) * (p - self.center); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Scalar` in this scope [INFO] [stdout] --> src/sphere.rs:45:30 [INFO] [stdout] | [INFO] [stdout] 45 | let normal = Scalar(1.0 / self.radius) * (p - self.center); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/sphere.rs:13:57 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn new(center: Vec3, radius: f32, material: &'a Material) -> Sphere { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 13 | pub fn new(center: Vec3, radius: f32, material: &'a dyn Material) -> Sphere { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/hitable.rs:16:61 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn new(t: f32, p: Vec3, normal: Vec3, material: &'a Material) -> HitRecord<'a> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 16 | pub fn new(t: f32, p: Vec3, normal: Vec3, material: &'a dyn Material) -> HitRecord<'a> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/hitable.rs:30:30 [INFO] [stdout] | [INFO] [stdout] 30 | impl<'c> Hitable for Vec> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 30 | impl<'c> Hitable for Vec> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Scalar` in this scope [INFO] [stdout] --> src/camera.rs:23:52 [INFO] [stdout] | [INFO] [stdout] 23 | let direction = (self.lower_left_corner + (Scalar(u) * self.horizontal)) [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Scalar` in this scope [INFO] [stdout] --> src/camera.rs:24:17 [INFO] [stdout] | [INFO] [stdout] 24 | + ((Scalar(v) * self.vertical) - self.origin); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:23:29 [INFO] [stdout] | [INFO] [stdout] 23 | fn color(ray: &Ray, world: &Hitable) -> Vec3 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 23 | fn color(ray: &Ray, world: &dyn Hitable) -> Vec3 { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:27:37 [INFO] [stdout] | [INFO] [stdout] 27 | fn color_limited(ray: &Ray, world: &Hitable, depth: u32) -> Vec3 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 27 | fn color_limited(ray: &Ray, world: &dyn Hitable, depth: u32) -> Vec3 { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Scalar` in this scope [INFO] [stdout] --> src/random.rs:15:6 [INFO] [stdout] | [INFO] [stdout] 15 | (Scalar(2.0) [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:53:21 [INFO] [stdout] | [INFO] [stdout] 53 | fn raytrace(world: &Hitable, nx: u32, ny: u32, ns: u32, camera: &Camera) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 53 | fn raytrace(world: &dyn Hitable, nx: u32, ny: u32, ns: u32, camera: &Camera) { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vec3` [INFO] [stdout] --> src/random.rs:16:11 [INFO] [stdout] | [INFO] [stdout] 16 | * Vec3::new( [INFO] [stdout] | ^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of undeclared type `Vec3` [INFO] [stdout] | help: a struct with a similar name exists: `Vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vec3` [INFO] [stdout] --> src/random.rs:20:14 [INFO] [stdout] | [INFO] [stdout] 20 | )) - Vec3::new(1.0, 1.0, 1.0) [INFO] [stdout] | ^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of undeclared type `Vec3` [INFO] [stdout] | help: a struct with a similar name exists: `Vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `dot` in this scope [INFO] [stdout] --> src/random.rs:25:11 [INFO] [stdout] | [INFO] [stdout] 25 | while dot(p, p) >= 1.0 { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `dot` in this scope [INFO] [stdout] --> src/material.rs:42:27 [INFO] [stdout] | [INFO] [stdout] 42 | v - (Scalar(2.0 * dot(v, n)) * n) [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Scalar` in this scope [INFO] [stdout] --> src/material.rs:42:14 [INFO] [stdout] | [INFO] [stdout] 42 | v - (Scalar(2.0 * dot(v, n)) * n) [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Scalar` in this scope [INFO] [stdout] --> src/material.rs:49:45 [INFO] [stdout] | [INFO] [stdout] 49 | let fuzzed_reflected = reflected + (Scalar(self.fuzz) * random_in_unit_sphere()); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `dot` in this scope [INFO] [stdout] --> src/material.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 51 | if dot(scattered_ray.direction, record.normal) > 0.0 { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vec3` [INFO] [stdout] --> src/main.rs:29:16 [INFO] [stdout] | [INFO] [stdout] 29 | return Vec3::new(0.0, 0.0, 0.0); [INFO] [stdout] | ^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of undeclared type `Vec3` [INFO] [stdout] | help: a struct with a similar name exists: `Vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vec3` [INFO] [stdout] --> src/main.rs:39:25 [INFO] [stdout] | [INFO] [stdout] 39 | None => Vec3::new(0.0, 0.0, 0.0), [INFO] [stdout] | ^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of undeclared type `Vec3` [INFO] [stdout] | help: a struct with a similar name exists: `Vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `dot` in this scope [INFO] [stdout] --> src/sphere.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let a = dot(ray.direction, ray.direction); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `dot` in this scope [INFO] [stdout] --> src/sphere.rs:26:23 [INFO] [stdout] | [INFO] [stdout] 26 | let b = 2.0 * dot(oc, ray.direction); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `dot` in this scope [INFO] [stdout] --> src/sphere.rs:27:17 [INFO] [stdout] | [INFO] [stdout] 27 | let c = dot(oc, oc) - (self.radius * self.radius); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vec3` [INFO] [stdout] --> src/main.rs:45:25 [INFO] [stdout] | [INFO] [stdout] 45 | let white = Vec3::new(1.0, 1.0, 1.0); [INFO] [stdout] | ^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of undeclared type `Vec3` [INFO] [stdout] | help: a struct with a similar name exists: `Vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vec3` [INFO] [stdout] --> src/main.rs:46:24 [INFO] [stdout] | [INFO] [stdout] 46 | let blue = Vec3::new(0.5, 0.7, 1.0); [INFO] [stdout] | ^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of undeclared type `Vec3` [INFO] [stdout] | help: a struct with a similar name exists: `Vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Scalar` in this scope [INFO] [stdout] --> src/main.rs:48:14 [INFO] [stdout] | [INFO] [stdout] 48 | (Scalar(1.0 - t) * white) + (Scalar(t) * blue) [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Scalar` in this scope [INFO] [stdout] --> src/main.rs:48:42 [INFO] [stdout] | [INFO] [stdout] 48 | (Scalar(1.0 - t) * white) + (Scalar(t) * blue) [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vec3` [INFO] [stdout] --> src/main.rs:62:54 [INFO] [stdout] | [INFO] [stdout] 62 | let col_sum: Vec3 = (0..ns).fold(Vec3::new(0.0, 0.0, 0.0), |sum, _| { [INFO] [stdout] | ^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of undeclared type `Vec3` [INFO] [stdout] | help: a struct with a similar name exists: `Vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Scalar` in this scope [INFO] [stdout] --> src/main.rs:67:35 [INFO] [stdout] | [INFO] [stdout] 67 | let col_avg = Scalar(1.0 / (ns as f32)) * col_sum; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vec3` [INFO] [stdout] --> src/main.rs:70:31 [INFO] [stdout] | [INFO] [stdout] 70 | let col = Vec3::new(col_avg.x.sqrt(), col_avg.y.sqrt(), col_avg.z.sqrt()); [INFO] [stdout] | ^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of undeclared type `Vec3` [INFO] [stdout] | help: a struct with a similar name exists: `Vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vec3` [INFO] [stdout] --> src/main.rs:93:18 [INFO] [stdout] | [INFO] [stdout] 93 | let origin = Vec3::new(0.0, 0.0, 5.0); [INFO] [stdout] | ^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of undeclared type `Vec3` [INFO] [stdout] | help: a struct with a similar name exists: `Vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vec3` [INFO] [stdout] --> src/main.rs:94:29 [INFO] [stdout] | [INFO] [stdout] 94 | let lower_left_corner = Vec3::new(-2.0, -1.0, -1.0); [INFO] [stdout] | ^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of undeclared type `Vec3` [INFO] [stdout] | help: a struct with a similar name exists: `Vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vec3` [INFO] [stdout] --> src/main.rs:95:22 [INFO] [stdout] | [INFO] [stdout] 95 | let horizontal = Vec3::new(4.0, 0.0, 0.0); [INFO] [stdout] | ^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of undeclared type `Vec3` [INFO] [stdout] | help: a struct with a similar name exists: `Vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vec3` [INFO] [stdout] --> src/main.rs:96:20 [INFO] [stdout] | [INFO] [stdout] 96 | let vertical = Vec3::new(0.0, 2.0, 0.0); [INFO] [stdout] | ^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of undeclared type `Vec3` [INFO] [stdout] | help: a struct with a similar name exists: `Vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vec3` [INFO] [stdout] --> src/main.rs:100:34 [INFO] [stdout] | [INFO] [stdout] 100 | let purple = Lambertian::new(Vec3::new(0.55, 0.0, 0.55)); [INFO] [stdout] | ^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of undeclared type `Vec3` [INFO] [stdout] | help: a struct with a similar name exists: `Vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vec3` [INFO] [stdout] --> src/main.rs:101:40 [INFO] [stdout] | [INFO] [stdout] 101 | let yellow_green = Lambertian::new(Vec3::new(0.8, 0.8, 0.0)); [INFO] [stdout] | ^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of undeclared type `Vec3` [INFO] [stdout] | help: a struct with a similar name exists: `Vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vec3` [INFO] [stdout] --> src/main.rs:102:34 [INFO] [stdout] | [INFO] [stdout] 102 | let shiny_metal = Metal::new(Vec3::new(0.8, 0.8, 0.8), 0.1); [INFO] [stdout] | ^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of undeclared type `Vec3` [INFO] [stdout] | help: a struct with a similar name exists: `Vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0689]: can't call method `sqrt` on ambiguous numeric type `{float}` [INFO] [stdout] --> src/sphere.rs:32:46 [INFO] [stdout] | [INFO] [stdout] 32 | let t_minus = (-b - discriminant.sqrt()) / (2.0 * a); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: you must specify a type for this binding, like `f32` [INFO] [stdout] | [INFO] [stdout] 28 | let discriminant: f32 = (b * b) - (4.0 * a * c); [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vec3` [INFO] [stdout] --> src/main.rs:103:33 [INFO] [stdout] | [INFO] [stdout] 103 | let dull_metal = Metal::new(Vec3::new(0.8, 0.8, 0.8), 1.0); [INFO] [stdout] | ^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of undeclared type `Vec3` [INFO] [stdout] | help: a struct with a similar name exists: `Vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:104:24 [INFO] [stdout] | [INFO] [stdout] 104 | let world: Vec> = vec![ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 104 | let world: Vec> = vec![ [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vec3` [INFO] [stdout] --> src/main.rs:106:13 [INFO] [stdout] | [INFO] [stdout] 106 | Vec3::new(0.0, -100.5, -1.0), [INFO] [stdout] | ^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of undeclared type `Vec3` [INFO] [stdout] | help: a struct with a similar name exists: `Vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vec3` [INFO] [stdout] --> src/main.rs:110:30 [INFO] [stdout] | [INFO] [stdout] 110 | Box::new(Sphere::new(Vec3::new(0.0, 0.0, -1.0), 0.5, &purple)), [INFO] [stdout] | ^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of undeclared type `Vec3` [INFO] [stdout] | help: a struct with a similar name exists: `Vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Scalar` in this scope [INFO] [stdout] --> src/sphere.rs:37:30 [INFO] [stdout] | [INFO] [stdout] 37 | let normal = Scalar(1.0 / self.radius) * (p - self.center); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vec3` [INFO] [stdout] --> src/main.rs:111:30 [INFO] [stdout] | [INFO] [stdout] 111 | Box::new(Sphere::new(Vec3::new(1.0, 0.0, -1.0), 0.5, &shiny_metal)), [INFO] [stdout] | ^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of undeclared type `Vec3` [INFO] [stdout] | help: a struct with a similar name exists: `Vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vec3` [INFO] [stdout] --> src/main.rs:112:30 [INFO] [stdout] | [INFO] [stdout] 112 | Box::new(Sphere::new(Vec3::new(-1.0, 0.0, -1.0), 0.5, &dull_metal)), [INFO] [stdout] | ^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of undeclared type `Vec3` [INFO] [stdout] | help: a struct with a similar name exists: `Vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Scalar` in this scope [INFO] [stdout] --> src/sphere.rs:45:30 [INFO] [stdout] | [INFO] [stdout] 45 | let normal = Scalar(1.0 / self.radius) * (p - self.center); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Scalar` in this scope [INFO] [stdout] --> src/camera.rs:23:52 [INFO] [stdout] | [INFO] [stdout] 23 | let direction = (self.lower_left_corner + (Scalar(u) * self.horizontal)) [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Scalar` in this scope [INFO] [stdout] --> src/camera.rs:24:17 [INFO] [stdout] | [INFO] [stdout] 24 | + ((Scalar(v) * self.vertical) - self.origin); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433, E0583, E0689. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Scalar` in this scope [INFO] [stdout] --> src/random.rs:15:6 [INFO] [stdout] | [INFO] [stdout] 15 | (Scalar(2.0) [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vec3` [INFO] [stdout] --> src/random.rs:16:11 [INFO] [stdout] | [INFO] [stdout] 16 | * Vec3::new( [INFO] [stdout] | ^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of undeclared type `Vec3` [INFO] [stdout] | help: a struct with a similar name exists: `Vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vec3` [INFO] [stdout] --> src/random.rs:20:14 [INFO] [stdout] | [INFO] [stdout] 20 | )) - Vec3::new(1.0, 1.0, 1.0) [INFO] [stdout] | ^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of undeclared type `Vec3` [INFO] [stdout] | help: a struct with a similar name exists: `Vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `dot` in this scope [INFO] [stdout] --> src/random.rs:25:11 [INFO] [stdout] | [INFO] [stdout] 25 | while dot(p, p) >= 1.0 { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `dot` in this scope [INFO] [stdout] --> src/material.rs:42:27 [INFO] [stdout] | [INFO] [stdout] 42 | v - (Scalar(2.0 * dot(v, n)) * n) [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Scalar` in this scope [INFO] [stdout] --> src/material.rs:42:14 [INFO] [stdout] | [INFO] [stdout] 42 | v - (Scalar(2.0 * dot(v, n)) * n) [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Scalar` in this scope [INFO] [stdout] --> src/material.rs:49:45 [INFO] [stdout] | [INFO] [stdout] 49 | let fuzzed_reflected = reflected + (Scalar(self.fuzz) * random_in_unit_sphere()); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `dot` in this scope [INFO] [stdout] --> src/material.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 51 | if dot(scattered_ray.direction, record.normal) > 0.0 { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vec3` [INFO] [stdout] --> src/main.rs:29:16 [INFO] [stdout] | [INFO] [stdout] 29 | return Vec3::new(0.0, 0.0, 0.0); [INFO] [stdout] | ^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of undeclared type `Vec3` [INFO] [stdout] | help: a struct with a similar name exists: `Vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vec3` [INFO] [stdout] --> src/main.rs:39:25 [INFO] [stdout] | [INFO] [stdout] 39 | None => Vec3::new(0.0, 0.0, 0.0), [INFO] [stdout] | ^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of undeclared type `Vec3` [INFO] [stdout] | help: a struct with a similar name exists: `Vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vec3` [INFO] [stdout] --> src/main.rs:45:25 [INFO] [stdout] | [INFO] [stdout] 45 | let white = Vec3::new(1.0, 1.0, 1.0); [INFO] [stdout] | ^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of undeclared type `Vec3` [INFO] [stdout] | help: a struct with a similar name exists: `Vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vec3` [INFO] [stdout] --> src/main.rs:46:24 [INFO] [stdout] | [INFO] [stdout] 46 | let blue = Vec3::new(0.5, 0.7, 1.0); [INFO] [stdout] | ^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of undeclared type `Vec3` [INFO] [stdout] | help: a struct with a similar name exists: `Vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Scalar` in this scope [INFO] [stdout] --> src/main.rs:48:14 [INFO] [stdout] | [INFO] [stdout] 48 | (Scalar(1.0 - t) * white) + (Scalar(t) * blue) [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Scalar` in this scope [INFO] [stdout] --> src/main.rs:48:42 [INFO] [stdout] | [INFO] [stdout] 48 | (Scalar(1.0 - t) * white) + (Scalar(t) * blue) [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vec3` [INFO] [stdout] --> src/main.rs:62:54 [INFO] [stdout] | [INFO] [stdout] 62 | let col_sum: Vec3 = (0..ns).fold(Vec3::new(0.0, 0.0, 0.0), |sum, _| { [INFO] [stdout] | ^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of undeclared type `Vec3` [INFO] [stdout] | help: a struct with a similar name exists: `Vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Scalar` in this scope [INFO] [stdout] --> src/main.rs:67:35 [INFO] [stdout] | [INFO] [stdout] 67 | let col_avg = Scalar(1.0 / (ns as f32)) * col_sum; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vec3` [INFO] [stdout] --> src/main.rs:70:31 [INFO] [stdout] | [INFO] [stdout] 70 | let col = Vec3::new(col_avg.x.sqrt(), col_avg.y.sqrt(), col_avg.z.sqrt()); [INFO] [stdout] | ^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of undeclared type `Vec3` [INFO] [stdout] | help: a struct with a similar name exists: `Vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `raytracer` (bin "raytracer" test) due to 63 previous errors; 14 warnings emitted [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vec3` [INFO] [stdout] --> src/main.rs:93:18 [INFO] [stdout] | [INFO] [stdout] 93 | let origin = Vec3::new(0.0, 0.0, 5.0); [INFO] [stdout] | ^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of undeclared type `Vec3` [INFO] [stdout] | help: a struct with a similar name exists: `Vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vec3` [INFO] [stdout] --> src/main.rs:94:29 [INFO] [stdout] | [INFO] [stdout] 94 | let lower_left_corner = Vec3::new(-2.0, -1.0, -1.0); [INFO] [stdout] | ^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of undeclared type `Vec3` [INFO] [stdout] | help: a struct with a similar name exists: `Vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `raytracer` (bin "raytracer") due to 63 previous errors; 14 warnings emitted [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vec3` [INFO] [stdout] --> src/main.rs:95:22 [INFO] [stdout] | [INFO] [stdout] 95 | let horizontal = Vec3::new(4.0, 0.0, 0.0); [INFO] [stdout] | ^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of undeclared type `Vec3` [INFO] [stdout] | help: a struct with a similar name exists: `Vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vec3` [INFO] [stdout] --> src/main.rs:96:20 [INFO] [stdout] | [INFO] [stdout] 96 | let vertical = Vec3::new(0.0, 2.0, 0.0); [INFO] [stdout] | ^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of undeclared type `Vec3` [INFO] [stdout] | help: a struct with a similar name exists: `Vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vec3` [INFO] [stdout] --> src/main.rs:100:34 [INFO] [stdout] | [INFO] [stdout] 100 | let purple = Lambertian::new(Vec3::new(0.55, 0.0, 0.55)); [INFO] [stdout] | ^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of undeclared type `Vec3` [INFO] [stdout] | help: a struct with a similar name exists: `Vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vec3` [INFO] [stdout] --> src/main.rs:101:40 [INFO] [stdout] | [INFO] [stdout] 101 | let yellow_green = Lambertian::new(Vec3::new(0.8, 0.8, 0.0)); [INFO] [stdout] | ^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of undeclared type `Vec3` [INFO] [stdout] | help: a struct with a similar name exists: `Vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vec3` [INFO] [stdout] --> src/main.rs:102:34 [INFO] [stdout] | [INFO] [stdout] 102 | let shiny_metal = Metal::new(Vec3::new(0.8, 0.8, 0.8), 0.1); [INFO] [stdout] | ^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of undeclared type `Vec3` [INFO] [stdout] | help: a struct with a similar name exists: `Vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vec3` [INFO] [stdout] --> src/main.rs:103:33 [INFO] [stdout] | [INFO] [stdout] 103 | let dull_metal = Metal::new(Vec3::new(0.8, 0.8, 0.8), 1.0); [INFO] [stdout] | ^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of undeclared type `Vec3` [INFO] [stdout] | help: a struct with a similar name exists: `Vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:104:24 [INFO] [stdout] | [INFO] [stdout] 104 | let world: Vec> = vec![ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 104 | let world: Vec> = vec![ [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vec3` [INFO] [stdout] --> src/main.rs:106:13 [INFO] [stdout] | [INFO] [stdout] 106 | Vec3::new(0.0, -100.5, -1.0), [INFO] [stdout] | ^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of undeclared type `Vec3` [INFO] [stdout] | help: a struct with a similar name exists: `Vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vec3` [INFO] [stdout] --> src/main.rs:110:30 [INFO] [stdout] | [INFO] [stdout] 110 | Box::new(Sphere::new(Vec3::new(0.0, 0.0, -1.0), 0.5, &purple)), [INFO] [stdout] | ^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of undeclared type `Vec3` [INFO] [stdout] | help: a struct with a similar name exists: `Vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vec3` [INFO] [stdout] --> src/main.rs:111:30 [INFO] [stdout] | [INFO] [stdout] 111 | Box::new(Sphere::new(Vec3::new(1.0, 0.0, -1.0), 0.5, &shiny_metal)), [INFO] [stdout] | ^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of undeclared type `Vec3` [INFO] [stdout] | help: a struct with a similar name exists: `Vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vec3` [INFO] [stdout] --> src/main.rs:112:30 [INFO] [stdout] | [INFO] [stdout] 112 | Box::new(Sphere::new(Vec3::new(-1.0, 0.0, -1.0), 0.5, &dull_metal)), [INFO] [stdout] | ^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of undeclared type `Vec3` [INFO] [stdout] | help: a struct with a similar name exists: `Vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433, E0583, E0689. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "1afd33576a2dc9167cd4c624b2b6e7bb8ed7a11149d67b3a2c6dbcb7eb4d3204", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1afd33576a2dc9167cd4c624b2b6e7bb8ed7a11149d67b3a2c6dbcb7eb4d3204", kill_on_drop: false }` [INFO] [stdout] 1afd33576a2dc9167cd4c624b2b6e7bb8ed7a11149d67b3a2c6dbcb7eb4d3204