[INFO] cloning repository https://github.com/ltJustWorks/renderer_from_scratch [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ltJustWorks/renderer_from_scratch" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FltJustWorks%2Frenderer_from_scratch", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FltJustWorks%2Frenderer_from_scratch'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 9ac877991706629a9a95334a98c899ff93a79313 [INFO] checking ltJustWorks/renderer_from_scratch against master#f2d69d5a7c04617d122facd0a7a5bdde0af928ae for pr-138363 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FltJustWorks%2Frenderer_from_scratch" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ltJustWorks/renderer_from_scratch on toolchain f2d69d5a7c04617d122facd0a7a5bdde0af928ae [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f2d69d5a7c04617d122facd0a7a5bdde0af928ae" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ltJustWorks/renderer_from_scratch [INFO] finished tweaking git repo https://github.com/ltJustWorks/renderer_from_scratch [INFO] tweaked toml for git repo https://github.com/ltJustWorks/renderer_from_scratch written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/ltJustWorks/renderer_from_scratch 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" "+f2d69d5a7c04617d122facd0a7a5bdde0af928ae" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded tgaimage v0.1.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+f2d69d5a7c04617d122facd0a7a5bdde0af928ae" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c9451d4227342e3140f26071e175d6e64c65e781f743039c72752f9b9448f2c1 [INFO] running `Command { std: "docker" "start" "-a" "c9451d4227342e3140f26071e175d6e64c65e781f743039c72752f9b9448f2c1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c9451d4227342e3140f26071e175d6e64c65e781f743039c72752f9b9448f2c1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c9451d4227342e3140f26071e175d6e64c65e781f743039c72752f9b9448f2c1", kill_on_drop: false }` [INFO] [stdout] c9451d4227342e3140f26071e175d6e64c65e781f743039c72752f9b9448f2c1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+f2d69d5a7c04617d122facd0a7a5bdde0af928ae" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bd7536ce09bd3a500ba7379c5569af8ec610834baca6643b58e26fe7007f6878 [INFO] running `Command { std: "docker" "start" "-a" "bd7536ce09bd3a500ba7379c5569af8ec610834baca6643b58e26fe7007f6878", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling libc v0.2.151 [INFO] [stderr] Compiling proc-macro2 v1.0.71 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling pkg-config v0.3.28 [INFO] [stderr] Compiling xml-rs v0.8.19 [INFO] [stderr] Checking once_cell v1.19.0 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking smallvec v1.11.2 [INFO] [stderr] Checking downcast-rs v1.2.0 [INFO] [stderr] Checking scoped-tls v1.0.1 [INFO] [stderr] Compiling rustix v0.38.28 [INFO] [stderr] Checking bitflags v2.4.1 [INFO] [stderr] Checking linux-raw-sys v0.4.12 [INFO] [stderr] Checking libloading v0.8.1 [INFO] [stderr] Checking fastrand v2.0.1 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Checking rawpointer v0.2.1 [INFO] [stderr] Checking cty v0.2.2 [INFO] [stderr] Checking xcursor v0.3.5 [INFO] [stderr] Checking tgaimage v0.1.1 [INFO] [stderr] Checking raw-window-handle v0.4.3 [INFO] [stderr] Checking dlib v0.5.2 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Compiling num-traits v0.2.17 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling matrixmultiply v0.3.8 [INFO] [stderr] Compiling wayland-sys v0.29.5 [INFO] [stderr] Compiling x11-dl v2.21.0 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling cc v1.0.83 [INFO] [stderr] Compiling wayland-scanner v0.29.5 [INFO] [stderr] Checking num-complex v0.4.4 [INFO] [stderr] Checking nix v0.24.3 [INFO] [stderr] Checking getrandom v0.2.11 [INFO] [stderr] Compiling minifb v0.25.0 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking ndarray v0.15.6 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking tempfile v3.8.1 [INFO] [stderr] Compiling wayland-client v0.29.5 [INFO] [stderr] Compiling wayland-protocols v0.29.5 [INFO] [stderr] Checking wayland-commons v0.29.5 [INFO] [stderr] Checking wayland-cursor v0.29.5 [INFO] [stderr] Checking renderer_from_scratch v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Array` and `array` [INFO] [stdout] --> src/main.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | use ndarray::{array, Array, arr1, Array2, Array1}; [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Point2D` [INFO] [stdout] --> src/main.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use point::{Point2D, Vec3f, Vec2f, lookat, viewport}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TGAColorRGBA` [INFO] [stdout] --> src/main.rs:4:36 [INFO] [stdout] | [INFO] [stdout] 4 | use tgaimage::{TGAImage, TGAColor, TGAColorRGBA}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::Rng` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `f32::consts::E` and `mem::swap` [INFO] [stdout] --> src/triangle.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{mem::swap, f32::consts::E}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TGAColorRGB` and `TGAColor` [INFO] [stdout] --> src/triangle.rs:3:26 [INFO] [stdout] | [INFO] [stdout] 3 | use tgaimage::{TGAImage, TGAColor, TGAColorRGB}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `line` [INFO] [stdout] --> src/triangle.rs:5:58 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::{point::{Point2D, Vec3f, barycentric, Vec2f}, line, wavefront::{interpolate_tex_coord, sample_texture}}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::VecDeque` [INFO] [stdout] --> src/point.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::VecDeque; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Array` and `array` [INFO] [stdout] --> src/main.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | use ndarray::{array, Array, arr1, Array2, Array1}; [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Point2D` [INFO] [stdout] --> src/main.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use point::{Point2D, Vec3f, Vec2f, lookat, viewport}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TGAColorRGBA` [INFO] [stdout] --> src/main.rs:4:36 [INFO] [stdout] | [INFO] [stdout] 4 | use tgaimage::{TGAImage, TGAColor, TGAColorRGBA}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::Rng` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `f32::consts::E` and `mem::swap` [INFO] [stdout] --> src/triangle.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{mem::swap, f32::consts::E}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TGAColorRGB` and `TGAColor` [INFO] [stdout] --> src/triangle.rs:3:26 [INFO] [stdout] | [INFO] [stdout] 3 | use tgaimage::{TGAImage, TGAColor, TGAColorRGB}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `line` [INFO] [stdout] --> src/triangle.rs:5:58 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::{point::{Point2D, Vec3f, barycentric, Vec2f}, line, wavefront::{interpolate_tex_coord, sample_texture}}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::VecDeque` [INFO] [stdout] --> src/point.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::VecDeque; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `white` [INFO] [stdout] --> src/main.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | let white = TGAColor::rgba(255, 255, 255, 255); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_white` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `red` [INFO] [stdout] --> src/main.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | let red = TGAColor::rgba(255, 0, 0, 255); [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:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | let green = TGAColor::rgba(0, 255, 0, 255); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_green` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | let mut buffer: Vec = image_processing::convert_buf(&image); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rng` [INFO] [stdout] --> src/main.rs:55:13 [INFO] [stdout] | [INFO] [stdout] 55 | let mut rng = rand::thread_rng(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rng` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 55 | let mut rng = rand::thread_rng(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `world_to_screen` is never used [INFO] [stdout] --> src/main.rs:42:4 [INFO] [stdout] | [INFO] [stdout] 42 | fn world_to_screen(v: &Vec3f, width: usize, height: usize) -> Vec3f { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `white` [INFO] [stdout] --> src/main.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | let white = TGAColor::rgba(255, 255, 255, 255); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_white` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `red` [INFO] [stdout] --> src/main.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | let red = TGAColor::rgba(255, 0, 0, 255); [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:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | let green = TGAColor::rgba(0, 255, 0, 255); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_green` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `draw` is never used [INFO] [stdout] --> src/line.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn draw(image: &mut TGAImage, color: &TGAColor, x0: i32, x1: i32, y0: i32, y1: i32) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `draw_from_points` is never used [INFO] [stdout] --> src/line.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn draw_from_points(image: &mut TGAImage, color: &TGAColor, p1: &Point2D, p2: &Point2D) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_normal` is never used [INFO] [stdout] --> src/triangle.rs:78:4 [INFO] [stdout] | [INFO] [stdout] 78 | fn calculate_normal(pts: [&Vec3f; 3]) -> Vec3f { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/point.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl Point2D { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 11 | pub fn new(x: i32, y: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Vertex` is never constructed [INFO] [stdout] --> src/wavefront.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Vertex { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | let mut buffer: Vec = image_processing::convert_buf(&image); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rng` [INFO] [stdout] --> src/main.rs:55:13 [INFO] [stdout] | [INFO] [stdout] 55 | let mut rng = rand::thread_rng(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rng` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 55 | let mut rng = rand::thread_rng(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `world_to_screen` is never used [INFO] [stdout] --> src/main.rs:42:4 [INFO] [stdout] | [INFO] [stdout] 42 | fn world_to_screen(v: &Vec3f, width: usize, height: usize) -> Vec3f { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | window.update_with_buffer(&buffer, width, height); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 38 | let _ = window.update_with_buffer(&buffer, width, height); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `draw` is never used [INFO] [stdout] --> src/line.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn draw(image: &mut TGAImage, color: &TGAColor, x0: i32, x1: i32, y0: i32, y1: i32) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ModelView` should have a snake case name [INFO] [stdout] --> src/main.rs:61:9 [INFO] [stdout] | [INFO] [stdout] 61 | let ModelView = lookat(&eye, ¢er, &Vec3f { x: 0.0, y: 1.0, z: 0.0 }); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `model_view` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Projection` should have a snake case name [INFO] [stdout] --> src/main.rs:62:13 [INFO] [stdout] | [INFO] [stdout] 62 | let mut Projection = Array2::eye(4); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `projection` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ViewPort` should have a snake case name [INFO] [stdout] --> src/main.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 64 | let ViewPort = viewport((width/8) as i32, (height/8) as i32, (width*3/4) as i32, (height*3/4) as i32, depth as i32); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `view_port` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Minv` should have a snake case name [INFO] [stdout] --> src/point.rs:107:13 [INFO] [stdout] | [INFO] [stdout] 107 | let mut Minv = Array2::eye(4); [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `minv` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `draw_from_points` is never used [INFO] [stdout] --> src/line.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn draw_from_points(image: &mut TGAImage, color: &TGAColor, p1: &Point2D, p2: &Point2D) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Tr` should have a snake case name [INFO] [stdout] --> src/point.rs:108:13 [INFO] [stdout] | [INFO] [stdout] 108 | let mut Tr = Array2::eye(4); [INFO] [stdout] | ^^ help: convert the identifier to snake case: `tr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_normal` is never used [INFO] [stdout] --> src/triangle.rs:78:4 [INFO] [stdout] | [INFO] [stdout] 78 | fn calculate_normal(pts: [&Vec3f; 3]) -> Vec3f { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/point.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl Point2D { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 11 | pub fn new(x: i32, y: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Vertex` is never constructed [INFO] [stdout] --> src/wavefront.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Vertex { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | window.update_with_buffer(&buffer, width, height); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 38 | let _ = window.update_with_buffer(&buffer, width, height); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ModelView` should have a snake case name [INFO] [stdout] --> src/main.rs:61:9 [INFO] [stdout] | [INFO] [stdout] 61 | let ModelView = lookat(&eye, ¢er, &Vec3f { x: 0.0, y: 1.0, z: 0.0 }); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `model_view` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Projection` should have a snake case name [INFO] [stdout] --> src/main.rs:62:13 [INFO] [stdout] | [INFO] [stdout] 62 | let mut Projection = Array2::eye(4); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `projection` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ViewPort` should have a snake case name [INFO] [stdout] --> src/main.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 64 | let ViewPort = viewport((width/8) as i32, (height/8) as i32, (width*3/4) as i32, (height*3/4) as i32, depth as i32); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `view_port` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Minv` should have a snake case name [INFO] [stdout] --> src/point.rs:107:13 [INFO] [stdout] | [INFO] [stdout] 107 | let mut Minv = Array2::eye(4); [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `minv` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Tr` should have a snake case name [INFO] [stdout] --> src/point.rs:108:13 [INFO] [stdout] | [INFO] [stdout] 108 | let mut Tr = Array2::eye(4); [INFO] [stdout] | ^^ help: convert the identifier to snake case: `tr` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 22.06s [INFO] running `Command { std: "docker" "inspect" "bd7536ce09bd3a500ba7379c5569af8ec610834baca6643b58e26fe7007f6878", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bd7536ce09bd3a500ba7379c5569af8ec610834baca6643b58e26fe7007f6878", kill_on_drop: false }` [INFO] [stdout] bd7536ce09bd3a500ba7379c5569af8ec610834baca6643b58e26fe7007f6878