[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/8aab214119a136c481eeb9aa9efff06c9d911a23 against master#ff1737bb00913444173658b4e0b274fd79aabf66 for pr-132712-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffinnegantdewitt%2Fray_tracing" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/finnegantdewitt/ray_tracing on toolchain ff1737bb00913444173658b4e0b274fd79aabf66 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ff1737bb00913444173658b4e0b274fd79aabf66" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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-3-tc1/source/Cargo.toml [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" "+ff1737bb00913444173658b4e0b274fd79aabf66" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded libc v0.2.91 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+ff1737bb00913444173658b4e0b274fd79aabf66" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 162eee28e59244196ac4cb21329cda8ca61a724d6185e17ddbb51437827e26ba [INFO] running `Command { std: "docker" "start" "-a" "162eee28e59244196ac4cb21329cda8ca61a724d6185e17ddbb51437827e26ba", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "162eee28e59244196ac4cb21329cda8ca61a724d6185e17ddbb51437827e26ba", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "162eee28e59244196ac4cb21329cda8ca61a724d6185e17ddbb51437827e26ba", kill_on_drop: false }` [INFO] [stdout] 162eee28e59244196ac4cb21329cda8ca61a724d6185e17ddbb51437827e26ba [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=allow" "-e" "RUSTDOCFLAGS=--cap-lints=allow" "-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:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+ff1737bb00913444173658b4e0b274fd79aabf66" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 921a38fc194c131c6f0148ce41a138cde8aec9eed0556fba77960cf87d5c1673 [INFO] running `Command { std: "docker" "start" "-a" "921a38fc194c131c6f0148ce41a138cde8aec9eed0556fba77960cf87d5c1673", 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] error[E0038]: the trait `material::Material` cannot be made into an object [INFO] [stdout] --> src/hittable.rs:9:21 [INFO] [stdout] | [INFO] [stdout] 9 | pub mat_ptr: Rc, [INFO] [stdout] | ^^^^^^^^^^^^ `material::Material` cannot be made into an object [INFO] [stdout] | [INFO] [stdout] note: for a trait to be "dyn-compatible" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit [INFO] [stdout] --> src/material.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait Material { [INFO] [stdout] | -------- this trait cannot be made into an object... [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 the trait, 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` cannot be made into an object [INFO] [stdout] --> src/hittable.rs:9:21 [INFO] [stdout] | [INFO] [stdout] 9 | pub mat_ptr: Rc, [INFO] [stdout] | ^^^^^^^^^^^^ `material::Material` cannot be made into an object [INFO] [stdout] | [INFO] [stdout] note: for a trait to be "dyn-compatible" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit [INFO] [stdout] --> src/material.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait Material { [INFO] [stdout] | -------- this trait cannot be made into an object... [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 the trait, 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[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` cannot be made into an object [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` cannot be made into an object [INFO] [stdout] | [INFO] [stdout] note: for a trait to be "dyn-compatible" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit [INFO] [stdout] --> src/material.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait Material { [INFO] [stdout] | -------- this trait cannot be made into an object... [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 the trait, consider using it directly instead [INFO] [stdout] = note: this error originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [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` cannot be made into an object [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` cannot be made into an object [INFO] [stdout] | [INFO] [stdout] note: for a trait to be "dyn-compatible" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit [INFO] [stdout] --> src/material.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait Material { [INFO] [stdout] | -------- this trait cannot be made into an object... [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 the trait, consider using it directly instead [INFO] [stdout] = note: this error originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [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` cannot be made into an object [INFO] [stdout] --> src/hittable.rs:19:22 [INFO] [stdout] | [INFO] [stdout] 19 | mat_ptr: Rc::new(Lambertian::from(&Vec3::new())), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `material::Material` cannot be made into an object [INFO] [stdout] | [INFO] [stdout] note: for a trait to be "dyn-compatible" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit [INFO] [stdout] --> src/material.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait Material { [INFO] [stdout] | -------- this trait cannot be made into an object... [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 the trait, 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` cannot be made into an object [INFO] [stdout] --> src/hittable.rs:19:22 [INFO] [stdout] | [INFO] [stdout] 19 | mat_ptr: Rc::new(Lambertian::from(&Vec3::new())), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `material::Material` cannot be made into an object [INFO] [stdout] | [INFO] [stdout] note: for a trait to be "dyn-compatible" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit [INFO] [stdout] --> src/material.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait Material { [INFO] [stdout] | -------- this trait cannot be made into an object... [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 the trait, consider using it directly instead [INFO] [stdout] = note: required for the cast from `Rc` to `Rc<(dyn material::Material + 'static)>` [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` cannot be made into an object [INFO] [stdout] --> src/hittable.rs:19:22 [INFO] [stdout] | [INFO] [stdout] 19 | mat_ptr: Rc::new(Lambertian::from(&Vec3::new())), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `material::Material` cannot be made into an object [INFO] [stdout] | [INFO] [stdout] note: for a trait to be "dyn-compatible" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit [INFO] [stdout] --> src/material.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait Material { [INFO] [stdout] | -------- this trait cannot be made into an object... [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 the trait, 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` cannot be made into an object [INFO] [stdout] --> src/hittable.rs:19:22 [INFO] [stdout] | [INFO] [stdout] 19 | mat_ptr: Rc::new(Lambertian::from(&Vec3::new())), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `material::Material` cannot be made into an object [INFO] [stdout] | [INFO] [stdout] note: for a trait to be "dyn-compatible" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit [INFO] [stdout] --> src/material.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait Material { [INFO] [stdout] | -------- this trait cannot be made into an object... [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 the trait, consider using it directly instead [INFO] [stdout] = note: required for the cast from `Rc` to `Rc<(dyn material::Material + 'static)>` [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]: 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]: 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] For more information about an error, try `rustc --explain E0038`. [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] [stderr] error: could not compile `ray_tracing` (bin "ray_tracing" test) due to 9 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `ray_tracing` (bin "ray_tracing") due to 9 previous errors [INFO] running `Command { std: "docker" "inspect" "921a38fc194c131c6f0148ce41a138cde8aec9eed0556fba77960cf87d5c1673", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "921a38fc194c131c6f0148ce41a138cde8aec9eed0556fba77960cf87d5c1673", kill_on_drop: false }` [INFO] [stdout] 921a38fc194c131c6f0148ce41a138cde8aec9eed0556fba77960cf87d5c1673