[INFO] cloning repository https://github.com/themasch/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/themasch/rust-raytracer" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fthemasch%2Frust-raytracer", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fthemasch%2Frust-raytracer'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5681da3100688014598113a96e0f42d032d84a56 [INFO] checking themasch/rust-raytracer against try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fthemasch%2Frust-raytracer" "/workspace/builds/worker-10/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-10/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/themasch/rust-raytracer 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/themasch/rust-raytracer [INFO] finished tweaking git repo https://github.com/themasch/rust-raytracer [INFO] tweaked toml for git repo https://github.com/themasch/rust-raytracer written to /workspace/builds/worker-10/source/Cargo.toml [INFO] crate git repo https://github.com/themasch/rust-raytracer 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] Downloading crates ... [INFO] [stderr] Downloaded assert_approx_eq v1.1.0 [INFO] [stderr] Downloaded png v0.9.0 [INFO] [stderr] Downloaded image v0.15.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/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] 48fe4e6305bb2e68d7818cc3359fddbafcb4cdaaaccc5be8dbc1503df5dc5bee [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" "48fe4e6305bb2e68d7818cc3359fddbafcb4cdaaaccc5be8dbc1503df5dc5bee", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "48fe4e6305bb2e68d7818cc3359fddbafcb4cdaaaccc5be8dbc1503df5dc5bee", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "48fe4e6305bb2e68d7818cc3359fddbafcb4cdaaaccc5be8dbc1503df5dc5bee", kill_on_drop: false }` [INFO] [stdout] 48fe4e6305bb2e68d7818cc3359fddbafcb4cdaaaccc5be8dbc1503df5dc5bee [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/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] 982d9dded616a8989afbb8b38b38a2ad575c76be58caa4197c56ed4f09df6f83 [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" "982d9dded616a8989afbb8b38b38a2ad575c76be58caa4197c56ed4f09df6f83", kill_on_drop: false }` [INFO] [stderr] Checking cfg-if v0.1.9 [INFO] [stderr] Compiling arrayvec v0.4.11 [INFO] [stderr] Checking nodrop v0.1.13 [INFO] [stderr] Checking scopeguard v1.0.0 [INFO] [stderr] Compiling byteorder v1.3.2 [INFO] [stderr] Checking either v1.5.2 [INFO] [stderr] Checking bitflags v0.9.1 [INFO] [stderr] Checking rand_jitter v0.1.4 [INFO] [stderr] Checking gif v0.9.2 [INFO] [stderr] Compiling memoffset v0.5.1 [INFO] [stderr] Checking rand_os v0.1.3 [INFO] [stderr] Checking rand_chacha v0.1.1 [INFO] [stderr] Checking rand_pcg v0.1.2 [INFO] [stderr] Checking num-iter v0.1.39 [INFO] [stderr] Checking num-rational v0.1.42 [INFO] [stderr] Checking threadpool v1.7.1 [INFO] [stderr] Checking enum_primitive v0.1.1 [INFO] [stderr] Checking crossbeam-utils v0.6.6 [INFO] [stderr] Checking rand v0.6.5 [INFO] [stderr] Checking crossbeam-queue v0.1.2 [INFO] [stderr] Checking crossbeam-epoch v0.7.2 [INFO] [stderr] Checking deflate v0.7.20 [INFO] [stderr] Checking cgmath v0.17.0 [INFO] [stderr] Checking crossbeam-deque v0.6.3 [INFO] [stderr] Checking png v0.9.0 [INFO] [stderr] Checking rayon-core v1.5.0 [INFO] [stderr] Checking rayon v1.1.0 [INFO] [stderr] Checking jpeg-decoder v0.1.15 [INFO] [stderr] Checking image v0.15.0 [INFO] [stderr] Checking raytracer v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Vector3` [INFO] [stdout] --> src/objects/mod.rs:2:26 [INFO] [stdout] | [INFO] [stdout] 2 | use cgmath::{Quaternion, Vector3}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Sphere` [INFO] [stdout] --> src/objects/mesh.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | use objects::{Sphere, Structure, TextureCoords, WorldPosition}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RayType` [INFO] [stdout] --> src/objects/mesh.rs:3:34 [INFO] [stdout] | [INFO] [stdout] 3 | use raycast::{Intersection, Ray, RayType}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `max`, `min` [INFO] [stdout] --> src/objects/mesh.rs:4:16 [INFO] [stdout] | [INFO] [stdout] 4 | use std::cmp::{max, min}; [INFO] [stdout] | ^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Scale` [INFO] [stdout] --> src/objects/mesh.rs:5:31 [INFO] [stdout] | [INFO] [stdout] 5 | use types::{Direction, Point, Scale}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/objects/mesh.rs:106:21 [INFO] [stdout] | [INFO] [stdout] 106 | let w = (1.0 - u - v); [INFO] [stdout] | ^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Material`, `SurfaceType` [INFO] [stdout] --> src/objects/plane.rs:3:15 [INFO] [stdout] | [INFO] [stdout] 3 | use objects::{Material, Structure, SurfaceType, TextureCoords, WorldPosition}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Color`, `Scale` [INFO] [stdout] --> src/objects/plane.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | use types::{Color, Direction, Point, Scale}; [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Scale` [INFO] [stdout] --> src/objects/sphere.rs:4:31 [INFO] [stdout] | [INFO] [stdout] 4 | use types::{Direction, Point, Scale}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/objects/mod.rs:121:20 [INFO] [stdout] | [INFO] [stdout] 121 | structure: Box, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Structure + Send + Sync` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Duration` [INFO] [stdout] --> src/render.rs:14:17 [INFO] [stdout] | [INFO] [stdout] 14 | use std::time::{Duration, Instant}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/render.rs:93:16 [INFO] [stdout] | [INFO] [stdout] 93 | sample((x - 0.25), (y - 0.25), scene, camera).unwrap_or(black), [INFO] [stdout] | ^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/render.rs:93:28 [INFO] [stdout] | [INFO] [stdout] 93 | sample((x - 0.25), (y - 0.25), scene, camera).unwrap_or(black), [INFO] [stdout] | ^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/render.rs:94:16 [INFO] [stdout] | [INFO] [stdout] 94 | sample((x + 0.25), (y - 0.25), scene, camera).unwrap_or(black), [INFO] [stdout] | ^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/render.rs:94:28 [INFO] [stdout] | [INFO] [stdout] 94 | sample((x + 0.25), (y - 0.25), scene, camera).unwrap_or(black), [INFO] [stdout] | ^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/render.rs:95:16 [INFO] [stdout] | [INFO] [stdout] 95 | sample((x - 0.25), (y + 0.25), scene, camera).unwrap_or(black), [INFO] [stdout] | ^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/render.rs:95:28 [INFO] [stdout] | [INFO] [stdout] 95 | sample((x - 0.25), (y + 0.25), scene, camera).unwrap_or(black), [INFO] [stdout] | ^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/render.rs:96:16 [INFO] [stdout] | [INFO] [stdout] 96 | sample((x + 0.25), (y + 0.25), scene, camera).unwrap_or(black), [INFO] [stdout] | ^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/render.rs:96:28 [INFO] [stdout] | [INFO] [stdout] 96 | sample((x + 0.25), (y + 0.25), scene, camera).unwrap_or(black), [INFO] [stdout] | ^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/render.rs:97:16 [INFO] [stdout] | [INFO] [stdout] 97 | sample((x), (y), scene, camera).unwrap_or(black), [INFO] [stdout] | ^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/render.rs:97:21 [INFO] [stdout] | [INFO] [stdout] 97 | sample((x), (y), scene, camera).unwrap_or(black), [INFO] [stdout] | ^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Sphere` [INFO] [stdout] --> src/main.rs:23:53 [INFO] [stdout] | [INFO] [stdout] 23 | use objects::{Material, Mesh, ObjectBuilder, Plane, Sphere}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Vector3` [INFO] [stdout] --> src/objects/mod.rs:2:26 [INFO] [stdout] | [INFO] [stdout] 2 | use cgmath::{Quaternion, Vector3}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Sphere` [INFO] [stdout] --> src/objects/mesh.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | use objects::{Sphere, Structure, TextureCoords, WorldPosition}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RayType` [INFO] [stdout] --> src/objects/mesh.rs:3:34 [INFO] [stdout] | [INFO] [stdout] 3 | use raycast::{Intersection, Ray, RayType}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `max`, `min` [INFO] [stdout] --> src/objects/mesh.rs:4:16 [INFO] [stdout] | [INFO] [stdout] 4 | use std::cmp::{max, min}; [INFO] [stdout] | ^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Scale` [INFO] [stdout] --> src/objects/mesh.rs:5:31 [INFO] [stdout] | [INFO] [stdout] 5 | use types::{Direction, Point, Scale}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/objects/mesh.rs:106:21 [INFO] [stdout] | [INFO] [stdout] 106 | let w = (1.0 - u - v); [INFO] [stdout] | ^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Material`, `SurfaceType` [INFO] [stdout] --> src/objects/plane.rs:3:15 [INFO] [stdout] | [INFO] [stdout] 3 | use objects::{Material, Structure, SurfaceType, TextureCoords, WorldPosition}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Color`, `Scale` [INFO] [stdout] --> src/objects/plane.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | use types::{Color, Direction, Point, Scale}; [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Scale` [INFO] [stdout] --> src/objects/sphere.rs:4:31 [INFO] [stdout] | [INFO] [stdout] 4 | use types::{Direction, Point, Scale}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/objects/mod.rs:121:20 [INFO] [stdout] | [INFO] [stdout] 121 | structure: Box, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Structure + Send + Sync` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Duration` [INFO] [stdout] --> src/render.rs:14:17 [INFO] [stdout] | [INFO] [stdout] 14 | use std::time::{Duration, Instant}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/render.rs:93:16 [INFO] [stdout] | [INFO] [stdout] 93 | sample((x - 0.25), (y - 0.25), scene, camera).unwrap_or(black), [INFO] [stdout] | ^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/render.rs:93:28 [INFO] [stdout] | [INFO] [stdout] 93 | sample((x - 0.25), (y - 0.25), scene, camera).unwrap_or(black), [INFO] [stdout] | ^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/render.rs:94:16 [INFO] [stdout] | [INFO] [stdout] 94 | sample((x + 0.25), (y - 0.25), scene, camera).unwrap_or(black), [INFO] [stdout] | ^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/render.rs:94:28 [INFO] [stdout] | [INFO] [stdout] 94 | sample((x + 0.25), (y - 0.25), scene, camera).unwrap_or(black), [INFO] [stdout] | ^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/render.rs:95:16 [INFO] [stdout] | [INFO] [stdout] 95 | sample((x - 0.25), (y + 0.25), scene, camera).unwrap_or(black), [INFO] [stdout] | ^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/render.rs:95:28 [INFO] [stdout] | [INFO] [stdout] 95 | sample((x - 0.25), (y + 0.25), scene, camera).unwrap_or(black), [INFO] [stdout] | ^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/render.rs:96:16 [INFO] [stdout] | [INFO] [stdout] 96 | sample((x + 0.25), (y + 0.25), scene, camera).unwrap_or(black), [INFO] [stdout] | ^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/render.rs:96:28 [INFO] [stdout] | [INFO] [stdout] 96 | sample((x + 0.25), (y + 0.25), scene, camera).unwrap_or(black), [INFO] [stdout] | ^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/render.rs:97:16 [INFO] [stdout] | [INFO] [stdout] 97 | sample((x), (y), scene, camera).unwrap_or(black), [INFO] [stdout] | ^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/render.rs:97:21 [INFO] [stdout] | [INFO] [stdout] 97 | sample((x), (y), scene, camera).unwrap_or(black), [INFO] [stdout] | ^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Sphere` [INFO] [stdout] --> src/main.rs:23:53 [INFO] [stdout] | [INFO] [stdout] 23 | use objects::{Material, Mesh, ObjectBuilder, Plane, Sphere}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cgmath::prelude` [INFO] [stdout] --> src/objects/quad.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use cgmath::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `texture_coordinates` [INFO] [stdout] --> src/objects/mod.rs:138:31 [INFO] [stdout] | [INFO] [stdout] 138 | fn reflectivity_at(&self, texture_coordinates: TextureCoords) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_texture_coordinates` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tmin` [INFO] [stdout] --> src/objects/quad.rs:19:18 [INFO] [stdout] | [INFO] [stdout] 19 | let (tmin, tmax) = (tmax, tmin); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_tmin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tmax` [INFO] [stdout] --> src/objects/quad.rs:19:24 [INFO] [stdout] | [INFO] [stdout] 19 | let (tmin, tmax) = (tmax, tmin); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_tmax` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tymin` [INFO] [stdout] --> src/objects/quad.rs:26:18 [INFO] [stdout] | [INFO] [stdout] 26 | let (tymin, tymax) = (tymax, tymin); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_tymin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tymax` [INFO] [stdout] --> src/objects/quad.rs:26:25 [INFO] [stdout] | [INFO] [stdout] 26 | let (tymin, tymax) = (tymax, tymin); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_tymax` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tmin` [INFO] [stdout] --> src/objects/quad.rs:34:17 [INFO] [stdout] | [INFO] [stdout] 34 | let tmin = tymin; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_tmin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tmax` [INFO] [stdout] --> src/objects/quad.rs:38:17 [INFO] [stdout] | [INFO] [stdout] 38 | let tmax = tymax; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_tmax` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tzmin` [INFO] [stdout] --> src/objects/quad.rs:45:18 [INFO] [stdout] | [INFO] [stdout] 45 | let (tzmin, tzmax) = (tzmax, tzmin); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_tzmin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tzmax` [INFO] [stdout] --> src/objects/quad.rs:45:25 [INFO] [stdout] | [INFO] [stdout] 45 | let (tzmin, tzmax) = (tzmax, tzmin); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_tzmax` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scene` [INFO] [stdout] --> src/raycast.rs:63:41 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn create_prime(x: f64, y: f64, scene: &Scene, camera: &Camera) -> Ray { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_scene` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `start` [INFO] [stdout] --> src/render.rs:126:17 [INFO] [stdout] | [INFO] [stdout] 126 | let start = Instant::now(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cgmath::prelude` [INFO] [stdout] --> src/objects/quad.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use cgmath::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `texture_coordinates` [INFO] [stdout] --> src/objects/mod.rs:138:31 [INFO] [stdout] | [INFO] [stdout] 138 | fn reflectivity_at(&self, texture_coordinates: TextureCoords) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_texture_coordinates` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tmin` [INFO] [stdout] --> src/objects/quad.rs:19:18 [INFO] [stdout] | [INFO] [stdout] 19 | let (tmin, tmax) = (tmax, tmin); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_tmin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tmax` [INFO] [stdout] --> src/objects/quad.rs:19:24 [INFO] [stdout] | [INFO] [stdout] 19 | let (tmin, tmax) = (tmax, tmin); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_tmax` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tymin` [INFO] [stdout] --> src/objects/quad.rs:26:18 [INFO] [stdout] | [INFO] [stdout] 26 | let (tymin, tymax) = (tymax, tymin); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_tymin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tymax` [INFO] [stdout] --> src/objects/quad.rs:26:25 [INFO] [stdout] | [INFO] [stdout] 26 | let (tymin, tymax) = (tymax, tymin); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_tymax` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tmin` [INFO] [stdout] --> src/objects/quad.rs:34:17 [INFO] [stdout] | [INFO] [stdout] 34 | let tmin = tymin; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_tmin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tmax` [INFO] [stdout] --> src/objects/quad.rs:38:17 [INFO] [stdout] | [INFO] [stdout] 38 | let tmax = tymax; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_tmax` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tzmin` [INFO] [stdout] --> src/objects/quad.rs:45:18 [INFO] [stdout] | [INFO] [stdout] 45 | let (tzmin, tzmax) = (tzmax, tzmin); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_tzmin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tzmax` [INFO] [stdout] --> src/objects/quad.rs:45:25 [INFO] [stdout] | [INFO] [stdout] 45 | let (tzmin, tzmax) = (tzmax, tzmin); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_tzmax` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scene` [INFO] [stdout] --> src/raycast.rs:63:41 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn create_prime(x: f64, y: f64, scene: &Scene, camera: &Camera) -> Ray { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_scene` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `start` [INFO] [stdout] --> src/render.rs:126:17 [INFO] [stdout] | [INFO] [stdout] 126 | let start = Instant::now(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `mesh` [INFO] [stdout] --> src/objects/mesh.rs:161:5 [INFO] [stdout] | [INFO] [stdout] 161 | mesh: obj::Object, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Quad` [INFO] [stdout] --> src/objects/quad.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Quad { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `intersects` [INFO] [stdout] --> src/objects/quad.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn intersects(&self, ray: &Ray, position: &WorldPosition) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `create` [INFO] [stdout] --> src/objects/sphere.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn create(radius: f64) -> Sphere { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Texture` [INFO] [stdout] --> src/objects/mod.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | Texture(DynamicImage), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/objects/mod.rs:68:12 [INFO] [stdout] | [INFO] [stdout] 68 | pub fn new(color: Coloration, albedo: f32) -> Material { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `diffuse_texture` [INFO] [stdout] --> src/objects/mod.rs:92:12 [INFO] [stdout] | [INFO] [stdout] 92 | pub fn diffuse_texture(image: DynamicImage, albedo: f32) -> Material { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `hit_point` [INFO] [stdout] --> src/raycast.rs:180:12 [INFO] [stdout] | [INFO] [stdout] 180 | pub fn hit_point(&self) -> &Point { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 42 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `mesh` [INFO] [stdout] --> src/objects/mesh.rs:161:5 [INFO] [stdout] | [INFO] [stdout] 161 | mesh: obj::Object, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Quad` [INFO] [stdout] --> src/objects/quad.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Quad { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `intersects` [INFO] [stdout] --> src/objects/quad.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn intersects(&self, ray: &Ray, position: &WorldPosition) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Texture` [INFO] [stdout] --> src/objects/mod.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | Texture(DynamicImage), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/objects/mod.rs:68:12 [INFO] [stdout] | [INFO] [stdout] 68 | pub fn new(color: Coloration, albedo: f32) -> Material { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `diffuse_texture` [INFO] [stdout] --> src/objects/mod.rs:92:12 [INFO] [stdout] | [INFO] [stdout] 92 | pub fn diffuse_texture(image: DynamicImage, albedo: f32) -> Material { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `hit_point` [INFO] [stdout] --> src/raycast.rs:180:12 [INFO] [stdout] | [INFO] [stdout] 180 | pub fn hit_point(&self) -> &Point { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 41 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 8.62s [INFO] running `Command { std: "docker" "inspect" "982d9dded616a8989afbb8b38b38a2ad575c76be58caa4197c56ed4f09df6f83", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "982d9dded616a8989afbb8b38b38a2ad575c76be58caa4197c56ed4f09df6f83", kill_on_drop: false }` [INFO] [stdout] 982d9dded616a8989afbb8b38b38a2ad575c76be58caa4197c56ed4f09df6f83