[INFO] cloning repository https://github.com/jcmorrow/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/jcmorrow/ray_tracer" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjcmorrow%2Fray_tracer", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjcmorrow%2Fray_tracer'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 2bc618421ebbedee854b0572f57ea7256a215c68 [INFO] checking jcmorrow/ray_tracer against master#1f12b9b0fdbe735968ac002792a720f0ba4faca6 for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjcmorrow%2Fray_tracer" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/jcmorrow/ray_tracer on toolchain 1f12b9b0fdbe735968ac002792a720f0ba4faca6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/jcmorrow/ray_tracer [INFO] finished tweaking git repo https://github.com/jcmorrow/ray_tracer [INFO] tweaked toml for git repo https://github.com/jcmorrow/ray_tracer written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/jcmorrow/ray_tracer 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" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded rayon v1.0.3 [INFO] [stderr] Downloaded libc v0.2.49 [INFO] [stderr] Downloaded inflate v0.3.4 [INFO] [stderr] Downloaded enum_primitive v0.1.1 [INFO] [stderr] Downloaded either v1.5.1 [INFO] [stderr] Downloaded gif v0.9.2 [INFO] [stderr] Downloaded num-rational v0.1.42 [INFO] [stderr] Downloaded deflate v0.7.19 [INFO] [stderr] Downloaded num-iter v0.1.37 [INFO] [stderr] Downloaded png v0.11.0 [INFO] [stderr] Downloaded image v0.18.0 [INFO] [stderr] Downloaded noise v0.5.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0b438de252720bcacea4921ae775d8762c06376398ecc8fded52dbb40cb6c4c5 [INFO] running `Command { std: "docker" "start" "-a" "0b438de252720bcacea4921ae775d8762c06376398ecc8fded52dbb40cb6c4c5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0b438de252720bcacea4921ae775d8762c06376398ecc8fded52dbb40cb6c4c5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0b438de252720bcacea4921ae775d8762c06376398ecc8fded52dbb40cb6c4c5", kill_on_drop: false }` [INFO] [stdout] 0b438de252720bcacea4921ae775d8762c06376398ecc8fded52dbb40cb6c4c5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b704d82aa8dfea7bbdd72bbed8d1f1b37150008b7b3063e28ccc69ccd36c9681 [INFO] running `Command { std: "docker" "start" "-a" "b704d82aa8dfea7bbdd72bbed8d1f1b37150008b7b3063e28ccc69ccd36c9681", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Compiling libc v0.2.49 [INFO] [stderr] Compiling num-traits v0.2.6 [INFO] [stderr] Compiling arrayvec v0.4.10 [INFO] [stderr] Compiling num-integer v0.1.39 [INFO] [stderr] Checking nodrop v0.1.13 [INFO] [stderr] Checking cfg-if v0.1.6 [INFO] [stderr] Checking scopeguard v0.3.3 [INFO] [stderr] Compiling byteorder v1.3.1 [INFO] [stderr] Checking memoffset v0.2.1 [INFO] [stderr] Compiling rayon-core v1.4.1 [INFO] [stderr] Checking lazy_static v1.2.0 [INFO] [stderr] Checking adler32 v1.0.3 [INFO] [stderr] Compiling num-iter v0.1.37 [INFO] [stderr] Compiling rayon v1.0.3 [INFO] [stderr] Checking either v1.5.1 [INFO] [stderr] Checking color_quant v1.0.1 [INFO] [stderr] Checking lzw v0.10.0 [INFO] [stderr] Checking crossbeam-utils v0.2.2 [INFO] [stderr] Checking bitflags v1.0.4 [INFO] [stderr] Checking scoped_threadpool v0.1.9 [INFO] [stderr] Checking inflate v0.3.4 [INFO] [stderr] Checking gif v0.9.2 [INFO] [stderr] Checking deflate v0.7.19 [INFO] [stderr] Checking crossbeam-epoch v0.3.1 [INFO] [stderr] Checking num_cpus v1.10.0 [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Checking time v0.1.42 [INFO] [stderr] Checking crossbeam-deque v0.2.0 [INFO] [stderr] Checking num-traits v0.1.43 [INFO] [stderr] Checking enum_primitive v0.1.1 [INFO] [stderr] Checking num-rational v0.1.42 [INFO] [stderr] Checking chrono v0.4.6 [INFO] [stderr] Checking png v0.11.0 [INFO] [stderr] Checking rand v0.3.23 [INFO] [stderr] Checking jpeg-decoder v0.1.15 [INFO] [stderr] Checking image v0.18.0 [INFO] [stderr] Checking noise v0.5.1 [INFO] [stderr] Checking ray_tracer v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `matrix::Matrix4` [INFO] [stdout] --> src/intersectable.rs:329:9 [INFO] [stdout] | [INFO] [stdout] 329 | use matrix::Matrix4; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::f64::consts::PI` [INFO] [stdout] --> src/intersectable.rs:331:9 [INFO] [stdout] | [INFO] [stdout] 331 | use std::f64::consts::PI; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/matrix.rs:138:21 [INFO] [stdout] | [INFO] [stdout] 138 | let mut cofactor = self.cofactor(col, row); [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: `white` [INFO] [stdout] --> src/main.rs:83:9 [INFO] [stdout] | [INFO] [stdout] 83 | let white = Patternable::solid(Color::white()); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_white` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Bounds` is never constructed [INFO] [stdout] --> src/bounds.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Bounds { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `check_axis`, and `hits` are never used [INFO] [stdout] --> src/bounds.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl Bounds { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 14 | pub fn new(xmin: f64, xmax: f64, ymin: f64, ymax: f64, zmin: f64, zmax: f64) -> Bounds { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | fn check_axis(&self, origin: f64, direction: f64, min: f64, max: f64) -> (f64, f64) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn hits(&self, ray: &Ray) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `field_of_view` is never read [INFO] [stdout] --> src/camera.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Camera { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 11 | field_of_view: f64, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `write_pixel`, `pixel_at`, and `write_all_pixels` are never used [INFO] [stdout] --> src/canvas.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl Canvas { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn write_pixel(&mut self, column: usize, row: usize, color: &Color) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn pixel_at(&self, column: usize, row: usize) -> Color { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | fn write_all_pixels(&mut self, color: &Color) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Cube`, `Group`, and `Triangle` are never constructed [INFO] [stdout] --> src/intersectable.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub enum IntersectableType { [INFO] [stdout] | ----------------- variants in this enum [INFO] [stdout] 12 | Cube, [INFO] [stdout] | ^^^^ [INFO] [stdout] 13 | Group, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | Triangle, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `IntersectableType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/intersectable.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct Intersectable { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 21 | intersectable_type: IntersectableType, [INFO] [stdout] 22 | pub e1: Point, [INFO] [stdout] | ^^ [INFO] [stdout] 23 | pub e2: Point, [INFO] [stdout] | ^^ [INFO] [stdout] 24 | pub normal: Point, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 25 | pub p1: Point, [INFO] [stdout] | ^^ [INFO] [stdout] 26 | pub p2: Point, [INFO] [stdout] | ^^ [INFO] [stdout] 27 | pub p3: Point, [INFO] [stdout] | ^^ [INFO] [stdout] 28 | children: Vec>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Intersectable` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/intersectable.rs:58:12 [INFO] [stdout] | [INFO] [stdout] 31 | impl Intersectable { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 58 | pub fn cube() -> Intersectable { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | pub fn triangle(p1: Point, p2: Point, p3: Point) -> Intersectable { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 86 | pub fn group() -> Intersectable { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 108 | pub fn add(&mut self, shape: Arc) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 124 | pub fn bounds(&self, shape: &Shape) -> Bounds { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 137 | fn bounds_sphere(&self, _shape: &Shape) -> Bounds { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 168 | fn bounds_plane(&self, _shape: &Shape) -> Bounds { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 221 | fn bounds_cube(&self, _shape: &Shape) -> Bounds { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 252 | fn local_normal_at_triangle(&self, _local_point: &Point) -> Point { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 256 | fn bounds_triangle(&self, _shape: &Shape) -> Bounds { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 267 | fn local_intersect_triangle(&self, ray: &Ray, object: Arc) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 296 | fn bounds_group(&self, shape: &Shape) -> Bounds { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 309 | fn local_intersect_group(&self, ray: &Ray, object: Arc) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 320 | fn add_group(&mut self, shape: Arc) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `rotation_z` and `shearing` are never used [INFO] [stdout] --> src/matrix.rs:180:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl Matrix4 { [INFO] [stdout] | ------------ associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 180 | pub fn rotation_z(radians: f64) -> Matrix4 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 189 | pub fn shearing(xy: f64, xz: f64, yx: f64, yz: f64, zx: f64, zy: f64) -> Matrix4 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `equal` is never used [INFO] [stdout] --> src/matrix.rs:215:12 [INFO] [stdout] | [INFO] [stdout] 206 | impl Matrix3 { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 215 | pub fn equal(&self, other: &Matrix3) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `equal` is never used [INFO] [stdout] --> src/matrix.rs:280:12 [INFO] [stdout] | [INFO] [stdout] 271 | impl Matrix2 { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 280 | pub fn equal(&self, other: &Matrix2) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Blended`, `Gradient`, `Perlin`, `Ring`, and `Stripe` are never constructed [INFO] [stdout] --> src/patternable.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub enum PatternableType { [INFO] [stdout] | --------------- variants in this enum [INFO] [stdout] 12 | Blended(Box, Box), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 13 | Checker(Box, Box), [INFO] [stdout] 14 | Gradient(Box, Box), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 15 | Perlin(PerlinNoise, Box, f64), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 16 | Ring(Box, Box), [INFO] [stdout] | ^^^^ [INFO] [stdout] 17 | Solid(Color), [INFO] [stdout] 18 | Stripe(Box, Box), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PatternableType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `gradient`, `stripe`, `ring`, `blended`, and `perlin` are never used [INFO] [stdout] --> src/patternable.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 27 | impl Patternable { [INFO] [stdout] | ---------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn gradient(color: Color, secondary: Color) -> Patternable { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | pub fn stripe(color: Color, secondary: Color) -> Patternable { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | pub fn ring(color: Color, secondary: Color) -> Patternable { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | pub fn blended(primary: Patternable, secondary: Patternable) -> Patternable { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | pub fn perlin(pattern: Patternable) -> Patternable { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `empty_vector` is never used [INFO] [stdout] --> src/point/mod.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn empty_vector() -> Point { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bounds` is never used [INFO] [stdout] --> src/point/mod.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn bounds(points: Vec) -> Bounds { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_point`, `is_vector`, `equal`, and `negative` are never used [INFO] [stdout] --> src/point/mod.rs:63:8 [INFO] [stdout] | [INFO] [stdout] 62 | impl Point { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] 63 | fn is_point(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | fn is_vector(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | pub fn equal(&self, other: &Point) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 114 | fn negative(&self) -> Point { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/shape.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl Shape { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn glass_sphere() -> Arc { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | pub fn cube() -> Arc { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | pub fn triangle(a: Point, b: Point, c: Point) -> Arc { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | pub fn group() -> Arc { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | pub fn add_group(mut group: Arc, mut shape: Arc) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | pub fn add_shape(mut group: Arc, mut shape: Arc) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | pub fn world_to_object(&self, world_point: &Point) -> Point { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 119 | pub fn bounds(&self) -> Bounds { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ray_count` should have an upper case name [INFO] [stdout] --> src/ray.rs:9:22 [INFO] [stdout] | [INFO] [stdout] 9 | thread_local!(static ray_count: RefCell = RefCell::new(0)); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `RAY_COUNT` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 19 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/matrix.rs:138:21 [INFO] [stdout] | [INFO] [stdout] 138 | let mut cofactor = self.cofactor(col, row); [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: `ns` [INFO] [stdout] --> src/shape.rs:417:13 [INFO] [stdout] | [INFO] [stdout] 417 | let ns: Vec<(f64, f64)> = prepared_xs.iter().map(|x| (x.n1, x.n2)).collect(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ns` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `white` [INFO] [stdout] --> src/main.rs:83:9 [INFO] [stdout] | [INFO] [stdout] 83 | let white = Patternable::solid(Color::white()); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_white` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Bounds` is never constructed [INFO] [stdout] --> src/bounds.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Bounds { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `check_axis`, and `hits` are never used [INFO] [stdout] --> src/bounds.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl Bounds { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 14 | pub fn new(xmin: f64, xmax: f64, ymin: f64, ymax: f64, zmin: f64, zmax: f64) -> Bounds { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | fn check_axis(&self, origin: f64, direction: f64, min: f64, max: f64) -> (f64, f64) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn hits(&self, ray: &Ray) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `p1`, `p2`, `p3`, and `children` are never read [INFO] [stdout] --> src/intersectable.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct Intersectable { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 25 | pub p1: Point, [INFO] [stdout] | ^^ [INFO] [stdout] 26 | pub p2: Point, [INFO] [stdout] | ^^ [INFO] [stdout] 27 | pub p3: Point, [INFO] [stdout] | ^^ [INFO] [stdout] 28 | children: Vec>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Intersectable` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/intersectable.rs:108:12 [INFO] [stdout] | [INFO] [stdout] 31 | impl Intersectable { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 108 | pub fn add(&mut self, shape: Arc) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 124 | pub fn bounds(&self, shape: &Shape) -> Bounds { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 137 | fn bounds_sphere(&self, _shape: &Shape) -> Bounds { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 168 | fn bounds_plane(&self, _shape: &Shape) -> Bounds { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 221 | fn bounds_cube(&self, _shape: &Shape) -> Bounds { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 252 | fn local_normal_at_triangle(&self, _local_point: &Point) -> Point { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 256 | fn bounds_triangle(&self, _shape: &Shape) -> Bounds { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 267 | fn local_intersect_triangle(&self, ray: &Ray, object: Arc) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 296 | fn bounds_group(&self, shape: &Shape) -> Bounds { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 309 | fn local_intersect_group(&self, ray: &Ray, object: Arc) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 320 | fn add_group(&mut self, shape: Arc) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Blended`, `Perlin`, and `Ring` are never constructed [INFO] [stdout] --> src/patternable.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub enum PatternableType { [INFO] [stdout] | --------------- variants in this enum [INFO] [stdout] 12 | Blended(Box, Box), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | Perlin(PerlinNoise, Box, f64), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 16 | Ring(Box, Box), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PatternableType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `ring`, `blended`, and `perlin` are never used [INFO] [stdout] --> src/patternable.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 27 | impl Patternable { [INFO] [stdout] | ---------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 65 | pub fn ring(color: Color, secondary: Color) -> Patternable { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | pub fn blended(primary: Patternable, secondary: Patternable) -> Patternable { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | pub fn perlin(pattern: Patternable) -> Patternable { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bounds` is never used [INFO] [stdout] --> src/point/mod.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn bounds(points: Vec) -> Bounds { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `group`, `add_group`, `add_shape`, `world_to_object`, and `bounds` are never used [INFO] [stdout] --> src/shape.rs:73:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl Shape { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 73 | pub fn group() -> Arc { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | pub fn add_group(mut group: Arc, mut shape: Arc) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | pub fn add_shape(mut group: Arc, mut shape: Arc) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | pub fn world_to_object(&self, world_point: &Point) -> Point { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 119 | pub fn bounds(&self) -> Bounds { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ray_count` should have an upper case name [INFO] [stdout] --> src/ray.rs:9:22 [INFO] [stdout] | [INFO] [stdout] 9 | thread_local!(static ray_count: RefCell = RefCell::new(0)); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `RAY_COUNT` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.36s [INFO] running `Command { std: "docker" "inspect" "b704d82aa8dfea7bbdd72bbed8d1f1b37150008b7b3063e28ccc69ccd36c9681", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b704d82aa8dfea7bbdd72bbed8d1f1b37150008b7b3063e28ccc69ccd36c9681", kill_on_drop: false }` [INFO] [stdout] b704d82aa8dfea7bbdd72bbed8d1f1b37150008b7b3063e28ccc69ccd36c9681