[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] building AlexMC1997/Simple-RT against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAlexMC1997%2FSimple-RT" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/AlexMC1997/Simple-RT on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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-3-tc1/source/Cargo.toml [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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded num-complex v0.4.0 [INFO] [stderr] Downloaded ppv-lite86 v0.2.15 [INFO] [stderr] Downloaded num-rational v0.4.0 [INFO] [stderr] Downloaded num-bigint v0.4.2 [INFO] [stderr] Downloaded libc v0.2.105 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 219cb7bc866bc1337d1999a0551f84b8257d7f6f8d0a9af43696088c481e27aa [INFO] running `Command { std: "docker" "start" "-a" "219cb7bc866bc1337d1999a0551f84b8257d7f6f8d0a9af43696088c481e27aa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "219cb7bc866bc1337d1999a0551f84b8257d7f6f8d0a9af43696088c481e27aa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "219cb7bc866bc1337d1999a0551f84b8257d7f6f8d0a9af43696088c481e27aa", kill_on_drop: false }` [INFO] [stdout] 219cb7bc866bc1337d1999a0551f84b8257d7f6f8d0a9af43696088c481e27aa [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 22655c880fd0ae964c7db63e6cb53186913361652535d716b550d61e5ffb0475 [INFO] running `Command { std: "docker" "start" "-a" "22655c880fd0ae964c7db63e6cb53186913361652535d716b550d61e5ffb0475", 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-iter v0.1.42 [INFO] [stderr] Compiling num-rational v0.4.0 [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 num-complex v0.4.0 [INFO] [stderr] Compiling ordered-float v1.1.1 [INFO] [stderr] Compiling rand_chacha v0.3.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] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.26s [INFO] running `Command { std: "docker" "inspect" "22655c880fd0ae964c7db63e6cb53186913361652535d716b550d61e5ffb0475", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "22655c880fd0ae964c7db63e6cb53186913361652535d716b550d61e5ffb0475", kill_on_drop: false }` [INFO] [stdout] 22655c880fd0ae964c7db63e6cb53186913361652535d716b550d61e5ffb0475 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 14f0e58b96af58bef0fe9b15687aca2468cb20a4e98ee307ce2a24dd1f7f0acf [INFO] running `Command { std: "docker" "start" "-a" "14f0e58b96af58bef0fe9b15687aca2468cb20a4e98ee307ce2a24dd1f7f0acf", 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] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.17s [INFO] running `Command { std: "docker" "inspect" "14f0e58b96af58bef0fe9b15687aca2468cb20a4e98ee307ce2a24dd1f7f0acf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "14f0e58b96af58bef0fe9b15687aca2468cb20a4e98ee307ce2a24dd1f7f0acf", kill_on_drop: false }` [INFO] [stdout] 14f0e58b96af58bef0fe9b15687aca2468cb20a4e98ee307ce2a24dd1f7f0acf