[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 try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjcmorrow%2Fray_tracer" "/workspace/builds/worker-5/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/jcmorrow/ray_tracer on toolchain 8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "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-5/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: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "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-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4463da90582ec7621c22c6fc0ab343acfb4e1deb470f94fd24306f6c40563d2d [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" "4463da90582ec7621c22c6fc0ab343acfb4e1deb470f94fd24306f6c40563d2d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4463da90582ec7621c22c6fc0ab343acfb4e1deb470f94fd24306f6c40563d2d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4463da90582ec7621c22c6fc0ab343acfb4e1deb470f94fd24306f6c40563d2d", kill_on_drop: false }` [INFO] [stdout] 4463da90582ec7621c22c6fc0ab343acfb4e1deb470f94fd24306f6c40563d2d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 06c3c2c456ab48ff3fc2c38756e210e7c8bb13e5ff3ec4eeb5783c129768c4fa [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" "06c3c2c456ab48ff3fc2c38756e210e7c8bb13e5ff3ec4eeb5783c129768c4fa", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling libc v0.2.49 [INFO] [stderr] Compiling num-traits v0.2.6 [INFO] [stderr] Compiling arrayvec v0.4.10 [INFO] [stderr] Checking nodrop v0.1.13 [INFO] [stderr] Compiling num-integer v0.1.39 [INFO] [stderr] Checking cfg-if v0.1.6 [INFO] [stderr] Checking scopeguard v0.3.3 [INFO] [stderr] Checking memoffset v0.2.1 [INFO] [stderr] Checking lazy_static v1.2.0 [INFO] [stderr] Compiling byteorder v1.3.1 [INFO] [stderr] Compiling rayon-core v1.4.1 [INFO] [stderr] Compiling rayon v1.0.3 [INFO] [stderr] Checking adler32 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 scoped_threadpool v0.1.9 [INFO] [stderr] Checking crossbeam-utils v0.2.2 [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-iter v0.1.37 [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: 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: 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: struct is never constructed: `Bounds` [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 function is never used: `new` [INFO] [stdout] --> src/bounds.rs:14:12 [INFO] [stdout] | [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] [INFO] [stdout] warning: associated function is never used: `check_axis` [INFO] [stdout] --> src/bounds.rs:21:8 [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] [INFO] [stdout] warning: associated function is never used: `hits` [INFO] [stdout] --> src/bounds.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn hits(&self, ray: &Ray) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `field_of_view` [INFO] [stdout] --> src/camera.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | field_of_view: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `write_pixel` [INFO] [stdout] --> src/canvas.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn write_pixel(&mut self, column: usize, row: usize, color: &Color) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pixel_at` [INFO] [stdout] --> src/canvas.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn pixel_at(&self, column: usize, row: usize) -> Color { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `write_all_pixels` [INFO] [stdout] --> src/canvas.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | fn write_all_pixels(&mut self, color: &Color) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Cube` [INFO] [stdout] --> src/intersectable.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | Cube, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Group` [INFO] [stdout] --> src/intersectable.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | Group, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Triangle` [INFO] [stdout] --> src/intersectable.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | Triangle, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `cube` [INFO] [stdout] --> src/intersectable.rs:58:12 [INFO] [stdout] | [INFO] [stdout] 58 | pub fn cube() -> Intersectable { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `triangle` [INFO] [stdout] --> src/intersectable.rs:71:12 [INFO] [stdout] | [INFO] [stdout] 71 | pub fn triangle(p1: Point, p2: Point, p3: Point) -> Intersectable { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `group` [INFO] [stdout] --> src/intersectable.rs:86:12 [INFO] [stdout] | [INFO] [stdout] 86 | pub fn group() -> Intersectable { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add` [INFO] [stdout] --> src/intersectable.rs:108:12 [INFO] [stdout] | [INFO] [stdout] 108 | pub fn add(&mut self, shape: Arc) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `bounds` [INFO] [stdout] --> src/intersectable.rs:124:12 [INFO] [stdout] | [INFO] [stdout] 124 | pub fn bounds(&self, shape: &Shape) -> Bounds { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `bounds_sphere` [INFO] [stdout] --> src/intersectable.rs:137:8 [INFO] [stdout] | [INFO] [stdout] 137 | fn bounds_sphere(&self, _shape: &Shape) -> Bounds { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `bounds_plane` [INFO] [stdout] --> src/intersectable.rs:168:8 [INFO] [stdout] | [INFO] [stdout] 168 | fn bounds_plane(&self, _shape: &Shape) -> Bounds { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `bounds_cube` [INFO] [stdout] --> src/intersectable.rs:221:8 [INFO] [stdout] | [INFO] [stdout] 221 | fn bounds_cube(&self, _shape: &Shape) -> Bounds { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `local_normal_at_triangle` [INFO] [stdout] --> src/intersectable.rs:252:8 [INFO] [stdout] | [INFO] [stdout] 252 | fn local_normal_at_triangle(&self, _local_point: &Point) -> Point { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `bounds_triangle` [INFO] [stdout] --> src/intersectable.rs:256:8 [INFO] [stdout] | [INFO] [stdout] 256 | fn bounds_triangle(&self, _shape: &Shape) -> Bounds { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `local_intersect_triangle` [INFO] [stdout] --> src/intersectable.rs:267:8 [INFO] [stdout] | [INFO] [stdout] 267 | fn local_intersect_triangle(&self, ray: &Ray, object: Arc) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `bounds_group` [INFO] [stdout] --> src/intersectable.rs:296:8 [INFO] [stdout] | [INFO] [stdout] 296 | fn bounds_group(&self, shape: &Shape) -> Bounds { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `local_intersect_group` [INFO] [stdout] --> src/intersectable.rs:309:8 [INFO] [stdout] | [INFO] [stdout] 309 | fn local_intersect_group(&self, ray: &Ray, object: Arc) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_group` [INFO] [stdout] --> src/intersectable.rs:320:8 [INFO] [stdout] | [INFO] [stdout] 320 | fn add_group(&mut self, shape: Arc) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `rotation_z` [INFO] [stdout] --> src/matrix.rs:180:12 [INFO] [stdout] | [INFO] [stdout] 180 | pub fn rotation_z(radians: f64) -> Matrix4 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `shearing` [INFO] [stdout] --> src/matrix.rs:189:12 [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: associated function is never used: `equal` [INFO] [stdout] --> src/matrix.rs:215:12 [INFO] [stdout] | [INFO] [stdout] 215 | pub fn equal(&self, other: &Matrix3) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `equal` [INFO] [stdout] --> src/matrix.rs:280:12 [INFO] [stdout] | [INFO] [stdout] 280 | pub fn equal(&self, other: &Matrix2) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Blended` [INFO] [stdout] --> src/patternable.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | Blended(Box, Box), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Gradient` [INFO] [stdout] --> src/patternable.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | Gradient(Box, Box), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Perlin` [INFO] [stdout] --> src/patternable.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | Perlin(PerlinNoise, Box, f64), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Ring` [INFO] [stdout] --> src/patternable.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | Ring(Box, Box), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Stripe` [INFO] [stdout] --> src/patternable.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | Stripe(Box, Box), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `gradient` [INFO] [stdout] --> src/patternable.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn gradient(color: Color, secondary: Color) -> Patternable { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `stripe` [INFO] [stdout] --> src/patternable.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn stripe(color: Color, secondary: Color) -> Patternable { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `ring` [INFO] [stdout] --> src/patternable.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn ring(color: Color, secondary: Color) -> Patternable { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `blended` [INFO] [stdout] --> src/patternable.rs:75:12 [INFO] [stdout] | [INFO] [stdout] 75 | pub fn blended(primary: Patternable, secondary: Patternable) -> Patternable { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `perlin` [INFO] [stdout] --> src/patternable.rs:82:12 [INFO] [stdout] | [INFO] [stdout] 82 | pub fn perlin(pattern: Patternable) -> Patternable { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `empty_vector` [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 is never used: `bounds` [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 function is never used: `is_point` [INFO] [stdout] --> src/point/mod.rs:63:8 [INFO] [stdout] | [INFO] [stdout] 63 | fn is_point(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_vector` [INFO] [stdout] --> src/point/mod.rs:67:8 [INFO] [stdout] | [INFO] [stdout] 67 | fn is_vector(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `equal` [INFO] [stdout] --> src/point/mod.rs:71:12 [INFO] [stdout] | [INFO] [stdout] 71 | pub fn equal(&self, other: &Point) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `negative` [INFO] [stdout] --> src/point/mod.rs:114:8 [INFO] [stdout] | [INFO] [stdout] 114 | fn negative(&self) -> Point { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `glass_sphere` [INFO] [stdout] --> src/shape.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn glass_sphere() -> Arc { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `cube` [INFO] [stdout] --> src/shape.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn cube() -> Arc { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `triangle` [INFO] [stdout] --> src/shape.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn triangle(a: Point, b: Point, c: Point) -> Arc { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `group` [INFO] [stdout] --> src/shape.rs:73:12 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn group() -> Arc { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_group` [INFO] [stdout] --> src/shape.rs:82:12 [INFO] [stdout] | [INFO] [stdout] 82 | pub fn add_group(mut group: Arc, mut shape: Arc) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_shape` [INFO] [stdout] --> src/shape.rs:90:12 [INFO] [stdout] | [INFO] [stdout] 90 | pub fn add_shape(mut group: Arc, mut shape: Arc) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `world_to_object` [INFO] [stdout] --> src/shape.rs:101:12 [INFO] [stdout] | [INFO] [stdout] 101 | pub fn world_to_object(&self, world_point: &Point) -> Point { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `bounds` [INFO] [stdout] --> src/shape.rs:119:12 [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: 56 warnings emitted [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: 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] [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: struct is never constructed: `Bounds` [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 function is never used: `new` [INFO] [stdout] --> src/bounds.rs:14:12 [INFO] [stdout] | [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] [INFO] [stdout] warning: associated function is never used: `check_axis` [INFO] [stdout] --> src/bounds.rs:21:8 [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] [INFO] [stdout] warning: associated function is never used: `hits` [INFO] [stdout] --> src/bounds.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn hits(&self, ray: &Ray) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add` [INFO] [stdout] --> src/intersectable.rs:108:12 [INFO] [stdout] | [INFO] [stdout] 108 | pub fn add(&mut self, shape: Arc) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `bounds` [INFO] [stdout] --> src/intersectable.rs:124:12 [INFO] [stdout] | [INFO] [stdout] 124 | pub fn bounds(&self, shape: &Shape) -> Bounds { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `bounds_sphere` [INFO] [stdout] --> src/intersectable.rs:137:8 [INFO] [stdout] | [INFO] [stdout] 137 | fn bounds_sphere(&self, _shape: &Shape) -> Bounds { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `bounds_plane` [INFO] [stdout] --> src/intersectable.rs:168:8 [INFO] [stdout] | [INFO] [stdout] 168 | fn bounds_plane(&self, _shape: &Shape) -> Bounds { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `bounds_cube` [INFO] [stdout] --> src/intersectable.rs:221:8 [INFO] [stdout] | [INFO] [stdout] 221 | fn bounds_cube(&self, _shape: &Shape) -> Bounds { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `local_normal_at_triangle` [INFO] [stdout] --> src/intersectable.rs:252:8 [INFO] [stdout] | [INFO] [stdout] 252 | fn local_normal_at_triangle(&self, _local_point: &Point) -> Point { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `bounds_triangle` [INFO] [stdout] --> src/intersectable.rs:256:8 [INFO] [stdout] | [INFO] [stdout] 256 | fn bounds_triangle(&self, _shape: &Shape) -> Bounds { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `local_intersect_triangle` [INFO] [stdout] --> src/intersectable.rs:267:8 [INFO] [stdout] | [INFO] [stdout] 267 | fn local_intersect_triangle(&self, ray: &Ray, object: Arc) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `bounds_group` [INFO] [stdout] --> src/intersectable.rs:296:8 [INFO] [stdout] | [INFO] [stdout] 296 | fn bounds_group(&self, shape: &Shape) -> Bounds { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `local_intersect_group` [INFO] [stdout] --> src/intersectable.rs:309:8 [INFO] [stdout] | [INFO] [stdout] 309 | fn local_intersect_group(&self, ray: &Ray, object: Arc) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_group` [INFO] [stdout] --> src/intersectable.rs:320:8 [INFO] [stdout] | [INFO] [stdout] 320 | fn add_group(&mut self, shape: Arc) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Blended` [INFO] [stdout] --> src/patternable.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | Blended(Box, Box), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Perlin` [INFO] [stdout] --> src/patternable.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | Perlin(PerlinNoise, Box, f64), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Ring` [INFO] [stdout] --> src/patternable.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | Ring(Box, Box), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `ring` [INFO] [stdout] --> src/patternable.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn ring(color: Color, secondary: Color) -> Patternable { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `blended` [INFO] [stdout] --> src/patternable.rs:75:12 [INFO] [stdout] | [INFO] [stdout] 75 | pub fn blended(primary: Patternable, secondary: Patternable) -> Patternable { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `perlin` [INFO] [stdout] --> src/patternable.rs:82:12 [INFO] [stdout] | [INFO] [stdout] 82 | pub fn perlin(pattern: Patternable) -> Patternable { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `bounds` [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 function is never used: `group` [INFO] [stdout] --> src/shape.rs:73:12 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn group() -> Arc { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_group` [INFO] [stdout] --> src/shape.rs:82:12 [INFO] [stdout] | [INFO] [stdout] 82 | pub fn add_group(mut group: Arc, mut shape: Arc) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_shape` [INFO] [stdout] --> src/shape.rs:90:12 [INFO] [stdout] | [INFO] [stdout] 90 | pub fn add_shape(mut group: Arc, mut shape: Arc) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `world_to_object` [INFO] [stdout] --> src/shape.rs:101:12 [INFO] [stdout] | [INFO] [stdout] 101 | pub fn world_to_object(&self, world_point: &Point) -> Point { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `bounds` [INFO] [stdout] --> src/shape.rs:119:12 [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: 33 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 23.35s [INFO] running `Command { std: "docker" "inspect" "06c3c2c456ab48ff3fc2c38756e210e7c8bb13e5ff3ec4eeb5783c129768c4fa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "06c3c2c456ab48ff3fc2c38756e210e7c8bb13e5ff3ec4eeb5783c129768c4fa", kill_on_drop: false }` [INFO] [stdout] 06c3c2c456ab48ff3fc2c38756e210e7c8bb13e5ff3ec4eeb5783c129768c4fa