[INFO] cloning repository https://github.com/rwmorton/rust_raytracer [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/rwmorton/rust_raytracer" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frwmorton%2Frust_raytracer", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frwmorton%2Frust_raytracer'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1746765767b8906f87be0bade9e9ae61642a22cf [INFO] checking rwmorton/rust_raytracer against master#4847d6a9d07d4be9ba3196f6ad444af2d7bdde72 for pr-134276 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frwmorton%2Frust_raytracer" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/rwmorton/rust_raytracer on toolchain 4847d6a9d07d4be9ba3196f6ad444af2d7bdde72 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4847d6a9d07d4be9ba3196f6ad444af2d7bdde72" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/rwmorton/rust_raytracer [INFO] finished tweaking git repo https://github.com/rwmorton/rust_raytracer [INFO] tweaked toml for git repo https://github.com/rwmorton/rust_raytracer written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/rwmorton/rust_raytracer already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4847d6a9d07d4be9ba3196f6ad444af2d7bdde72" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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" "+4847d6a9d07d4be9ba3196f6ad444af2d7bdde72" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 03ef0738b7752f15201db2537c3835aec04f9b2c12b4d99a701b65ee6d0eb05e [INFO] running `Command { std: "docker" "start" "-a" "03ef0738b7752f15201db2537c3835aec04f9b2c12b4d99a701b65ee6d0eb05e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "03ef0738b7752f15201db2537c3835aec04f9b2c12b4d99a701b65ee6d0eb05e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "03ef0738b7752f15201db2537c3835aec04f9b2c12b4d99a701b65ee6d0eb05e", kill_on_drop: false }` [INFO] [stdout] 03ef0738b7752f15201db2537c3835aec04f9b2c12b4d99a701b65ee6d0eb05e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+4847d6a9d07d4be9ba3196f6ad444af2d7bdde72" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3abcfdd3702c598bae598c26b78b29ddf1129e4f08a83d2efae8533d9c232370 [INFO] running `Command { std: "docker" "start" "-a" "3abcfdd3702c598bae598c26b78b29ddf1129e4f08a83d2efae8533d9c232370", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Checking rand_core v0.4.2 [INFO] [stderr] Compiling libc v0.2.137 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling sdl2 v0.32.2 [INFO] [stderr] Checking ppv-lite86 v0.2.16 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Compiling sdl2-sys v0.32.6 [INFO] [stderr] Checking rand_core v0.3.1 [INFO] [stderr] Checking rand_jitter v0.1.4 [INFO] [stderr] Checking rand_hc v0.1.0 [INFO] [stderr] Checking rand_xorshift v0.1.1 [INFO] [stderr] Checking rand_isaac v0.1.1 [INFO] [stderr] Compiling autocfg v0.1.8 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling num-iter v0.1.43 [INFO] [stderr] Compiling rand_pcg v0.1.2 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Checking getrandom v0.2.8 [INFO] [stderr] Checking rand_os v0.1.3 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking num v0.1.42 [INFO] [stderr] Checking rust_raytracer v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `vector::Vector` [INFO] [stdout] --> src/scene/world.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | vector::Vector, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `vector::Vector` [INFO] [stdout] --> src/scene/plane.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | vector::Vector, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TextureCreator` and `Texture` [INFO] [stdout] --> src/view/window.rs:7:21 [INFO] [stdout] | [INFO] [stdout] 7 | render::{Canvas,TextureCreator,Texture}, [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/view/window.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TextureCreator` and `Texture` [INFO] [stdout] --> src/view/window.rs:7:21 [INFO] [stdout] | [INFO] [stdout] 7 | render::{Canvas,TextureCreator,Texture}, [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/view/window.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/math/ray.rs:35:21 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn at(&self,t: f64) -> Point { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `color` [INFO] [stdout] --> src/view/window.rs:126:17 [INFO] [stdout] | [INFO] [stdout] 126 | let color: Color = Color::new(0.,0.,0.,1.).unwrap(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/view/window.rs:75:13 [INFO] [stdout] | [INFO] [stdout] 75 | let mut s_radius = 0.5; [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/view/window.rs:76:13 [INFO] [stdout] | [INFO] [stdout] 76 | let mut sphere = Sphere::new(s_radius,s_center); [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/view/window.rs:140:33 [INFO] [stdout] | [INFO] [stdout] 140 | ... let mut v = x - s_center; [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/image/film.rs:70:13 [INFO] [stdout] | [INFO] [stdout] 70 | let mut fx = 2.0 / (self.width as f64); [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/image/film.rs:71:13 [INFO] [stdout] | [INFO] [stdout] 71 | let mut fy = 2.0 / (self.height as f64); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `X_AXIS` is never used [INFO] [stdout] --> src/math/vector.rs:23:11 [INFO] [stdout] | [INFO] [stdout] 23 | pub const X_AXIS: Vector = Vector{x: 1.0,y: 0.0,z: 0.0}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `Y_AXIS` is never used [INFO] [stdout] --> src/math/vector.rs:24:11 [INFO] [stdout] | [INFO] [stdout] 24 | pub const Y_AXIS: Vector = Vector{x: 0.0,y: 1.0,z: 0.0}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `Z_AXIS` is never used [INFO] [stdout] --> src/math/vector.rs:25:11 [INFO] [stdout] | [INFO] [stdout] 25 | pub const Z_AXIS: Vector = Vector{x: 0.0,y: 0.0,z: 1.0}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `distance_sq` and `distance` are never used [INFO] [stdout] --> src/math/point.rs:80:12 [INFO] [stdout] | [INFO] [stdout] 73 | impl Point { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 80 | pub fn distance_sq(self,p: Point) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 85 | pub fn distance(self,p: Point) -> f64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `IDENTITY` is never used [INFO] [stdout] --> src/math/matrix.rs:27:11 [INFO] [stdout] | [INFO] [stdout] 27 | pub const IDENTITY: Matrix = Matrix { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `at`, `set`, and `transpose` are never used [INFO] [stdout] --> src/math/matrix.rs:166:12 [INFO] [stdout] | [INFO] [stdout] 165 | impl Matrix { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 166 | pub fn new() -> Matrix { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 178 | pub fn at(&self,i: usize,j: usize) -> Result { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 187 | pub fn set [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 238 | pub fn transpose(&self) -> Matrix { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `at` is never used [INFO] [stdout] --> src/math/ray.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 25 | impl Ray { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn at(&self,t: f64) -> Point { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `cross` is never used [INFO] [stdout] --> src/math/traits.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub trait Cross { [INFO] [stdout] | ----- method in this trait [INFO] [stdout] 14 | type Output; [INFO] [stdout] 15 | fn cross(&self,rhs: Rhs) -> Self::Output; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `normalize` is never used [INFO] [stdout] --> src/math/traits.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 18 | pub trait Normalize { [INFO] [stdout] | --------- method in this trait [INFO] [stdout] 19 | type Output; [INFO] [stdout] 20 | fn normalize(&self) -> Result; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `update` is never used [INFO] [stdout] --> src/view/window.rs:179:8 [INFO] [stdout] | [INFO] [stdout] 34 | impl<'a> Window<'a> { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 179 | fn update(&mut self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `WHITE` is never used [INFO] [stdout] --> src/image/color.rs:18:11 [INFO] [stdout] | [INFO] [stdout] 18 | pub const WHITE: Color = Color{r: 1.0,g: 1.0,b: 1.0,a: 1.0}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RED` is never used [INFO] [stdout] --> src/image/color.rs:20:11 [INFO] [stdout] | [INFO] [stdout] 20 | pub const RED : Color = Color{r: 1.0,g: 0.0,b: 0.0,a: 1.0}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GREEN` is never used [INFO] [stdout] --> src/image/color.rs:21:11 [INFO] [stdout] | [INFO] [stdout] 21 | pub const GREEN: Color = Color{r: 0.0,g: 1.0,b: 0.0,a: 1.0}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BLUE` is never used [INFO] [stdout] --> src/image/color.rs:22:11 [INFO] [stdout] | [INFO] [stdout] 22 | pub const BLUE : Color = Color{r: 0.0,g: 0.0,b: 1.0,a: 1.0}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `SPEED` should have a snake case name [INFO] [stdout] --> src/view/window.rs:88:17 [INFO] [stdout] | [INFO] [stdout] 88 | let mut SPEED = 0.1; [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `speed` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/view/window.rs:144:29 [INFO] [stdout] | [INFO] [stdout] 144 | ... self.film.write_pixel(i as usize,j as usize,hit_color); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 144 | let _ = self.film.write_pixel(i as usize,j as usize,hit_color); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/view/window.rs:153:13 [INFO] [stdout] | [INFO] [stdout] 153 | self.canvas.copy(&texture,None,None); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 153 | let _ = self.canvas.copy(&texture,None,None); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/math/ray.rs:35:21 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn at(&self,t: f64) -> Point { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `color` [INFO] [stdout] --> src/view/window.rs:126:17 [INFO] [stdout] | [INFO] [stdout] 126 | let color: Color = Color::new(0.,0.,0.,1.).unwrap(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/view/window.rs:75:13 [INFO] [stdout] | [INFO] [stdout] 75 | let mut s_radius = 0.5; [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/view/window.rs:76:13 [INFO] [stdout] | [INFO] [stdout] 76 | let mut sphere = Sphere::new(s_radius,s_center); [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/view/window.rs:140:33 [INFO] [stdout] | [INFO] [stdout] 140 | ... let mut v = x - s_center; [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/image/film.rs:70:13 [INFO] [stdout] | [INFO] [stdout] 70 | let mut fx = 2.0 / (self.width as f64); [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/image/film.rs:71:13 [INFO] [stdout] | [INFO] [stdout] 71 | let mut fy = 2.0 / (self.height as f64); [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/image/film.rs:131:13 [INFO] [stdout] | [INFO] [stdout] 131 | let mut color: Color = Color::new(1.,0.,0.,1.).unwrap(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `at` is never used [INFO] [stdout] --> src/math/ray.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 25 | impl Ray { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn at(&self,t: f64) -> Point { [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_at` is never used [INFO] [stdout] --> src/math/ray.rs:66:8 [INFO] [stdout] | [INFO] [stdout] 66 | fn test_at() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `update` is never used [INFO] [stdout] --> src/view/window.rs:179:8 [INFO] [stdout] | [INFO] [stdout] 34 | impl<'a> Window<'a> { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 179 | fn update(&mut self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `SPEED` should have a snake case name [INFO] [stdout] --> src/view/window.rs:88:17 [INFO] [stdout] | [INFO] [stdout] 88 | let mut SPEED = 0.1; [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `speed` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/view/window.rs:144:29 [INFO] [stdout] | [INFO] [stdout] 144 | ... self.film.write_pixel(i as usize,j as usize,hit_color); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 144 | let _ = self.film.write_pixel(i as usize,j as usize,hit_color); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/view/window.rs:153:13 [INFO] [stdout] | [INFO] [stdout] 153 | self.canvas.copy(&texture,None,None); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 153 | let _ = self.canvas.copy(&texture,None,None); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 7.55s [INFO] running `Command { std: "docker" "inspect" "3abcfdd3702c598bae598c26b78b29ddf1129e4f08a83d2efae8533d9c232370", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3abcfdd3702c598bae598c26b78b29ddf1129e4f08a83d2efae8533d9c232370", kill_on_drop: false }` [INFO] [stdout] 3abcfdd3702c598bae598c26b78b29ddf1129e4f08a83d2efae8533d9c232370