[INFO] cloning repository https://github.com/ashvin-verma/pobert [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ashvin-verma/pobert" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fashvin-verma%2Fpobert", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fashvin-verma%2Fpobert'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0f220f49438ea8970c39c91195d9629818935030 [INFO] checking ashvin-verma/pobert/0f220f49438ea8970c39c91195d9629818935030 against master#ab869e094a907cc5d19b4080f22eccaf347f1f95 for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fashvin-verma%2Fpobert" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ashvin-verma/pobert on toolchain ab869e094a907cc5d19b4080f22eccaf347f1f95 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ashvin-verma/pobert [INFO] finished tweaking git repo https://github.com/ashvin-verma/pobert [INFO] tweaked toml for git repo https://github.com/ashvin-verma/pobert written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/ashvin-verma/pobert 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" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] cd325c8720f2289fd0719d3977a369179e5c152924e3fe80835a934bc8249695 [INFO] running `Command { std: "docker" "start" "-a" "cd325c8720f2289fd0719d3977a369179e5c152924e3fe80835a934bc8249695", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "cd325c8720f2289fd0719d3977a369179e5c152924e3fe80835a934bc8249695", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cd325c8720f2289fd0719d3977a369179e5c152924e3fe80835a934bc8249695", kill_on_drop: false }` [INFO] [stdout] cd325c8720f2289fd0719d3977a369179e5c152924e3fe80835a934bc8249695 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d480dd7f8a5414caf6f20ebcfef4cb1053baaf76de9b6699210b3ee7c09320fe [INFO] running `Command { std: "docker" "start" "-a" "d480dd7f8a5414caf6f20ebcfef4cb1053baaf76de9b6699210b3ee7c09320fe", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.158 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Compiling portable-atomic v1.7.0 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Checking unicode-width v0.1.13 [INFO] [stderr] Checking number_prefix v0.4.0 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling syn v2.0.76 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking console v0.15.8 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking indicatif v0.17.8 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking pobert v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Initialize` [INFO] [stdout] --> src/main.rs:1:22 [INFO] [stdout] | [INFO] [stdout] 1 | use camera::{Camera, Initialize, Render}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `indicatif::ProgressBar` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use indicatif::ProgressBar; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `interval::Interval` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use interval::Interval; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `point3::Point3` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use point3::Point3; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ray::At` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use ray::At; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `INF` [INFO] [stdout] --> src/main.rs:6:38 [INFO] [stdout] | [INFO] [stdout] 6 | use rtweekend::{random_double_range, INF}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HitRecord` and `Hit` [INFO] [stdout] --> src/main.rs:7:19 [INFO] [stdout] | [INFO] [stdout] 7 | use sphere::{Add, Hit, HitRecord, HittableList, New, Sphere}; [INFO] [stdout] | ^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `LengthSquared`, `Unit`, and `dot` [INFO] [stdout] --> src/main.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | use vec3::{dot, element_wise_mul, random, random_range, Length, LengthSquared, Unit, Vec3}; [INFO] [stdout] | ^^^ ^^^^^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp::min` [INFO] [stdout] --> src/vec3.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cmp::min; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mul` [INFO] [stdout] --> src/ray.rs:1:19 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::vec3::{mul, Vec3}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Mul` [INFO] [stdout] --> src/sphere.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ops::Mul; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Scatter` [INFO] [stdout] --> src/sphere.rs:3:39 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::material::{self, Material, Scatter}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `div` and `mul` [INFO] [stdout] --> src/sphere.rs:4:19 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::vec3::{div, LengthSquared, mul, Dot, Vec3}; [INFO] [stdout] | ^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Length`, `random_on_hemisphere`, `random_unit_vector`, and `self` [INFO] [stdout] --> src/camera.rs:3:96 [INFO] [stdout] | [INFO] [stdout] 3 | ...::{self, Direction, Ray}, rtweekend::{degrees_to_radians, random_double, INF}, sphere::{Hit, HitRecord, HittableList, New}, vec3::{cross, element_wise_mul, random_in_unit_disk, random_on_hemisphere, random_unit_vector, Length, U... [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/camera.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 51 | if (depth <= 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 51 - if (depth <= 0) { [INFO] [stdout] 51 + if depth <= 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Initialize` [INFO] [stdout] --> src/main.rs:1:22 [INFO] [stdout] | [INFO] [stdout] 1 | use camera::{Camera, Initialize, Render}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `indicatif::ProgressBar` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use indicatif::ProgressBar; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `interval::Interval` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use interval::Interval; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `point3::Point3` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use point3::Point3; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ray::At` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use ray::At; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `INF` [INFO] [stdout] --> src/main.rs:6:38 [INFO] [stdout] | [INFO] [stdout] 6 | use rtweekend::{random_double_range, INF}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HitRecord` and `Hit` [INFO] [stdout] --> src/main.rs:7:19 [INFO] [stdout] | [INFO] [stdout] 7 | use sphere::{Add, Hit, HitRecord, HittableList, New, Sphere}; [INFO] [stdout] | ^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `LengthSquared`, `Unit`, and `dot` [INFO] [stdout] --> src/main.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | use vec3::{dot, element_wise_mul, random, random_range, Length, LengthSquared, Unit, Vec3}; [INFO] [stdout] | ^^^ ^^^^^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp::min` [INFO] [stdout] --> src/vec3.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cmp::min; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mul` [INFO] [stdout] --> src/ray.rs:1:19 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::vec3::{mul, Vec3}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Mul` [INFO] [stdout] --> src/sphere.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ops::Mul; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Scatter` [INFO] [stdout] --> src/sphere.rs:3:39 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::material::{self, Material, Scatter}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `div` and `mul` [INFO] [stdout] --> src/sphere.rs:4:19 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::vec3::{div, LengthSquared, mul, Dot, Vec3}; [INFO] [stdout] | ^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Length`, `random_on_hemisphere`, `random_unit_vector`, and `self` [INFO] [stdout] --> src/camera.rs:3:96 [INFO] [stdout] | [INFO] [stdout] 3 | ...::{self, Direction, Ray}, rtweekend::{degrees_to_radians, random_double, INF}, sphere::{Hit, HitRecord, HittableList, New}, vec3::{cross, element_wise_mul, random_in_unit_disk, random_on_hemisphere, random_unit_vector, Length, U... [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/camera.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 51 | if (depth <= 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 51 - if (depth <= 0) { [INFO] [stdout] 51 + if depth <= 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r_in` [INFO] [stdout] --> src/material.rs:77:23 [INFO] [stdout] | [INFO] [stdout] 77 | fn scatter(&self, r_in: &Ray, rec: &mut HitRecord, mut attenuation: &mut Vec3, mut scattered: &mut Ray) -> bool { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_r_in` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/material.rs:77:56 [INFO] [stdout] | [INFO] [stdout] 77 | fn scatter(&self, r_in: &Ray, rec: &mut HitRecord, mut attenuation: &mut Vec3, mut scattered: &mut Ray) -> bool { [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/material.rs:77:84 [INFO] [stdout] | [INFO] [stdout] 77 | fn scatter(&self, r_in: &Ray, rec: &mut HitRecord, mut attenuation: &mut Vec3, mut scattered: &mut Ray) -> bool { [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/material.rs:94:56 [INFO] [stdout] | [INFO] [stdout] 94 | fn scatter(&self, r_in: &Ray, rec: &mut HitRecord, mut attenuation: &mut Color, mut scattered: &mut Ray) -> bool { [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/material.rs:94:85 [INFO] [stdout] | [INFO] [stdout] 94 | fn scatter(&self, r_in: &Ray, rec: &mut HitRecord, mut attenuation: &mut Color, mut scattered: &mut Ray) -> bool { [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/material.rs:117:56 [INFO] [stdout] | [INFO] [stdout] 117 | fn scatter(&self, r_in: &Ray, rec: &mut HitRecord, mut attenuation: &mut Color, mut scattered: &mut Ray) -> bool { [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/material.rs:117:85 [INFO] [stdout] | [INFO] [stdout] 117 | fn scatter(&self, r_in: &Ray, rec: &mut HitRecord, mut attenuation: &mut Color, mut scattered: &mut Ray) -> bool { [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `cross` is never used [INFO] [stdout] --> src/vec3.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 27 | pub trait Cross { [INFO] [stdout] | ----- method in this trait [INFO] [stdout] 28 | fn cross(&self, rhs: Self) -> Self; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `div` is never used [INFO] [stdout] --> src/vec3.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 35 | pub trait Division { [INFO] [stdout] | -------- method in this trait [INFO] [stdout] 36 | type Output; [INFO] [stdout] 37 | fn div(self, rhs: f32) -> Self::Output; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `mul` is never used [INFO] [stdout] --> src/vec3.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 40 | pub trait Multiplication { [INFO] [stdout] | -------------- method in this trait [INFO] [stdout] 41 | type Output; [INFO] [stdout] 42 | fn mul(self, rhs: f32) -> Self::Output; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mul` is never used [INFO] [stdout] --> src/vec3.rs:158:8 [INFO] [stdout] | [INFO] [stdout] 158 | pub fn mul (v: Vec3, t: f32) -> Vec3 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `div` is never used [INFO] [stdout] --> src/vec3.rs:166:8 [INFO] [stdout] | [INFO] [stdout] 166 | pub fn div (v: Vec3, t: f32) -> Vec3 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `random_on_hemisphere` is never used [INFO] [stdout] --> src/vec3.rs:237:8 [INFO] [stdout] | [INFO] [stdout] 237 | pub fn random_on_hemisphere(normal: &Vec3) -> Vec3 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `clear` is never used [INFO] [stdout] --> src/sphere.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub trait Clear { [INFO] [stdout] | ----- method in this trait [INFO] [stdout] 14 | fn clear(&mut self); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/sphere.rs:179:12 [INFO] [stdout] | [INFO] [stdout] 178 | impl Sphere { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 179 | pub fn new(center: Point3, radius: f32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `size` is never used [INFO] [stdout] --> src/interval.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait Size { [INFO] [stdout] | ---- method in this trait [INFO] [stdout] 4 | fn size(&self) -> f32; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `contains` is never used [INFO] [stdout] --> src/interval.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub trait Contains { [INFO] [stdout] | -------- method in this trait [INFO] [stdout] 8 | fn contains(&self, x: f32) -> bool; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constants `EMPTY` and `UNIVERSE` are never used [INFO] [stdout] --> src/interval.rs:50:11 [INFO] [stdout] | [INFO] [stdout] 49 | impl Interval { [INFO] [stdout] | ------------- associated constants in this implementation [INFO] [stdout] 50 | const EMPTY: Interval = Interval { min: INF, max: -INF }; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 51 | const UNIVERSE: Interval = Interval { min: -INF, max: INF }; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 33 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r_in` [INFO] [stdout] --> src/material.rs:77:23 [INFO] [stdout] | [INFO] [stdout] 77 | fn scatter(&self, r_in: &Ray, rec: &mut HitRecord, mut attenuation: &mut Vec3, mut scattered: &mut Ray) -> bool { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_r_in` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/material.rs:77:56 [INFO] [stdout] | [INFO] [stdout] 77 | fn scatter(&self, r_in: &Ray, rec: &mut HitRecord, mut attenuation: &mut Vec3, mut scattered: &mut Ray) -> bool { [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/material.rs:77:84 [INFO] [stdout] | [INFO] [stdout] 77 | fn scatter(&self, r_in: &Ray, rec: &mut HitRecord, mut attenuation: &mut Vec3, mut scattered: &mut Ray) -> bool { [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/material.rs:94:56 [INFO] [stdout] | [INFO] [stdout] 94 | fn scatter(&self, r_in: &Ray, rec: &mut HitRecord, mut attenuation: &mut Color, mut scattered: &mut Ray) -> bool { [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/material.rs:94:85 [INFO] [stdout] | [INFO] [stdout] 94 | fn scatter(&self, r_in: &Ray, rec: &mut HitRecord, mut attenuation: &mut Color, mut scattered: &mut Ray) -> bool { [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/material.rs:117:56 [INFO] [stdout] | [INFO] [stdout] 117 | fn scatter(&self, r_in: &Ray, rec: &mut HitRecord, mut attenuation: &mut Color, mut scattered: &mut Ray) -> bool { [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/material.rs:117:85 [INFO] [stdout] | [INFO] [stdout] 117 | fn scatter(&self, r_in: &Ray, rec: &mut HitRecord, mut attenuation: &mut Color, mut scattered: &mut Ray) -> bool { [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `cross` is never used [INFO] [stdout] --> src/vec3.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 27 | pub trait Cross { [INFO] [stdout] | ----- method in this trait [INFO] [stdout] 28 | fn cross(&self, rhs: Self) -> Self; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `div` is never used [INFO] [stdout] --> src/vec3.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 35 | pub trait Division { [INFO] [stdout] | -------- method in this trait [INFO] [stdout] 36 | type Output; [INFO] [stdout] 37 | fn div(self, rhs: f32) -> Self::Output; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `mul` is never used [INFO] [stdout] --> src/vec3.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 40 | pub trait Multiplication { [INFO] [stdout] | -------------- method in this trait [INFO] [stdout] 41 | type Output; [INFO] [stdout] 42 | fn mul(self, rhs: f32) -> Self::Output; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mul` is never used [INFO] [stdout] --> src/vec3.rs:158:8 [INFO] [stdout] | [INFO] [stdout] 158 | pub fn mul (v: Vec3, t: f32) -> Vec3 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `div` is never used [INFO] [stdout] --> src/vec3.rs:166:8 [INFO] [stdout] | [INFO] [stdout] 166 | pub fn div (v: Vec3, t: f32) -> Vec3 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `random_on_hemisphere` is never used [INFO] [stdout] --> src/vec3.rs:237:8 [INFO] [stdout] | [INFO] [stdout] 237 | pub fn random_on_hemisphere(normal: &Vec3) -> Vec3 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `clear` is never used [INFO] [stdout] --> src/sphere.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub trait Clear { [INFO] [stdout] | ----- method in this trait [INFO] [stdout] 14 | fn clear(&mut self); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/sphere.rs:179:12 [INFO] [stdout] | [INFO] [stdout] 178 | impl Sphere { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 179 | pub fn new(center: Point3, radius: f32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `size` is never used [INFO] [stdout] --> src/interval.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait Size { [INFO] [stdout] | ---- method in this trait [INFO] [stdout] 4 | fn size(&self) -> f32; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `contains` is never used [INFO] [stdout] --> src/interval.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub trait Contains { [INFO] [stdout] | -------- method in this trait [INFO] [stdout] 8 | fn contains(&self, x: f32) -> bool; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constants `EMPTY` and `UNIVERSE` are never used [INFO] [stdout] --> src/interval.rs:50:11 [INFO] [stdout] | [INFO] [stdout] 49 | impl Interval { [INFO] [stdout] | ------------- associated constants in this implementation [INFO] [stdout] 50 | const EMPTY: Interval = Interval { min: INF, max: -INF }; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 51 | const UNIVERSE: Interval = Interval { min: -INF, max: INF }; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 33 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 8.09s [INFO] running `Command { std: "docker" "inspect" "d480dd7f8a5414caf6f20ebcfef4cb1053baaf76de9b6699210b3ee7c09320fe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d480dd7f8a5414caf6f20ebcfef4cb1053baaf76de9b6699210b3ee7c09320fe", kill_on_drop: false }` [INFO] [stdout] d480dd7f8a5414caf6f20ebcfef4cb1053baaf76de9b6699210b3ee7c09320fe