[INFO] cloning repository https://github.com/AlexMC1997/Simple-RT [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/AlexMC1997/Simple-RT" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAlexMC1997%2FSimple-RT", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAlexMC1997%2FSimple-RT'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 562217b5fcd8ea16a135aaab3d1e6035a9083bd8 [INFO] testing AlexMC1997/Simple-RT against try#8de4c7234dd9b97c9d76b58671343fdbbc9a433e+target=x86_64-unknown-linux-musl for musl_upgrade_1_2_5_with_libc_patch_0 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAlexMC1997%2FSimple-RT" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] [stderr] Updating files: 58% (10/17) Updating files: 64% (11/17) Updating files: 70% (12/17) Updating files: 76% (13/17) Updating files: 82% (14/17) Updating files: 88% (15/17) Updating files: 94% (16/17) Updating files: 100% (17/17) Updating files: 100% (17/17), done. [INFO] started tweaking git repo https://github.com/AlexMC1997/Simple-RT [INFO] finished tweaking git repo https://github.com/AlexMC1997/Simple-RT [INFO] tweaked toml for git repo https://github.com/AlexMC1997/Simple-RT written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/AlexMC1997/Simple-RT 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/AlexMC1997/Simple-RT 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] Downloading crates ... [INFO] [stderr] Downloaded num-rational v0.4.0 [INFO] [stderr] Downloaded num-complex v0.4.0 [INFO] [stderr] Downloaded num-bigint v0.4.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 16c857d15536cbb46d96cc1eb603f022f193c7c4849efa34b90f996a890a1a29 [INFO] running `Command { std: "docker" "start" "-a" "16c857d15536cbb46d96cc1eb603f022f193c7c4849efa34b90f996a890a1a29", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "16c857d15536cbb46d96cc1eb603f022f193c7c4849efa34b90f996a890a1a29", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "16c857d15536cbb46d96cc1eb603f022f193c7c4849efa34b90f996a890a1a29", kill_on_drop: false }` [INFO] [stdout] 16c857d15536cbb46d96cc1eb603f022f193c7c4849efa34b90f996a890a1a29 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "build" "--frozen" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] f76c10628f87ebb0fb36f2fa19ac4d0a8436c53147a0f391299062a137b3d88b [INFO] running `Command { std: "docker" "start" "-a" "f76c10628f87ebb0fb36f2fa19ac4d0a8436c53147a0f391299062a137b3d88b", kill_on_drop: false }` [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling libc v0.2.105 [INFO] [stderr] Compiling num-bigint v0.4.2 [INFO] [stderr] Compiling num-rational v0.4.0 [INFO] [stderr] Compiling num-iter v0.1.42 [INFO] [stderr] Compiling ppv-lite86 v0.2.15 [INFO] [stderr] Compiling oorandom v11.1.3 [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 num-complex v0.4.0 [INFO] [stderr] Compiling ordered-float v1.1.1 [INFO] [stderr] Compiling rand v0.8.4 [INFO] [stderr] Compiling num v0.4.0 [INFO] [stderr] Compiling SimpleRT v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `f64::consts::PI` [INFO] [stdout] --> src/main.rs:1:22 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{env::args, f64::consts::PI, ops::Rem, thread}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/camera.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | let mut theta = (&lookv.normalize() * &vecv.normalize()).acos(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/camera.rs:31:13 [INFO] [stdout] | [INFO] [stdout] 31 | let mut theta = (&lookv.normalize() * &vecv.normalize()).acos(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `new_per` is never read [INFO] [stdout] --> src/camera.rs:52:17 [INFO] [stdout] | [INFO] [stdout] 52 | let mut new_per = 0.0; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bal` [INFO] [stdout] --> src/camera.rs:56:17 [INFO] [stdout] | [INFO] [stdout] 56 | let bal = i as f64 / height as f64; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_bal` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ncos` [INFO] [stdout] --> src/ray.rs:29:17 [INFO] [stdout] | [INFO] [stdout] 29 | let ncos = &-&self.traj * &inter.norm; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_ncos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `incident` [INFO] [stdout] --> src/material.rs:43:20 [INFO] [stdout] | [INFO] [stdout] 43 | fn bsdf(&self, incident: f64, exitant: f64) -> linear::Vec3 { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_incident` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `exitant` [INFO] [stdout] --> src/material.rs:43:35 [INFO] [stdout] | [INFO] [stdout] 43 | fn bsdf(&self, incident: f64, exitant: f64) -> linear::Vec3 { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_exitant` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `incident` [INFO] [stdout] --> src/material.rs:47:22 [INFO] [stdout] | [INFO] [stdout] 47 | fn sample(&self, incident: &linear::Vec3, norm: &linear::Vec3) -> linear::Vec3 { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_incident` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `exitant` [INFO] [stdout] --> src/material.rs:55:19 [INFO] [stdout] | [INFO] [stdout] 55 | fn pdf(&self, exitant: &linear::Vec3, norm: &linear::Vec3) -> f64 { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_exitant` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `norm` [INFO] [stdout] --> src/material.rs:55:48 [INFO] [stdout] | [INFO] [stdout] 55 | fn pdf(&self, exitant: &linear::Vec3, norm: &linear::Vec3) -> f64 { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_norm` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `incident` [INFO] [stdout] --> src/material.rs:61:20 [INFO] [stdout] | [INFO] [stdout] 61 | fn bsdf(&self, incident: f64, exitant: f64) -> linear::Vec3 { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_incident` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `exitant` [INFO] [stdout] --> src/material.rs:61:35 [INFO] [stdout] | [INFO] [stdout] 61 | fn bsdf(&self, incident: f64, exitant: f64) -> linear::Vec3 { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_exitant` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `exitant` [INFO] [stdout] --> src/material.rs:82:19 [INFO] [stdout] | [INFO] [stdout] 82 | fn pdf(&self, exitant: &linear::Vec3, norm: &linear::Vec3) -> f64 { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_exitant` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `norm` [INFO] [stdout] --> src/material.rs:82:48 [INFO] [stdout] | [INFO] [stdout] 82 | fn pdf(&self, exitant: &linear::Vec3, norm: &linear::Vec3) -> f64 { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_norm` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `incident` [INFO] [stdout] --> src/material.rs:88:20 [INFO] [stdout] | [INFO] [stdout] 88 | fn bsdf(&self, incident: f64, exitant: f64) -> linear::Vec3 { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_incident` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `exitant` [INFO] [stdout] --> src/material.rs:88:35 [INFO] [stdout] | [INFO] [stdout] 88 | fn bsdf(&self, incident: f64, exitant: f64) -> linear::Vec3 { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_exitant` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `exitant` [INFO] [stdout] --> src/material.rs:102:19 [INFO] [stdout] | [INFO] [stdout] 102 | fn pdf(&self, exitant: &linear::Vec3, norm: &linear::Vec3) -> f64 { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_exitant` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `norm` [INFO] [stdout] --> src/material.rs:102:48 [INFO] [stdout] | [INFO] [stdout] 102 | fn pdf(&self, exitant: &linear::Vec3, norm: &linear::Vec3) -> f64 { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_norm` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `incident` [INFO] [stdout] --> src/material.rs:115:20 [INFO] [stdout] | [INFO] [stdout] 115 | fn bsdf(&self, incident: f64, exitant: f64) -> linear::Vec3 { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_incident` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `exitant` [INFO] [stdout] --> src/material.rs:115:35 [INFO] [stdout] | [INFO] [stdout] 115 | fn bsdf(&self, incident: f64, exitant: f64) -> linear::Vec3 { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_exitant` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `incident` [INFO] [stdout] --> src/material.rs:123:22 [INFO] [stdout] | [INFO] [stdout] 123 | fn sample(&self, incident: &linear::Vec3, norm: &linear::Vec3) -> linear::Vec3 { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_incident` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `norm` [INFO] [stdout] --> src/material.rs:123:52 [INFO] [stdout] | [INFO] [stdout] 123 | fn sample(&self, incident: &linear::Vec3, norm: &linear::Vec3) -> linear::Vec3 { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_norm` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `exitant` [INFO] [stdout] --> src/material.rs:127:19 [INFO] [stdout] | [INFO] [stdout] 127 | fn pdf(&self, exitant: &linear::Vec3, norm: &linear::Vec3) -> f64 { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_exitant` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `norm` [INFO] [stdout] --> src/material.rs:127:48 [INFO] [stdout] | [INFO] [stdout] 127 | fn pdf(&self, exitant: &linear::Vec3, norm: &linear::Vec3) -> f64 { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_norm` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `earth` [INFO] [stdout] --> src/main.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | let earth = scene::Sphere{mat: &material::GREEN_TESTING, pos: linear::Vec3{x: 0.0, y: -800.0, z: -5.0}, rad: 800.0}; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_earth` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `red_light` [INFO] [stdout] --> src/main.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | let red_light = scene::Sphere{mat: &material::REDL_TESTING, pos: linear::Vec3{x: -4.0, y: 1.8, z: -3.2}, rad: 0.8}; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_red_light` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `blue_light` [INFO] [stdout] --> src/main.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | let blue_light = scene::Sphere{mat: &material::BLUEL_TESTING, pos: linear::Vec3{x: 4.0, y: 1.8, z: -3.2}, rad: 0.8}; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_blue_light` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `WHITE` is never used [INFO] [stdout] --> src/scene.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | pub const WHITE: linear::Vec3 = linear::Vec3{x: 1.0, y: 1.0, z: 1.0}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RED` is never used [INFO] [stdout] --> src/scene.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | pub const RED: linear::Vec3 = linear::Vec3{x: 1.0, y: 0.0, z: 0.0}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PURPLE` is never used [INFO] [stdout] --> src/scene.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | pub const PURPLE: linear::Vec3 = linear::Vec3{x: 1.0, y: 0.0, z: 1.0}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BLUE` is never used [INFO] [stdout] --> src/scene.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | pub const BLUE: linear::Vec3 = linear::Vec3{x: 0.0, y: 0.0, z: 1.0}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GREEN` is never used [INFO] [stdout] --> src/scene.rs:10:11 [INFO] [stdout] | [INFO] [stdout] 10 | pub const GREEN: linear::Vec3 = linear::Vec3{x: 0.0, y: 1.0, z: 0.0}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SKY` is never used [INFO] [stdout] --> src/scene.rs:11:11 [INFO] [stdout] | [INFO] [stdout] 11 | pub const SKY: linear::Vec3 = linear::Vec3{x: 0.2, y: 0.4, z: 0.9}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/scene.rs:21:18 [INFO] [stdout] | [INFO] [stdout] 21 | fn intersect(&self, r: &ray::Ray) -> Intersection; [INFO] [stdout] | ^^^^^ ------------ the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [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] 21 | fn intersect(&self, r: &ray::Ray) -> Intersection<'_>; [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/scene.rs:59:18 [INFO] [stdout] | [INFO] [stdout] 59 | fn intersect(&self, r: &ray::Ray) -> Intersection { [INFO] [stdout] | ^^^^^ ------------ the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [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] 59 | fn intersect(&self, r: &ray::Ray) -> Intersection<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/scene.rs:92:18 [INFO] [stdout] | [INFO] [stdout] 92 | fn intersect(&self, r: &ray::Ray) -> Intersection { [INFO] [stdout] | ^^^^^ ------------ the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [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] 92 | fn intersect(&self, r: &ray::Ray) -> Intersection<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 5.22s [INFO] running `Command { std: "docker" "inspect" "f76c10628f87ebb0fb36f2fa19ac4d0a8436c53147a0f391299062a137b3d88b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f76c10628f87ebb0fb36f2fa19ac4d0a8436c53147a0f391299062a137b3d88b", kill_on_drop: false }` [INFO] [stdout] f76c10628f87ebb0fb36f2fa19ac4d0a8436c53147a0f391299062a137b3d88b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/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] 0049cc27804fca50ae011e27f514f3890e0a41d8984dec07eb0cedf2b7f890b2 [INFO] running `Command { std: "docker" "start" "-a" "0049cc27804fca50ae011e27f514f3890e0a41d8984dec07eb0cedf2b7f890b2", kill_on_drop: false }` [INFO] [stderr] Compiling SimpleRT v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `f64::consts::PI` [INFO] [stdout] --> src/main.rs:1:22 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{env::args, f64::consts::PI, ops::Rem, thread}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/camera.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | let mut theta = (&lookv.normalize() * &vecv.normalize()).acos(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/camera.rs:31:13 [INFO] [stdout] | [INFO] [stdout] 31 | let mut theta = (&lookv.normalize() * &vecv.normalize()).acos(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `new_per` is never read [INFO] [stdout] --> src/camera.rs:52:17 [INFO] [stdout] | [INFO] [stdout] 52 | let mut new_per = 0.0; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bal` [INFO] [stdout] --> src/camera.rs:56:17 [INFO] [stdout] | [INFO] [stdout] 56 | let bal = i as f64 / height as f64; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_bal` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ncos` [INFO] [stdout] --> src/ray.rs:29:17 [INFO] [stdout] | [INFO] [stdout] 29 | let ncos = &-&self.traj * &inter.norm; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_ncos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `incident` [INFO] [stdout] --> src/material.rs:43:20 [INFO] [stdout] | [INFO] [stdout] 43 | fn bsdf(&self, incident: f64, exitant: f64) -> linear::Vec3 { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_incident` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `exitant` [INFO] [stdout] --> src/material.rs:43:35 [INFO] [stdout] | [INFO] [stdout] 43 | fn bsdf(&self, incident: f64, exitant: f64) -> linear::Vec3 { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_exitant` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `incident` [INFO] [stdout] --> src/material.rs:47:22 [INFO] [stdout] | [INFO] [stdout] 47 | fn sample(&self, incident: &linear::Vec3, norm: &linear::Vec3) -> linear::Vec3 { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_incident` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `exitant` [INFO] [stdout] --> src/material.rs:55:19 [INFO] [stdout] | [INFO] [stdout] 55 | fn pdf(&self, exitant: &linear::Vec3, norm: &linear::Vec3) -> f64 { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_exitant` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `norm` [INFO] [stdout] --> src/material.rs:55:48 [INFO] [stdout] | [INFO] [stdout] 55 | fn pdf(&self, exitant: &linear::Vec3, norm: &linear::Vec3) -> f64 { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_norm` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `incident` [INFO] [stdout] --> src/material.rs:61:20 [INFO] [stdout] | [INFO] [stdout] 61 | fn bsdf(&self, incident: f64, exitant: f64) -> linear::Vec3 { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_incident` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `exitant` [INFO] [stdout] --> src/material.rs:61:35 [INFO] [stdout] | [INFO] [stdout] 61 | fn bsdf(&self, incident: f64, exitant: f64) -> linear::Vec3 { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_exitant` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `exitant` [INFO] [stdout] --> src/material.rs:82:19 [INFO] [stdout] | [INFO] [stdout] 82 | fn pdf(&self, exitant: &linear::Vec3, norm: &linear::Vec3) -> f64 { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_exitant` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `norm` [INFO] [stdout] --> src/material.rs:82:48 [INFO] [stdout] | [INFO] [stdout] 82 | fn pdf(&self, exitant: &linear::Vec3, norm: &linear::Vec3) -> f64 { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_norm` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `incident` [INFO] [stdout] --> src/material.rs:88:20 [INFO] [stdout] | [INFO] [stdout] 88 | fn bsdf(&self, incident: f64, exitant: f64) -> linear::Vec3 { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_incident` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `exitant` [INFO] [stdout] --> src/material.rs:88:35 [INFO] [stdout] | [INFO] [stdout] 88 | fn bsdf(&self, incident: f64, exitant: f64) -> linear::Vec3 { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_exitant` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `exitant` [INFO] [stdout] --> src/material.rs:102:19 [INFO] [stdout] | [INFO] [stdout] 102 | fn pdf(&self, exitant: &linear::Vec3, norm: &linear::Vec3) -> f64 { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_exitant` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `norm` [INFO] [stdout] --> src/material.rs:102:48 [INFO] [stdout] | [INFO] [stdout] 102 | fn pdf(&self, exitant: &linear::Vec3, norm: &linear::Vec3) -> f64 { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_norm` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `incident` [INFO] [stdout] --> src/material.rs:115:20 [INFO] [stdout] | [INFO] [stdout] 115 | fn bsdf(&self, incident: f64, exitant: f64) -> linear::Vec3 { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_incident` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `exitant` [INFO] [stdout] --> src/material.rs:115:35 [INFO] [stdout] | [INFO] [stdout] 115 | fn bsdf(&self, incident: f64, exitant: f64) -> linear::Vec3 { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_exitant` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `incident` [INFO] [stdout] --> src/material.rs:123:22 [INFO] [stdout] | [INFO] [stdout] 123 | fn sample(&self, incident: &linear::Vec3, norm: &linear::Vec3) -> linear::Vec3 { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_incident` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `norm` [INFO] [stdout] --> src/material.rs:123:52 [INFO] [stdout] | [INFO] [stdout] 123 | fn sample(&self, incident: &linear::Vec3, norm: &linear::Vec3) -> linear::Vec3 { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_norm` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `exitant` [INFO] [stdout] --> src/material.rs:127:19 [INFO] [stdout] | [INFO] [stdout] 127 | fn pdf(&self, exitant: &linear::Vec3, norm: &linear::Vec3) -> f64 { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_exitant` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `norm` [INFO] [stdout] --> src/material.rs:127:48 [INFO] [stdout] | [INFO] [stdout] 127 | fn pdf(&self, exitant: &linear::Vec3, norm: &linear::Vec3) -> f64 { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_norm` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `earth` [INFO] [stdout] --> src/main.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | let earth = scene::Sphere{mat: &material::GREEN_TESTING, pos: linear::Vec3{x: 0.0, y: -800.0, z: -5.0}, rad: 800.0}; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_earth` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `red_light` [INFO] [stdout] --> src/main.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | let red_light = scene::Sphere{mat: &material::REDL_TESTING, pos: linear::Vec3{x: -4.0, y: 1.8, z: -3.2}, rad: 0.8}; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_red_light` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `blue_light` [INFO] [stdout] --> src/main.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | let blue_light = scene::Sphere{mat: &material::BLUEL_TESTING, pos: linear::Vec3{x: 4.0, y: 1.8, z: -3.2}, rad: 0.8}; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_blue_light` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `WHITE` is never used [INFO] [stdout] --> src/scene.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | pub const WHITE: linear::Vec3 = linear::Vec3{x: 1.0, y: 1.0, z: 1.0}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RED` is never used [INFO] [stdout] --> src/scene.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | pub const RED: linear::Vec3 = linear::Vec3{x: 1.0, y: 0.0, z: 0.0}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PURPLE` is never used [INFO] [stdout] --> src/scene.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | pub const PURPLE: linear::Vec3 = linear::Vec3{x: 1.0, y: 0.0, z: 1.0}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BLUE` is never used [INFO] [stdout] --> src/scene.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | pub const BLUE: linear::Vec3 = linear::Vec3{x: 0.0, y: 0.0, z: 1.0}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GREEN` is never used [INFO] [stdout] --> src/scene.rs:10:11 [INFO] [stdout] | [INFO] [stdout] 10 | pub const GREEN: linear::Vec3 = linear::Vec3{x: 0.0, y: 1.0, z: 0.0}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SKY` is never used [INFO] [stdout] --> src/scene.rs:11:11 [INFO] [stdout] | [INFO] [stdout] 11 | pub const SKY: linear::Vec3 = linear::Vec3{x: 0.2, y: 0.4, z: 0.9}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/scene.rs:21:18 [INFO] [stdout] | [INFO] [stdout] 21 | fn intersect(&self, r: &ray::Ray) -> Intersection; [INFO] [stdout] | ^^^^^ ------------ the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [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] 21 | fn intersect(&self, r: &ray::Ray) -> Intersection<'_>; [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/scene.rs:59:18 [INFO] [stdout] | [INFO] [stdout] 59 | fn intersect(&self, r: &ray::Ray) -> Intersection { [INFO] [stdout] | ^^^^^ ------------ the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [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] 59 | fn intersect(&self, r: &ray::Ray) -> Intersection<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/scene.rs:92:18 [INFO] [stdout] | [INFO] [stdout] 92 | fn intersect(&self, r: &ray::Ray) -> Intersection { [INFO] [stdout] | ^^^^^ ------------ the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [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] 92 | fn intersect(&self, r: &ray::Ray) -> Intersection<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.64s [INFO] running `Command { std: "docker" "inspect" "0049cc27804fca50ae011e27f514f3890e0a41d8984dec07eb0cedf2b7f890b2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0049cc27804fca50ae011e27f514f3890e0a41d8984dec07eb0cedf2b7f890b2", kill_on_drop: false }` [INFO] [stdout] 0049cc27804fca50ae011e27f514f3890e0a41d8984dec07eb0cedf2b7f890b2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 5700a38c500e6e77d993da1564dc9eaa030a355b23bc84785ec51c99f79a355b [INFO] running `Command { std: "docker" "start" "-a" "5700a38c500e6e77d993da1564dc9eaa030a355b23bc84785ec51c99f79a355b", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `f64::consts::PI` [INFO] [stderr] --> src/main.rs:1:22 [INFO] [stderr] | [INFO] [stderr] 1 | use std::{env::args, f64::consts::PI, ops::Rem, thread}; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/camera.rs:22:13 [INFO] [stderr] | [INFO] [stderr] 22 | let mut theta = (&lookv.normalize() * &vecv.normalize()).acos(); [INFO] [stderr] | ----^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/camera.rs:31:13 [INFO] [stderr] | [INFO] [stderr] 31 | let mut theta = (&lookv.normalize() * &vecv.normalize()).acos(); [INFO] [stderr] | ----^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: value assigned to `new_per` is never read [INFO] [stderr] --> src/camera.rs:52:17 [INFO] [stderr] | [INFO] [stderr] 52 | let mut new_per = 0.0; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] = note: `#[warn(unused_assignments)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `bal` [INFO] [stderr] --> src/camera.rs:56:17 [INFO] [stderr] | [INFO] [stderr] 56 | let bal = i as f64 / height as f64; [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_bal` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `ncos` [INFO] [stderr] --> src/ray.rs:29:17 [INFO] [stderr] | [INFO] [stderr] 29 | let ncos = &-&self.traj * &inter.norm; [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_ncos` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `incident` [INFO] [stderr] --> src/material.rs:43:20 [INFO] [stderr] | [INFO] [stderr] 43 | fn bsdf(&self, incident: f64, exitant: f64) -> linear::Vec3 { [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_incident` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `exitant` [INFO] [stderr] --> src/material.rs:43:35 [INFO] [stderr] | [INFO] [stderr] 43 | fn bsdf(&self, incident: f64, exitant: f64) -> linear::Vec3 { [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_exitant` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `incident` [INFO] [stderr] --> src/material.rs:47:22 [INFO] [stderr] | [INFO] [stderr] 47 | fn sample(&self, incident: &linear::Vec3, norm: &linear::Vec3) -> linear::Vec3 { [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_incident` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `exitant` [INFO] [stderr] --> src/material.rs:55:19 [INFO] [stderr] | [INFO] [stderr] 55 | fn pdf(&self, exitant: &linear::Vec3, norm: &linear::Vec3) -> f64 { [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_exitant` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `norm` [INFO] [stderr] --> src/material.rs:55:48 [INFO] [stderr] | [INFO] [stderr] 55 | fn pdf(&self, exitant: &linear::Vec3, norm: &linear::Vec3) -> f64 { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_norm` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `incident` [INFO] [stderr] --> src/material.rs:61:20 [INFO] [stderr] | [INFO] [stderr] 61 | fn bsdf(&self, incident: f64, exitant: f64) -> linear::Vec3 { [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_incident` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `exitant` [INFO] [stderr] --> src/material.rs:61:35 [INFO] [stderr] | [INFO] [stderr] 61 | fn bsdf(&self, incident: f64, exitant: f64) -> linear::Vec3 { [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_exitant` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `exitant` [INFO] [stderr] --> src/material.rs:82:19 [INFO] [stderr] | [INFO] [stderr] 82 | fn pdf(&self, exitant: &linear::Vec3, norm: &linear::Vec3) -> f64 { [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_exitant` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `norm` [INFO] [stderr] --> src/material.rs:82:48 [INFO] [stderr] | [INFO] [stderr] 82 | fn pdf(&self, exitant: &linear::Vec3, norm: &linear::Vec3) -> f64 { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_norm` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `incident` [INFO] [stderr] --> src/material.rs:88:20 [INFO] [stderr] | [INFO] [stderr] 88 | fn bsdf(&self, incident: f64, exitant: f64) -> linear::Vec3 { [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_incident` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `exitant` [INFO] [stderr] --> src/material.rs:88:35 [INFO] [stderr] | [INFO] [stderr] 88 | fn bsdf(&self, incident: f64, exitant: f64) -> linear::Vec3 { [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_exitant` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `exitant` [INFO] [stderr] --> src/material.rs:102:19 [INFO] [stderr] | [INFO] [stderr] 102 | fn pdf(&self, exitant: &linear::Vec3, norm: &linear::Vec3) -> f64 { [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_exitant` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `norm` [INFO] [stderr] --> src/material.rs:102:48 [INFO] [stderr] | [INFO] [stderr] 102 | fn pdf(&self, exitant: &linear::Vec3, norm: &linear::Vec3) -> f64 { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_norm` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `incident` [INFO] [stderr] --> src/material.rs:115:20 [INFO] [stderr] | [INFO] [stderr] 115 | fn bsdf(&self, incident: f64, exitant: f64) -> linear::Vec3 { [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_incident` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `exitant` [INFO] [stderr] --> src/material.rs:115:35 [INFO] [stderr] | [INFO] [stderr] 115 | fn bsdf(&self, incident: f64, exitant: f64) -> linear::Vec3 { [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_exitant` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `incident` [INFO] [stderr] --> src/material.rs:123:22 [INFO] [stderr] | [INFO] [stderr] 123 | fn sample(&self, incident: &linear::Vec3, norm: &linear::Vec3) -> linear::Vec3 { [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_incident` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `norm` [INFO] [stderr] --> src/material.rs:123:52 [INFO] [stderr] | [INFO] [stderr] 123 | fn sample(&self, incident: &linear::Vec3, norm: &linear::Vec3) -> linear::Vec3 { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_norm` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `exitant` [INFO] [stderr] --> src/material.rs:127:19 [INFO] [stderr] | [INFO] [stderr] 127 | fn pdf(&self, exitant: &linear::Vec3, norm: &linear::Vec3) -> f64 { [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_exitant` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `norm` [INFO] [stderr] --> src/material.rs:127:48 [INFO] [stderr] | [INFO] [stderr] 127 | fn pdf(&self, exitant: &linear::Vec3, norm: &linear::Vec3) -> f64 { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_norm` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `earth` [INFO] [stderr] --> src/main.rs:51:9 [INFO] [stderr] | [INFO] [stderr] 51 | let earth = scene::Sphere{mat: &material::GREEN_TESTING, pos: linear::Vec3{x: 0.0, y: -800.0, z: -5.0}, rad: 800.0}; [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_earth` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `red_light` [INFO] [stderr] --> src/main.rs:52:9 [INFO] [stderr] | [INFO] [stderr] 52 | let red_light = scene::Sphere{mat: &material::REDL_TESTING, pos: linear::Vec3{x: -4.0, y: 1.8, z: -3.2}, rad: 0.8}; [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_red_light` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `blue_light` [INFO] [stderr] --> src/main.rs:53:9 [INFO] [stderr] | [INFO] [stderr] 53 | let blue_light = scene::Sphere{mat: &material::BLUEL_TESTING, pos: linear::Vec3{x: 4.0, y: 1.8, z: -3.2}, rad: 0.8}; [INFO] [stderr] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_blue_light` [INFO] [stderr] [INFO] [stderr] warning: constant `WHITE` is never used [INFO] [stderr] --> src/scene.rs:5:11 [INFO] [stderr] | [INFO] [stderr] 5 | pub const WHITE: linear::Vec3 = linear::Vec3{x: 1.0, y: 1.0, z: 1.0}; [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: constant `RED` is never used [INFO] [stderr] --> src/scene.rs:7:11 [INFO] [stderr] | [INFO] [stderr] 7 | pub const RED: linear::Vec3 = linear::Vec3{x: 1.0, y: 0.0, z: 0.0}; [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `PURPLE` is never used [INFO] [stderr] --> src/scene.rs:8:11 [INFO] [stderr] | [INFO] [stderr] 8 | pub const PURPLE: linear::Vec3 = linear::Vec3{x: 1.0, y: 0.0, z: 1.0}; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `BLUE` is never used [INFO] [stderr] --> src/scene.rs:9:11 [INFO] [stderr] | [INFO] [stderr] 9 | pub const BLUE: linear::Vec3 = linear::Vec3{x: 0.0, y: 0.0, z: 1.0}; [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `GREEN` is never used [INFO] [stderr] --> src/scene.rs:10:11 [INFO] [stderr] | [INFO] [stderr] 10 | pub const GREEN: linear::Vec3 = linear::Vec3{x: 0.0, y: 1.0, z: 0.0}; [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `SKY` is never used [INFO] [stderr] --> src/scene.rs:11:11 [INFO] [stderr] | [INFO] [stderr] 11 | pub const SKY: linear::Vec3 = linear::Vec3{x: 0.2, y: 0.4, z: 0.9}; [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/scene.rs:21:18 [INFO] [stderr] | [INFO] [stderr] 21 | fn intersect(&self, r: &ray::Ray) -> Intersection; [INFO] [stderr] | ^^^^^ ------------ the lifetime gets resolved as `'_` [INFO] [stderr] | | [INFO] [stderr] | this lifetime flows to the output [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] 21 | fn intersect(&self, r: &ray::Ray) -> Intersection<'_>; [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/scene.rs:59:18 [INFO] [stderr] | [INFO] [stderr] 59 | fn intersect(&self, r: &ray::Ray) -> Intersection { [INFO] [stderr] | ^^^^^ ------------ the lifetime gets resolved as `'_` [INFO] [stderr] | | [INFO] [stderr] | this lifetime flows to the output [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] 59 | fn intersect(&self, r: &ray::Ray) -> Intersection<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/scene.rs:92:18 [INFO] [stderr] | [INFO] [stderr] 92 | fn intersect(&self, r: &ray::Ray) -> Intersection { [INFO] [stderr] | ^^^^^ ------------ the lifetime gets resolved as `'_` [INFO] [stderr] | | [INFO] [stderr] | this lifetime flows to the output [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] 92 | fn intersect(&self, r: &ray::Ray) -> Intersection<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: `SimpleRT` (bin "SimpleRT" test) generated 37 warnings (run `cargo fix --bin "SimpleRT" --tests` to apply 6 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.04s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/SimpleRT-a9c54a216aa0e01b) [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" "5700a38c500e6e77d993da1564dc9eaa030a355b23bc84785ec51c99f79a355b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5700a38c500e6e77d993da1564dc9eaa030a355b23bc84785ec51c99f79a355b", kill_on_drop: false }` [INFO] [stdout] 5700a38c500e6e77d993da1564dc9eaa030a355b23bc84785ec51c99f79a355b