[INFO] cloning repository https://github.com/johnshiver/ray_tracer [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/johnshiver/ray_tracer" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjohnshiver%2Fray_tracer", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjohnshiver%2Fray_tracer'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 80ccff7f05fc4300439ecca9cf2ca7f99b48bd62 [INFO] checking johnshiver/ray_tracer against master#a609fb45efad59dfd459c76e50899be9f0583b5a for pr-80579 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjohnshiver%2Fray_tracer" "/workspace/builds/worker-1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/johnshiver/ray_tracer on toolchain a609fb45efad59dfd459c76e50899be9f0583b5a [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/johnshiver/ray_tracer [INFO] finished tweaking git repo https://github.com/johnshiver/ray_tracer [INFO] tweaked toml for git repo https://github.com/johnshiver/ray_tracer written to /workspace/builds/worker-1/source/Cargo.toml [INFO] crate git repo https://github.com/johnshiver/ray_tracer already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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" "rustops/crates-build-env@sha256:c8ac004eab7d63a0ad09a2dde3d3353ba464f767bee4de425dc8f74c46a1905e" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] cc37e184239cf3d77dba9a975f0151dea9d63747a09f8c974ea56c925301f34a [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "cc37e184239cf3d77dba9a975f0151dea9d63747a09f8c974ea56c925301f34a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "cc37e184239cf3d77dba9a975f0151dea9d63747a09f8c974ea56c925301f34a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cc37e184239cf3d77dba9a975f0151dea9d63747a09f8c974ea56c925301f34a", kill_on_drop: false }` [INFO] [stdout] cc37e184239cf3d77dba9a975f0151dea9d63747a09f8c974ea56c925301f34a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:c8ac004eab7d63a0ad09a2dde3d3353ba464f767bee4de425dc8f74c46a1905e" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e39b7e68f4ebc811f276d3a1188d9a5dc6af92f16411eca5882ec2c32b49e602 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "e39b7e68f4ebc811f276d3a1188d9a5dc6af92f16411eca5882ec2c32b49e602", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v0.1.7 [INFO] [stderr] Compiling libc v0.2.65 [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Compiling syn v1.0.8 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Checking ppv-lite86 v0.2.6 [INFO] [stderr] Compiling serde v1.0.102 [INFO] [stderr] Compiling proc-macro2 v1.0.6 [INFO] [stderr] Checking c2-chacha v0.2.3 [INFO] [stderr] Compiling num-traits v0.2.9 [INFO] [stderr] Compiling num-integer v0.1.41 [INFO] [stderr] Compiling num-bigint v0.2.3 [INFO] [stderr] Compiling num-complex v0.2.3 [INFO] [stderr] Compiling num-iter v0.1.39 [INFO] [stderr] Compiling num-rational v0.2.2 [INFO] [stderr] Compiling quote v1.0.2 [INFO] [stderr] Checking getrandom v0.1.13 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking rand_chacha v0.2.1 [INFO] [stderr] Checking rand v0.7.2 [INFO] [stderr] Checking num v0.2.0 [INFO] [stderr] Compiling serde_derive v1.0.102 [INFO] [stderr] Checking uuid v0.8.1 [INFO] [stderr] Checking ray_tracer v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `new_point` [INFO] [stdout] --> src/rays.rs:3:25 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::tuple::{dot, new_point, Tuple, TupleTypeError}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp::Reverse` [INFO] [stdout] --> src/rays.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::cmp::Reverse; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::BinaryHeap` [INFO] [stdout] --> src/rays.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::collections::BinaryHeap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Deref` [INFO] [stdout] --> src/rays.rs:7:16 [INFO] [stdout] | [INFO] [stdout] 7 | use std::ops::{Deref, Index}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::slice::SliceIndex` [INFO] [stdout] --> src/rays.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::slice::SliceIndex; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `new_point` [INFO] [stdout] --> src/rays.rs:3:25 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::tuple::{dot, new_point, Tuple, TupleTypeError}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp::Reverse` [INFO] [stdout] --> src/rays.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::cmp::Reverse; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::BinaryHeap` [INFO] [stdout] --> src/rays.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::collections::BinaryHeap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Deref` [INFO] [stdout] --> src/rays.rs:7:16 [INFO] [stdout] | [INFO] [stdout] 7 | use std::ops::{Deref, Index}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::slice::SliceIndex` [INFO] [stdout] --> src/rays.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::slice::SliceIndex; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `count` [INFO] [stdout] --> src/rays.rs:118:9 [INFO] [stdout] | [INFO] [stdout] 118 | let mut count = 0; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_count` [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/matrix.rs:213:17 [INFO] [stdout] | [INFO] [stdout] 213 | let mut c = cofactor_4x4(matrix.borrow(), y, x); [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/rays.rs:118:9 [INFO] [stdout] | [INFO] [stdout] 118 | let mut count = 0; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_pixel` [INFO] [stdout] --> src/canvas.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn get_pixel(&self, x: usize, y: usize) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `gravity` [INFO] [stdout] --> src/environment.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | gravity: Tuple, // vector [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `wind` [INFO] [stdout] --> src/environment.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | wind: Tuple, // vector [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `new_environment` [INFO] [stdout] --> src/environment.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn new_environment(gravity: Tuple, wind: Tuple) -> Environment { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `tick` [INFO] [stdout] --> src/environment.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn tick(env: Environment, projectile: Projectile) -> Projectile { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `transpose` [INFO] [stdout] --> src/matrix.rs:114:8 [INFO] [stdout] | [INFO] [stdout] 114 | pub fn transpose(m: M4x4) -> M4x4 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `submatrix_4x4` [INFO] [stdout] --> src/matrix.rs:124:8 [INFO] [stdout] | [INFO] [stdout] 124 | pub fn submatrix_4x4(matrix: &M4x4, row: usize, col: usize) -> M3x3 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `minor_4x4` [INFO] [stdout] --> src/matrix.rs:146:8 [INFO] [stdout] | [INFO] [stdout] 146 | pub fn minor_4x4(matrix: &M4x4, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `cofactor_4x4` [INFO] [stdout] --> src/matrix.rs:150:8 [INFO] [stdout] | [INFO] [stdout] 150 | pub fn cofactor_4x4(matrix: &M4x4, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `determinant_4x4` [INFO] [stdout] --> src/matrix.rs:158:8 [INFO] [stdout] | [INFO] [stdout] 158 | pub fn determinant_4x4(matrix: &M4x4) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `invertible_4x4` [INFO] [stdout] --> src/matrix.rs:166:8 [INFO] [stdout] | [INFO] [stdout] 166 | pub fn invertible_4x4(matrix: &M4x4) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/matrix.rs:180:8 [INFO] [stdout] | [INFO] [stdout] 180 | fn new(msg: &str) -> MatrixNotInvertibleError { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `invert_4x4` [INFO] [stdout] --> src/matrix.rs:205:8 [INFO] [stdout] | [INFO] [stdout] 205 | pub fn invert_4x4(matrix: &M4x4) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `new_3x3` [INFO] [stdout] --> src/matrix.rs:254:8 [INFO] [stdout] | [INFO] [stdout] 254 | pub fn new_3x3(matrix: [[f64; 3]; 3]) -> M3x3 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `submatrix_3x3` [INFO] [stdout] --> src/matrix.rs:258:8 [INFO] [stdout] | [INFO] [stdout] 258 | pub fn submatrix_3x3(matrix: &M3x3, row: usize, col: usize) -> M2x2 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `minor_3x3` [INFO] [stdout] --> src/matrix.rs:280:8 [INFO] [stdout] | [INFO] [stdout] 280 | pub fn minor_3x3(matrix: &M3x3, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `cofactor_3x3` [INFO] [stdout] --> src/matrix.rs:284:8 [INFO] [stdout] | [INFO] [stdout] 284 | pub fn cofactor_3x3(matrix: &M3x3, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `determinant_3x3` [INFO] [stdout] --> src/matrix.rs:292:8 [INFO] [stdout] | [INFO] [stdout] 292 | pub fn determinant_3x3(matrix: &M3x3) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `new_2x2` [INFO] [stdout] --> src/matrix.rs:333:8 [INFO] [stdout] | [INFO] [stdout] 333 | pub fn new_2x2(matrix: [[f64; 2]; 2]) -> M2x2 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `determinant_2x2` [INFO] [stdout] --> src/matrix.rs:337:8 [INFO] [stdout] | [INFO] [stdout] 337 | pub fn determinant_2x2(m: M2x2) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `translation` [INFO] [stdout] --> src/matrix_transformations.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn translation(x: f64, y: f64, z: f64) -> M4x4 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `scaling` [INFO] [stdout] --> src/matrix_transformations.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn scaling(x: f64, y: f64, z: f64) -> M4x4 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `rotation_x` [INFO] [stdout] --> src/matrix_transformations.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn rotation_x(radians: f64) -> M4x4 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `rotation_z` [INFO] [stdout] --> src/matrix_transformations.rs:38:4 [INFO] [stdout] | [INFO] [stdout] 38 | fn rotation_z(radians: f64) -> M4x4 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `shearing` [INFO] [stdout] --> src/matrix_transformations.rs:47:4 [INFO] [stdout] | [INFO] [stdout] 47 | fn shearing(xy: f64, xx: f64, yx: f64, yz: f64, zx: f64, zy: f64) -> M4x4 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `new_projectile` [INFO] [stdout] --> src/projectile.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn new_projectile(position: Tuple, velocity: Tuple) -> Projectile { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `new_vector` [INFO] [stdout] --> src/tuple.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn new_vector(x: f64, y: f64, z: f64) -> Tuple { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_point` [INFO] [stdout] --> src/tuple.rs:122:12 [INFO] [stdout] | [INFO] [stdout] 122 | pub fn is_point(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_unit_vector` [INFO] [stdout] --> src/tuple.rs:134:12 [INFO] [stdout] | [INFO] [stdout] 134 | pub fn is_unit_vector(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/tuple.rs:157:12 [INFO] [stdout] | [INFO] [stdout] 157 | pub fn new(msg: &str) -> TupleTypeError { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `magnitude` [INFO] [stdout] --> src/tuple.rs:184:8 [INFO] [stdout] | [INFO] [stdout] 184 | pub fn magnitude(vector: Tuple) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `normalize` [INFO] [stdout] --> src/tuple.rs:195:8 [INFO] [stdout] | [INFO] [stdout] 195 | pub fn normalize(vector: Tuple) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `dot` [INFO] [stdout] --> src/tuple.rs:217:8 [INFO] [stdout] | [INFO] [stdout] 217 | pub fn dot(vec_a: Tuple, vec_b: Tuple) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `cross` [INFO] [stdout] --> src/tuple.rs:227:4 [INFO] [stdout] | [INFO] [stdout] 227 | fn cross(vec_a: Tuple, vec_b: Tuple) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `SPHERE_ORIGIN` [INFO] [stdout] --> src/rays.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | / pub const SPHERE_ORIGIN: Tuple = Tuple { [INFO] [stdout] 11 | | x: 0.0, [INFO] [stdout] 12 | | y: 0.0, [INFO] [stdout] 13 | | z: 0.0, [INFO] [stdout] 14 | | w: 1.0, [INFO] [stdout] 15 | | }; // is a point [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `new_ray` [INFO] [stdout] --> src/rays.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn new_ray(origin: Tuple, direction: Tuple) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `position` [INFO] [stdout] --> src/rays.rs:33:8 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn position(r: &Ray, time: f64) -> Tuple { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `new_sphere` [INFO] [stdout] --> src/rays.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn new_sphere() -> Sphere { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `new_intersection` [INFO] [stdout] --> src/rays.rs:73:8 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn new_intersection(t: f64, object: Sphere) -> Intersection { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `count` [INFO] [stdout] --> src/rays.rs:79:5 [INFO] [stdout] | [INFO] [stdout] 79 | count: i64, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `intersections` [INFO] [stdout] --> src/rays.rs:89:8 [INFO] [stdout] | [INFO] [stdout] 89 | pub fn intersections(items: Vec>, count: i64) -> Intersections { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `discriminant` [INFO] [stdout] --> src/rays.rs:93:8 [INFO] [stdout] | [INFO] [stdout] 93 | pub fn discriminant(r: &Ray) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `intersect` [INFO] [stdout] --> src/rays.rs:102:8 [INFO] [stdout] | [INFO] [stdout] 102 | pub fn intersect(r: &Ray, s: Sphere) -> Intersections { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `hit` [INFO] [stdout] --> src/rays.rs:125:8 [INFO] [stdout] | [INFO] [stdout] 125 | pub fn hit(xs: Intersections) -> Option> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `create_test_image` [INFO] [stdout] --> src/main.rs:22:4 [INFO] [stdout] | [INFO] [stdout] 22 | fn create_test_image() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `simulate_projectile` [INFO] [stdout] --> src/main.rs:39:4 [INFO] [stdout] | [INFO] [stdout] 39 | fn simulate_projectile() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/tuple.rs:399:17 [INFO] [stdout] | [INFO] [stdout] 399 | Err(e) => assert!( [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/tuple.rs:410:17 [INFO] [stdout] | [INFO] [stdout] 410 | Err(e) => assert!( [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/tuple.rs:421:17 [INFO] [stdout] | [INFO] [stdout] 421 | Err(e) => assert!( [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/tuple.rs:432:17 [INFO] [stdout] | [INFO] [stdout] 432 | Err(e) => assert!( [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/tuple.rs:443:17 [INFO] [stdout] | [INFO] [stdout] 443 | Err(e) => assert!( [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> src/tuple.rs:456:16 [INFO] [stdout] | [INFO] [stdout] 456 | Ok(m) => assert!(false, "this should have been an error"), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/tuple.rs:468:17 [INFO] [stdout] | [INFO] [stdout] 468 | Err(e) => assert!( [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/tuple.rs:477:17 [INFO] [stdout] | [INFO] [stdout] 477 | Err(e) => assert!( [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expected` [INFO] [stdout] --> src/tuple.rs:510:13 [INFO] [stdout] | [INFO] [stdout] 510 | let expected = new_vector(0.26726, 0.53452, 0.80178); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_expected` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> src/tuple.rs:523:16 [INFO] [stdout] | [INFO] [stdout] 523 | Ok(m) => assert!(false, "this should have been an error"), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `count` [INFO] [stdout] --> src/rays.rs:118:9 [INFO] [stdout] | [INFO] [stdout] 118 | let mut count = 0; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/main.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | canvas.to_ppm("test_ppm.ppm"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/main.rs:67:5 [INFO] [stdout] | [INFO] [stdout] 67 | c.to_ppm("rocket_shot.ppm"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/main.rs:90:5 [INFO] [stdout] | [INFO] [stdout] 90 | c.to_ppm("analog_clock.ppm"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 57 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/matrix.rs:213:17 [INFO] [stdout] | [INFO] [stdout] 213 | let mut c = cofactor_4x4(matrix.borrow(), y, x); [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/matrix.rs:490:13 [INFO] [stdout] | [INFO] [stdout] 490 | let mut test_matrix = [[-3.0, 5.0], [1.0, -2.0]]; [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/rays.rs:118:9 [INFO] [stdout] | [INFO] [stdout] 118 | let mut count = 0; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `gravity` [INFO] [stdout] --> src/environment.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | gravity: Tuple, // vector [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `wind` [INFO] [stdout] --> src/environment.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | wind: Tuple, // vector [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `new_environment` [INFO] [stdout] --> src/environment.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn new_environment(gravity: Tuple, wind: Tuple) -> Environment { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `tick` [INFO] [stdout] --> src/environment.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn tick(env: Environment, projectile: Projectile) -> Projectile { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `new_projectile` [INFO] [stdout] --> src/projectile.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn new_projectile(position: Tuple, velocity: Tuple) -> Projectile { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `create_test_image` [INFO] [stdout] --> src/main.rs:22:4 [INFO] [stdout] | [INFO] [stdout] 22 | fn create_test_image() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `simulate_projectile` [INFO] [stdout] --> src/main.rs:39:4 [INFO] [stdout] | [INFO] [stdout] 39 | fn simulate_projectile() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/main.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | canvas.to_ppm("test_ppm.ppm"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/main.rs:67:5 [INFO] [stdout] | [INFO] [stdout] 67 | c.to_ppm("rocket_shot.ppm"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/main.rs:90:5 [INFO] [stdout] | [INFO] [stdout] 90 | c.to_ppm("analog_clock.ppm"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 29 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 36.79s [INFO] running `Command { std: "docker" "inspect" "e39b7e68f4ebc811f276d3a1188d9a5dc6af92f16411eca5882ec2c32b49e602", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e39b7e68f4ebc811f276d3a1188d9a5dc6af92f16411eca5882ec2c32b49e602", kill_on_drop: false }` [INFO] [stdout] e39b7e68f4ebc811f276d3a1188d9a5dc6af92f16411eca5882ec2c32b49e602