[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#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftrcoffman%2Fraytrace" "/workspace/builds/worker-8/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-8/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/trcoffman/raytrace on toolchain 8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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-8/source/Cargo.toml [INFO] crate git repo https://github.com/trcoffman/raytrace already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded deque v0.3.1 [INFO] [stderr] Downloaded num_cpus v1.2.1 [INFO] [stderr] Downloaded rayon v0.6.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3e80b783bbadce5b8d8ed2940df4ab0e5a57d297018b066e4d167b0432f229e8 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "3e80b783bbadce5b8d8ed2940df4ab0e5a57d297018b066e4d167b0432f229e8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3e80b783bbadce5b8d8ed2940df4ab0e5a57d297018b066e4d167b0432f229e8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3e80b783bbadce5b8d8ed2940df4ab0e5a57d297018b066e4d167b0432f229e8", kill_on_drop: false }` [INFO] [stdout] 3e80b783bbadce5b8d8ed2940df4ab0e5a57d297018b066e4d167b0432f229e8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e8b35091976af65a15dfb1fa5b18ef968f9d2996d76e02ada7e489e71b0647ad [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "e8b35091976af65a15dfb1fa5b18ef968f9d2996d76e02ada7e489e71b0647ad", kill_on_drop: false }` [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" [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" [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `vec3::Vec3` [INFO] [stdout] --> src/ray.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use vec3::Vec3; [INFO] [stdout] | ^^^^^^^^^^ no `Vec3` in `vec3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `vec3::Scalar` [INFO] [stdout] --> src/ray.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use vec3::Scalar; [INFO] [stdout] | ^^^^^^^^^^^^ no `Scalar` in `vec3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `vec3::Vec3` [INFO] [stdout] --> src/hitable.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use vec3::Vec3; [INFO] [stdout] | ^^^^^^^^^^ no `Vec3` in `vec3` [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] | ^^^^ use of undeclared type `Vec3` [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] | ^^^^ use of undeclared type `Vec3` [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] | ^^^^ use of undeclared type `Vec3` [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] | ^^^^ use of undeclared type `Vec3` [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] | ^^^^ use of undeclared type `Vec3` [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] | ^^^^ use of undeclared type `Vec3` [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] | ^^^^ use of undeclared type `Vec3` [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] | ^^^^ use of undeclared type `Vec3` [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] | ^^^^ use of undeclared type `Vec3` [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] | ^^^^ use of undeclared type `Vec3` [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] | ^^^^ use of undeclared type `Vec3` [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] | ^^^^ use of undeclared type `Vec3` [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] | ^^^^ use of undeclared type `Vec3` [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] | ^^^^ use of undeclared type `Vec3` [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] | ^^^^ use of undeclared type `Vec3` [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] | ^^^^ use of undeclared type `Vec3` [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] | ^^^^ use of undeclared type `Vec3` [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] | ^^^^ use of undeclared type `Vec3` [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] | ^^^^ use of undeclared type `Vec3` [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] | ^^^^ use of undeclared type `Vec3` [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] [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] [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[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] 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] [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] [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] [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] [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] [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] [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] [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] [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] 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] [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[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] [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[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] help: a struct with a similar name exists [INFO] [stdout] | [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] [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] [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] help: a struct with a similar name exists [INFO] [stdout] | [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] [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] [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] [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] [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] [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 `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[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] help: a struct with a similar name exists [INFO] [stdout] | [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[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[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] [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] [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[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] [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[E0432]: unresolved import `vec3::Vec3` [INFO] [stdout] --> src/ray.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use vec3::Vec3; [INFO] [stdout] | ^^^^^^^^^^ no `Vec3` in `vec3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `vec3::Scalar` [INFO] [stdout] --> src/ray.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use vec3::Scalar; [INFO] [stdout] | ^^^^^^^^^^^^ no `Scalar` in `vec3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `vec3::Vec3` [INFO] [stdout] --> src/hitable.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use vec3::Vec3; [INFO] [stdout] | ^^^^^^^^^^ no `Vec3` in `vec3` [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)]` on by default [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] | ^^^^^^^^ help: use `dyn`: `dyn Material` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [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] | ^^^^^^^^ help: use `dyn`: `dyn Material` [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] | ^^^^^^^^ help: use `dyn`: `dyn Material` [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] | ^^^^^^^^ help: use `dyn`: `dyn Material` [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] | ^^^^^^^^^^^^ help: use `dyn`: `dyn Hitable + 'c` [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/main.rs:23:29 [INFO] [stdout] | [INFO] [stdout] 23 | fn color(ray: &Ray, world: &Hitable) -> Vec3 { [INFO] [stdout] | ^^^^^^^ help: use `dyn`: `dyn Hitable` [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] | ^^^^^^^ help: use `dyn`: `dyn Hitable` [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] | ^^^^^^^ help: use `dyn`: `dyn Hitable` [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] | ^^^^^^^ help: use `dyn`: `dyn Hitable` [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] | ^^^^ use of undeclared type `Vec3` [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] | ^^^^ use of undeclared type `Vec3` [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] | ^^^^ use of undeclared type `Vec3` [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] | ^^^^ use of undeclared type `Vec3` [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] | ^^^^ use of undeclared type `Vec3` [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] | ^^^^ use of undeclared type `Vec3` [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] | ^^^^ use of undeclared type `Vec3` [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] | ^^^^ use of undeclared type `Vec3` [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] | ^^^^ use of undeclared type `Vec3` [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] | ^^^^ use of undeclared type `Vec3` [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] | ^^^^ use of undeclared type `Vec3` [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] | ^^^^ use of undeclared type `Vec3` [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] | ^^^^ use of undeclared type `Vec3` [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] | ^^^^ use of undeclared type `Vec3` [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] | ^^^^ use of undeclared type `Vec3` [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] | ^^^^ use of undeclared type `Vec3` [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] | ^^^^ use of undeclared type `Vec3` [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] | ^^^^ use of undeclared type `Vec3` [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] | ^^^^ use of undeclared type `Vec3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 65 previous errors; 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0432, E0433, E0583. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [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] | ^^^^ use of undeclared type `Vec3` [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] [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] [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[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] 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] [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] [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] [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] [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] [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] [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] [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] [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] 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] [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[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] [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[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] help: a struct with a similar name exists [INFO] [stdout] | [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] [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] [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] help: a struct with a similar name exists [INFO] [stdout] | [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] [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] [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] [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] [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] [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 `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[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] help: a struct with a similar name exists [INFO] [stdout] | [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[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[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] [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] [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[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] [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] 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)]` on by default [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] | ^^^^^^^^ help: use `dyn`: `dyn Material` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [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] | ^^^^^^^^ help: use `dyn`: `dyn Material` [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] | ^^^^^^^^ help: use `dyn`: `dyn Material` [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] | ^^^^^^^^ help: use `dyn`: `dyn Material` [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] | ^^^^^^^^^^^^ help: use `dyn`: `dyn Hitable + 'c` [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/main.rs:23:29 [INFO] [stdout] | [INFO] [stdout] 23 | fn color(ray: &Ray, world: &Hitable) -> Vec3 { [INFO] [stdout] | ^^^^^^^ help: use `dyn`: `dyn Hitable` [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] | ^^^^^^^ help: use `dyn`: `dyn Hitable` [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] | ^^^^^^^ help: use `dyn`: `dyn Hitable` [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] | ^^^^^^^ help: use `dyn`: `dyn Hitable` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `raytracer` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 65 previous errors; 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0432, E0433, E0583. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "e8b35091976af65a15dfb1fa5b18ef968f9d2996d76e02ada7e489e71b0647ad", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e8b35091976af65a15dfb1fa5b18ef968f9d2996d76e02ada7e489e71b0647ad", kill_on_drop: false }` [INFO] [stdout] e8b35091976af65a15dfb1fa5b18ef968f9d2996d76e02ada7e489e71b0647ad