[INFO] cloning repository https://github.com/finnegantdewitt/ray_tracing [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/finnegantdewitt/ray_tracing" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffinnegantdewitt%2Fray_tracing", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffinnegantdewitt%2Fray_tracing'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 8aab214119a136c481eeb9aa9efff06c9d911a23 [INFO] checking finnegantdewitt/ray_tracing against try#c659ee110de67e82444e4b6c8407c1a9af9c2cf6 for pr-145608-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffinnegantdewitt%2Fray_tracing" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/finnegantdewitt/ray_tracing [INFO] finished tweaking git repo https://github.com/finnegantdewitt/ray_tracing [INFO] tweaked toml for git repo https://github.com/finnegantdewitt/ray_tracing written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/finnegantdewitt/ray_tracing on toolchain c659ee110de67e82444e4b6c8407c1a9af9c2cf6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/finnegantdewitt/ray_tracing 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" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 98fbb7c0ecf1ff3bf85a779a54aa4fe12cb63348a98816efdb7ef6c6d172b7a5 [INFO] running `Command { std: "docker" "start" "-a" "98fbb7c0ecf1ff3bf85a779a54aa4fe12cb63348a98816efdb7ef6c6d172b7a5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "98fbb7c0ecf1ff3bf85a779a54aa4fe12cb63348a98816efdb7ef6c6d172b7a5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "98fbb7c0ecf1ff3bf85a779a54aa4fe12cb63348a98816efdb7ef6c6d172b7a5", kill_on_drop: false }` [INFO] [stdout] 98fbb7c0ecf1ff3bf85a779a54aa4fe12cb63348a98816efdb7ef6c6d172b7a5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 68a5308a944dc1dcb1942ec68fd421ceab484f45941c29afd96a7b6d205741d1 [INFO] running `Command { std: "docker" "start" "-a" "68a5308a944dc1dcb1942ec68fd421ceab484f45941c29afd96a7b6d205741d1", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.91 [INFO] [stderr] Compiling getrandom v0.2.2 [INFO] [stderr] Checking ppv-lite86 v0.2.10 [INFO] [stderr] Checking rand_core v0.6.2 [INFO] [stderr] Checking rand_chacha v0.3.0 [INFO] [stderr] Checking rand v0.8.3 [INFO] [stderr] Checking ray_tracing v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::utils::*` [INFO] [stdout] --> src/camera.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::utils::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `material::*` [INFO] [stdout] --> src/main.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | use material::*; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::utils::*` [INFO] [stdout] --> src/camera.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::utils::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `material::*` [INFO] [stdout] --> src/main.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | use material::*; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0038]: the trait `material::Material` is not dyn compatible [INFO] [stdout] --> src/hittable.rs:9:21 [INFO] [stdout] | [INFO] [stdout] 9 | pub mat_ptr: Rc, [INFO] [stdout] | ^^^^^^^^^^^^ `material::Material` is not dyn compatible [INFO] [stdout] | [INFO] [stdout] note: for a trait to be dyn compatible it needs to allow building a vtable [INFO] [stdout] for more information, visit [INFO] [stdout] --> src/material.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait Material { [INFO] [stdout] | -------- this trait is not dyn compatible... [INFO] [stdout] 6 | fn scatter(r_in: &Ray, rec: &HitRecord, attenuation: &Color, scattered: &Ray) -> bool; [INFO] [stdout] | ^^^^^^^ ...because associated function `scatter` has no `self` parameter [INFO] [stdout] = help: only type `material::Lambertian` implements `material::Material`; consider using it directly instead. [INFO] [stdout] help: consider turning `scatter` into a method by giving it a `&self` argument [INFO] [stdout] --> src/material.rs:6:16 [INFO] [stdout] | [INFO] [stdout] 6 | fn scatter(&self, r_in: &Ray, rec: &HitRecord, attenuation: &Color, scattered: &Ray) -> bool; [INFO] [stdout] | ++++++ [INFO] [stdout] help: alternatively, consider constraining `scatter` so it does not apply to trait objects [INFO] [stdout] --> src/material.rs:6:90 [INFO] [stdout] | [INFO] [stdout] 6 | fn scatter(r_in: &Ray, rec: &HitRecord, attenuation: &Color, scattered: &Ray) -> bool where Self: Sized; [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0185]: method `scatter` has a `&self` declaration in the impl, but not in the trait [INFO] [stdout] --> src/material.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 6 | fn scatter(r_in: &Ray, rec: &HitRecord, attenuation: &Color, scattered: &Ray) -> bool; [INFO] [stdout] | -------------------------------------------------------------------------------------- trait method declared without `&self` [INFO] [stdout] ... [INFO] [stdout] 20 | / fn scatter( [INFO] [stdout] 21 | | &self, [INFO] [stdout] 22 | | r_in: &Ray, [INFO] [stdout] 23 | | rec: &HitRecord, [INFO] [stdout] 24 | | attenuation: &mut Color, [INFO] [stdout] 25 | | scattered: &mut Ray, [INFO] [stdout] 26 | | ) -> bool { [INFO] [stdout] | |_____________^ `&self` used in impl [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0038]: the trait `material::Material` is not dyn compatible [INFO] [stdout] --> src/hittable.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Clone)] [INFO] [stdout] | ----- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 9 | pub mat_ptr: Rc, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `material::Material` is not dyn compatible [INFO] [stdout] | [INFO] [stdout] note: for a trait to be dyn compatible it needs to allow building a vtable [INFO] [stdout] for more information, visit [INFO] [stdout] --> src/material.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait Material { [INFO] [stdout] | -------- this trait is not dyn compatible... [INFO] [stdout] 6 | fn scatter(r_in: &Ray, rec: &HitRecord, attenuation: &Color, scattered: &Ray) -> bool; [INFO] [stdout] | ^^^^^^^ ...because associated function `scatter` has no `self` parameter [INFO] [stdout] = help: only type `material::Lambertian` implements `material::Material`; consider using it directly instead. [INFO] [stdout] help: consider turning `scatter` into a method by giving it a `&self` argument [INFO] [stdout] --> src/material.rs:6:16 [INFO] [stdout] | [INFO] [stdout] 6 | fn scatter(&self, r_in: &Ray, rec: &HitRecord, attenuation: &Color, scattered: &Ray) -> bool; [INFO] [stdout] | ++++++ [INFO] [stdout] help: alternatively, consider constraining `scatter` so it does not apply to trait objects [INFO] [stdout] --> src/material.rs:6:90 [INFO] [stdout] | [INFO] [stdout] 6 | fn scatter(r_in: &Ray, rec: &HitRecord, attenuation: &Color, scattered: &Ray) -> bool where Self: Sized; [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0038]: the trait `material::Material` is not dyn compatible [INFO] [stdout] --> src/hittable.rs:19:22 [INFO] [stdout] | [INFO] [stdout] 19 | mat_ptr: Rc::new(Lambertian::from(&Vec3::new())), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `material::Material` is not dyn compatible [INFO] [stdout] | [INFO] [stdout] note: for a trait to be dyn compatible it needs to allow building a vtable [INFO] [stdout] for more information, visit [INFO] [stdout] --> src/material.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait Material { [INFO] [stdout] | -------- this trait is not dyn compatible... [INFO] [stdout] 6 | fn scatter(r_in: &Ray, rec: &HitRecord, attenuation: &Color, scattered: &Ray) -> bool; [INFO] [stdout] | ^^^^^^^ ...because associated function `scatter` has no `self` parameter [INFO] [stdout] = help: only type `material::Lambertian` implements `material::Material`; consider using it directly instead. [INFO] [stdout] help: consider turning `scatter` into a method by giving it a `&self` argument [INFO] [stdout] --> src/material.rs:6:16 [INFO] [stdout] | [INFO] [stdout] 6 | fn scatter(&self, r_in: &Ray, rec: &HitRecord, attenuation: &Color, scattered: &Ray) -> bool; [INFO] [stdout] | ++++++ [INFO] [stdout] help: alternatively, consider constraining `scatter` so it does not apply to trait objects [INFO] [stdout] --> src/material.rs:6:90 [INFO] [stdout] | [INFO] [stdout] 6 | fn scatter(r_in: &Ray, rec: &HitRecord, attenuation: &Color, scattered: &Ray) -> bool where Self: Sized; [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0038]: the trait `material::Material` is not dyn compatible [INFO] [stdout] --> src/hittable.rs:9:21 [INFO] [stdout] | [INFO] [stdout] 9 | pub mat_ptr: Rc, [INFO] [stdout] | ^^^^^^^^^^^^ `material::Material` is not dyn compatible [INFO] [stdout] | [INFO] [stdout] note: for a trait to be dyn compatible it needs to allow building a vtable [INFO] [stdout] for more information, visit [INFO] [stdout] --> src/material.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait Material { [INFO] [stdout] | -------- this trait is not dyn compatible... [INFO] [stdout] 6 | fn scatter(r_in: &Ray, rec: &HitRecord, attenuation: &Color, scattered: &Ray) -> bool; [INFO] [stdout] | ^^^^^^^ ...because associated function `scatter` has no `self` parameter [INFO] [stdout] = help: only type `material::Lambertian` implements `material::Material`; consider using it directly instead. [INFO] [stdout] help: consider turning `scatter` into a method by giving it a `&self` argument [INFO] [stdout] --> src/material.rs:6:16 [INFO] [stdout] | [INFO] [stdout] 6 | fn scatter(&self, r_in: &Ray, rec: &HitRecord, attenuation: &Color, scattered: &Ray) -> bool; [INFO] [stdout] | ++++++ [INFO] [stdout] help: alternatively, consider constraining `scatter` so it does not apply to trait objects [INFO] [stdout] --> src/material.rs:6:90 [INFO] [stdout] | [INFO] [stdout] 6 | fn scatter(r_in: &Ray, rec: &HitRecord, attenuation: &Color, scattered: &Ray) -> bool where Self: Sized; [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0185]: method `scatter` has a `&self` declaration in the impl, but not in the trait [INFO] [stdout] --> src/material.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 6 | fn scatter(r_in: &Ray, rec: &HitRecord, attenuation: &Color, scattered: &Ray) -> bool; [INFO] [stdout] | -------------------------------------------------------------------------------------- trait method declared without `&self` [INFO] [stdout] ... [INFO] [stdout] 20 | / fn scatter( [INFO] [stdout] 21 | | &self, [INFO] [stdout] 22 | | r_in: &Ray, [INFO] [stdout] 23 | | rec: &HitRecord, [INFO] [stdout] 24 | | attenuation: &mut Color, [INFO] [stdout] 25 | | scattered: &mut Ray, [INFO] [stdout] 26 | | ) -> bool { [INFO] [stdout] | |_____________^ `&self` used in impl [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0038]: the trait `material::Material` is not dyn compatible [INFO] [stdout] --> src/hittable.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Clone)] [INFO] [stdout] | ----- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 9 | pub mat_ptr: Rc, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `material::Material` is not dyn compatible [INFO] [stdout] | [INFO] [stdout] note: for a trait to be dyn compatible it needs to allow building a vtable [INFO] [stdout] for more information, visit [INFO] [stdout] --> src/material.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait Material { [INFO] [stdout] | -------- this trait is not dyn compatible... [INFO] [stdout] 6 | fn scatter(r_in: &Ray, rec: &HitRecord, attenuation: &Color, scattered: &Ray) -> bool; [INFO] [stdout] | ^^^^^^^ ...because associated function `scatter` has no `self` parameter [INFO] [stdout] = help: only type `material::Lambertian` implements `material::Material`; consider using it directly instead. [INFO] [stdout] help: consider turning `scatter` into a method by giving it a `&self` argument [INFO] [stdout] --> src/material.rs:6:16 [INFO] [stdout] | [INFO] [stdout] 6 | fn scatter(&self, r_in: &Ray, rec: &HitRecord, attenuation: &Color, scattered: &Ray) -> bool; [INFO] [stdout] | ++++++ [INFO] [stdout] help: alternatively, consider constraining `scatter` so it does not apply to trait objects [INFO] [stdout] --> src/material.rs:6:90 [INFO] [stdout] | [INFO] [stdout] 6 | fn scatter(r_in: &Ray, rec: &HitRecord, attenuation: &Color, scattered: &Ray) -> bool where Self: Sized; [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0038]: the trait `material::Material` is not dyn compatible [INFO] [stdout] --> src/hittable.rs:19:22 [INFO] [stdout] | [INFO] [stdout] 19 | mat_ptr: Rc::new(Lambertian::from(&Vec3::new())), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `material::Material` is not dyn compatible [INFO] [stdout] | [INFO] [stdout] note: for a trait to be dyn compatible it needs to allow building a vtable [INFO] [stdout] for more information, visit [INFO] [stdout] --> src/material.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait Material { [INFO] [stdout] | -------- this trait is not dyn compatible... [INFO] [stdout] 6 | fn scatter(r_in: &Ray, rec: &HitRecord, attenuation: &Color, scattered: &Ray) -> bool; [INFO] [stdout] | ^^^^^^^ ...because associated function `scatter` has no `self` parameter [INFO] [stdout] = help: only type `material::Lambertian` implements `material::Material`; consider using it directly instead. [INFO] [stdout] help: consider turning `scatter` into a method by giving it a `&self` argument [INFO] [stdout] --> src/material.rs:6:16 [INFO] [stdout] | [INFO] [stdout] 6 | fn scatter(&self, r_in: &Ray, rec: &HitRecord, attenuation: &Color, scattered: &Ray) -> bool; [INFO] [stdout] | ++++++ [INFO] [stdout] help: alternatively, consider constraining `scatter` so it does not apply to trait objects [INFO] [stdout] --> src/material.rs:6:90 [INFO] [stdout] | [INFO] [stdout] 6 | fn scatter(r_in: &Ray, rec: &HitRecord, attenuation: &Color, scattered: &Ray) -> bool where Self: Sized; [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/material.rs:15:24 [INFO] [stdout] | [INFO] [stdout] 15 | Self { albedo: a } [INFO] [stdout] | ^ expected `Vec3`, found `&Vec3` [INFO] [stdout] | [INFO] [stdout] help: consider dereferencing the borrow [INFO] [stdout] | [INFO] [stdout] 15 | Self { albedo: *a } [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: arguments to this function are incorrect [INFO] [stdout] --> src/material.rs:28:21 [INFO] [stdout] | [INFO] [stdout] 28 | scattered = Ray::from(rec.p, scatter_direction); [INFO] [stdout] | ^^^^^^^^^ ----- ----------------- expected `&Vec3`, found `Vec3` [INFO] [stdout] | | [INFO] [stdout] | expected `&Vec3`, found `Vec3` [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/ray.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn from(origin: &Point3, direction: &Vec3) -> Self { [INFO] [stdout] | ^^^^ --------------- ---------------- [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 28 | scattered = Ray::from(&rec.p, scatter_direction); [INFO] [stdout] | + [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 28 | scattered = Ray::from(rec.p, &scatter_direction); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/material.rs:15:24 [INFO] [stdout] | [INFO] [stdout] 15 | Self { albedo: a } [INFO] [stdout] | ^ expected `Vec3`, found `&Vec3` [INFO] [stdout] | [INFO] [stdout] help: consider dereferencing the borrow [INFO] [stdout] | [INFO] [stdout] 15 | Self { albedo: *a } [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: arguments to this function are incorrect [INFO] [stdout] --> src/material.rs:28:21 [INFO] [stdout] | [INFO] [stdout] 28 | scattered = Ray::from(rec.p, scatter_direction); [INFO] [stdout] | ^^^^^^^^^ ----- ----------------- expected `&Vec3`, found `Vec3` [INFO] [stdout] | | [INFO] [stdout] | expected `&Vec3`, found `Vec3` [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/ray.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn from(origin: &Point3, direction: &Vec3) -> Self { [INFO] [stdout] | ^^^^ --------------- ---------------- [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 28 | scattered = Ray::from(&rec.p, scatter_direction); [INFO] [stdout] | + [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 28 | scattered = Ray::from(rec.p, &scatter_direction); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/material.rs:28:21 [INFO] [stdout] | [INFO] [stdout] 25 | scattered: &mut Ray, [INFO] [stdout] | -------- expected due to this parameter type [INFO] [stdout] ... [INFO] [stdout] 28 | scattered = Ray::from(rec.p, scatter_direction); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `&mut Ray`, found `Ray` [INFO] [stdout] | [INFO] [stdout] help: consider dereferencing here to assign to the mutably borrowed value [INFO] [stdout] | [INFO] [stdout] 28 | *scattered = Ray::from(rec.p, scatter_direction); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/material.rs:28:21 [INFO] [stdout] | [INFO] [stdout] 25 | scattered: &mut Ray, [INFO] [stdout] | -------- expected due to this parameter type [INFO] [stdout] ... [INFO] [stdout] 28 | scattered = Ray::from(rec.p, scatter_direction); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `&mut Ray`, found `Ray` [INFO] [stdout] | [INFO] [stdout] help: consider dereferencing here to assign to the mutably borrowed value [INFO] [stdout] | [INFO] [stdout] 28 | *scattered = Ray::from(rec.p, scatter_direction); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/material.rs:29:23 [INFO] [stdout] | [INFO] [stdout] 24 | attenuation: &mut Color, [INFO] [stdout] | ---------- expected due to this parameter type [INFO] [stdout] ... [INFO] [stdout] 29 | attenuation = self.albedo; [INFO] [stdout] | ^^^^^^^^^^^ expected `&mut Vec3`, found `Vec3` [INFO] [stdout] | [INFO] [stdout] help: consider dereferencing here to assign to the mutably borrowed value [INFO] [stdout] | [INFO] [stdout] 29 | *attenuation = self.albedo; [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/material.rs:29:23 [INFO] [stdout] | [INFO] [stdout] 24 | attenuation: &mut Color, [INFO] [stdout] | ---------- expected due to this parameter type [INFO] [stdout] ... [INFO] [stdout] 29 | attenuation = self.albedo; [INFO] [stdout] | ^^^^^^^^^^^ expected `&mut Vec3`, found `Vec3` [INFO] [stdout] | [INFO] [stdout] help: consider dereferencing here to assign to the mutably borrowed value [INFO] [stdout] | [INFO] [stdout] 29 | *attenuation = self.albedo; [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0038, E0185, E0308. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0038, E0185, E0308. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0038`. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0038`. [INFO] [stdout] [INFO] [stderr] error: could not compile `ray_tracing` (bin "ray_tracing" test) due to 8 previous errors; 2 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `ray_tracing` (bin "ray_tracing") due to 8 previous errors; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "68a5308a944dc1dcb1942ec68fd421ceab484f45941c29afd96a7b6d205741d1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "68a5308a944dc1dcb1942ec68fd421ceab484f45941c29afd96a7b6d205741d1", kill_on_drop: false }` [INFO] [stdout] 68a5308a944dc1dcb1942ec68fd421ceab484f45941c29afd96a7b6d205741d1