[INFO] cloning repository https://github.com/samuel-hawker/raytracer [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/samuel-hawker/raytracer" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsamuel-hawker%2Fraytracer", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsamuel-hawker%2Fraytracer'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d05a35b663f4b13e89736f417703a5b9977a5d04 [INFO] testing samuel-hawker/raytracer against try#028592fec99e54cc92def5a2a849c673b066dd93 for pr-146098 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsamuel-hawker%2Fraytracer" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/samuel-hawker/raytracer [INFO] finished tweaking git repo https://github.com/samuel-hawker/raytracer [INFO] tweaked toml for git repo https://github.com/samuel-hawker/raytracer written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/samuel-hawker/raytracer on toolchain 028592fec99e54cc92def5a2a849c673b066dd93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+028592fec99e54cc92def5a2a849c673b066dd93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/samuel-hawker/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" "+028592fec99e54cc92def5a2a849c673b066dd93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded libc v0.2.98 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+028592fec99e54cc92def5a2a849c673b066dd93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5d4ae3cc2c0b4544b36f6b7f9866724c5b6ba0321dfd13b387a90a8e7cb5b7a3 [INFO] running `Command { std: "docker" "start" "-a" "5d4ae3cc2c0b4544b36f6b7f9866724c5b6ba0321dfd13b387a90a8e7cb5b7a3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5d4ae3cc2c0b4544b36f6b7f9866724c5b6ba0321dfd13b387a90a8e7cb5b7a3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5d4ae3cc2c0b4544b36f6b7f9866724c5b6ba0321dfd13b387a90a8e7cb5b7a3", kill_on_drop: false }` [INFO] [stdout] 5d4ae3cc2c0b4544b36f6b7f9866724c5b6ba0321dfd13b387a90a8e7cb5b7a3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+028592fec99e54cc92def5a2a849c673b066dd93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a1757f50187321900ee8ab851dceb9eecb27fca15eb275d4f26d0c4a52423f45 [INFO] running `Command { std: "docker" "start" "-a" "a1757f50187321900ee8ab851dceb9eecb27fca15eb275d4f26d0c4a52423f45", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.98 [INFO] [stderr] Compiling getrandom v0.2.3 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.4 [INFO] [stderr] Compiling raytracing v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `out` [INFO] [stdout] --> src/main.rs:256:16 [INFO] [stdout] | [INFO] [stdout] 256 | fn write_color(out: &std::io::Stdout, pixel_color: &color, samples_per_pixel: usize) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_out` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ray_in` [INFO] [stdout] --> src/main.rs:545:23 [INFO] [stdout] | [INFO] [stdout] 545 | fn scatter(&self, ray_in: &Ray, record: &HitRecord) -> Option { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_ray_in` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `cross` and `random` are never used [INFO] [stdout] --> src/main.rs:142:8 [INFO] [stdout] | [INFO] [stdout] 84 | impl Vec3 { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 142 | fn cross(&self, v: &Vec3) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 150 | fn random() -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `zeros` is never used [INFO] [stdout] --> src/main.rs:278:8 [INFO] [stdout] | [INFO] [stdout] 277 | impl Ray { [INFO] [stdout] | -------- associated function in this implementation [INFO] [stdout] 278 | fn zeros() -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `empty` and `face_normal` are never used [INFO] [stdout] --> src/main.rs:370:8 [INFO] [stdout] | [INFO] [stdout] 354 | impl<'a> HitRecord<'a> { [INFO] [stdout] | ---------------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 370 | fn empty() -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 373 | fn face_normal(ray: &Ray, outward_normal: Vec3) -> (Vec3, bool) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `clear` is never used [INFO] [stdout] --> src/main.rs:451:8 [INFO] [stdout] | [INFO] [stdout] 447 | impl<'a> HittableList<'a> { [INFO] [stdout] | ------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 451 | fn clear(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `pi` is never used [INFO] [stdout] --> src/main.rs:626:7 [INFO] [stdout] | [INFO] [stdout] 626 | const pi: f64 = std::f64::consts::PI; [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `degrees_to_radians` is never used [INFO] [stdout] --> src/main.rs:629:4 [INFO] [stdout] | [INFO] [stdout] 629 | fn degrees_to_radians(degrees: degrees) -> radians { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main.rs:385:12 [INFO] [stdout] | [INFO] [stdout] 385 | fn hit(&self, ray: &Ray, t_min: f64, t_max: f64) -> Option; [INFO] [stdout] | ^^^^^ the lifetime is elided here ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 385 | fn hit(&self, ray: &Ray, t_min: f64, t_max: f64) -> Option>; [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main.rs:405:12 [INFO] [stdout] | [INFO] [stdout] 405 | fn hit(&self, ray: &Ray, t_min: f64, t_max: f64) -> Option { [INFO] [stdout] | ^^^^^ the lifetime is elided here ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 405 | fn hit(&self, ray: &Ray, t_min: f64, t_max: f64) -> Option> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main.rs:460:12 [INFO] [stdout] | [INFO] [stdout] 460 | fn hit(&self, ray: &Ray, t_min: f64, t_max: f64) -> Option { [INFO] [stdout] | ^^^^^ the lifetime is elided here ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 460 | fn hit(&self, ray: &Ray, t_min: f64, t_max: f64) -> Option> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `infinity` should have an upper case name [INFO] [stdout] --> src/main.rs:625:7 [INFO] [stdout] | [INFO] [stdout] 625 | const infinity: f64 = std::f64::INFINITY; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 625 - const infinity: f64 = std::f64::INFINITY; [INFO] [stdout] 625 + const INFINITY: f64 = std::f64::INFINITY; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `pi` should have an upper case name [INFO] [stdout] --> src/main.rs:626:7 [INFO] [stdout] | [INFO] [stdout] 626 | const pi: f64 = std::f64::consts::PI; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 626 - const pi: f64 = std::f64::consts::PI; [INFO] [stdout] 626 + const PI: f64 = std::f64::consts::PI; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.64s [INFO] running `Command { std: "docker" "inspect" "a1757f50187321900ee8ab851dceb9eecb27fca15eb275d4f26d0c4a52423f45", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a1757f50187321900ee8ab851dceb9eecb27fca15eb275d4f26d0c4a52423f45", kill_on_drop: false }` [INFO] [stdout] a1757f50187321900ee8ab851dceb9eecb27fca15eb275d4f26d0c4a52423f45 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+028592fec99e54cc92def5a2a849c673b066dd93" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] afc2bfe3a8be383c973a11fffde5d8b8089b2496e67d9fe78120ae36a2778b4a [INFO] running `Command { std: "docker" "start" "-a" "afc2bfe3a8be383c973a11fffde5d8b8089b2496e67d9fe78120ae36a2778b4a", kill_on_drop: false }` [INFO] [stderr] Compiling raytracing v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `out` [INFO] [stdout] --> src/main.rs:256:16 [INFO] [stdout] | [INFO] [stdout] 256 | fn write_color(out: &std::io::Stdout, pixel_color: &color, samples_per_pixel: usize) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_out` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ray_in` [INFO] [stdout] --> src/main.rs:545:23 [INFO] [stdout] | [INFO] [stdout] 545 | fn scatter(&self, ray_in: &Ray, record: &HitRecord) -> Option { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_ray_in` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `cross` and `random` are never used [INFO] [stdout] --> src/main.rs:142:8 [INFO] [stdout] | [INFO] [stdout] 84 | impl Vec3 { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 142 | fn cross(&self, v: &Vec3) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 150 | fn random() -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `zeros` is never used [INFO] [stdout] --> src/main.rs:278:8 [INFO] [stdout] | [INFO] [stdout] 277 | impl Ray { [INFO] [stdout] | -------- associated function in this implementation [INFO] [stdout] 278 | fn zeros() -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `empty` and `face_normal` are never used [INFO] [stdout] --> src/main.rs:370:8 [INFO] [stdout] | [INFO] [stdout] 354 | impl<'a> HitRecord<'a> { [INFO] [stdout] | ---------------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 370 | fn empty() -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 373 | fn face_normal(ray: &Ray, outward_normal: Vec3) -> (Vec3, bool) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `clear` is never used [INFO] [stdout] --> src/main.rs:451:8 [INFO] [stdout] | [INFO] [stdout] 447 | impl<'a> HittableList<'a> { [INFO] [stdout] | ------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 451 | fn clear(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `pi` is never used [INFO] [stdout] --> src/main.rs:626:7 [INFO] [stdout] | [INFO] [stdout] 626 | const pi: f64 = std::f64::consts::PI; [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `degrees_to_radians` is never used [INFO] [stdout] --> src/main.rs:629:4 [INFO] [stdout] | [INFO] [stdout] 629 | fn degrees_to_radians(degrees: degrees) -> radians { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main.rs:385:12 [INFO] [stdout] | [INFO] [stdout] 385 | fn hit(&self, ray: &Ray, t_min: f64, t_max: f64) -> Option; [INFO] [stdout] | ^^^^^ the lifetime is elided here ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 385 | fn hit(&self, ray: &Ray, t_min: f64, t_max: f64) -> Option>; [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main.rs:405:12 [INFO] [stdout] | [INFO] [stdout] 405 | fn hit(&self, ray: &Ray, t_min: f64, t_max: f64) -> Option { [INFO] [stdout] | ^^^^^ the lifetime is elided here ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 405 | fn hit(&self, ray: &Ray, t_min: f64, t_max: f64) -> Option> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main.rs:460:12 [INFO] [stdout] | [INFO] [stdout] 460 | fn hit(&self, ray: &Ray, t_min: f64, t_max: f64) -> Option { [INFO] [stdout] | ^^^^^ the lifetime is elided here ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 460 | fn hit(&self, ray: &Ray, t_min: f64, t_max: f64) -> Option> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `infinity` should have an upper case name [INFO] [stdout] --> src/main.rs:625:7 [INFO] [stdout] | [INFO] [stdout] 625 | const infinity: f64 = std::f64::INFINITY; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 625 - const infinity: f64 = std::f64::INFINITY; [INFO] [stdout] 625 + const INFINITY: f64 = std::f64::INFINITY; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `pi` should have an upper case name [INFO] [stdout] --> src/main.rs:626:7 [INFO] [stdout] | [INFO] [stdout] 626 | const pi: f64 = std::f64::consts::PI; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 626 - const pi: f64 = std::f64::consts::PI; [INFO] [stdout] 626 + const PI: f64 = std::f64::consts::PI; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.38s [INFO] running `Command { std: "docker" "inspect" "afc2bfe3a8be383c973a11fffde5d8b8089b2496e67d9fe78120ae36a2778b4a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "afc2bfe3a8be383c973a11fffde5d8b8089b2496e67d9fe78120ae36a2778b4a", kill_on_drop: false }` [INFO] [stdout] afc2bfe3a8be383c973a11fffde5d8b8089b2496e67d9fe78120ae36a2778b4a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+028592fec99e54cc92def5a2a849c673b066dd93" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 1568d57b7702c8f1b4c860c9bc21e64bb8a9ae506f0085e92b88990a8b665c29 [INFO] running `Command { std: "docker" "start" "-a" "1568d57b7702c8f1b4c860c9bc21e64bb8a9ae506f0085e92b88990a8b665c29", kill_on_drop: false }` [INFO] [stderr] warning: unused variable: `out` [INFO] [stderr] --> src/main.rs:256:16 [INFO] [stderr] | [INFO] [stderr] 256 | fn write_color(out: &std::io::Stdout, pixel_color: &color, samples_per_pixel: usize) { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_out` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `ray_in` [INFO] [stderr] --> src/main.rs:545:23 [INFO] [stderr] | [INFO] [stderr] 545 | fn scatter(&self, ray_in: &Ray, record: &HitRecord) -> Option { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_ray_in` [INFO] [stderr] [INFO] [stderr] warning: associated items `cross` and `random` are never used [INFO] [stderr] --> src/main.rs:142:8 [INFO] [stderr] | [INFO] [stderr] 84 | impl Vec3 { [INFO] [stderr] | --------- associated items in this implementation [INFO] [stderr] ... [INFO] [stderr] 142 | fn cross(&self, v: &Vec3) -> Self { [INFO] [stderr] | ^^^^^ [INFO] [stderr] ... [INFO] [stderr] 150 | fn random() -> Self { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: associated function `zeros` is never used [INFO] [stderr] --> src/main.rs:278:8 [INFO] [stderr] | [INFO] [stderr] 277 | impl Ray { [INFO] [stderr] | -------- associated function in this implementation [INFO] [stderr] 278 | fn zeros() -> Self { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated functions `empty` and `face_normal` are never used [INFO] [stderr] --> src/main.rs:370:8 [INFO] [stderr] | [INFO] [stderr] 354 | impl<'a> HitRecord<'a> { [INFO] [stderr] | ---------------------- associated functions in this implementation [INFO] [stderr] ... [INFO] [stderr] 370 | fn empty() -> Self { [INFO] [stderr] | ^^^^^ [INFO] [stderr] ... [INFO] [stderr] 373 | fn face_normal(ray: &Ray, outward_normal: Vec3) -> (Vec3, bool) { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `clear` is never used [INFO] [stderr] --> src/main.rs:451:8 [INFO] [stderr] | [INFO] [stderr] 447 | impl<'a> HittableList<'a> { [INFO] [stderr] | ------------------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 451 | fn clear(&mut self) { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `pi` is never used [INFO] [stderr] --> src/main.rs:626:7 [INFO] [stderr] | [INFO] [stderr] 626 | const pi: f64 = std::f64::consts::PI; [INFO] [stderr] | ^^ [INFO] [stderr] [INFO] [stderr] warning: function `degrees_to_radians` is never used [INFO] [stderr] --> src/main.rs:629:4 [INFO] [stderr] | [INFO] [stderr] 629 | fn degrees_to_radians(degrees: degrees) -> radians { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/main.rs:385:12 [INFO] [stderr] | [INFO] [stderr] 385 | fn hit(&self, ray: &Ray, t_min: f64, t_max: f64) -> Option; [INFO] [stderr] | ^^^^^ the lifetime is elided here ^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 385 | fn hit(&self, ray: &Ray, t_min: f64, t_max: f64) -> Option>; [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/main.rs:405:12 [INFO] [stderr] | [INFO] [stderr] 405 | fn hit(&self, ray: &Ray, t_min: f64, t_max: f64) -> Option { [INFO] [stderr] | ^^^^^ the lifetime is elided here ^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 405 | fn hit(&self, ray: &Ray, t_min: f64, t_max: f64) -> Option> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/main.rs:460:12 [INFO] [stderr] | [INFO] [stderr] 460 | fn hit(&self, ray: &Ray, t_min: f64, t_max: f64) -> Option { [INFO] [stderr] | ^^^^^ the lifetime is elided here ^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 460 | fn hit(&self, ray: &Ray, t_min: f64, t_max: f64) -> Option> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: constant `infinity` should have an upper case name [INFO] [stderr] --> src/main.rs:625:7 [INFO] [stderr] | [INFO] [stderr] 625 | const infinity: f64 = std::f64::INFINITY; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_upper_case_globals)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stderr] help: convert the identifier to upper case [INFO] [stderr] | [INFO] [stderr] 625 - const infinity: f64 = std::f64::INFINITY; [INFO] [stderr] 625 + const INFINITY: f64 = std::f64::INFINITY; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: constant `pi` should have an upper case name [INFO] [stderr] --> src/main.rs:626:7 [INFO] [stderr] | [INFO] [stderr] 626 | const pi: f64 = std::f64::consts::PI; [INFO] [stderr] | ^^ [INFO] [stderr] | [INFO] [stderr] help: convert the identifier to upper case [INFO] [stderr] | [INFO] [stderr] 626 - const pi: f64 = std::f64::consts::PI; [INFO] [stderr] 626 + const PI: f64 = std::f64::consts::PI; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: `raytracing` (bin "raytracing" test) generated 13 warnings (run `cargo fix --bin "raytracing" --tests` to apply 5 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.02s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/raytracing-e51ea3bf808c622e) [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" "1568d57b7702c8f1b4c860c9bc21e64bb8a9ae506f0085e92b88990a8b665c29", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1568d57b7702c8f1b4c860c9bc21e64bb8a9ae506f0085e92b88990a8b665c29", kill_on_drop: false }` [INFO] [stdout] 1568d57b7702c8f1b4c860c9bc21e64bb8a9ae506f0085e92b88990a8b665c29