[INFO] cloning repository https://github.com/Nyanguy/rust.naive
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Nyanguy/rust.naive" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNyanguy%2Frust.naive", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNyanguy%2Frust.naive'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 6690cf1aba6e62ad3fe29124f2f768098c5d7785
[INFO] checking Nyanguy/rust.naive against try#b1f2594eac607c1f051534800237eeedb5590a49 for pr-139493-3
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNyanguy%2Frust.naive" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/Nyanguy/rust.naive
[INFO] finished tweaking git repo https://github.com/Nyanguy/rust.naive
[INFO] tweaked toml for git repo https://github.com/Nyanguy/rust.naive written to /workspace/builds/worker-2-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/Nyanguy/rust.naive on toolchain b1f2594eac607c1f051534800237eeedb5590a49
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b1f2594eac607c1f051534800237eeedb5590a49" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/Nyanguy/rust.naive 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" "+b1f2594eac607c1f051534800237eeedb5590a49" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+b1f2594eac607c1f051534800237eeedb5590a49" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 70ddd3d8760ec0e0a39b82b84940c7c0c07c9ef1b1828918fdfee3ef7f6ec8d5
[INFO] running `Command { std: "docker" "start" "-a" "70ddd3d8760ec0e0a39b82b84940c7c0c07c9ef1b1828918fdfee3ef7f6ec8d5", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "70ddd3d8760ec0e0a39b82b84940c7c0c07c9ef1b1828918fdfee3ef7f6ec8d5", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "70ddd3d8760ec0e0a39b82b84940c7c0c07c9ef1b1828918fdfee3ef7f6ec8d5", kill_on_drop: false }`
[INFO] [stdout] 70ddd3d8760ec0e0a39b82b84940c7c0c07c9ef1b1828918fdfee3ef7f6ec8d5
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+b1f2594eac607c1f051534800237eeedb5590a49" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 1213be33dfb432b2a349fdf20f8066d5e7af7cabcb6dc2fb7223eaed2cf599ed
[INFO] running `Command { std: "docker" "start" "-a" "1213be33dfb432b2a349fdf20f8066d5e7af7cabcb6dc2fb7223eaed2cf599ed", kill_on_drop: false }`
[INFO] [stderr]    Compiling sdl2-sys v0.33.0
[INFO] [stderr]    Compiling sdl2 v0.33.0
[INFO] [stderr]     Checking c_vec v1.3.3
[INFO] [stderr]     Checking gfx_3d v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `std::time::Duration`
[INFO] [stdout]  --> src/naive/render.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use std::time::Duration;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `event::Event` and `keyboard::Keycode`
[INFO] [stdout]  --> src/naive/render.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 |     event::Event,
[INFO] [stdout]   |     ^^^^^^^^^^^^
[INFO] [stdout] 8 |     image::{InitFlag, LoadTexture},
[INFO] [stdout] 9 |     keyboard::Keycode,
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::cmp::max`
[INFO] [stdout]  --> src/naive/gfx/triangle.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::cmp::max;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Div` and `Mul`
[INFO] [stdout]  --> src/naive/gfx/vector.rs:1:26
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::ops::{Add, Sub, Mul, Div, AddAssign, SubAssign};
[INFO] [stdout]   |                          ^^^  ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `sdl2::pixels::Color`
[INFO] [stdout]  --> src/naive/gfx/mesh.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use sdl2::pixels::Color;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `vector`
[INFO] [stdout]  --> src/main.rs:4:28
[INFO] [stdout]   |
[INFO] [stdout] 4 | use naive::gfx::{triangle, vector, Triangle, Vec3D, Matrix, Mesh};
[INFO] [stdout]   |                            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::cmp::max`
[INFO] [stdout]   --> src/main.rs:12:5
[INFO] [stdout]    |
[INFO] [stdout] 12 | use std::cmp::max;
[INFO] [stdout]    |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::time::Duration`
[INFO] [stdout]  --> src/naive/render.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use std::time::Duration;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `event::Event` and `keyboard::Keycode`
[INFO] [stdout]  --> src/naive/render.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 |     event::Event,
[INFO] [stdout]   |     ^^^^^^^^^^^^
[INFO] [stdout] 8 |     image::{InitFlag, LoadTexture},
[INFO] [stdout] 9 |     keyboard::Keycode,
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::cmp::max`
[INFO] [stdout]  --> src/naive/gfx/triangle.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::cmp::max;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Div` and `Mul`
[INFO] [stdout]  --> src/naive/gfx/vector.rs:1:26
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::ops::{Add, Sub, Mul, Div, AddAssign, SubAssign};
[INFO] [stdout]   |                          ^^^  ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `sdl2::pixels::Color`
[INFO] [stdout]  --> src/naive/gfx/mesh.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use sdl2::pixels::Color;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `vector`
[INFO] [stdout]  --> src/main.rs:4:28
[INFO] [stdout]   |
[INFO] [stdout] 4 | use naive::gfx::{triangle, vector, Triangle, Vec3D, Matrix, Mesh};
[INFO] [stdout]   |                            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::cmp::max`
[INFO] [stdout]   --> src/main.rs:12:5
[INFO] [stdout]    |
[INFO] [stdout] 12 | use std::cmp::max;
[INFO] [stdout]    |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/naive/gfx/triangle.rs:82:17
[INFO] [stdout]    |
[INFO] [stdout] 82 |     let dist = |mut p: Vec3D| { // a helping lambda function to acquire distances
[INFO] [stdout]    |                 ----^
[INFO] [stdout]    |                 |
[INFO] [stdout]    |                 help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/naive/gfx/matrix.rs:103:13
[INFO] [stdout]     |
[INFO] [stdout] 103 |         let mut right = cross_product(&new_up, &forward);
[INFO] [stdout]     |             ----^^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/main.rs:23:9
[INFO] [stdout]    |
[INFO] [stdout] 23 |     let mut mesh = Mesh::load_object("example_objs/landscape.obj");
[INFO] [stdout]    |         ----^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/main.rs:25:9
[INFO] [stdout]    |
[INFO] [stdout] 25 |     let mut f_theta: f32 = 0.0;
[INFO] [stdout]    |         ----^^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/main.rs:31:9
[INFO] [stdout]    |
[INFO] [stdout] 31 |     let mut m = Matrix::init_projection(fov, ratio, near, far);
[INFO] [stdout]    |         ----^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `mat_world` is never read
[INFO] [stdout]   --> src/main.rs:73:29
[INFO] [stdout]    |
[INFO] [stdout] 73 |         let mut mat_world = Matrix::init_identity();
[INFO] [stdout]    |                             ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: maybe it is overwritten before being read?
[INFO] [stdout]    = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `C_WHITE` is never used
[INFO] [stdout]   --> src/main.rs:16:7
[INFO] [stdout]    |
[INFO] [stdout] 16 | const C_WHITE: Color = Color::RGBA(255,255,255,255);
[INFO] [stdout]    |       ^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Text` is never constructed
[INFO] [stdout]  --> src/naive/text.rs:3:12
[INFO] [stdout]   |
[INFO] [stdout] 3 | pub struct Text {
[INFO] [stdout]   |            ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `cast_with_capacity` is never used
[INFO] [stdout]   --> src/naive/text.rs:14:8
[INFO] [stdout]    |
[INFO] [stdout] 14 | pub fn cast_with_capacity(value: u16, capacity: usize) -> String {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple associated items are never used
[INFO] [stdout]   --> src/naive/text.rs:24:12
[INFO] [stdout]    |
[INFO] [stdout] 23 | impl Text {
[INFO] [stdout]    | --------- associated items in this implementation
[INFO] [stdout] 24 |     pub fn new(content: &str, x: u32, y: u32, size: u16, color: Option<sdl2::pixels::Color>) -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 40 |     pub fn change_text(&mut self, new_text: &str) {
[INFO] [stdout]    |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 44 |     pub fn contents(&self) -> &str {
[INFO] [stdout]    |            ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 48 |     pub fn get_color(&self) -> sdl2::pixels::Color {
[INFO] [stdout]    |            ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 52 |     pub fn set_hinting(&mut self, hint: sdl2::ttf::Hinting) { self.hint = hint }
[INFO] [stdout]    |            ^^^^^^^^^^^
[INFO] [stdout] 53 |
[INFO] [stdout] 54 |     pub fn set_font(&mut self, font: &str) {
[INFO] [stdout]    |            ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 58 |     pub fn set_size(&mut self, size: u16) {
[INFO] [stdout]    |            ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 62 |     pub fn set_color(&mut self, clr: sdl2::pixels::Color) {
[INFO] [stdout]    |            ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 66 |     pub fn get_surface(&self, styles: Vec<sdl2::ttf::FontStyle>) -> Result<sdl2::surface::Surface, String> {
[INFO] [stdout]    |            ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `scaled_rect` is never used
[INFO] [stdout]   --> src/naive/render.rs:27:8
[INFO] [stdout]    |
[INFO] [stdout] 27 | pub fn scaled_rect(pos_x: u32, pos_y: u32, rect_width: u32, rect_height: u32, cons_width: u32, cons_height: u32) -> Rect {
[INFO] [stdout]    |        ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `width`, `height`, and `img_ctx` are never read
[INFO] [stdout]   --> src/naive/render.rs:51:9
[INFO] [stdout]    |
[INFO] [stdout] 49 | pub struct Window {
[INFO] [stdout]    |            ------ fields in this struct
[INFO] [stdout] 50 |     canvas: sdl2::render::WindowCanvas,
[INFO] [stdout] 51 |     pub width: u32,
[INFO] [stdout]    |         ^^^^^
[INFO] [stdout] 52 |     pub height: u32,
[INFO] [stdout]    |         ^^^^^^
[INFO] [stdout] 53 |     ctx: sdl2::Sdl,
[INFO] [stdout] 54 |     img_ctx: sdl2::image::Sdl2ImageContext
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple methods are never used
[INFO] [stdout]    --> src/naive/render.rs:77:12
[INFO] [stdout]     |
[INFO] [stdout]  57 | impl Window {
[INFO] [stdout]     | ----------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout]  77 |     pub fn set_color(&mut self, clr: Color) {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  87 |     pub fn draw_line(&mut self, color: Color, start: (i32,i32), finish: (i32,i32)) -> Result<(), String> {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  93 |     pub fn draw_triangle(&mut self, color: Color, point1: (i32,i32),
[INFO] [stdout]     |            ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 122 |     pub fn draw_text(&mut self, text_vec: &Vec<Text>, padding: u32) -> Result<(), String> {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 140 |     pub fn get_context(&self) -> &sdl2::Sdl {
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 152 |     pub fn load_texture(&mut self, png: &Path, src: Option<Rect>, dst: Option<Rect>) -> Result<(), String> {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 159 |     pub fn texture_to_buffer(&mut self, texture: &sdl2::render::Texture, src: Option<Rect>, dst: Option<Rect>) {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `get_3d_points` is never used
[INFO] [stdout]   --> src/naive/gfx/triangle.rs:32:12
[INFO] [stdout]    |
[INFO] [stdout] 14 | impl Triangle {
[INFO] [stdout]    | ------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 32 |     pub fn get_3d_points(&self) -> [(f32,f32,f32); 3] {
[INFO] [stdout]    |            ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `as_tuple` is never used
[INFO] [stdout]   --> src/naive/gfx/vector.rs:92:12
[INFO] [stdout]    |
[INFO] [stdout] 87 | impl Vec3D {
[INFO] [stdout]    | ---------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 92 |     pub fn as_tuple(&self) -> (f32, f32, f32, f32) {
[INFO] [stdout]    |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing
[INFO] [stdout]   --> src/naive/text.rs:66:24
[INFO] [stdout]    |
[INFO] [stdout] 66 |     pub fn get_surface(&self, styles: Vec<sdl2::ttf::FontStyle>) -> Result<sdl2::surface::Surface, String> {
[INFO] [stdout]    |                        ^^^^^ the lifetime is elided here                   ^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
[INFO] [stdout]    |
[INFO] [stdout]    = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stdout]    = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default
[INFO] [stdout] help: use `'_` for type paths
[INFO] [stdout]    |
[INFO] [stdout] 66 |     pub fn get_surface(&self, styles: Vec<sdl2::ttf::FontStyle>) -> Result<sdl2::surface::Surface<'_>, String> {
[INFO] [stdout]    |                                                                                                  ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/naive/gfx/triangle.rs:82:17
[INFO] [stdout]    |
[INFO] [stdout] 82 |     let dist = |mut p: Vec3D| { // a helping lambda function to acquire distances
[INFO] [stdout]    |                 ----^
[INFO] [stdout]    |                 |
[INFO] [stdout]    |                 help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/naive/gfx/matrix.rs:103:13
[INFO] [stdout]     |
[INFO] [stdout] 103 |         let mut right = cross_product(&new_up, &forward);
[INFO] [stdout]     |             ----^^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/main.rs:23:9
[INFO] [stdout]    |
[INFO] [stdout] 23 |     let mut mesh = Mesh::load_object("example_objs/landscape.obj");
[INFO] [stdout]    |         ----^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/main.rs:25:9
[INFO] [stdout]    |
[INFO] [stdout] 25 |     let mut f_theta: f32 = 0.0;
[INFO] [stdout]    |         ----^^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/main.rs:31:9
[INFO] [stdout]    |
[INFO] [stdout] 31 |     let mut m = Matrix::init_projection(fov, ratio, near, far);
[INFO] [stdout]    |         ----^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `mat_world` is never read
[INFO] [stdout]   --> src/main.rs:73:29
[INFO] [stdout]    |
[INFO] [stdout] 73 |         let mut mat_world = Matrix::init_identity();
[INFO] [stdout]    |                             ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: maybe it is overwritten before being read?
[INFO] [stdout]    = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `C_WHITE` is never used
[INFO] [stdout]   --> src/main.rs:16:7
[INFO] [stdout]    |
[INFO] [stdout] 16 | const C_WHITE: Color = Color::RGBA(255,255,255,255);
[INFO] [stdout]    |       ^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Text` is never constructed
[INFO] [stdout]  --> src/naive/text.rs:3:12
[INFO] [stdout]   |
[INFO] [stdout] 3 | pub struct Text {
[INFO] [stdout]   |            ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `cast_with_capacity` is never used
[INFO] [stdout]   --> src/naive/text.rs:14:8
[INFO] [stdout]    |
[INFO] [stdout] 14 | pub fn cast_with_capacity(value: u16, capacity: usize) -> String {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple associated items are never used
[INFO] [stdout]   --> src/naive/text.rs:24:12
[INFO] [stdout]    |
[INFO] [stdout] 23 | impl Text {
[INFO] [stdout]    | --------- associated items in this implementation
[INFO] [stdout] 24 |     pub fn new(content: &str, x: u32, y: u32, size: u16, color: Option<sdl2::pixels::Color>) -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 40 |     pub fn change_text(&mut self, new_text: &str) {
[INFO] [stdout]    |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 44 |     pub fn contents(&self) -> &str {
[INFO] [stdout]    |            ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 48 |     pub fn get_color(&self) -> sdl2::pixels::Color {
[INFO] [stdout]    |            ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 52 |     pub fn set_hinting(&mut self, hint: sdl2::ttf::Hinting) { self.hint = hint }
[INFO] [stdout]    |            ^^^^^^^^^^^
[INFO] [stdout] 53 |
[INFO] [stdout] 54 |     pub fn set_font(&mut self, font: &str) {
[INFO] [stdout]    |            ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 58 |     pub fn set_size(&mut self, size: u16) {
[INFO] [stdout]    |            ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 62 |     pub fn set_color(&mut self, clr: sdl2::pixels::Color) {
[INFO] [stdout]    |            ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 66 |     pub fn get_surface(&self, styles: Vec<sdl2::ttf::FontStyle>) -> Result<sdl2::surface::Surface, String> {
[INFO] [stdout]    |            ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `scaled_rect` is never used
[INFO] [stdout]   --> src/naive/render.rs:27:8
[INFO] [stdout]    |
[INFO] [stdout] 27 | pub fn scaled_rect(pos_x: u32, pos_y: u32, rect_width: u32, rect_height: u32, cons_width: u32, cons_height: u32) -> Rect {
[INFO] [stdout]    |        ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `width`, `height`, and `img_ctx` are never read
[INFO] [stdout]   --> src/naive/render.rs:51:9
[INFO] [stdout]    |
[INFO] [stdout] 49 | pub struct Window {
[INFO] [stdout]    |            ------ fields in this struct
[INFO] [stdout] 50 |     canvas: sdl2::render::WindowCanvas,
[INFO] [stdout] 51 |     pub width: u32,
[INFO] [stdout]    |         ^^^^^
[INFO] [stdout] 52 |     pub height: u32,
[INFO] [stdout]    |         ^^^^^^
[INFO] [stdout] 53 |     ctx: sdl2::Sdl,
[INFO] [stdout] 54 |     img_ctx: sdl2::image::Sdl2ImageContext
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple methods are never used
[INFO] [stdout]    --> src/naive/render.rs:77:12
[INFO] [stdout]     |
[INFO] [stdout]  57 | impl Window {
[INFO] [stdout]     | ----------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout]  77 |     pub fn set_color(&mut self, clr: Color) {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  87 |     pub fn draw_line(&mut self, color: Color, start: (i32,i32), finish: (i32,i32)) -> Result<(), String> {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  93 |     pub fn draw_triangle(&mut self, color: Color, point1: (i32,i32),
[INFO] [stdout]     |            ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 122 |     pub fn draw_text(&mut self, text_vec: &Vec<Text>, padding: u32) -> Result<(), String> {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 140 |     pub fn get_context(&self) -> &sdl2::Sdl {
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 152 |     pub fn load_texture(&mut self, png: &Path, src: Option<Rect>, dst: Option<Rect>) -> Result<(), String> {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 159 |     pub fn texture_to_buffer(&mut self, texture: &sdl2::render::Texture, src: Option<Rect>, dst: Option<Rect>) {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `get_3d_points` is never used
[INFO] [stdout]   --> src/naive/gfx/triangle.rs:32:12
[INFO] [stdout]    |
[INFO] [stdout] 14 | impl Triangle {
[INFO] [stdout]    | ------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 32 |     pub fn get_3d_points(&self) -> [(f32,f32,f32); 3] {
[INFO] [stdout]    |            ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `as_tuple` is never used
[INFO] [stdout]   --> src/naive/gfx/vector.rs:92:12
[INFO] [stdout]    |
[INFO] [stdout] 87 | impl Vec3D {
[INFO] [stdout]    | ---------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 92 |     pub fn as_tuple(&self) -> (f32, f32, f32, f32) {
[INFO] [stdout]    |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing
[INFO] [stdout]   --> src/naive/text.rs:66:24
[INFO] [stdout]    |
[INFO] [stdout] 66 |     pub fn get_surface(&self, styles: Vec<sdl2::ttf::FontStyle>) -> Result<sdl2::surface::Surface, String> {
[INFO] [stdout]    |                        ^^^^^ the lifetime is elided here                   ^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
[INFO] [stdout]    |
[INFO] [stdout]    = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stdout]    = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default
[INFO] [stdout] help: use `'_` for type paths
[INFO] [stdout]    |
[INFO] [stdout] 66 |     pub fn get_surface(&self, styles: Vec<sdl2::ttf::FontStyle>) -> Result<sdl2::surface::Surface<'_>, String> {
[INFO] [stdout]    |                                                                                                  ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.65s
[INFO] running `Command { std: "docker" "inspect" "1213be33dfb432b2a349fdf20f8066d5e7af7cabcb6dc2fb7223eaed2cf599ed", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "1213be33dfb432b2a349fdf20f8066d5e7af7cabcb6dc2fb7223eaed2cf599ed", kill_on_drop: false }`
[INFO] [stdout] 1213be33dfb432b2a349fdf20f8066d5e7af7cabcb6dc2fb7223eaed2cf599ed
