[INFO] cloning repository https://github.com/alsor/durer_renderer [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/alsor/durer_renderer" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Falsor%2Fdurer_renderer", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Falsor%2Fdurer_renderer'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5d13af5cc3d6ca464cf47189793139bea8240dfd [INFO] checking alsor/durer_renderer/5d13af5cc3d6ca464cf47189793139bea8240dfd against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Falsor%2Fdurer_renderer" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/alsor/durer_renderer on toolchain ccf408f4326a858c00dd845a64a86b16f360a801 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/alsor/durer_renderer [INFO] finished tweaking git repo https://github.com/alsor/durer_renderer [INFO] tweaked toml for git repo https://github.com/alsor/durer_renderer written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/alsor/durer_renderer 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" "+ccf408f4326a858c00dd845a64a86b16f360a801" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 28887c603f206e8451ef54ba5131d41b8f9d96ef150a0b039609fcbe029dacef [INFO] running `Command { std: "docker" "start" "-a" "28887c603f206e8451ef54ba5131d41b8f9d96ef150a0b039609fcbe029dacef", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "28887c603f206e8451ef54ba5131d41b8f9d96ef150a0b039609fcbe029dacef", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "28887c603f206e8451ef54ba5131d41b8f9d96ef150a0b039609fcbe029dacef", kill_on_drop: false }` [INFO] [stdout] 28887c603f206e8451ef54ba5131d41b8f9d96ef150a0b039609fcbe029dacef [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f9833dd2af102eb2e76d2b6c14d3c2ba516bfd7fa7c4b4a82fe83a40a9fe9f6e [INFO] running `Command { std: "docker" "start" "-a" "f9833dd2af102eb2e76d2b6c14d3c2ba516bfd7fa7c4b4a82fe83a40a9fe9f6e", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Fixed Cargo.toml (1 fix) [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling libc v0.2.137 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.14 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Compiling rayon-core v1.10.1 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling num-derive v0.2.5 [INFO] [stderr] Checking adler32 v1.2.0 [INFO] [stderr] Checking byteorder v1.4.3 [INFO] [stderr] Compiling crc32fast v1.3.2 [INFO] [stderr] Checking lzw v0.10.0 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling sdl2-sys v0.31.0 [INFO] [stderr] Checking either v1.8.0 [INFO] [stderr] Checking quick-error v1.2.3 [INFO] [stderr] Checking inflate v0.4.5 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking color_quant v1.1.0 [INFO] [stderr] Checking regex-syntax v0.6.28 [INFO] [stderr] Checking humantime v1.3.0 [INFO] [stderr] Checking bitflags v0.7.0 [INFO] [stderr] Checking termcolor v1.1.3 [INFO] [stderr] Checking gif v0.10.3 [INFO] [stderr] Checking deflate v0.7.20 [INFO] [stderr] Checking scoped_threadpool v0.1.9 [INFO] [stderr] Checking lazy_static v0.2.11 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling memoffset v0.7.1 [INFO] [stderr] Compiling crossbeam-epoch v0.9.13 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling num-iter v0.1.43 [INFO] [stderr] Compiling num-rational v0.2.4 [INFO] [stderr] Checking crossbeam-channel v0.5.6 [INFO] [stderr] Checking png v0.15.3 [INFO] [stderr] Checking aho-corasick v0.7.20 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Checking crossbeam-deque v0.8.2 [INFO] [stderr] Checking num_cpus v1.14.0 [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking rand v0.3.23 [INFO] [stderr] Checking rayon v1.6.0 [INFO] [stderr] Checking num v0.1.42 [INFO] [stderr] Checking sdl2 v0.31.0 [INFO] [stderr] Checking regex v1.7.0 [INFO] [stderr] Checking env_logger v0.5.13 [INFO] [stderr] Checking jpeg-decoder v0.1.22 [INFO] [stderr] Checking tiff v0.3.1 [INFO] [stderr] Checking image v0.22.5 [INFO] [stderr] Checking durer v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/rendering.rs (39 fixes) [INFO] [stderr] Fixed src/main.rs (11 fixes) [INFO] [stderr] Fixed src/starfield.rs (3 fixes) [INFO] [stderr] Fixed src/projective_camera.rs (1 fix) [INFO] [stderr] Fixed src/ray_tracing.rs (2 fixes) [INFO] [stdout] warning: unused variable: `rng` [INFO] [stdout] --> src/ray_tracing.rs:207:9 [INFO] [stdout] | [INFO] [stdout] 207 | let rng = rand::thread_rng(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rng` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/buffer_canvas.rs:147:17 [INFO] [stdout] | [INFO] [stdout] 147 | for i in 1..dx { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/buffer_canvas.rs:168:17 [INFO] [stdout] | [INFO] [stdout] 168 | for i in 1..dy { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/ply2.rs:86:13 [INFO] [stdout] | [INFO] [stdout] 86 | _ => () [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/ply2.rs:86:13 [INFO] [stdout] | [INFO] [stdout] 48 | Ply2Parts::NumVertices => { [INFO] [stdout] | ---------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 52 | Ply2Parts::NumFaces => { [INFO] [stdout] | ------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 56 | Ply2Parts::Vertices => { [INFO] [stdout] | ------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 67 | Ply2Parts::Faces => { [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 86 | _ => () [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rng` [INFO] [stdout] --> src/ply2.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | let rng = rand::thread_rng(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rng` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/starfield.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | for i in 0..num_stars { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:226:13 [INFO] [stdout] | [INFO] [stdout] 226 | for i in 1..dx { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:251:13 [INFO] [stdout] | [INFO] [stdout] 251 | for i in 1..dy { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rng` [INFO] [stdout] --> src/main.rs:451:9 [INFO] [stdout] | [INFO] [stdout] 451 | let rng = rand::thread_rng(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rng` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rng` [INFO] [stdout] --> src/main.rs:491:9 [INFO] [stdout] | [INFO] [stdout] 491 | let rng = rand::thread_rng(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rng` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `size` [INFO] [stdout] --> src/main.rs:713:9 [INFO] [stdout] | [INFO] [stdout] 713 | let size = (z_max - z_min).abs(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `camera` [INFO] [stdout] --> src/rendering.rs:422:5 [INFO] [stdout] | [INFO] [stdout] 422 | camera: &ProjectiveCamera, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_camera` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `h_segment` [INFO] [stdout] --> src/rendering.rs:594:13 [INFO] [stdout] | [INFO] [stdout] 594 | let h_segment = interpolate_float(x_l, h_left[y_index], x_r, h_right[y_index]); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_h_segment` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `h_segment` [INFO] [stdout] --> src/rendering.rs:751:13 [INFO] [stdout] | [INFO] [stdout] 751 | let h_segment = interpolate_float(x_l, h_left[y_index], x_r, h_right[y_index]); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_h_segment` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `v0` is never read [INFO] [stdout] --> src/rendering.rs:805:9 [INFO] [stdout] | [INFO] [stdout] 805 | v0 = v2; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `v1` is never read [INFO] [stdout] --> src/rendering.rs:818:9 [INFO] [stdout] | [INFO] [stdout] 818 | v1 = v2; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `v2` is never read [INFO] [stdout] --> src/rendering.rs:819:9 [INFO] [stdout] | [INFO] [stdout] 819 | v2 = swap; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `h_segment` [INFO] [stdout] --> src/rendering.rs:932:13 [INFO] [stdout] | [INFO] [stdout] 932 | let h_segment = interpolate_float(x_l, h_left[y_index], x_r, h_right[y_index]); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_h_segment` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `v0` is never read [INFO] [stdout] --> src/rendering.rs:1009:9 [INFO] [stdout] | [INFO] [stdout] 1009 | v0 = v2; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `v1` is never read [INFO] [stdout] --> src/rendering.rs:1026:9 [INFO] [stdout] | [INFO] [stdout] 1026 | v1 = v2; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `v2` is never read [INFO] [stdout] --> src/rendering.rs:1027:9 [INFO] [stdout] | [INFO] [stdout] 1027 | v2 = swap; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `h_segment` [INFO] [stdout] --> src/rendering.rs:1176:13 [INFO] [stdout] | [INFO] [stdout] 1176 | let h_segment = interpolate_float(x_l, h_left[y_index], x_r, h_right[y_index]); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_h_segment` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/rendering.rs:1252:9 [INFO] [stdout] | [INFO] [stdout] 1252 | for i in i0..(i1 + 1) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/rendering.rs:1268:9 [INFO] [stdout] | [INFO] [stdout] 1268 | for i in i0..(i1 + 1) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `red` [INFO] [stdout] --> src/main.rs:1189:9 [INFO] [stdout] | [INFO] [stdout] 1189 | let red = Color { r: 255, g: 0, b: 0 }; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_red` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `green` [INFO] [stdout] --> src/main.rs:1190:9 [INFO] [stdout] | [INFO] [stdout] 1190 | let green = Color { r: 0, g: 255, b: 0 }; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_green` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `blue` [INFO] [stdout] --> src/main.rs:1191:9 [INFO] [stdout] | [INFO] [stdout] 1191 | let blue = Color { r: 0, g: 0, b: 255 }; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_blue` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `white` [INFO] [stdout] --> src/main.rs:1192:9 [INFO] [stdout] | [INFO] [stdout] 1192 | let white = Color { r: 255, g: 255, b: 255 }; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_white` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sphere` [INFO] [stdout] --> src/main.rs:1198:9 [INFO] [stdout] | [INFO] [stdout] 1198 | let sphere = sphere(35); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_sphere` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cube` [INFO] [stdout] --> src/main.rs:1199:9 [INFO] [stdout] | [INFO] [stdout] 1199 | let cube = cube(0.9); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_cube` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `wooden_cube` [INFO] [stdout] --> src/main.rs:1200:9 [INFO] [stdout] | [INFO] [stdout] 1200 | let wooden_cube = textured_cube(0.9, &wooden_crate); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_wooden_cube` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `brick_cube` [INFO] [stdout] --> src/main.rs:1201:9 [INFO] [stdout] | [INFO] [stdout] 1201 | let brick_cube = textured_cube(1.0, &bricks); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_brick_cube` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_instance_index` [INFO] [stdout] --> src/main.rs:1208:9 [INFO] [stdout] | [INFO] [stdout] 1208 | let current_instance_index: Option = None; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_instance_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `starfield` [INFO] [stdout] --> src/main.rs:1305:9 [INFO] [stdout] | [INFO] [stdout] 1305 | let starfield = Starfield::new(1000, 5.0, 110000.0); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_starfield` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delta` [INFO] [stdout] --> src/main.rs:1343:13 [INFO] [stdout] | [INFO] [stdout] 1343 | let delta = now.elapsed(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_delta` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Frame` is never constructed [INFO] [stdout] --> src/main.rs:67:8 [INFO] [stdout] | [INFO] [stdout] 67 | struct Frame { x_min: f64, x_max: f64, y_min: f64, y_max: f64 } [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `project` is never used [INFO] [stdout] --> src/main.rs:181:4 [INFO] [stdout] | [INFO] [stdout] 181 | fn project(point3d: Vector3f) -> Point2D { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `normalize` is never used [INFO] [stdout] --> src/main.rs:185:4 [INFO] [stdout] | [INFO] [stdout] 185 | fn normalize(point2d: Point2D, frame: Frame) -> Point2D { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rasterize` is never used [INFO] [stdout] --> src/main.rs:192:4 [INFO] [stdout] | [INFO] [stdout] 192 | fn rasterize(point: Point2D, size: usize) -> Pixel { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `simple_line` is never used [INFO] [stdout] --> src/main.rs:270:4 [INFO] [stdout] | [INFO] [stdout] 270 | fn simple_line(start: Pixel, end: Pixel, buffer: &mut [u8], size: usize) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `face_visible` is never used [INFO] [stdout] --> src/main.rs:305:4 [INFO] [stdout] | [INFO] [stdout] 305 | fn face_visible(face: &Vec, vertices: &[Vector3f]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `face_visible2` is never used [INFO] [stdout] --> src/main.rs:316:4 [INFO] [stdout] | [INFO] [stdout] 316 | fn face_visible2(face: &Vec, vertices: &[Vector3f]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `draw_face` is never used [INFO] [stdout] --> src/main.rs:331:4 [INFO] [stdout] | [INFO] [stdout] 331 | fn draw_face(face: &Vec, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `transform` is never used [INFO] [stdout] --> src/main.rs:353:4 [INFO] [stdout] | [INFO] [stdout] 353 | fn transform(vertices: &Vec, vector: Vector3f) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rotated_cube_vertices` is never used [INFO] [stdout] --> src/main.rs:367:4 [INFO] [stdout] | [INFO] [stdout] 367 | fn rotated_cube_vertices(t: f64) -> [Vector3f; 8] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rotated_cube` is never used [INFO] [stdout] --> src/main.rs:421:4 [INFO] [stdout] | [INFO] [stdout] 421 | fn rotated_cube(t: f64) -> (Vec, Vec>) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `triangle` is never used [INFO] [stdout] --> src/main.rs:438:4 [INFO] [stdout] | [INFO] [stdout] 438 | fn triangle<'a>(size: f64) -> Model<'a> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `two_unit_cube` is never used [INFO] [stdout] --> src/main.rs:645:4 [INFO] [stdout] | [INFO] [stdout] 645 | fn two_unit_cube<'a>() -> Model<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `enclosing_frame` is never used [INFO] [stdout] --> src/main.rs:649:4 [INFO] [stdout] | [INFO] [stdout] 649 | fn enclosing_frame(vertices: &Vec) -> Frame { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_z_transform` is never used [INFO] [stdout] --> src/main.rs:700:4 [INFO] [stdout] | [INFO] [stdout] 700 | fn find_z_transform(vertices: &Vec) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `render_model_to_buffer` is never used [INFO] [stdout] --> src/main.rs:718:4 [INFO] [stdout] | [INFO] [stdout] 718 | fn render_model_to_buffer( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `show_buffer_in_window` is never used [INFO] [stdout] --> src/main.rs:766:4 [INFO] [stdout] | [INFO] [stdout] 766 | fn show_buffer_in_window(buffer: &mut [u8], size: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rotating_cube_window` is never used [INFO] [stdout] --> src/main.rs:820:4 [INFO] [stdout] | [INFO] [stdout] 820 | fn rotating_cube_window(buffer: &mut [u8], size: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `three_spheres_window` is never used [INFO] [stdout] --> src/main.rs:930:4 [INFO] [stdout] | [INFO] [stdout] 930 | fn three_spheres_window(buffer: &mut [u8], size: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `render_video` is never used [INFO] [stdout] --> src/main.rs:1076:4 [INFO] [stdout] | [INFO] [stdout] 1076 | fn render_video() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `draw_wireframe_triangle` is never used [INFO] [stdout] --> src/main.rs:1088:4 [INFO] [stdout] | [INFO] [stdout] 1088 | fn draw_wireframe_triangle( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Sphere` is never constructed [INFO] [stdout] --> src/ray_tracing.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct Sphere { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Sphere` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `render_scene_to_buffer` is never used [INFO] [stdout] --> src/ray_tracing.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn render_scene_to_buffer( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compute_lighting` is never used [INFO] [stdout] --> src/ray_tracing.rs:80:4 [INFO] [stdout] | [INFO] [stdout] 80 | fn compute_lighting( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compute_light_from_direction` is never used [INFO] [stdout] --> src/ray_tracing.rs:121:4 [INFO] [stdout] | [INFO] [stdout] 121 | fn compute_light_from_direction( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `closest_intersection` is never used [INFO] [stdout] --> src/ray_tracing.rs:173:4 [INFO] [stdout] | [INFO] [stdout] 173 | fn closest_intersection( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `trace_ray` is never used [INFO] [stdout] --> src/ray_tracing.rs:198:4 [INFO] [stdout] | [INFO] [stdout] 198 | fn trace_ray( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add_colors` is never used [INFO] [stdout] --> src/ray_tracing.rs:270:4 [INFO] [stdout] | [INFO] [stdout] 270 | fn add_colors(color1: Color, color2: Color) -> Color { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `contains` is never used [INFO] [stdout] --> src/ray_tracing.rs:278:4 [INFO] [stdout] | [INFO] [stdout] 278 | fn contains(range: (f64, f64), n: f64) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `intersect_ray_with_sphere` is never used [INFO] [stdout] --> src/ray_tracing.rs:283:4 [INFO] [stdout] | [INFO] [stdout] 283 | fn intersect_ray_with_sphere(origin: Vector3f, direction: Vector3f, sphere: Sphere) -> (f64, f64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rotation_around_y` is never used [INFO] [stdout] --> src/vectors.rs:71:8 [INFO] [stdout] | [INFO] [stdout] 71 | pub fn rotation_around_y(d: f64) -> [[f64; 3]; 3] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `project` is never used [INFO] [stdout] --> src/projective_camera.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl ProjectiveCamera { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] 18 | pub fn project(&self, point: Vector3f) -> Point2D { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/model.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Model<'a> { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 6 | pub name: &'a str, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `plane_type` is never read [INFO] [stdout] --> src/plane.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Plane { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 7 | pub plane_type: PlaneType, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `num_stars`, `spread`, `speed`, `star_x`, `star_y`, and `star_z` are never read [INFO] [stdout] --> src/starfield.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Starfield { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 7 | num_stars: usize, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 8 | spread: f64, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 9 | speed: f64, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 10 | star_x: Vec, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 11 | star_y: Vec, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 12 | star_z: Vec, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `update_and_render` and `new_star` are never used [INFO] [stdout] --> src/starfield.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Starfield { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn update_and_render(&mut self, delta: &Duration, canvas: &mut BufferCanvas) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | fn new_star(&mut self, i: usize) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `face_normal_direction_in_right` is never used [INFO] [stdout] --> src/rendering.rs:160:4 [INFO] [stdout] | [INFO] [stdout] 160 | fn face_normal_direction_in_right(face: &Vec, vertices: &[Vector4f]) -> Vector3f { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `face_normal_direction_in_left` is never used [INFO] [stdout] --> src/rendering.rs:172:4 [INFO] [stdout] | [INFO] [stdout] 172 | fn face_normal_direction_in_left(triangle: &Triangle, vertices: &[Vector4f]) -> Vector3f { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_vertex_outside` is never used [INFO] [stdout] --> src/rendering.rs:317:4 [INFO] [stdout] | [INFO] [stdout] 317 | fn is_vertex_outside(plane: &Plane, vertex: Vector4f) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_vertex_inside` is never used [INFO] [stdout] --> src/rendering.rs:323:4 [INFO] [stdout] | [INFO] [stdout] 323 | fn is_vertex_inside(plane: &Plane, vertex: Vector4f) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/starfield.rs:46:17 [INFO] [stdout] | [INFO] [stdout] 46 | if (screen_x < 0 || screen_x >= canvas.size) || (screen_y < 0 || screen_y >= canvas.size) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/starfield.rs:46:62 [INFO] [stdout] | [INFO] [stdout] 46 | if (screen_x < 0 || screen_x >= canvas.size) || (screen_y < 0 || screen_y >= canvas.size) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 77 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/instance.rs (1 fix) [INFO] [stdout] warning: unused variable: `rng` [INFO] [stdout] --> src/ray_tracing.rs:207:9 [INFO] [stdout] | [INFO] [stdout] 207 | let rng = rand::thread_rng(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rng` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/buffer_canvas.rs:147:17 [INFO] [stdout] | [INFO] [stdout] 147 | for i in 1..dx { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/buffer_canvas.rs:168:17 [INFO] [stdout] | [INFO] [stdout] 168 | for i in 1..dy { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/ply2.rs:86:13 [INFO] [stdout] | [INFO] [stdout] 86 | _ => () [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/ply2.rs:86:13 [INFO] [stdout] | [INFO] [stdout] 48 | Ply2Parts::NumVertices => { [INFO] [stdout] | ---------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 52 | Ply2Parts::NumFaces => { [INFO] [stdout] | ------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 56 | Ply2Parts::Vertices => { [INFO] [stdout] | ------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 67 | Ply2Parts::Faces => { [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 86 | _ => () [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rng` [INFO] [stdout] --> src/ply2.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | let rng = rand::thread_rng(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rng` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/starfield.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | for i in 0..num_stars { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:226:13 [INFO] [stdout] | [INFO] [stdout] 226 | for i in 1..dx { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:251:13 [INFO] [stdout] | [INFO] [stdout] 251 | for i in 1..dy { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rng` [INFO] [stdout] --> src/main.rs:451:9 [INFO] [stdout] | [INFO] [stdout] 451 | let rng = rand::thread_rng(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rng` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rng` [INFO] [stdout] --> src/main.rs:491:9 [INFO] [stdout] | [INFO] [stdout] 491 | let rng = rand::thread_rng(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rng` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `size` [INFO] [stdout] --> src/main.rs:713:9 [INFO] [stdout] | [INFO] [stdout] 713 | let size = (z_max - z_min).abs(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `camera` [INFO] [stdout] --> src/rendering.rs:422:5 [INFO] [stdout] | [INFO] [stdout] 422 | camera: &ProjectiveCamera, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_camera` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `h_segment` [INFO] [stdout] --> src/rendering.rs:594:13 [INFO] [stdout] | [INFO] [stdout] 594 | let h_segment = interpolate_float(x_l, h_left[y_index], x_r, h_right[y_index]); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_h_segment` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `h_segment` [INFO] [stdout] --> src/rendering.rs:751:13 [INFO] [stdout] | [INFO] [stdout] 751 | let h_segment = interpolate_float(x_l, h_left[y_index], x_r, h_right[y_index]); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_h_segment` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `v0` is never read [INFO] [stdout] --> src/rendering.rs:805:9 [INFO] [stdout] | [INFO] [stdout] 805 | v0 = v2; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `v1` is never read [INFO] [stdout] --> src/rendering.rs:818:9 [INFO] [stdout] | [INFO] [stdout] 818 | v1 = v2; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `v2` is never read [INFO] [stdout] --> src/rendering.rs:819:9 [INFO] [stdout] | [INFO] [stdout] 819 | v2 = swap; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `h_segment` [INFO] [stdout] --> src/rendering.rs:932:13 [INFO] [stdout] | [INFO] [stdout] 932 | let h_segment = interpolate_float(x_l, h_left[y_index], x_r, h_right[y_index]); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_h_segment` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `v0` is never read [INFO] [stdout] --> src/rendering.rs:1009:9 [INFO] [stdout] | [INFO] [stdout] 1009 | v0 = v2; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `v1` is never read [INFO] [stdout] --> src/rendering.rs:1026:9 [INFO] [stdout] | [INFO] [stdout] 1026 | v1 = v2; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `v2` is never read [INFO] [stdout] --> src/rendering.rs:1027:9 [INFO] [stdout] | [INFO] [stdout] 1027 | v2 = swap; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `h_segment` [INFO] [stdout] --> src/rendering.rs:1176:13 [INFO] [stdout] | [INFO] [stdout] 1176 | let h_segment = interpolate_float(x_l, h_left[y_index], x_r, h_right[y_index]); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_h_segment` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/rendering.rs:1252:9 [INFO] [stdout] | [INFO] [stdout] 1252 | for i in i0..(i1 + 1) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/rendering.rs:1268:9 [INFO] [stdout] | [INFO] [stdout] 1268 | for i in i0..(i1 + 1) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `red` [INFO] [stdout] --> src/main.rs:1189:9 [INFO] [stdout] | [INFO] [stdout] 1189 | let red = Color { r: 255, g: 0, b: 0 }; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_red` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `green` [INFO] [stdout] --> src/main.rs:1190:9 [INFO] [stdout] | [INFO] [stdout] 1190 | let green = Color { r: 0, g: 255, b: 0 }; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_green` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `blue` [INFO] [stdout] --> src/main.rs:1191:9 [INFO] [stdout] | [INFO] [stdout] 1191 | let blue = Color { r: 0, g: 0, b: 255 }; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_blue` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `white` [INFO] [stdout] --> src/main.rs:1192:9 [INFO] [stdout] | [INFO] [stdout] 1192 | let white = Color { r: 255, g: 255, b: 255 }; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_white` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sphere` [INFO] [stdout] --> src/main.rs:1198:9 [INFO] [stdout] | [INFO] [stdout] 1198 | let sphere = sphere(35); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_sphere` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cube` [INFO] [stdout] --> src/main.rs:1199:9 [INFO] [stdout] | [INFO] [stdout] 1199 | let cube = cube(0.9); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_cube` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `wooden_cube` [INFO] [stdout] --> src/main.rs:1200:9 [INFO] [stdout] | [INFO] [stdout] 1200 | let wooden_cube = textured_cube(0.9, &wooden_crate); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_wooden_cube` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `brick_cube` [INFO] [stdout] --> src/main.rs:1201:9 [INFO] [stdout] | [INFO] [stdout] 1201 | let brick_cube = textured_cube(1.0, &bricks); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_brick_cube` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_instance_index` [INFO] [stdout] --> src/main.rs:1208:9 [INFO] [stdout] | [INFO] [stdout] 1208 | let current_instance_index: Option = None; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_instance_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `starfield` [INFO] [stdout] --> src/main.rs:1305:9 [INFO] [stdout] | [INFO] [stdout] 1305 | let starfield = Starfield::new(1000, 5.0, 110000.0); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_starfield` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delta` [INFO] [stdout] --> src/main.rs:1343:13 [INFO] [stdout] | [INFO] [stdout] 1343 | let delta = now.elapsed(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_delta` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Frame` is never constructed [INFO] [stdout] --> src/main.rs:67:8 [INFO] [stdout] | [INFO] [stdout] 67 | struct Frame { x_min: f64, x_max: f64, y_min: f64, y_max: f64 } [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `project` is never used [INFO] [stdout] --> src/main.rs:181:4 [INFO] [stdout] | [INFO] [stdout] 181 | fn project(point3d: Vector3f) -> Point2D { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `normalize` is never used [INFO] [stdout] --> src/main.rs:185:4 [INFO] [stdout] | [INFO] [stdout] 185 | fn normalize(point2d: Point2D, frame: Frame) -> Point2D { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rasterize` is never used [INFO] [stdout] --> src/main.rs:192:4 [INFO] [stdout] | [INFO] [stdout] 192 | fn rasterize(point: Point2D, size: usize) -> Pixel { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `simple_line` is never used [INFO] [stdout] --> src/main.rs:270:4 [INFO] [stdout] | [INFO] [stdout] 270 | fn simple_line(start: Pixel, end: Pixel, buffer: &mut [u8], size: usize) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `face_visible` is never used [INFO] [stdout] --> src/main.rs:305:4 [INFO] [stdout] | [INFO] [stdout] 305 | fn face_visible(face: &Vec, vertices: &[Vector3f]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `face_visible2` is never used [INFO] [stdout] --> src/main.rs:316:4 [INFO] [stdout] | [INFO] [stdout] 316 | fn face_visible2(face: &Vec, vertices: &[Vector3f]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `draw_face` is never used [INFO] [stdout] --> src/main.rs:331:4 [INFO] [stdout] | [INFO] [stdout] 331 | fn draw_face(face: &Vec, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `transform` is never used [INFO] [stdout] --> src/main.rs:353:4 [INFO] [stdout] | [INFO] [stdout] 353 | fn transform(vertices: &Vec, vector: Vector3f) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rotated_cube_vertices` is never used [INFO] [stdout] --> src/main.rs:367:4 [INFO] [stdout] | [INFO] [stdout] 367 | fn rotated_cube_vertices(t: f64) -> [Vector3f; 8] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rotated_cube` is never used [INFO] [stdout] --> src/main.rs:421:4 [INFO] [stdout] | [INFO] [stdout] 421 | fn rotated_cube(t: f64) -> (Vec, Vec>) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `triangle` is never used [INFO] [stdout] --> src/main.rs:438:4 [INFO] [stdout] | [INFO] [stdout] 438 | fn triangle<'a>(size: f64) -> Model<'a> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `two_unit_cube` is never used [INFO] [stdout] --> src/main.rs:645:4 [INFO] [stdout] | [INFO] [stdout] 645 | fn two_unit_cube<'a>() -> Model<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `enclosing_frame` is never used [INFO] [stdout] --> src/main.rs:649:4 [INFO] [stdout] | [INFO] [stdout] 649 | fn enclosing_frame(vertices: &Vec) -> Frame { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_z_transform` is never used [INFO] [stdout] --> src/main.rs:700:4 [INFO] [stdout] | [INFO] [stdout] 700 | fn find_z_transform(vertices: &Vec) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `render_model_to_buffer` is never used [INFO] [stdout] --> src/main.rs:718:4 [INFO] [stdout] | [INFO] [stdout] 718 | fn render_model_to_buffer( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `show_buffer_in_window` is never used [INFO] [stdout] --> src/main.rs:766:4 [INFO] [stdout] | [INFO] [stdout] 766 | fn show_buffer_in_window(buffer: &mut [u8], size: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rotating_cube_window` is never used [INFO] [stdout] --> src/main.rs:820:4 [INFO] [stdout] | [INFO] [stdout] 820 | fn rotating_cube_window(buffer: &mut [u8], size: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `three_spheres_window` is never used [INFO] [stdout] --> src/main.rs:930:4 [INFO] [stdout] | [INFO] [stdout] 930 | fn three_spheres_window(buffer: &mut [u8], size: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `render_video` is never used [INFO] [stdout] --> src/main.rs:1076:4 [INFO] [stdout] | [INFO] [stdout] 1076 | fn render_video() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `draw_wireframe_triangle` is never used [INFO] [stdout] --> src/main.rs:1088:4 [INFO] [stdout] | [INFO] [stdout] 1088 | fn draw_wireframe_triangle( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Sphere` is never constructed [INFO] [stdout] --> src/ray_tracing.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct Sphere { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Sphere` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `render_scene_to_buffer` is never used [INFO] [stdout] --> src/ray_tracing.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn render_scene_to_buffer( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `canvas_to_viewport` is never used [INFO] [stdout] --> src/ray_tracing.rs:68:4 [INFO] [stdout] | [INFO] [stdout] 68 | fn canvas_to_viewport(x: i32, y: i32, canvas_width: i32, canvas_height: i32) -> Vector3f { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compute_lighting` is never used [INFO] [stdout] --> src/ray_tracing.rs:80:4 [INFO] [stdout] | [INFO] [stdout] 80 | fn compute_lighting( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compute_light_from_direction` is never used [INFO] [stdout] --> src/ray_tracing.rs:121:4 [INFO] [stdout] | [INFO] [stdout] 121 | fn compute_light_from_direction( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `closest_intersection` is never used [INFO] [stdout] --> src/ray_tracing.rs:173:4 [INFO] [stdout] | [INFO] [stdout] 173 | fn closest_intersection( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `trace_ray` is never used [INFO] [stdout] --> src/ray_tracing.rs:198:4 [INFO] [stdout] | [INFO] [stdout] 198 | fn trace_ray( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add_colors` is never used [INFO] [stdout] --> src/ray_tracing.rs:270:4 [INFO] [stdout] | [INFO] [stdout] 270 | fn add_colors(color1: Color, color2: Color) -> Color { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `contains` is never used [INFO] [stdout] --> src/ray_tracing.rs:278:4 [INFO] [stdout] | [INFO] [stdout] 278 | fn contains(range: (f64, f64), n: f64) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `intersect_ray_with_sphere` is never used [INFO] [stdout] --> src/ray_tracing.rs:283:4 [INFO] [stdout] | [INFO] [stdout] 283 | fn intersect_ray_with_sphere(origin: Vector3f, direction: Vector3f, sphere: Sphere) -> (f64, f64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `multiply_vec_and_mat` is never used [INFO] [stdout] --> src/vectors.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn multiply_vec_and_mat(vec: [f64; 3], mat: [[f64; 3]; 3]) -> [f64; 3] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rotation_around_y` is never used [INFO] [stdout] --> src/vectors.rs:71:8 [INFO] [stdout] | [INFO] [stdout] 71 | pub fn rotation_around_y(d: f64) -> [[f64; 3]; 3] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `project` is never used [INFO] [stdout] --> src/projective_camera.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl ProjectiveCamera { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] 18 | pub fn project(&self, point: Vector3f) -> Point2D { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/model.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Model<'a> { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 6 | pub name: &'a str, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `plane_type` is never read [INFO] [stdout] --> src/plane.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Plane { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 7 | pub plane_type: PlaneType, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `num_stars`, `spread`, `speed`, `star_x`, `star_y`, and `star_z` are never read [INFO] [stdout] --> src/starfield.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Starfield { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 7 | num_stars: usize, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 8 | spread: f64, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 9 | speed: f64, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 10 | star_x: Vec, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 11 | star_y: Vec, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 12 | star_z: Vec, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `update_and_render` and `new_star` are never used [INFO] [stdout] --> src/starfield.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Starfield { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn update_and_render(&mut self, delta: &Duration, canvas: &mut BufferCanvas) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | fn new_star(&mut self, i: usize) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `face_normal_direction_in_right` is never used [INFO] [stdout] --> src/rendering.rs:160:4 [INFO] [stdout] | [INFO] [stdout] 160 | fn face_normal_direction_in_right(face: &Vec, vertices: &[Vector4f]) -> Vector3f { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `face_normal_direction_in_left` is never used [INFO] [stdout] --> src/rendering.rs:172:4 [INFO] [stdout] | [INFO] [stdout] 172 | fn face_normal_direction_in_left(triangle: &Triangle, vertices: &[Vector4f]) -> Vector3f { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_vertex_outside` is never used [INFO] [stdout] --> src/rendering.rs:317:4 [INFO] [stdout] | [INFO] [stdout] 317 | fn is_vertex_outside(plane: &Plane, vertex: Vector4f) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_vertex_inside` is never used [INFO] [stdout] --> src/rendering.rs:323:4 [INFO] [stdout] | [INFO] [stdout] 323 | fn is_vertex_inside(plane: &Plane, vertex: Vector4f) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/starfield.rs:46:17 [INFO] [stdout] | [INFO] [stdout] 46 | if (screen_x < 0 || screen_x >= canvas.size) || (screen_y < 0 || screen_y >= canvas.size) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/starfield.rs:46:62 [INFO] [stdout] | [INFO] [stdout] 46 | if (screen_x < 0 || screen_x >= canvas.size) || (screen_y < 0 || screen_y >= canvas.size) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 79 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.30s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: bitflags v0.7.0 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking durer v0.1.0 (/tmp/fixit) [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Triangle` [INFO] [stdout] --> src/instance.rs:72:26 [INFO] [stdout] | [INFO] [stdout] 72 | let triangles = vec![Triangle::new_with_calculated_normals(&vertices, [0, 1, 2])]; [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Triangle` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use crate::Triangle; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Color` in this scope [INFO] [stdout] --> src/instance.rs:77:22 [INFO] [stdout] | [INFO] [stdout] 77 | colors: vec![Color { r: 0, g: 0, b: 0 }], [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 1 + use crate::Color; [INFO] [stdout] | [INFO] [stdout] 1 + use sdl2::pixels::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Triangle` [INFO] [stdout] --> src/instance.rs:101:26 [INFO] [stdout] | [INFO] [stdout] 101 | let triangles = vec![Triangle::new_with_calculated_normals(&vertices, [0, 1, 2])]; [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Triangle` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use crate::Triangle; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Color` in this scope [INFO] [stdout] --> src/instance.rs:106:22 [INFO] [stdout] | [INFO] [stdout] 106 | colors: vec![Color { r: 0, g: 0, b: 0 }], [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 1 + use crate::Color; [INFO] [stdout] | [INFO] [stdout] 1 + use sdl2::pixels::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Triangle` [INFO] [stdout] --> src/instance.rs:130:26 [INFO] [stdout] | [INFO] [stdout] 130 | let triangles = vec![Triangle::new_with_calculated_normals(&vertices, [0, 1, 2])]; [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Triangle` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use crate::Triangle; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Color` in this scope [INFO] [stdout] --> src/instance.rs:135:22 [INFO] [stdout] | [INFO] [stdout] 135 | colors: vec![Color { r: 0, g: 0, b: 0 }], [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 1 + use crate::Color; [INFO] [stdout] | [INFO] [stdout] 1 + use sdl2::pixels::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Triangle` [INFO] [stdout] --> src/instance.rs:159:26 [INFO] [stdout] | [INFO] [stdout] 159 | let triangles = vec![Triangle::new_with_calculated_normals(&vertices, [0, 1, 2])]; [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Triangle` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use crate::Triangle; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Color` in this scope [INFO] [stdout] --> src/instance.rs:164:22 [INFO] [stdout] | [INFO] [stdout] 164 | colors: vec![Color { r: 0, g: 0, b: 0 }], [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 1 + use crate::Color; [INFO] [stdout] | [INFO] [stdout] 1 + use sdl2::pixels::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rng` [INFO] [stdout] --> src/ray_tracing.rs:207:9 [INFO] [stdout] | [INFO] [stdout] 207 | let rng = rand::thread_rng(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rng` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/buffer_canvas.rs:147:17 [INFO] [stdout] | [INFO] [stdout] 147 | for i in 1..dx { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/buffer_canvas.rs:168:17 [INFO] [stdout] | [INFO] [stdout] 168 | for i in 1..dy { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/ply2.rs:86:13 [INFO] [stdout] | [INFO] [stdout] 86 | _ => () [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/ply2.rs:86:13 [INFO] [stdout] | [INFO] [stdout] 48 | Ply2Parts::NumVertices => { [INFO] [stdout] | ---------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 52 | Ply2Parts::NumFaces => { [INFO] [stdout] | ------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 56 | Ply2Parts::Vertices => { [INFO] [stdout] | ------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 67 | Ply2Parts::Faces => { [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 86 | _ => () [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rng` [INFO] [stdout] --> src/ply2.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | let rng = rand::thread_rng(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rng` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/starfield.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | for i in 0..num_stars { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:226:13 [INFO] [stdout] | [INFO] [stdout] 226 | for i in 1..dx { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:251:13 [INFO] [stdout] | [INFO] [stdout] 251 | for i in 1..dy { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rng` [INFO] [stdout] --> src/main.rs:451:9 [INFO] [stdout] | [INFO] [stdout] 451 | let rng = rand::thread_rng(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rng` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rng` [INFO] [stdout] --> src/main.rs:491:9 [INFO] [stdout] | [INFO] [stdout] 491 | let rng = rand::thread_rng(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rng` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `size` [INFO] [stdout] --> src/main.rs:713:9 [INFO] [stdout] | [INFO] [stdout] 713 | let size = (z_max - z_min).abs(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rng` [INFO] [stdout] --> src/ray_tracing.rs:207:9 [INFO] [stdout] | [INFO] [stdout] 207 | let rng = rand::thread_rng(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rng` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/buffer_canvas.rs:147:17 [INFO] [stdout] | [INFO] [stdout] 147 | for i in 1..dx { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/buffer_canvas.rs:168:17 [INFO] [stdout] | [INFO] [stdout] 168 | for i in 1..dy { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/ply2.rs:86:13 [INFO] [stdout] | [INFO] [stdout] 86 | _ => () [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/ply2.rs:86:13 [INFO] [stdout] | [INFO] [stdout] 48 | Ply2Parts::NumVertices => { [INFO] [stdout] | ---------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 52 | Ply2Parts::NumFaces => { [INFO] [stdout] | ------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 56 | Ply2Parts::Vertices => { [INFO] [stdout] | ------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 67 | Ply2Parts::Faces => { [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 86 | _ => () [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rng` [INFO] [stdout] --> src/ply2.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | let rng = rand::thread_rng(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rng` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `camera` [INFO] [stdout] --> src/rendering.rs:422:5 [INFO] [stdout] | [INFO] [stdout] 422 | camera: &ProjectiveCamera, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_camera` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `h_segment` [INFO] [stdout] --> src/rendering.rs:594:13 [INFO] [stdout] | [INFO] [stdout] 594 | let h_segment = interpolate_float(x_l, h_left[y_index], x_r, h_right[y_index]); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_h_segment` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `h_segment` [INFO] [stdout] --> src/rendering.rs:751:13 [INFO] [stdout] | [INFO] [stdout] 751 | let h_segment = interpolate_float(x_l, h_left[y_index], x_r, h_right[y_index]); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_h_segment` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `v0` is never read [INFO] [stdout] --> src/rendering.rs:805:9 [INFO] [stdout] | [INFO] [stdout] 805 | v0 = v2; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `v1` is never read [INFO] [stdout] --> src/rendering.rs:818:9 [INFO] [stdout] | [INFO] [stdout] 818 | v1 = v2; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `v2` is never read [INFO] [stdout] --> src/rendering.rs:819:9 [INFO] [stdout] | [INFO] [stdout] 819 | v2 = swap; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `h_segment` [INFO] [stdout] --> src/rendering.rs:932:13 [INFO] [stdout] | [INFO] [stdout] 932 | let h_segment = interpolate_float(x_l, h_left[y_index], x_r, h_right[y_index]); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_h_segment` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/starfield.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | for i in 0..num_stars { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `v0` is never read [INFO] [stdout] --> src/rendering.rs:1009:9 [INFO] [stdout] | [INFO] [stdout] 1009 | v0 = v2; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `v1` is never read [INFO] [stdout] --> src/rendering.rs:1026:9 [INFO] [stdout] | [INFO] [stdout] 1026 | v1 = v2; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `v2` is never read [INFO] [stdout] --> src/rendering.rs:1027:9 [INFO] [stdout] | [INFO] [stdout] 1027 | v2 = swap; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `h_segment` [INFO] [stdout] --> src/rendering.rs:1176:13 [INFO] [stdout] | [INFO] [stdout] 1176 | let h_segment = interpolate_float(x_l, h_left[y_index], x_r, h_right[y_index]); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_h_segment` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:226:13 [INFO] [stdout] | [INFO] [stdout] 226 | for i in 1..dx { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:251:13 [INFO] [stdout] | [INFO] [stdout] 251 | for i in 1..dy { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/rendering.rs:1252:9 [INFO] [stdout] | [INFO] [stdout] 1252 | for i in i0..(i1 + 1) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/rendering.rs:1268:9 [INFO] [stdout] | [INFO] [stdout] 1268 | for i in i0..(i1 + 1) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `red` [INFO] [stdout] --> src/main.rs:1189:9 [INFO] [stdout] | [INFO] [stdout] 1189 | let red = Color { r: 255, g: 0, b: 0 }; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_red` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `green` [INFO] [stdout] --> src/main.rs:1190:9 [INFO] [stdout] | [INFO] [stdout] 1190 | let green = Color { r: 0, g: 255, b: 0 }; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_green` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `blue` [INFO] [stdout] --> src/main.rs:1191:9 [INFO] [stdout] | [INFO] [stdout] 1191 | let blue = Color { r: 0, g: 0, b: 255 }; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_blue` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `white` [INFO] [stdout] --> src/main.rs:1192:9 [INFO] [stdout] | [INFO] [stdout] 1192 | let white = Color { r: 255, g: 255, b: 255 }; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_white` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sphere` [INFO] [stdout] --> src/main.rs:1198:9 [INFO] [stdout] | [INFO] [stdout] 1198 | let sphere = sphere(35); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_sphere` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cube` [INFO] [stdout] --> src/main.rs:1199:9 [INFO] [stdout] | [INFO] [stdout] 1199 | let cube = cube(0.9); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_cube` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `wooden_cube` [INFO] [stdout] --> src/main.rs:1200:9 [INFO] [stdout] | [INFO] [stdout] 1200 | let wooden_cube = textured_cube(0.9, &wooden_crate); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_wooden_cube` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `brick_cube` [INFO] [stdout] --> src/main.rs:1201:9 [INFO] [stdout] | [INFO] [stdout] 1201 | let brick_cube = textured_cube(1.0, &bricks); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_brick_cube` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_instance_index` [INFO] [stdout] --> src/main.rs:1208:9 [INFO] [stdout] | [INFO] [stdout] 1208 | let current_instance_index: Option = None; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_instance_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `starfield` [INFO] [stdout] --> src/main.rs:1305:9 [INFO] [stdout] | [INFO] [stdout] 1305 | let starfield = Starfield::new(1000, 5.0, 110000.0); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_starfield` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delta` [INFO] [stdout] --> src/main.rs:1343:13 [INFO] [stdout] | [INFO] [stdout] 1343 | let delta = now.elapsed(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_delta` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rng` [INFO] [stdout] --> src/main.rs:451:9 [INFO] [stdout] | [INFO] [stdout] 451 | let rng = rand::thread_rng(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rng` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rng` [INFO] [stdout] --> src/main.rs:491:9 [INFO] [stdout] | [INFO] [stdout] 491 | let rng = rand::thread_rng(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rng` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `size` [INFO] [stdout] --> src/main.rs:713:9 [INFO] [stdout] | [INFO] [stdout] 713 | let size = (z_max - z_min).abs(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Frame` is never constructed [INFO] [stdout] --> src/main.rs:67:8 [INFO] [stdout] | [INFO] [stdout] 67 | struct Frame { x_min: f64, x_max: f64, y_min: f64, y_max: f64 } [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `project` is never used [INFO] [stdout] --> src/main.rs:181:4 [INFO] [stdout] | [INFO] [stdout] 181 | fn project(point3d: Vector3f) -> Point2D { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `normalize` is never used [INFO] [stdout] --> src/main.rs:185:4 [INFO] [stdout] | [INFO] [stdout] 185 | fn normalize(point2d: Point2D, frame: Frame) -> Point2D { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rasterize` is never used [INFO] [stdout] --> src/main.rs:192:4 [INFO] [stdout] | [INFO] [stdout] 192 | fn rasterize(point: Point2D, size: usize) -> Pixel { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `simple_line` is never used [INFO] [stdout] --> src/main.rs:270:4 [INFO] [stdout] | [INFO] [stdout] 270 | fn simple_line(start: Pixel, end: Pixel, buffer: &mut [u8], size: usize) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `face_visible` is never used [INFO] [stdout] --> src/main.rs:305:4 [INFO] [stdout] | [INFO] [stdout] 305 | fn face_visible(face: &Vec, vertices: &[Vector3f]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `face_visible2` is never used [INFO] [stdout] --> src/main.rs:316:4 [INFO] [stdout] | [INFO] [stdout] 316 | fn face_visible2(face: &Vec, vertices: &[Vector3f]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `draw_face` is never used [INFO] [stdout] --> src/main.rs:331:4 [INFO] [stdout] | [INFO] [stdout] 331 | fn draw_face(face: &Vec, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `transform` is never used [INFO] [stdout] --> src/main.rs:353:4 [INFO] [stdout] | [INFO] [stdout] 353 | fn transform(vertices: &Vec, vector: Vector3f) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rotated_cube_vertices` is never used [INFO] [stdout] --> src/main.rs:367:4 [INFO] [stdout] | [INFO] [stdout] 367 | fn rotated_cube_vertices(t: f64) -> [Vector3f; 8] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rotated_cube` is never used [INFO] [stdout] --> src/main.rs:421:4 [INFO] [stdout] | [INFO] [stdout] 421 | fn rotated_cube(t: f64) -> (Vec, Vec>) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `triangle` is never used [INFO] [stdout] --> src/main.rs:438:4 [INFO] [stdout] | [INFO] [stdout] 438 | fn triangle<'a>(size: f64) -> Model<'a> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `two_unit_cube` is never used [INFO] [stdout] --> src/main.rs:645:4 [INFO] [stdout] | [INFO] [stdout] 645 | fn two_unit_cube<'a>() -> Model<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `enclosing_frame` is never used [INFO] [stdout] --> src/main.rs:649:4 [INFO] [stdout] | [INFO] [stdout] 649 | fn enclosing_frame(vertices: &Vec) -> Frame { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_z_transform` is never used [INFO] [stdout] --> src/main.rs:700:4 [INFO] [stdout] | [INFO] [stdout] 700 | fn find_z_transform(vertices: &Vec) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `render_model_to_buffer` is never used [INFO] [stdout] --> src/main.rs:718:4 [INFO] [stdout] | [INFO] [stdout] 718 | fn render_model_to_buffer( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `show_buffer_in_window` is never used [INFO] [stdout] --> src/main.rs:766:4 [INFO] [stdout] | [INFO] [stdout] 766 | fn show_buffer_in_window(buffer: &mut [u8], size: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rotating_cube_window` is never used [INFO] [stdout] --> src/main.rs:820:4 [INFO] [stdout] | [INFO] [stdout] 820 | fn rotating_cube_window(buffer: &mut [u8], size: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `three_spheres_window` is never used [INFO] [stdout] --> src/main.rs:930:4 [INFO] [stdout] | [INFO] [stdout] 930 | fn three_spheres_window(buffer: &mut [u8], size: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `render_video` is never used [INFO] [stdout] --> src/main.rs:1076:4 [INFO] [stdout] | [INFO] [stdout] 1076 | fn render_video() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `draw_wireframe_triangle` is never used [INFO] [stdout] --> src/main.rs:1088:4 [INFO] [stdout] | [INFO] [stdout] 1088 | fn draw_wireframe_triangle( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Sphere` is never constructed [INFO] [stdout] --> src/ray_tracing.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct Sphere { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Sphere` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `render_scene_to_buffer` is never used [INFO] [stdout] --> src/ray_tracing.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn render_scene_to_buffer( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `canvas_to_viewport` is never used [INFO] [stdout] --> src/ray_tracing.rs:68:4 [INFO] [stdout] | [INFO] [stdout] 68 | fn canvas_to_viewport(x: i32, y: i32, canvas_width: i32, canvas_height: i32) -> Vector3f { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compute_lighting` is never used [INFO] [stdout] --> src/ray_tracing.rs:80:4 [INFO] [stdout] | [INFO] [stdout] 80 | fn compute_lighting( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compute_light_from_direction` is never used [INFO] [stdout] --> src/ray_tracing.rs:121:4 [INFO] [stdout] | [INFO] [stdout] 121 | fn compute_light_from_direction( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `closest_intersection` is never used [INFO] [stdout] --> src/ray_tracing.rs:173:4 [INFO] [stdout] | [INFO] [stdout] 173 | fn closest_intersection( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `trace_ray` is never used [INFO] [stdout] --> src/ray_tracing.rs:198:4 [INFO] [stdout] | [INFO] [stdout] 198 | fn trace_ray( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add_colors` is never used [INFO] [stdout] --> src/ray_tracing.rs:270:4 [INFO] [stdout] | [INFO] [stdout] 270 | fn add_colors(color1: Color, color2: Color) -> Color { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `contains` is never used [INFO] [stdout] --> src/ray_tracing.rs:278:4 [INFO] [stdout] | [INFO] [stdout] 278 | fn contains(range: (f64, f64), n: f64) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `intersect_ray_with_sphere` is never used [INFO] [stdout] --> src/ray_tracing.rs:283:4 [INFO] [stdout] | [INFO] [stdout] 283 | fn intersect_ray_with_sphere(origin: Vector3f, direction: Vector3f, sphere: Sphere) -> (f64, f64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `multiply_vec_and_mat` is never used [INFO] [stdout] --> src/vectors.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn multiply_vec_and_mat(vec: [f64; 3], mat: [[f64; 3]; 3]) -> [f64; 3] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rotation_around_y` is never used [INFO] [stdout] --> src/vectors.rs:71:8 [INFO] [stdout] | [INFO] [stdout] 71 | pub fn rotation_around_y(d: f64) -> [[f64; 3]; 3] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `project` is never used [INFO] [stdout] --> src/projective_camera.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl ProjectiveCamera { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] 18 | pub fn project(&self, point: Vector3f) -> Point2D { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/model.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Model<'a> { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 6 | pub name: &'a str, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `plane_type` is never read [INFO] [stdout] --> src/plane.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Plane { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 7 | pub plane_type: PlaneType, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `num_stars`, `spread`, `speed`, `star_x`, `star_y`, and `star_z` are never read [INFO] [stdout] --> src/starfield.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Starfield { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 7 | num_stars: usize, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 8 | spread: f64, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 9 | speed: f64, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 10 | star_x: Vec, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 11 | star_y: Vec, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 12 | star_z: Vec, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `update_and_render` and `new_star` are never used [INFO] [stdout] --> src/starfield.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Starfield { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn update_and_render(&mut self, delta: &Duration, canvas: &mut BufferCanvas) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | fn new_star(&mut self, i: usize) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `face_normal_direction_in_right` is never used [INFO] [stdout] --> src/rendering.rs:160:4 [INFO] [stdout] | [INFO] [stdout] 160 | fn face_normal_direction_in_right(face: &Vec, vertices: &[Vector4f]) -> Vector3f { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `face_normal_direction_in_left` is never used [INFO] [stdout] --> src/rendering.rs:172:4 [INFO] [stdout] | [INFO] [stdout] 172 | fn face_normal_direction_in_left(triangle: &Triangle, vertices: &[Vector4f]) -> Vector3f { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_vertex_outside` is never used [INFO] [stdout] --> src/rendering.rs:317:4 [INFO] [stdout] | [INFO] [stdout] 317 | fn is_vertex_outside(plane: &Plane, vertex: Vector4f) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_vertex_inside` is never used [INFO] [stdout] --> src/rendering.rs:323:4 [INFO] [stdout] | [INFO] [stdout] 323 | fn is_vertex_inside(plane: &Plane, vertex: Vector4f) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/starfield.rs:46:17 [INFO] [stdout] | [INFO] [stdout] 46 | if (screen_x < 0 || screen_x >= canvas.size) || (screen_y < 0 || screen_y >= canvas.size) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/starfield.rs:46:62 [INFO] [stdout] | [INFO] [stdout] 46 | if (screen_x < 0 || screen_x >= canvas.size) || (screen_y < 0 || screen_y >= canvas.size) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 79 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `camera` [INFO] [stdout] --> src/rendering.rs:422:5 [INFO] [stdout] | [INFO] [stdout] 422 | camera: &ProjectiveCamera, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_camera` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `h_segment` [INFO] [stdout] --> src/rendering.rs:594:13 [INFO] [stdout] | [INFO] [stdout] 594 | let h_segment = interpolate_float(x_l, h_left[y_index], x_r, h_right[y_index]); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_h_segment` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `h_segment` [INFO] [stdout] --> src/rendering.rs:751:13 [INFO] [stdout] | [INFO] [stdout] 751 | let h_segment = interpolate_float(x_l, h_left[y_index], x_r, h_right[y_index]); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_h_segment` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `v0` is never read [INFO] [stdout] --> src/rendering.rs:805:9 [INFO] [stdout] | [INFO] [stdout] 805 | v0 = v2; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `v1` is never read [INFO] [stdout] --> src/rendering.rs:818:9 [INFO] [stdout] | [INFO] [stdout] 818 | v1 = v2; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `v2` is never read [INFO] [stdout] --> src/rendering.rs:819:9 [INFO] [stdout] | [INFO] [stdout] 819 | v2 = swap; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `h_segment` [INFO] [stdout] --> src/rendering.rs:932:13 [INFO] [stdout] | [INFO] [stdout] 932 | let h_segment = interpolate_float(x_l, h_left[y_index], x_r, h_right[y_index]); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_h_segment` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `v0` is never read [INFO] [stdout] --> src/rendering.rs:1009:9 [INFO] [stdout] | [INFO] [stdout] 1009 | v0 = v2; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `v1` is never read [INFO] [stdout] --> src/rendering.rs:1026:9 [INFO] [stdout] | [INFO] [stdout] 1026 | v1 = v2; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `v2` is never read [INFO] [stdout] --> src/rendering.rs:1027:9 [INFO] [stdout] | [INFO] [stdout] 1027 | v2 = swap; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `h_segment` [INFO] [stdout] --> src/rendering.rs:1176:13 [INFO] [stdout] | [INFO] [stdout] 1176 | let h_segment = interpolate_float(x_l, h_left[y_index], x_r, h_right[y_index]); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_h_segment` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/rendering.rs:1252:9 [INFO] [stdout] | [INFO] [stdout] 1252 | for i in i0..(i1 + 1) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/rendering.rs:1268:9 [INFO] [stdout] | [INFO] [stdout] 1268 | for i in i0..(i1 + 1) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `red` [INFO] [stdout] --> src/main.rs:1189:9 [INFO] [stdout] | [INFO] [stdout] 1189 | let red = Color { r: 255, g: 0, b: 0 }; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_red` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `green` [INFO] [stdout] --> src/main.rs:1190:9 [INFO] [stdout] | [INFO] [stdout] 1190 | let green = Color { r: 0, g: 255, b: 0 }; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_green` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `blue` [INFO] [stdout] --> src/main.rs:1191:9 [INFO] [stdout] | [INFO] [stdout] 1191 | let blue = Color { r: 0, g: 0, b: 255 }; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_blue` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `white` [INFO] [stdout] --> src/main.rs:1192:9 [INFO] [stdout] | [INFO] [stdout] 1192 | let white = Color { r: 255, g: 255, b: 255 }; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_white` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sphere` [INFO] [stdout] --> src/main.rs:1198:9 [INFO] [stdout] | [INFO] [stdout] 1198 | let sphere = sphere(35); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_sphere` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cube` [INFO] [stdout] --> src/main.rs:1199:9 [INFO] [stdout] | [INFO] [stdout] 1199 | let cube = cube(0.9); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_cube` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `wooden_cube` [INFO] [stdout] --> src/main.rs:1200:9 [INFO] [stdout] | [INFO] [stdout] 1200 | let wooden_cube = textured_cube(0.9, &wooden_crate); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_wooden_cube` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `brick_cube` [INFO] [stdout] --> src/main.rs:1201:9 [INFO] [stdout] | [INFO] [stdout] 1201 | let brick_cube = textured_cube(1.0, &bricks); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_brick_cube` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_instance_index` [INFO] [stdout] --> src/main.rs:1208:9 [INFO] [stdout] | [INFO] [stdout] 1208 | let current_instance_index: Option = None; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_instance_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `starfield` [INFO] [stdout] --> src/main.rs:1305:9 [INFO] [stdout] | [INFO] [stdout] 1305 | let starfield = Starfield::new(1000, 5.0, 110000.0); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_starfield` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delta` [INFO] [stdout] --> src/main.rs:1343:13 [INFO] [stdout] | [INFO] [stdout] 1343 | let delta = now.elapsed(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_delta` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors; 35 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0422, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0422`. [INFO] [stdout] [INFO] [stderr] error: could not compile `durer` (bin "durer" test) due to 9 previous errors; 35 warnings emitted [INFO] [stderr] error: failed to check after updating to 2024 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "f9833dd2af102eb2e76d2b6c14d3c2ba516bfd7fa7c4b4a82fe83a40a9fe9f6e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f9833dd2af102eb2e76d2b6c14d3c2ba516bfd7fa7c4b4a82fe83a40a9fe9f6e", kill_on_drop: false }` [INFO] [stdout] f9833dd2af102eb2e76d2b6c14d3c2ba516bfd7fa7c4b4a82fe83a40a9fe9f6e