[INFO] cloning repository https://github.com/fredrikln/the-raytracer-challenge [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/fredrikln/the-raytracer-challenge" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffredrikln%2Fthe-raytracer-challenge", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffredrikln%2Fthe-raytracer-challenge'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 731e9e48fc675afe77d1b9d2d63aaf76fed006ef [INFO] checking fredrikln/the-raytracer-challenge/731e9e48fc675afe77d1b9d2d63aaf76fed006ef against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffredrikln%2Fthe-raytracer-challenge" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/fredrikln/the-raytracer-challenge on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/fredrikln/the-raytracer-challenge [INFO] finished tweaking git repo https://github.com/fredrikln/the-raytracer-challenge [INFO] tweaked toml for git repo https://github.com/fredrikln/the-raytracer-challenge written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/fredrikln/the-raytracer-challenge 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" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 00bb934078509bf3fda56df366708f77a534a6bc64968d1751ca46aade8e1c1c [INFO] running `Command { std: "docker" "start" "-a" "00bb934078509bf3fda56df366708f77a534a6bc64968d1751ca46aade8e1c1c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "00bb934078509bf3fda56df366708f77a534a6bc64968d1751ca46aade8e1c1c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "00bb934078509bf3fda56df366708f77a534a6bc64968d1751ca46aade8e1c1c", kill_on_drop: false }` [INFO] [stdout] 00bb934078509bf3fda56df366708f77a534a6bc64968d1751ca46aade8e1c1c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9bb6ccc361697409fee0d7a47386888384aa552f1d88775db52b95d6c32be721 [INFO] running `Command { std: "docker" "start" "-a" "9bb6ccc361697409fee0d7a47386888384aa552f1d88775db52b95d6c32be721", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling autocfg v0.1.7 [INFO] [stderr] Compiling const_fn v0.4.2 [INFO] [stderr] Compiling byteorder v1.3.2 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling libc v0.2.65 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Compiling rayon-core v1.9.0 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling num-traits v0.2.9 [INFO] [stderr] Compiling crossbeam-utils v0.8.0 [INFO] [stderr] Compiling memoffset v0.5.6 [INFO] [stderr] Compiling num-integer v0.1.41 [INFO] [stderr] Compiling rayon v1.5.0 [INFO] [stderr] Compiling crc32fast v1.2.0 [INFO] [stderr] Checking adler32 v1.0.4 [INFO] [stderr] Compiling num-derive v0.2.5 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Checking num_cpus v1.11.1 [INFO] [stderr] Compiling num-rational v0.2.2 [INFO] [stderr] Compiling num-iter v0.1.39 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Checking lzw v0.10.0 [INFO] [stderr] Checking either v1.5.3 [INFO] [stderr] Checking crossbeam-epoch v0.9.0 [INFO] [stderr] Checking crossbeam-channel v0.5.0 [INFO] [stderr] Checking deflate v0.7.20 [INFO] [stderr] Checking inflate v0.4.5 [INFO] [stderr] Checking color_quant v1.0.1 [INFO] [stderr] Checking scoped_threadpool v0.1.9 [INFO] [stderr] Checking gif v0.10.3 [INFO] [stderr] Checking crossbeam-deque v0.8.0 [INFO] [stderr] Checking png v0.15.0 [INFO] [stderr] Checking tiff v0.3.1 [INFO] [stderr] Checking jpeg-decoder v0.1.16 [INFO] [stderr] Checking image v0.22.3 [INFO] [stderr] Checking raytracer v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::thread` [INFO] [stdout] --> src/camera.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::thread; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Path` [INFO] [stdout] --> src/canvas.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::path::Path; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::intersection::Intersection` [INFO] [stdout] --> src/cube.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::intersection::Intersection; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Object` [INFO] [stdout] --> src/cube.rs:7:21 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::object::{Object,Intersectable}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::sphere::Sphere` [INFO] [stdout] --> src/intersection.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::sphere::Sphere; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::intersection::Intersection` [INFO] [stdout] --> src/plane.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::intersection::Intersection; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Object` [INFO] [stdout] --> src/plane.rs:7:21 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::object::{Object,Intersectable}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::intersection::Intersection` [INFO] [stdout] --> src/sphere.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::intersection::Intersection; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Object` [INFO] [stdout] --> src/sphere.rs:7:21 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::object::{Object,Intersectable}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::vector::Vector` [INFO] [stdout] --> src/world.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::vector::Vector; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread` [INFO] [stdout] --> src/camera.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::thread; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Path` [INFO] [stdout] --> src/canvas.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::path::Path; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::intersection::Intersection` [INFO] [stdout] --> src/cube.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::intersection::Intersection; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Object` [INFO] [stdout] --> src/cube.rs:7:21 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::object::{Object,Intersectable}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::sphere::Sphere` [INFO] [stdout] --> src/intersection.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::sphere::Sphere; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::intersection::Intersection` [INFO] [stdout] --> src/plane.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::intersection::Intersection; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Object` [INFO] [stdout] --> src/plane.rs:7:21 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::object::{Object,Intersectable}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::matrix::Matrix` [INFO] [stdout] --> src/plane.rs:67:7 [INFO] [stdout] | [INFO] [stdout] 67 | use crate::matrix::Matrix; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::material::Material` [INFO] [stdout] --> src/plane.rs:68:7 [INFO] [stdout] | [INFO] [stdout] 68 | use crate::material::Material; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::canvas::Color` [INFO] [stdout] --> src/plane.rs:69:7 [INFO] [stdout] | [INFO] [stdout] 69 | use crate::canvas::Color; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Object` [INFO] [stdout] --> src/plane.rs:70:23 [INFO] [stdout] | [INFO] [stdout] 70 | use crate::object::{Object, Intersectable}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::sphere::Sphere` [INFO] [stdout] --> src/ray.rs:46:7 [INFO] [stdout] | [INFO] [stdout] 46 | use crate::sphere::Sphere; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::intersection::Intersection` [INFO] [stdout] --> src/sphere.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::intersection::Intersection; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Object` [INFO] [stdout] --> src/sphere.rs:7:21 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::object::{Object,Intersectable}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Object` [INFO] [stdout] --> src/sphere.rs:81:23 [INFO] [stdout] | [INFO] [stdout] 81 | use crate::object::{Object, Intersectable}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::vector::Vector` [INFO] [stdout] --> src/world.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::vector::Vector; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> src/plane.rs:18:20 [INFO] [stdout] | [INFO] [stdout] 18 | fn normal(&self, p: Point) -> Vector { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [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/world.rs:52:11 [INFO] [stdout] | [INFO] [stdout] 52 | let mut object_intersections = object.intersect(r); [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: unused variable: `light1` [INFO] [stdout] --> src/main.rs:248:7 [INFO] [stdout] | [INFO] [stdout] 248 | let light1 = PointLight { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_light1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `light2` [INFO] [stdout] --> src/main.rs:260:7 [INFO] [stdout] | [INFO] [stdout] 260 | let light2 = PointLight { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_light2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `light3` [INFO] [stdout] --> src/main.rs:272:7 [INFO] [stdout] | [INFO] [stdout] 272 | let light3 = PointLight { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_light3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `light4` [INFO] [stdout] --> src/main.rs:284:7 [INFO] [stdout] | [INFO] [stdout] 284 | let light4 = PointLight { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_light4` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_pixel` is never used [INFO] [stdout] --> src/canvas.rs:99:10 [INFO] [stdout] | [INFO] [stdout] 86 | impl Canvas { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 99 | pub fn get_pixel(&self, x: u32, y: u32) -> Color { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_transform` is never used [INFO] [stdout] --> src/cube.rs:76:10 [INFO] [stdout] | [INFO] [stdout] 67 | impl Cube { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 76 | pub fn set_transform(&mut self, transform: Matrix) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `time` and `inside` are never read [INFO] [stdout] --> src/intersection.rs:119:7 [INFO] [stdout] | [INFO] [stdout] 118 | pub struct Computations<'a> { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 119 | pub time: f64, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 125 | pub inside: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Computations` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `lighting` is never used [INFO] [stdout] --> src/material.rs:36:10 [INFO] [stdout] | [INFO] [stdout] 21 | impl Material { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn lighting(&self, light: PointLight, position: Point, eye_vector: Vector, normal: Vector, in_shadow: bool) -> Color { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `cofactor`, `determinant`, and `shear` are never used [INFO] [stdout] --> src/matrix.rs:46:10 [INFO] [stdout] | [INFO] [stdout] 11 | impl Matrix { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn cofactor(&self, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn determinant(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 123 | pub fn shear(xy: f64, xz: f64, yx: f64, yz: f64, zx: f64, zy: f64) -> Matrix { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `default` is never used [INFO] [stdout] --> src/pattern.rs:28:10 [INFO] [stdout] | [INFO] [stdout] 19 | impl StripedPattern { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn default() -> StripedPattern { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `default` is never used [INFO] [stdout] --> src/pattern.rs:67:10 [INFO] [stdout] | [INFO] [stdout] 58 | impl GradientPattern { [INFO] [stdout] | -------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 67 | pub fn default() -> GradientPattern { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_transform` is never used [INFO] [stdout] --> src/plane.rs:56:10 [INFO] [stdout] | [INFO] [stdout] 47 | impl Plane { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 56 | pub fn set_transform(&mut self, transform: Matrix) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_transform` is never used [INFO] [stdout] --> src/sphere.rs:67:10 [INFO] [stdout] | [INFO] [stdout] 58 | impl Sphere { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 67 | pub fn set_transform(&mut self, transform: Matrix) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new` and `default` are never used [INFO] [stdout] --> src/world.rs:22:10 [INFO] [stdout] | [INFO] [stdout] 21 | impl World { [INFO] [stdout] | ---------- associated functions in this implementation [INFO] [stdout] 22 | pub fn new() -> World { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn default() -> World { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 26 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this method takes 3 arguments but 1 argument was supplied [INFO] [stdout] --> src/camera.rs:379:19 [INFO] [stdout] | [INFO] [stdout] 379 | let image = c.render(w); [INFO] [stdout] | ^^^^^^--- two arguments of type `bool` and `u8` are missing [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/camera.rs:82:10 [INFO] [stdout] | [INFO] [stdout] 82 | pub fn render(self, w: World, antialias: bool, max_steps: u8) -> Canvas { [INFO] [stdout] | ^^^^^^ -------- --------------- ------------- [INFO] [stdout] help: provide the arguments [INFO] [stdout] | [INFO] [stdout] 379 | let image = c.render(w, /* bool */, /* u8 */); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/pattern.rs:128:9 [INFO] [stdout] | [INFO] [stdout] 128 | let mut pa = StripedPattern::new(white, black); [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/pattern.rs:139:9 [INFO] [stdout] | [INFO] [stdout] 139 | let mut pa = StripedPattern::new(white, black); [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/pattern.rs:151:9 [INFO] [stdout] | [INFO] [stdout] 151 | let mut pa = StripedPattern::new(white, black); [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/pattern.rs:162:9 [INFO] [stdout] | [INFO] [stdout] 162 | let mut pa = StripedPattern::new(white, black); [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/pattern.rs:218:9 [INFO] [stdout] | [INFO] [stdout] 218 | let mut pa = GradientPattern::new(white, black); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> src/plane.rs:18:20 [INFO] [stdout] | [INFO] [stdout] 18 | fn normal(&self, p: Point) -> Vector { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [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/world.rs:52:11 [INFO] [stdout] | [INFO] [stdout] 52 | let mut object_intersections = object.intersect(r); [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `light1` [INFO] [stdout] --> src/main.rs:248:7 [INFO] [stdout] | [INFO] [stdout] 248 | let light1 = PointLight { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_light1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `light2` [INFO] [stdout] --> src/main.rs:260:7 [INFO] [stdout] | [INFO] [stdout] 260 | let light2 = PointLight { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_light2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `light3` [INFO] [stdout] --> src/main.rs:272:7 [INFO] [stdout] | [INFO] [stdout] 272 | let light3 = PointLight { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_light3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `light4` [INFO] [stdout] --> src/main.rs:284:7 [INFO] [stdout] | [INFO] [stdout] 284 | let light4 = PointLight { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_light4` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 27 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] error: could not compile `raytracer` (bin "raytracer" test) due to 2 previous errors; 27 warnings emitted [INFO] running `Command { std: "docker" "inspect" "9bb6ccc361697409fee0d7a47386888384aa552f1d88775db52b95d6c32be721", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9bb6ccc361697409fee0d7a47386888384aa552f1d88775db52b95d6c32be721", kill_on_drop: false }` [INFO] [stdout] 9bb6ccc361697409fee0d7a47386888384aa552f1d88775db52b95d6c32be721