[INFO] cloning repository https://github.com/jlndk/rust-raytracer [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jlndk/rust-raytracer" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjlndk%2Frust-raytracer", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjlndk%2Frust-raytracer'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4271cb4aff825f4196e5f497820b938f0716d92c [INFO] testing jlndk/rust-raytracer against try#8de4c7234dd9b97c9d76b58671343fdbbc9a433e+target=x86_64-unknown-linux-musl for musl_upgrade_1_2_5_with_getrandom_patch_2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjlndk%2Frust-raytracer" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/jlndk/rust-raytracer [INFO] finished tweaking git repo https://github.com/jlndk/rust-raytracer [INFO] tweaked toml for git repo https://github.com/jlndk/rust-raytracer written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/jlndk/rust-raytracer on toolchain 8de4c7234dd9b97c9d76b58671343fdbbc9a433e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/jlndk/rust-raytracer 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" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded term-table v1.3.2 [INFO] [stderr] Downloaded either v1.7.0 [INFO] [stderr] Downloaded console v0.15.1 [INFO] [stderr] Downloaded indicatif v0.17.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 55268a289152a9e7000c74298d9cf0a5f25cae9bcd3fbc0ed96402182bf48c92 [INFO] running `Command { std: "docker" "start" "-a" "55268a289152a9e7000c74298d9cf0a5f25cae9bcd3fbc0ed96402182bf48c92", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "55268a289152a9e7000c74298d9cf0a5f25cae9bcd3fbc0ed96402182bf48c92", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "55268a289152a9e7000c74298d9cf0a5f25cae9bcd3fbc0ed96402182bf48c92", kill_on_drop: false }` [INFO] [stdout] 55268a289152a9e7000c74298d9cf0a5f25cae9bcd3fbc0ed96402182bf48c92 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "build" "--frozen" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] be4bd403163aa44ae5acdc1f691cdc4a938eb4d2b3ad411e20de570be6fd9783 [INFO] running `Command { std: "docker" "start" "-a" "be4bd403163aa44ae5acdc1f691cdc4a938eb4d2b3ad411e20de570be6fd9783", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.127 [INFO] [stderr] Compiling once_cell v1.13.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.11 [INFO] [stderr] Compiling rayon-core v1.9.3 [INFO] [stderr] Compiling crossbeam-epoch v0.9.10 [INFO] [stderr] Compiling rayon v1.5.3 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling either v1.7.0 [INFO] [stderr] Compiling regex-syntax v0.6.27 [INFO] [stderr] Compiling number_prefix v0.4.0 [INFO] [stderr] Compiling glam v0.21.3 [INFO] [stderr] Compiling crossbeam-channel v0.5.6 [INFO] [stderr] Compiling crossbeam-deque v0.8.2 [INFO] [stderr] Compiling getrandom v0.2.7 [INFO] [stderr] Compiling num_cpus v1.13.1 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling terminal_size v0.1.17 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling console v0.15.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling regex v1.6.0 [INFO] [stderr] Compiling term-table v1.3.2 [INFO] [stderr] Compiling indicatif v0.17.0 [INFO] [stderr] Compiling raytracer_rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around match arm expression [INFO] [stdout] --> src/material.rs:116:21 [INFO] [stdout] | [INFO] [stdout] 116 | true => (1.0 / self.index_of_refraction), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 116 - true => (1.0 / self.index_of_refraction), [INFO] [stdout] 116 + true => 1.0 / self.index_of_refraction, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ray_in` [INFO] [stdout] --> src/material.rs:155:23 [INFO] [stdout] | [INFO] [stdout] 155 | fn scatter(&self, ray_in: &Ray, hit_record: &HitRecord) -> Option { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_ray_in` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hit_record` [INFO] [stdout] --> src/material.rs:155:37 [INFO] [stdout] | [INFO] [stdout] 155 | fn scatter(&self, ray_in: &Ray, hit_record: &HitRecord) -> Option { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hit_record` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `front_face` is never read [INFO] [stdout] --> src/hittable.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct HitRecord<'a> { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 12 | pub front_face: bool, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Metal` is never constructed [INFO] [stdout] --> src/material.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 57 | pub struct Metal { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/material.rs:63:18 [INFO] [stdout] | [INFO] [stdout] 62 | impl Metal { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 63 | pub const fn new(albedo: Vec3, fuzz: f32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Dielectric` is never constructed [INFO] [stdout] --> src/material.rs:90:12 [INFO] [stdout] | [INFO] [stdout] 90 | pub struct Dielectric { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new` and `reflectance` are never used [INFO] [stdout] --> src/material.rs:95:18 [INFO] [stdout] | [INFO] [stdout] 94 | impl Dielectric { [INFO] [stdout] | --------------- associated functions in this implementation [INFO] [stdout] 95 | pub const fn new(index_of_refraction: f32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | fn reflectance(cosine: f32, ref_idx: f32) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `random_scene` is never used [INFO] [stdout] --> src/scene.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn random_scene() -> Scene { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `random_spheres` is never used [INFO] [stdout] --> src/scene.rs:128:8 [INFO] [stdout] | [INFO] [stdout] 128 | pub fn random_spheres() -> Scene { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `glowing_sphere` is never used [INFO] [stdout] --> src/scene.rs:302:8 [INFO] [stdout] | [INFO] [stdout] 302 | pub fn glowing_sphere() -> Scene { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `rand`, `reflect_in`, and `refract_off` are never used [INFO] [stdout] --> src/vec3.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub trait Vec3Extension { [INFO] [stdout] | ------------- associated items in this trait [INFO] [stdout] 5 | fn rand() -> Vec3; [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 11 | fn reflect_in(self, n: Vec3) -> Vec3; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 12 | fn refract_off(self, n: Vec3, etai_over_etat: f32) -> Vec3; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/hittable.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 47 | fn hit(&self, ray: &Ray, t_min: f32, t_max: f32) -> Option; [INFO] [stdout] | ^^^^^ this lifetime flows to the output --------- the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 47 | fn hit(&self, ray: &Ray, t_min: f32, t_max: f32) -> Option>; [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/hittable_list.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | fn hit(&self, ray: &Ray, t_min: f32, t_max: f32) -> Option { [INFO] [stdout] | ^^^^^ this lifetime flows to the output --------- the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 10 | fn hit(&self, ray: &Ray, t_min: f32, t_max: f32) -> Option> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/rect.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | fn hit(&self, ray: &Ray, t_min: f32, t_max: f32) -> Option { [INFO] [stdout] | ^^^^^ this lifetime flows to the output --------- the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 35 | fn hit(&self, ray: &Ray, t_min: f32, t_max: f32) -> Option> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/sphere.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | fn hit(&self, ray: &Ray, t_min: f32, t_max: f32) -> Option { [INFO] [stdout] | ^^^^^ this lifetime flows to the output --------- the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 20 | fn hit(&self, ray: &Ray, t_min: f32, t_max: f32) -> Option> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 21.04s [INFO] running `Command { std: "docker" "inspect" "be4bd403163aa44ae5acdc1f691cdc4a938eb4d2b3ad411e20de570be6fd9783", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "be4bd403163aa44ae5acdc1f691cdc4a938eb4d2b3ad411e20de570be6fd9783", kill_on_drop: false }` [INFO] [stdout] be4bd403163aa44ae5acdc1f691cdc4a938eb4d2b3ad411e20de570be6fd9783 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--no-run" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] c86a3feba11f0b19028ccaacd4293896af1f3c137a325bdfab544f00b1d69003 [INFO] running `Command { std: "docker" "start" "-a" "c86a3feba11f0b19028ccaacd4293896af1f3c137a325bdfab544f00b1d69003", kill_on_drop: false }` [INFO] [stderr] Compiling raytracer_rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around match arm expression [INFO] [stdout] --> src/material.rs:116:21 [INFO] [stdout] | [INFO] [stdout] 116 | true => (1.0 / self.index_of_refraction), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 116 - true => (1.0 / self.index_of_refraction), [INFO] [stdout] 116 + true => 1.0 / self.index_of_refraction, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ray_in` [INFO] [stdout] --> src/material.rs:155:23 [INFO] [stdout] | [INFO] [stdout] 155 | fn scatter(&self, ray_in: &Ray, hit_record: &HitRecord) -> Option { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_ray_in` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hit_record` [INFO] [stdout] --> src/material.rs:155:37 [INFO] [stdout] | [INFO] [stdout] 155 | fn scatter(&self, ray_in: &Ray, hit_record: &HitRecord) -> Option { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hit_record` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `front_face` is never read [INFO] [stdout] --> src/hittable.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct HitRecord<'a> { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 12 | pub front_face: bool, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Metal` is never constructed [INFO] [stdout] --> src/material.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 57 | pub struct Metal { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/material.rs:63:18 [INFO] [stdout] | [INFO] [stdout] 62 | impl Metal { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 63 | pub const fn new(albedo: Vec3, fuzz: f32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Dielectric` is never constructed [INFO] [stdout] --> src/material.rs:90:12 [INFO] [stdout] | [INFO] [stdout] 90 | pub struct Dielectric { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new` and `reflectance` are never used [INFO] [stdout] --> src/material.rs:95:18 [INFO] [stdout] | [INFO] [stdout] 94 | impl Dielectric { [INFO] [stdout] | --------------- associated functions in this implementation [INFO] [stdout] 95 | pub const fn new(index_of_refraction: f32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | fn reflectance(cosine: f32, ref_idx: f32) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `random_scene` is never used [INFO] [stdout] --> src/scene.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn random_scene() -> Scene { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `random_spheres` is never used [INFO] [stdout] --> src/scene.rs:128:8 [INFO] [stdout] | [INFO] [stdout] 128 | pub fn random_spheres() -> Scene { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `glowing_sphere` is never used [INFO] [stdout] --> src/scene.rs:302:8 [INFO] [stdout] | [INFO] [stdout] 302 | pub fn glowing_sphere() -> Scene { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `rand`, `reflect_in`, and `refract_off` are never used [INFO] [stdout] --> src/vec3.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub trait Vec3Extension { [INFO] [stdout] | ------------- associated items in this trait [INFO] [stdout] 5 | fn rand() -> Vec3; [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 11 | fn reflect_in(self, n: Vec3) -> Vec3; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 12 | fn refract_off(self, n: Vec3, etai_over_etat: f32) -> Vec3; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/hittable.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 47 | fn hit(&self, ray: &Ray, t_min: f32, t_max: f32) -> Option; [INFO] [stdout] | ^^^^^ this lifetime flows to the output --------- the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 47 | fn hit(&self, ray: &Ray, t_min: f32, t_max: f32) -> Option>; [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/hittable_list.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | fn hit(&self, ray: &Ray, t_min: f32, t_max: f32) -> Option { [INFO] [stdout] | ^^^^^ this lifetime flows to the output --------- the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 10 | fn hit(&self, ray: &Ray, t_min: f32, t_max: f32) -> Option> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/rect.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | fn hit(&self, ray: &Ray, t_min: f32, t_max: f32) -> Option { [INFO] [stdout] | ^^^^^ this lifetime flows to the output --------- the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 35 | fn hit(&self, ray: &Ray, t_min: f32, t_max: f32) -> Option> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/sphere.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | fn hit(&self, ray: &Ray, t_min: f32, t_max: f32) -> Option { [INFO] [stdout] | ^^^^^ this lifetime flows to the output --------- the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 20 | fn hit(&self, ray: &Ray, t_min: f32, t_max: f32) -> Option> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.68s [INFO] running `Command { std: "docker" "inspect" "c86a3feba11f0b19028ccaacd4293896af1f3c137a325bdfab544f00b1d69003", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c86a3feba11f0b19028ccaacd4293896af1f3c137a325bdfab544f00b1d69003", kill_on_drop: false }` [INFO] [stdout] c86a3feba11f0b19028ccaacd4293896af1f3c137a325bdfab544f00b1d69003 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 1faf3549310cc13dd9614d4c123b2260d3acb1ef105f4a0a7a3979e7a2c5ef6a [INFO] running `Command { std: "docker" "start" "-a" "1faf3549310cc13dd9614d4c123b2260d3acb1ef105f4a0a7a3979e7a2c5ef6a", kill_on_drop: false }` [INFO] [stderr] warning: unnecessary parentheses around match arm expression [INFO] [stderr] --> src/material.rs:116:21 [INFO] [stderr] | [INFO] [stderr] 116 | true => (1.0 / self.index_of_refraction), [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 116 - true => (1.0 / self.index_of_refraction), [INFO] [stderr] 116 + true => 1.0 / self.index_of_refraction, [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unused variable: `ray_in` [INFO] [stderr] --> src/material.rs:155:23 [INFO] [stderr] | [INFO] [stderr] 155 | fn scatter(&self, ray_in: &Ray, hit_record: &HitRecord) -> Option { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_ray_in` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `hit_record` [INFO] [stderr] --> src/material.rs:155:37 [INFO] [stderr] | [INFO] [stderr] 155 | fn scatter(&self, ray_in: &Ray, hit_record: &HitRecord) -> Option { [INFO] [stderr] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hit_record` [INFO] [stderr] [INFO] [stderr] warning: field `front_face` is never read [INFO] [stderr] --> src/hittable.rs:12:9 [INFO] [stderr] | [INFO] [stderr] 6 | pub struct HitRecord<'a> { [INFO] [stderr] | --------- field in this struct [INFO] [stderr] ... [INFO] [stderr] 12 | pub front_face: bool, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: struct `Metal` is never constructed [INFO] [stderr] --> src/material.rs:57:12 [INFO] [stderr] | [INFO] [stderr] 57 | pub struct Metal { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `new` is never used [INFO] [stderr] --> src/material.rs:63:18 [INFO] [stderr] | [INFO] [stderr] 62 | impl Metal { [INFO] [stderr] | ---------- associated function in this implementation [INFO] [stderr] 63 | pub const fn new(albedo: Vec3, fuzz: f32) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `Dielectric` is never constructed [INFO] [stderr] --> src/material.rs:90:12 [INFO] [stderr] | [INFO] [stderr] 90 | pub struct Dielectric { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated functions `new` and `reflectance` are never used [INFO] [stderr] --> src/material.rs:95:18 [INFO] [stderr] | [INFO] [stderr] 94 | impl Dielectric { [INFO] [stderr] | --------------- associated functions in this implementation [INFO] [stderr] 95 | pub const fn new(index_of_refraction: f32) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 101 | fn reflectance(cosine: f32, ref_idx: f32) -> f32 { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `random_scene` is never used [INFO] [stderr] --> src/scene.rs:25:8 [INFO] [stderr] | [INFO] [stderr] 25 | pub fn random_scene() -> Scene { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `random_spheres` is never used [INFO] [stderr] --> src/scene.rs:128:8 [INFO] [stderr] | [INFO] [stderr] 128 | pub fn random_spheres() -> Scene { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `glowing_sphere` is never used [INFO] [stderr] --> src/scene.rs:302:8 [INFO] [stderr] | [INFO] [stderr] 302 | pub fn glowing_sphere() -> Scene { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated items `rand`, `reflect_in`, and `refract_off` are never used [INFO] [stderr] --> src/vec3.rs:5:8 [INFO] [stderr] | [INFO] [stderr] 4 | pub trait Vec3Extension { [INFO] [stderr] | ------------- associated items in this trait [INFO] [stderr] 5 | fn rand() -> Vec3; [INFO] [stderr] | ^^^^ [INFO] [stderr] ... [INFO] [stderr] 11 | fn reflect_in(self, n: Vec3) -> Vec3; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] 12 | fn refract_off(self, n: Vec3, etai_over_etat: f32) -> Vec3; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/hittable.rs:47:12 [INFO] [stderr] | [INFO] [stderr] 47 | fn hit(&self, ray: &Ray, t_min: f32, t_max: f32) -> Option; [INFO] [stderr] | ^^^^^ this lifetime flows to the output --------- the lifetime gets resolved as `'_` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 47 | fn hit(&self, ray: &Ray, t_min: f32, t_max: f32) -> Option>; [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/hittable_list.rs:10:12 [INFO] [stderr] | [INFO] [stderr] 10 | fn hit(&self, ray: &Ray, t_min: f32, t_max: f32) -> Option { [INFO] [stderr] | ^^^^^ this lifetime flows to the output --------- the lifetime gets resolved as `'_` [INFO] [stderr] | [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 10 | fn hit(&self, ray: &Ray, t_min: f32, t_max: f32) -> Option> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/rect.rs:35:12 [INFO] [stderr] | [INFO] [stderr] 35 | fn hit(&self, ray: &Ray, t_min: f32, t_max: f32) -> Option { [INFO] [stderr] | ^^^^^ this lifetime flows to the output --------- the lifetime gets resolved as `'_` [INFO] [stderr] | [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 35 | fn hit(&self, ray: &Ray, t_min: f32, t_max: f32) -> Option> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/sphere.rs:20:12 [INFO] [stderr] | [INFO] [stderr] 20 | fn hit(&self, ray: &Ray, t_min: f32, t_max: f32) -> Option { [INFO] [stderr] | ^^^^^ this lifetime flows to the output --------- the lifetime gets resolved as `'_` [INFO] [stderr] | [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 20 | fn hit(&self, ray: &Ray, t_min: f32, t_max: f32) -> Option> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: `raytracer_rust` (bin "raytracer_rust" test) generated 16 warnings (run `cargo fix --bin "raytracer_rust" --tests` to apply 5 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.06s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/raytracer_rust-83d5e69c94285856) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "1faf3549310cc13dd9614d4c123b2260d3acb1ef105f4a0a7a3979e7a2c5ef6a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1faf3549310cc13dd9614d4c123b2260d3acb1ef105f4a0a7a3979e7a2c5ef6a", kill_on_drop: false }` [INFO] [stdout] 1faf3549310cc13dd9614d4c123b2260d3acb1ef105f4a0a7a3979e7a2c5ef6a