[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] c4b1df4c4fcc5e215db6fd6f170d2e529ec5caa7 [INFO] checking alsor/durer_renderer against try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Falsor%2Fdurer_renderer" "/workspace/builds/worker-4/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/alsor/durer_renderer on toolchain a7a572ce3edd6d476191fbfe92c9c1986e009b34 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "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/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: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating git repository `https://github.com/sebcrozet/mpeg_encoder` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded quasi v0.32.0 [INFO] [stderr] Downloaded syntex_pos v0.58.1 [INFO] [stderr] Downloaded syntex_errors v0.58.1 [INFO] [stderr] Downloaded quasi_codegen v0.32.0 [INFO] [stderr] Downloaded syntex_syntax v0.58.1 [INFO] [stderr] Downloaded bindgen v0.30.0 [INFO] [stderr] Downloaded syntex v0.58.1 [INFO] [stderr] Downloaded clang-sys v0.19.0 [INFO] [stderr] Downloaded aster v0.41.0 [INFO] [stderr] Downloaded ffmpeg-sys v3.3.3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 94ad13cc3c80cfb9ce56e810716be59df7848cf218654764eac4fdfb4e0d7be2 [INFO] running `Command { std: "docker" "start" "-a" "94ad13cc3c80cfb9ce56e810716be59df7848cf218654764eac4fdfb4e0d7be2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "94ad13cc3c80cfb9ce56e810716be59df7848cf218654764eac4fdfb4e0d7be2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "94ad13cc3c80cfb9ce56e810716be59df7848cf218654764eac4fdfb4e0d7be2", kill_on_drop: false }` [INFO] [stdout] 94ad13cc3c80cfb9ce56e810716be59df7848cf218654764eac4fdfb4e0d7be2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 52eeda500ca1fb5599d8836dedbb5b74dc1810741b103dd4e9cc55b0c7ac673b [INFO] running `Command { std: "docker" "start" "-a" "52eeda500ca1fb5599d8836dedbb5b74dc1810741b103dd4e9cc55b0c7ac673b", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Checking libc v0.2.36 [INFO] [stderr] Checking either v1.4.0 [INFO] [stderr] Checking cfg-if v0.1.2 [INFO] [stderr] Checking scopeguard v0.3.3 [INFO] [stderr] Compiling syn v0.15.42 [INFO] [stderr] Checking lazy_static v0.2.11 [INFO] [stderr] Checking byteorder v1.2.1 [INFO] [stderr] Compiling rayon-core v1.3.0 [INFO] [stderr] Checking void v1.0.2 [INFO] [stderr] Checking adler32 v1.0.2 [INFO] [stderr] Checking lazy_static v1.0.0 [INFO] [stderr] Checking ucd-util v0.1.1 [INFO] [stderr] Compiling regex v1.0.2 [INFO] [stderr] Checking utf8-ranges v1.0.0 [INFO] [stderr] Checking bitflags v1.0.1 [INFO] [stderr] Checking color_quant v1.0.0 [INFO] [stderr] Checking scoped_threadpool v0.1.8 [INFO] [stderr] Checking termcolor v0.3.6 [INFO] [stderr] Checking bitflags v0.7.0 [INFO] [stderr] Compiling num-integer v0.1.41 [INFO] [stderr] Checking humantime v1.1.1 [INFO] [stderr] Checking crc32fast v1.2.0 [INFO] [stderr] Checking log v0.4.1 [INFO] [stderr] Compiling sdl2-sys v0.31.0 [INFO] [stderr] Checking unreachable v1.0.0 [INFO] [stderr] Checking inflate v0.4.5 [INFO] [stderr] Checking regex-syntax v0.6.2 [INFO] [stderr] Checking thread_local v0.3.5 [INFO] [stderr] Checking gif v0.10.2 [INFO] [stderr] Checking coco v0.1.1 [INFO] [stderr] Checking deflate v0.7.17 [INFO] [stderr] Checking rand v0.4.2 [INFO] [stderr] Checking num_cpus v1.8.0 [INFO] [stderr] Checking memchr v2.0.1 [INFO] [stderr] Checking atty v0.2.8 [INFO] [stderr] Checking aho-corasick v0.6.4 [INFO] [stderr] Checking num-iter v0.1.35 [INFO] [stderr] Checking num-rational v0.2.2 [INFO] [stderr] Checking png v0.15.0 [INFO] [stderr] Checking num v0.1.42 [INFO] [stderr] Checking rand v0.3.22 [INFO] [stderr] Checking rayon v0.8.2 [INFO] [stderr] Checking sdl2 v0.31.0 [INFO] [stderr] Checking jpeg-decoder v0.1.13 [INFO] [stderr] Checking env_logger v0.5.10 [INFO] [stderr] Compiling num-derive v0.2.5 [INFO] [stderr] Checking tiff v0.3.1 [INFO] [stderr] Checking image v0.22.0 [INFO] [stderr] Checking durer v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2018 edition to 2021 [INFO] [stderr] Fixed src/projective_camera.rs (1 fix) [INFO] [stderr] Fixed src/ply2.rs (4 fixes) [INFO] [stderr] Fixed src/buffer_canvas.rs (6 fixes) [INFO] [stderr] Fixed src/ray_tracing.rs (3 fixes) [INFO] [stderr] Fixed src/rendering.rs (46 fixes) [INFO] [stderr] Fixed src/main.rs (27 fixes) [INFO] [stderr] Fixed src/starfield.rs (1 fix) [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Triangle` [INFO] [stdout] --> src/instance.rs:73:26 [INFO] [stdout] | [INFO] [stdout] 73 | let triangles = vec![Triangle::new_with_calculated_normals(&vertices, [0, 1, 2])]; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | 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:78:22 [INFO] [stdout] | [INFO] [stdout] 78 | 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 items [INFO] [stdout] | [INFO] [stdout] 2 | use crate::Color; [INFO] [stdout] | [INFO] [stdout] 2 | 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:102:26 [INFO] [stdout] | [INFO] [stdout] 102 | let triangles = vec![Triangle::new_with_calculated_normals(&vertices, [0, 1, 2])]; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | 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:107:22 [INFO] [stdout] | [INFO] [stdout] 107 | 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 items [INFO] [stdout] | [INFO] [stdout] 2 | use crate::Color; [INFO] [stdout] | [INFO] [stdout] 2 | 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:131:26 [INFO] [stdout] | [INFO] [stdout] 131 | let triangles = vec![Triangle::new_with_calculated_normals(&vertices, [0, 1, 2])]; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | 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:136:22 [INFO] [stdout] | [INFO] [stdout] 136 | 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 items [INFO] [stdout] | [INFO] [stdout] 2 | use crate::Color; [INFO] [stdout] | [INFO] [stdout] 2 | 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:160:26 [INFO] [stdout] | [INFO] [stdout] 160 | let triangles = vec![Triangle::new_with_calculated_normals(&vertices, [0, 1, 2])]; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | 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:165:22 [INFO] [stdout] | [INFO] [stdout] 165 | 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 items [INFO] [stdout] | [INFO] [stdout] 2 | use crate::Color; [INFO] [stdout] | [INFO] [stdout] 2 | use sdl2::pixels::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors [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` due to 9 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] Fixed src/instance.rs (1 fix) [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/ply2.rs:88:13 [INFO] [stdout] | [INFO] [stdout] 88 | _ => () [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `v0` is never read [INFO] [stdout] --> src/rendering.rs:800:9 [INFO] [stdout] | [INFO] [stdout] 800 | v0 = v2; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [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:813:9 [INFO] [stdout] | [INFO] [stdout] 813 | 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:814:9 [INFO] [stdout] | [INFO] [stdout] 814 | v2 = swap; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `v0` is never read [INFO] [stdout] --> src/rendering.rs:1004:9 [INFO] [stdout] | [INFO] [stdout] 1004 | 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:1021:9 [INFO] [stdout] | [INFO] [stdout] 1021 | 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:1022:9 [INFO] [stdout] | [INFO] [stdout] 1022 | v2 = swap; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private type `Point2D` in public interface (error E0446) [INFO] [stdout] --> src/projective_camera.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn project(&self, point: Vector3f) -> Point2D { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(private_in_public)]` on by default [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #34537 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private type `Point2D` in public interface (error E0446) [INFO] [stdout] --> src/projective_camera.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn project_vertex(&self, vertex: Vector4f) -> Point2D { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #34537 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private type `Point` in public interface (error E0446) [INFO] [stdout] --> src/buffer_canvas.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn viewport_to_canvas(&self, vertex: Vector4f, camera: &ProjectiveCamera) -> Point { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #34537 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private type `Point` in public interface (error E0446) [INFO] [stdout] --> src/buffer_canvas.rs:108:5 [INFO] [stdout] | [INFO] [stdout] 108 | pub fn draw_line(&mut self, start: Point, end: Point, color: Color) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #34537 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `render_scene_to_buffer` [INFO] [stdout] --> src/ray_tracing.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn render_scene_to_buffer( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `canvas_to_viewport` [INFO] [stdout] --> src/ray_tracing.rs:69:4 [INFO] [stdout] | [INFO] [stdout] 69 | 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 is never used: `compute_lighting` [INFO] [stdout] --> src/ray_tracing.rs:81:4 [INFO] [stdout] | [INFO] [stdout] 81 | fn compute_lighting( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `compute_light_from_direction` [INFO] [stdout] --> src/ray_tracing.rs:122:4 [INFO] [stdout] | [INFO] [stdout] 122 | fn compute_light_from_direction( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `closest_intersection` [INFO] [stdout] --> src/ray_tracing.rs:174:4 [INFO] [stdout] | [INFO] [stdout] 174 | fn closest_intersection( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `trace_ray` [INFO] [stdout] --> src/ray_tracing.rs:199:4 [INFO] [stdout] | [INFO] [stdout] 199 | fn trace_ray( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `add_colors` [INFO] [stdout] --> src/ray_tracing.rs:271:4 [INFO] [stdout] | [INFO] [stdout] 271 | fn add_colors(color1: Color, color2: Color) -> Color { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `contains` [INFO] [stdout] --> src/ray_tracing.rs:279:4 [INFO] [stdout] | [INFO] [stdout] 279 | fn contains(range: (f64, f64), n: f64) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `intersect_ray_with_sphere` [INFO] [stdout] --> src/ray_tracing.rs:284:4 [INFO] [stdout] | [INFO] [stdout] 284 | fn intersect_ray_with_sphere(origin: Vector3f, direction: Vector3f, sphere: Sphere) -> (f64, f64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `dot_product` [INFO] [stdout] --> src/vectors.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn dot_product(v1: Vector3f, v2: Vector3f) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `multiply_vec_and_mat` [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 is never used: `sum` [INFO] [stdout] --> src/vectors.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn sum(v1: Vector3f, v2: Vector3f) -> Vector3f { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `negate` [INFO] [stdout] --> src/vectors.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn negate(vector: Vector3f) -> Vector3f { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `reflect` [INFO] [stdout] --> src/vectors.rs:47:8 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn reflect(v1: Vector3f, v2: Vector3f) -> Vector3f { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `scale` [INFO] [stdout] --> src/vectors.rs:54:8 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn scale(scalar: f64, vector: Vector3f) -> Vector3f { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `rotation_around_y` [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: associated function is never used: `project` [INFO] [stdout] --> src/projective_camera.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn project(&self, point: Vector3f) -> Point2D { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `project_vertex` [INFO] [stdout] --> src/projective_camera.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn project_vertex(&self, vertex: Vector4f) -> Point2D { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `camera_transform` [INFO] [stdout] --> src/projective_camera.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn camera_transform(&self) -> Matrix44f { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `clipping_planes` [INFO] [stdout] --> src/projective_camera.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn clipping_planes(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `right_plane_normal` [INFO] [stdout] --> src/projective_camera.rs:70:8 [INFO] [stdout] | [INFO] [stdout] 70 | fn right_plane_normal(&self, half_viewport_size: f64) -> Vector3f { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `top_plane_normal` [INFO] [stdout] --> src/projective_camera.rs:85:8 [INFO] [stdout] | [INFO] [stdout] 85 | fn top_plane_normal(&self, half_viewport_size: f64) -> Vector3f { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `left_plane_normal` [INFO] [stdout] --> src/projective_camera.rs:100:8 [INFO] [stdout] | [INFO] [stdout] 100 | fn left_plane_normal(&self, half_viewport_size: f64) -> Vector3f { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `bottom_plane_normal` [INFO] [stdout] --> src/projective_camera.rs:115:8 [INFO] [stdout] | [INFO] [stdout] 115 | fn bottom_plane_normal(&self, half_viewport_size: f64) -> Vector3f { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `viewport_to_canvas` [INFO] [stdout] --> src/buffer_canvas.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn viewport_to_canvas(&self, vertex: Vector4f, camera: &ProjectiveCamera) -> Point { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `update_depth_buffer_if_closer` [INFO] [stdout] --> src/buffer_canvas.rs:71:12 [INFO] [stdout] | [INFO] [stdout] 71 | pub fn update_depth_buffer_if_closer(&mut self, screen_x: usize, screen_y: usize, iz: f64) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `screen_x` [INFO] [stdout] --> src/buffer_canvas.rs:82:12 [INFO] [stdout] | [INFO] [stdout] 82 | pub fn screen_x(&self, x_canvas: i32) -> usize { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `screen_y` [INFO] [stdout] --> src/buffer_canvas.rs:93:12 [INFO] [stdout] | [INFO] [stdout] 93 | pub fn screen_y(&self, y_canvas: i32) -> usize { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `point_to_pixel` [INFO] [stdout] --> src/buffer_canvas.rs:104:8 [INFO] [stdout] | [INFO] [stdout] 104 | fn point_to_pixel(&self, x: i32, y: i32, color: Color) -> Pixel { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `draw_line` [INFO] [stdout] --> src/buffer_canvas.rs:108:12 [INFO] [stdout] | [INFO] [stdout] 108 | pub fn draw_line(&mut self, start: Point, end: Point, color: Color) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `rasterize_line` [INFO] [stdout] --> src/buffer_canvas.rs:121:8 [INFO] [stdout] | [INFO] [stdout] 121 | fn rasterize_line(&mut self, start: Pixel, end: Pixel) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `transform` [INFO] [stdout] --> src/instance.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn transform(&self) -> Matrix44f { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `rotation_transform` [INFO] [stdout] --> src/instance.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn rotation_transform(&self) -> Matrix44f { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Near` [INFO] [stdout] --> src/plane.rs:4:22 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum PlaneType { Near, Left, Right, Top, Bottom } [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Left` [INFO] [stdout] --> src/plane.rs:4:28 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum PlaneType { Near, Left, Right, Top, Bottom } [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Right` [INFO] [stdout] --> src/plane.rs:4:34 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum PlaneType { Near, Left, Right, Top, Bottom } [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Top` [INFO] [stdout] --> src/plane.rs:4:41 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum PlaneType { Near, Left, Right, Top, Bottom } [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Bottom` [INFO] [stdout] --> src/plane.rs:4:46 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum PlaneType { Near, Left, Right, Top, Bottom } [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Plane` [INFO] [stdout] --> src/plane.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Plane { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `img` [INFO] [stdout] --> src/texture.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | img: DynamicImage, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `width` [INFO] [stdout] --> src/texture.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | width: u32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `height` [INFO] [stdout] --> src/texture.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | height: u32 [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_texel` [INFO] [stdout] --> src/texture.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn get_texel(&self, u: f64, v: f64) -> Color { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `x` [INFO] [stdout] --> src/main.rs:67:18 [INFO] [stdout] | [INFO] [stdout] 67 | struct Point2D { x: f64, y: f64 } [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `y` [INFO] [stdout] --> src/main.rs:67:26 [INFO] [stdout] | [INFO] [stdout] 67 | struct Point2D { x: f64, y: f64 } [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `x` [INFO] [stdout] --> src/main.rs:70:16 [INFO] [stdout] | [INFO] [stdout] 70 | struct Point { x: i32, y: i32, h: f64, z: f64 } [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `y` [INFO] [stdout] --> src/main.rs:70:24 [INFO] [stdout] | [INFO] [stdout] 70 | struct Point { x: i32, y: i32, h: f64, z: f64 } [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `h` [INFO] [stdout] --> src/main.rs:70:32 [INFO] [stdout] | [INFO] [stdout] 70 | struct Point { x: i32, y: i32, h: f64, z: f64 } [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `z` [INFO] [stdout] --> src/main.rs:70:40 [INFO] [stdout] | [INFO] [stdout] 70 | struct Point { x: i32, y: i32, h: f64, z: f64 } [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `x_min` [INFO] [stdout] --> src/main.rs:73:16 [INFO] [stdout] | [INFO] [stdout] 73 | struct Frame { x_min: f64, x_max: f64, y_min: f64, y_max: f64 } [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `x_max` [INFO] [stdout] --> src/main.rs:73:28 [INFO] [stdout] | [INFO] [stdout] 73 | struct Frame { x_min: f64, x_max: f64, y_min: f64, y_max: f64 } [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `y_min` [INFO] [stdout] --> src/main.rs:73:40 [INFO] [stdout] | [INFO] [stdout] 73 | struct Frame { x_min: f64, x_max: f64, y_min: f64, y_max: f64 } [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `y_max` [INFO] [stdout] --> src/main.rs:73:52 [INFO] [stdout] | [INFO] [stdout] 73 | struct Frame { x_min: f64, x_max: f64, y_min: f64, y_max: f64 } [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `project` [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 is never used: `normalize` [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 is never used: `rasterize` [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 is never used: `simple_line` [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 is never used: `face_visible` [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 is never used: `face_visible2` [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 is never used: `face_visible_4f` [INFO] [stdout] --> src/main.rs:327:4 [INFO] [stdout] | [INFO] [stdout] 327 | fn face_visible_4f(vertex: Vector3f, normal_direction: Vector3f) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `draw_face` [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 is never used: `transform` [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 is never used: `rotated_cube_vertices` [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 is never used: `rotated_cube` [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 is never used: `triangle` [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 is never used: `two_unit_cube` [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 is never used: `enclosing_frame` [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 is never used: `find_z_transform` [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 is never used: `render_model_to_buffer` [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 is never used: `show_buffer_in_window` [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 is never used: `rotating_cube_window` [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 is never used: `three_spheres_window` [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 is never used: `render_video` [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 is never used: `draw_wireframe_triangle` [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: function is never used: `render_scene` [INFO] [stdout] --> src/rendering.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn render_scene( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `render_instance` [INFO] [stdout] --> src/rendering.rs:50:4 [INFO] [stdout] | [INFO] [stdout] 50 | fn render_instance( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `face_normal_direction_in_right` [INFO] [stdout] --> src/rendering.rs:155:4 [INFO] [stdout] | [INFO] [stdout] 155 | fn face_normal_direction_in_right(face: &Vec, vertices: &[Vector4f]) -> Vector3f { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `face_normal_direction_in_left` [INFO] [stdout] --> src/rendering.rs:167:4 [INFO] [stdout] | [INFO] [stdout] 167 | fn face_normal_direction_in_left(triangle: &Triangle, vertices: &[Vector4f]) -> Vector3f { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `clip_triangles` [INFO] [stdout] --> src/rendering.rs:179:4 [INFO] [stdout] | [INFO] [stdout] 179 | fn clip_triangles(triangles: Vec, clipping_planes: &Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `clip_triangles_against_plane` [INFO] [stdout] --> src/rendering.rs:193:4 [INFO] [stdout] | [INFO] [stdout] 193 | fn clip_triangles_against_plane( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `clip_triangle_against_plane` [INFO] [stdout] --> src/rendering.rs:208:4 [INFO] [stdout] | [INFO] [stdout] 208 | fn clip_triangle_against_plane(triangle: Triangle4f, clipping_plane: &Plane) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `find_split_vertex` [INFO] [stdout] --> src/rendering.rs:288:4 [INFO] [stdout] | [INFO] [stdout] 288 | fn find_split_vertex( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_vertex_outside` [INFO] [stdout] --> src/rendering.rs:312:4 [INFO] [stdout] | [INFO] [stdout] 312 | fn is_vertex_outside(plane: &Plane, vertex: Vector4f) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_vertex_inside` [INFO] [stdout] --> src/rendering.rs:318:4 [INFO] [stdout] | [INFO] [stdout] 318 | fn is_vertex_inside(plane: &Plane, vertex: Vector4f) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `convert_face_to_triangles` [INFO] [stdout] --> src/rendering.rs:322:4 [INFO] [stdout] | [INFO] [stdout] 322 | fn convert_face_to_triangles( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `render_filled_triangle` [INFO] [stdout] --> src/rendering.rs:345:4 [INFO] [stdout] | [INFO] [stdout] 345 | fn render_filled_triangle( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `draw_normal_to_vertex` [INFO] [stdout] --> src/rendering.rs:385:4 [INFO] [stdout] | [INFO] [stdout] 385 | fn draw_normal_to_vertex( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_point_in_canvas` [INFO] [stdout] --> src/rendering.rs:404:4 [INFO] [stdout] | [INFO] [stdout] 404 | fn is_point_in_canvas(point: Point, canvas: &BufferCanvas) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `compute_illumination` [INFO] [stdout] --> src/rendering.rs:414:4 [INFO] [stdout] | [INFO] [stdout] 414 | fn compute_illumination( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `light_from_direction` [INFO] [stdout] --> src/rendering.rs:438:4 [INFO] [stdout] | [INFO] [stdout] 438 | fn light_from_direction( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `render_wireframe_triangle` [INFO] [stdout] --> src/rendering.rs:475:4 [INFO] [stdout] | [INFO] [stdout] 475 | fn render_wireframe_triangle( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `flat_shaded_triangle` [INFO] [stdout] --> src/rendering.rs:489:4 [INFO] [stdout] | [INFO] [stdout] 489 | fn flat_shaded_triangle( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `gouraud_shaded_triangle` [INFO] [stdout] --> src/rendering.rs:605:4 [INFO] [stdout] | [INFO] [stdout] 605 | fn gouraud_shaded_triangle( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `phong_shaded_triangle` [INFO] [stdout] --> src/rendering.rs:762:4 [INFO] [stdout] | [INFO] [stdout] 762 | fn phong_shaded_triangle( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `textured_phong_shaded_triangle` [INFO] [stdout] --> src/rendering.rs:956:4 [INFO] [stdout] | [INFO] [stdout] 956 | fn textured_phong_shaded_triangle( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `unproject_vertex` [INFO] [stdout] --> src/rendering.rs:1206:4 [INFO] [stdout] | [INFO] [stdout] 1206 | fn unproject_vertex( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `vertex_to_canvas_point` [INFO] [stdout] --> src/rendering.rs:1224:4 [INFO] [stdout] | [INFO] [stdout] 1224 | fn vertex_to_canvas_point(vertex: Vector4f, camera: &ProjectiveCamera, canvas: &BufferCanvas) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `interpolate_int` [INFO] [stdout] --> src/rendering.rs:1239:4 [INFO] [stdout] | [INFO] [stdout] 1239 | fn interpolate_int(i0: i32, d0: i32, i1: i32, d1: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `interpolate_float` [INFO] [stdout] --> src/rendering.rs:1255:4 [INFO] [stdout] | [INFO] [stdout] 1255 | fn interpolate_float(i0: i32, d0: f64, i1: i32, d1: f64) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `multiply_color` [INFO] [stdout] --> src/rendering.rs:1271:8 [INFO] [stdout] | [INFO] [stdout] 1271 | pub fn multiply_color(k: f64, color: Color) -> Color { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `multiply_channel` [INFO] [stdout] --> src/rendering.rs:1279:4 [INFO] [stdout] | [INFO] [stdout] 1279 | fn multiply_channel(k: f64, channel: u8) -> u8 { [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: 114 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] [stderr] error: failed to migrate to next edition [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo fix --edition --allow-no-vcs --allow-dirty --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "52eeda500ca1fb5599d8836dedbb5b74dc1810741b103dd4e9cc55b0c7ac673b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "52eeda500ca1fb5599d8836dedbb5b74dc1810741b103dd4e9cc55b0c7ac673b", kill_on_drop: false }` [INFO] [stdout] 52eeda500ca1fb5599d8836dedbb5b74dc1810741b103dd4e9cc55b0c7ac673b