[INFO] cloning repository https://github.com/djuarez-2017510/Proyecto_Minecraft [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/djuarez-2017510/Proyecto_Minecraft" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdjuarez-2017510%2FProyecto_Minecraft", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdjuarez-2017510%2FProyecto_Minecraft'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 62ef74cfbe5049a4f41696559bff7f2515bb3cf7 [INFO] checking djuarez-2017510/Proyecto_Minecraft against try#f70ee28831acc074c109afab32d287057c3eca46 for pr-149389 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdjuarez-2017510%2FProyecto_Minecraft" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/djuarez-2017510/Proyecto_Minecraft [INFO] finished tweaking git repo https://github.com/djuarez-2017510/Proyecto_Minecraft [INFO] tweaked toml for git repo https://github.com/djuarez-2017510/Proyecto_Minecraft written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/djuarez-2017510/Proyecto_Minecraft on toolchain f70ee28831acc074c109afab32d287057c3eca46 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f70ee28831acc074c109afab32d287057c3eca46" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/djuarez-2017510/Proyecto_Minecraft 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" "+f70ee28831acc074c109afab32d287057c3eca46" "fetch" "--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] [stderr] Downloading crates ... [INFO] [stderr] Downloaded version-compare v0.1.1 [INFO] [stderr] Downloaded cc v1.2.46 [INFO] [stderr] Downloaded minifb v0.27.0 [INFO] [stderr] Downloaded orbclient v0.3.49 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/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:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+f70ee28831acc074c109afab32d287057c3eca46" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] db3405b4fd926b2a820e1e6caa747be8e27f519526fab8c7ce4fec99fa7e21bf [INFO] running `Command { std: "docker" "start" "-a" "db3405b4fd926b2a820e1e6caa747be8e27f519526fab8c7ce4fec99fa7e21bf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "db3405b4fd926b2a820e1e6caa747be8e27f519526fab8c7ce4fec99fa7e21bf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "db3405b4fd926b2a820e1e6caa747be8e27f519526fab8c7ce4fec99fa7e21bf", kill_on_drop: false }` [INFO] [stdout] db3405b4fd926b2a820e1e6caa747be8e27f519526fab8c7ce4fec99fa7e21bf [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/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:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+f70ee28831acc074c109afab32d287057c3eca46" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7ac317251749714849d5484478280be53e9266d646ea5d9d8f253b33fc9c8e70 [INFO] running `Command { std: "docker" "start" "-a" "7ac317251749714849d5484478280be53e9266d646ea5d9d8f253b33fc9c8e70", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.177 [INFO] [stderr] Compiling xml-rs v0.8.28 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Compiling wayland-sys v0.29.5 [INFO] [stderr] Checking libloading v0.8.9 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Compiling cc v1.2.46 [INFO] [stderr] Compiling rustix v1.1.2 [INFO] [stderr] Compiling x11-dl v2.21.0 [INFO] [stderr] Checking linux-raw-sys v0.11.0 [INFO] [stderr] Checking dlib v0.5.2 [INFO] [stderr] Checking xcursor v0.3.10 [INFO] [stderr] Checking raw-window-handle v0.6.2 [INFO] [stderr] Compiling wayland-scanner v0.29.5 [INFO] [stderr] Compiling minifb v0.27.0 [INFO] [stderr] Compiling wayland-client v0.29.5 [INFO] [stderr] Compiling wayland-protocols v0.29.5 [INFO] [stderr] Checking nix v0.24.3 [INFO] [stderr] Checking getrandom v0.3.4 [INFO] [stderr] Checking tempfile v3.23.0 [INFO] [stderr] Checking wayland-commons v0.29.5 [INFO] [stderr] Checking wayland-cursor v0.29.5 [INFO] [stderr] Checking Proyecto2_Mine v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated method `minifb::Window::limit_update_rate`: use set_fps_target instead, this function will be removed in the future. [INFO] [stdout] --> src/main.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 43 | window.limit_update_rate(Some(std::time::Duration::from_micros(16666))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `aspect` is never read [INFO] [stdout] --> src/raytracer.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct Camera { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 29 | pub aspect: f32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `with_depth_of_field` and `get_ray` are never used [INFO] [stdout] --> src/raytracer.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 34 | impl Camera { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn with_depth_of_field(mut self, focus_distance: f32, aperture: f32) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | pub fn get_ray(&self, x: f32, y: f32, width: usize, height: usize) -> Ray { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `w` and `focus_distance` are never read [INFO] [stdout] --> src/raytracer.rs:118:9 [INFO] [stdout] | [INFO] [stdout] 111 | pub struct CameraFrame { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 118 | pub w: Vec3, [INFO] [stdout] | ^ [INFO] [stdout] 119 | pub focus_distance: f32, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Directional` and `Spot` are never constructed [INFO] [stdout] --> src/raytracer.rs:204:5 [INFO] [stdout] | [INFO] [stdout] 202 | pub enum LightType { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 203 | Point, [INFO] [stdout] 204 | Directional(Vec3), // Direction vector [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 205 | Spot { direction: Vec3, inner_cone: f32, outer_cone: f32 }, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LightType` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `point`, `directional`, and `spot` are never used [INFO] [stdout] --> src/raytracer.rs:209:12 [INFO] [stdout] | [INFO] [stdout] 208 | impl Light { [INFO] [stdout] | ---------- associated functions in this implementation [INFO] [stdout] 209 | pub fn point(position: Vec3, color: Vec3, intensity: f32) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 218 | pub fn directional(direction: Vec3, color: Vec3, intensity: f32) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 227 | pub fn spot(position: Vec3, direction: Vec3, color: Vec3, intensity: f32, inner_cone: f32, outer_cone: f32) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `with_ambient_light` and `with_fog` are never used [INFO] [stdout] --> src/raytracer.rs:300:12 [INFO] [stdout] | [INFO] [stdout] 288 | impl Scene { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 300 | pub fn with_ambient_light(mut self, ambient: Vec3) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 305 | pub fn with_fog(mut self, fog: Fog) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `linear` and `exponential` are never used [INFO] [stdout] --> src/raytracer.rs:446:12 [INFO] [stdout] | [INFO] [stdout] 445 | impl Fog { [INFO] [stdout] | -------- associated functions in this implementation [INFO] [stdout] 446 | pub fn linear(color: Vec3, start: f32, end: f32) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 455 | pub fn exponential(color: Vec3, density: f32) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `gradient` is never used [INFO] [stdout] --> src/raytracer.rs:489:12 [INFO] [stdout] | [INFO] [stdout] 488 | impl Skybox { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 489 | pub fn gradient(day_top: Vec3, day_horizon: Vec3) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SAMPLES_PER_PIXEL` is never used [INFO] [stdout] --> src/raytracer.rs:584:7 [INFO] [stdout] | [INFO] [stdout] 584 | const SAMPLES_PER_PIXEL: i32 = 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MIN_CONTRIBUTION` is never used [INFO] [stdout] --> src/raytracer.rs:586:7 [INFO] [stdout] | [INFO] [stdout] 586 | const MIN_CONTRIBUTION: f32 = 0.001; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `random_in_unit_sphere` is never used [INFO] [stdout] --> src/raytracer.rs:776:4 [INFO] [stdout] | [INFO] [stdout] 776 | fn random_in_unit_sphere() -> Vec3 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `random_unit_vector` is never used [INFO] [stdout] --> src/raytracer.rs:789:4 [INFO] [stdout] | [INFO] [stdout] 789 | fn random_unit_vector() -> Vec3 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Plane` is never constructed [INFO] [stdout] --> src/shapes.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 64 | pub struct Plane { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `with_size` are never used [INFO] [stdout] --> src/shapes.rs:72:12 [INFO] [stdout] | [INFO] [stdout] 71 | impl Plane { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 72 | pub fn new(point: Vec3, normal: Vec3, material: Material) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | pub fn with_size(mut self, width: f32, height: f32) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `with_rotation` is never used [INFO] [stdout] --> src/shapes.rs:165:12 [INFO] [stdout] | [INFO] [stdout] 155 | impl Cube { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 165 | pub fn with_rotation(mut self, rotation: Vec3) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SpinningCube` is never constructed [INFO] [stdout] --> src/shapes.rs:280:12 [INFO] [stdout] | [INFO] [stdout] 280 | pub struct SpinningCube { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/shapes.rs:288:12 [INFO] [stdout] | [INFO] [stdout] 287 | impl SpinningCube { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] 288 | pub fn new(center: Vec3, size: f32, material: Material, rotation_speed: f32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Triangle` is never constructed [INFO] [stdout] --> src/shapes.rs:364:12 [INFO] [stdout] | [INFO] [stdout] 364 | pub struct Triangle { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new`, `new_with_uvs`, and `new_with_normal` are never used [INFO] [stdout] --> src/shapes.rs:376:12 [INFO] [stdout] | [INFO] [stdout] 375 | impl Triangle { [INFO] [stdout] | ------------- associated functions in this implementation [INFO] [stdout] 376 | pub fn new(v0: Vec3, v1: Vec3, v2: Vec3, material: Material) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 386 | pub fn new_with_uvs( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 398 | pub fn new_with_normal(v0: Vec3, v1: Vec3, v2: Vec3, normal: Vec3, material: Material) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Cylinder` is never constructed [INFO] [stdout] --> src/shapes.rs:473:12 [INFO] [stdout] | [INFO] [stdout] 473 | pub struct Cylinder { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/shapes.rs:481:12 [INFO] [stdout] | [INFO] [stdout] 480 | impl Cylinder { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 481 | pub fn new(center: Vec3, radius: f32, height: f32, material: Material) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Torus` is never constructed [INFO] [stdout] --> src/shapes.rs:571:12 [INFO] [stdout] | [INFO] [stdout] 571 | pub struct Torus { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/shapes.rs:579:12 [INFO] [stdout] | [INFO] [stdout] 578 | impl Torus { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 579 | pub fn new(center: Vec3, major_radius: f32, minor_radius: f32, material: Material) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `MinecraftStone` and `MinecraftGlowstone` are never constructed [INFO] [stdout] --> src/texture.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum TextureType { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 7 | MinecraftStone, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 8 | MinecraftGlowstone, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TextureType` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `minecraft_stone` and `minecraft_glowstone` are never used [INFO] [stdout] --> src/texture.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 20 | impl Texture { [INFO] [stdout] | ------------ associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn minecraft_stone() -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn minecraft_glowstone() -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `R` should have a snake case name [INFO] [stdout] --> src/shapes.rs:591:13 [INFO] [stdout] | [INFO] [stdout] 591 | let R = self.major_radius; [INFO] [stdout] | ^ help: convert the identifier to snake case: `r` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `minifb::Window::limit_update_rate`: use set_fps_target instead, this function will be removed in the future. [INFO] [stdout] --> src/main.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 43 | window.limit_update_rate(Some(std::time::Duration::from_micros(16666))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `aspect` is never read [INFO] [stdout] --> src/raytracer.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct Camera { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 29 | pub aspect: f32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `with_depth_of_field` and `get_ray` are never used [INFO] [stdout] --> src/raytracer.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 34 | impl Camera { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn with_depth_of_field(mut self, focus_distance: f32, aperture: f32) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | pub fn get_ray(&self, x: f32, y: f32, width: usize, height: usize) -> Ray { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `w` and `focus_distance` are never read [INFO] [stdout] --> src/raytracer.rs:118:9 [INFO] [stdout] | [INFO] [stdout] 111 | pub struct CameraFrame { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 118 | pub w: Vec3, [INFO] [stdout] | ^ [INFO] [stdout] 119 | pub focus_distance: f32, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Directional` and `Spot` are never constructed [INFO] [stdout] --> src/raytracer.rs:204:5 [INFO] [stdout] | [INFO] [stdout] 202 | pub enum LightType { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 203 | Point, [INFO] [stdout] 204 | Directional(Vec3), // Direction vector [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 205 | Spot { direction: Vec3, inner_cone: f32, outer_cone: f32 }, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LightType` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `point`, `directional`, and `spot` are never used [INFO] [stdout] --> src/raytracer.rs:209:12 [INFO] [stdout] | [INFO] [stdout] 208 | impl Light { [INFO] [stdout] | ---------- associated functions in this implementation [INFO] [stdout] 209 | pub fn point(position: Vec3, color: Vec3, intensity: f32) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 218 | pub fn directional(direction: Vec3, color: Vec3, intensity: f32) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 227 | pub fn spot(position: Vec3, direction: Vec3, color: Vec3, intensity: f32, inner_cone: f32, outer_cone: f32) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `with_ambient_light` and `with_fog` are never used [INFO] [stdout] --> src/raytracer.rs:300:12 [INFO] [stdout] | [INFO] [stdout] 288 | impl Scene { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 300 | pub fn with_ambient_light(mut self, ambient: Vec3) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 305 | pub fn with_fog(mut self, fog: Fog) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `linear` and `exponential` are never used [INFO] [stdout] --> src/raytracer.rs:446:12 [INFO] [stdout] | [INFO] [stdout] 445 | impl Fog { [INFO] [stdout] | -------- associated functions in this implementation [INFO] [stdout] 446 | pub fn linear(color: Vec3, start: f32, end: f32) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 455 | pub fn exponential(color: Vec3, density: f32) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `gradient` is never used [INFO] [stdout] --> src/raytracer.rs:489:12 [INFO] [stdout] | [INFO] [stdout] 488 | impl Skybox { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 489 | pub fn gradient(day_top: Vec3, day_horizon: Vec3) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SAMPLES_PER_PIXEL` is never used [INFO] [stdout] --> src/raytracer.rs:584:7 [INFO] [stdout] | [INFO] [stdout] 584 | const SAMPLES_PER_PIXEL: i32 = 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MIN_CONTRIBUTION` is never used [INFO] [stdout] --> src/raytracer.rs:586:7 [INFO] [stdout] | [INFO] [stdout] 586 | const MIN_CONTRIBUTION: f32 = 0.001; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `random_in_unit_sphere` is never used [INFO] [stdout] --> src/raytracer.rs:776:4 [INFO] [stdout] | [INFO] [stdout] 776 | fn random_in_unit_sphere() -> Vec3 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `random_unit_vector` is never used [INFO] [stdout] --> src/raytracer.rs:789:4 [INFO] [stdout] | [INFO] [stdout] 789 | fn random_unit_vector() -> Vec3 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Plane` is never constructed [INFO] [stdout] --> src/shapes.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 64 | pub struct Plane { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `with_size` are never used [INFO] [stdout] --> src/shapes.rs:72:12 [INFO] [stdout] | [INFO] [stdout] 71 | impl Plane { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 72 | pub fn new(point: Vec3, normal: Vec3, material: Material) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | pub fn with_size(mut self, width: f32, height: f32) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `with_rotation` is never used [INFO] [stdout] --> src/shapes.rs:165:12 [INFO] [stdout] | [INFO] [stdout] 155 | impl Cube { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 165 | pub fn with_rotation(mut self, rotation: Vec3) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SpinningCube` is never constructed [INFO] [stdout] --> src/shapes.rs:280:12 [INFO] [stdout] | [INFO] [stdout] 280 | pub struct SpinningCube { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/shapes.rs:288:12 [INFO] [stdout] | [INFO] [stdout] 287 | impl SpinningCube { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] 288 | pub fn new(center: Vec3, size: f32, material: Material, rotation_speed: f32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Triangle` is never constructed [INFO] [stdout] --> src/shapes.rs:364:12 [INFO] [stdout] | [INFO] [stdout] 364 | pub struct Triangle { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new`, `new_with_uvs`, and `new_with_normal` are never used [INFO] [stdout] --> src/shapes.rs:376:12 [INFO] [stdout] | [INFO] [stdout] 375 | impl Triangle { [INFO] [stdout] | ------------- associated functions in this implementation [INFO] [stdout] 376 | pub fn new(v0: Vec3, v1: Vec3, v2: Vec3, material: Material) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 386 | pub fn new_with_uvs( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 398 | pub fn new_with_normal(v0: Vec3, v1: Vec3, v2: Vec3, normal: Vec3, material: Material) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Cylinder` is never constructed [INFO] [stdout] --> src/shapes.rs:473:12 [INFO] [stdout] | [INFO] [stdout] 473 | pub struct Cylinder { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/shapes.rs:481:12 [INFO] [stdout] | [INFO] [stdout] 480 | impl Cylinder { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 481 | pub fn new(center: Vec3, radius: f32, height: f32, material: Material) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Torus` is never constructed [INFO] [stdout] --> src/shapes.rs:571:12 [INFO] [stdout] | [INFO] [stdout] 571 | pub struct Torus { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/shapes.rs:579:12 [INFO] [stdout] | [INFO] [stdout] 578 | impl Torus { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 579 | pub fn new(center: Vec3, major_radius: f32, minor_radius: f32, material: Material) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `MinecraftStone` and `MinecraftGlowstone` are never constructed [INFO] [stdout] --> src/texture.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum TextureType { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 7 | MinecraftStone, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 8 | MinecraftGlowstone, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TextureType` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `minecraft_stone` and `minecraft_glowstone` are never used [INFO] [stdout] --> src/texture.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 20 | impl Texture { [INFO] [stdout] | ------------ associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn minecraft_stone() -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn minecraft_glowstone() -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `R` should have a snake case name [INFO] [stdout] --> src/shapes.rs:591:13 [INFO] [stdout] | [INFO] [stdout] 591 | let R = self.major_radius; [INFO] [stdout] | ^ help: convert the identifier to snake case: `r` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 31.98s [INFO] running `Command { std: "docker" "inspect" "7ac317251749714849d5484478280be53e9266d646ea5d9d8f253b33fc9c8e70", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7ac317251749714849d5484478280be53e9266d646ea5d9d8f253b33fc9c8e70", kill_on_drop: false }` [INFO] [stdout] 7ac317251749714849d5484478280be53e9266d646ea5d9d8f253b33fc9c8e70