[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 master#a609fb45efad59dfd459c76e50899be9f0583b5a for pr-80579 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNyanguy%2Frust.naive" "/workspace/builds/worker-9/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-9/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Nyanguy/rust.naive on toolchain a609fb45efad59dfd459c76e50899be9f0583b5a [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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-9/source/Cargo.toml [INFO] crate git repo https://github.com/Nyanguy/rust.naive already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b4e3ad38955744d1ff288734a6e2e9a03d027140b50e6d6d23d85639639da0f5 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "b4e3ad38955744d1ff288734a6e2e9a03d027140b50e6d6d23d85639639da0f5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b4e3ad38955744d1ff288734a6e2e9a03d027140b50e6d6d23d85639639da0f5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b4e3ad38955744d1ff288734a6e2e9a03d027140b50e6d6d23d85639639da0f5", kill_on_drop: false }` [INFO] [stdout] b4e3ad38955744d1ff288734a6e2e9a03d027140b50e6d6d23d85639639da0f5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2724b1d0f526d9ec120614011e8516674ad2dfab66e811ca40d001ad7c0ed3ca [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "2724b1d0f526d9ec120614011e8516674ad2dfab66e811ca40d001ad7c0ed3ca", kill_on_drop: false }` [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling libc v0.2.68 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling sdl2 v0.33.0 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking c_vec v1.3.3 [INFO] [stderr] Compiling sdl2-sys v0.33.0 [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)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `event::Event`, `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`, `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)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `event::Event`, `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`, `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: value assigned to `mat_world` is never read [INFO] [stdout] --> src/main.rs:73:13 [INFO] [stdout] | [INFO] [stdout] 73 | let mut mat_world = Matrix::init_identity(); [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 `mat_world` is never read [INFO] [stdout] --> src/main.rs:73:13 [INFO] [stdout] | [INFO] [stdout] 73 | let mut mat_world = Matrix::init_identity(); [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: 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] = note: `#[warn(unused_mut)]` on by default [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: 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] [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] = note: `#[warn(unused_mut)]` on by default [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: struct is never constructed: `Text` [INFO] [stdout] --> src/naive/text.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Text { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `cast_with_capacity` [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: associated function is never used: `new` [INFO] [stdout] --> src/naive/text.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn new(content: &str, x: u32, y: u32, size: u16, color: Option) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `change_text` [INFO] [stdout] --> src/naive/text.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn change_text(&mut self, new_text: &str) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `contents` [INFO] [stdout] --> src/naive/text.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn contents(&self) -> &str { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_color` [INFO] [stdout] --> src/naive/text.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn get_color(&self) -> sdl2::pixels::Color { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_hinting` [INFO] [stdout] --> src/naive/text.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn set_hinting(&mut self, hint: sdl2::ttf::Hinting) { self.hint = hint } [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_font` [INFO] [stdout] --> src/naive/text.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn set_font(&mut self, font: &str) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_size` [INFO] [stdout] --> src/naive/text.rs:58:12 [INFO] [stdout] | [INFO] [stdout] 58 | pub fn set_size(&mut self, size: u16) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_color` [INFO] [stdout] --> src/naive/text.rs:62:12 [INFO] [stdout] | [INFO] [stdout] 62 | pub fn set_color(&mut self, clr: sdl2::pixels::Color) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_surface` [INFO] [stdout] --> src/naive/text.rs:66:12 [INFO] [stdout] | [INFO] [stdout] 66 | pub fn get_surface(&self, styles: Vec) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `scaled_rect` [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: field is never read: `img_ctx` [INFO] [stdout] --> src/naive/render.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 54 | img_ctx: sdl2::image::Sdl2ImageContext [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_color` [INFO] [stdout] --> src/naive/render.rs:77:12 [INFO] [stdout] | [INFO] [stdout] 77 | pub fn set_color(&mut self, clr: Color) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `draw_line` [INFO] [stdout] --> src/naive/render.rs:87:12 [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] [INFO] [stdout] warning: associated function is never used: `draw_triangle` [INFO] [stdout] --> src/naive/render.rs:93:12 [INFO] [stdout] | [INFO] [stdout] 93 | pub fn draw_triangle(&mut self, color: Color, point1: (i32,i32), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `draw_text` [INFO] [stdout] --> src/naive/render.rs:122:12 [INFO] [stdout] | [INFO] [stdout] 122 | pub fn draw_text(&mut self, text_vec: &Vec, padding: u32) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_context` [INFO] [stdout] --> src/naive/render.rs:140:12 [INFO] [stdout] | [INFO] [stdout] 140 | pub fn get_context(&self) -> &sdl2::Sdl { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `load_texture` [INFO] [stdout] --> src/naive/render.rs:152:12 [INFO] [stdout] | [INFO] [stdout] 152 | pub fn load_texture(&mut self, png: &Path, src: Option, dst: Option) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `texture_to_buffer` [INFO] [stdout] --> src/naive/render.rs:159:12 [INFO] [stdout] | [INFO] [stdout] 159 | pub fn texture_to_buffer(&mut self, texture: &sdl2::render::Texture, src: Option, dst: Option) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_3d_points` [INFO] [stdout] --> src/naive/gfx/triangle.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn get_3d_points(&self) -> [(f32,f32,f32); 3] { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `as_tuple` [INFO] [stdout] --> src/naive/gfx/vector.rs:92:12 [INFO] [stdout] | [INFO] [stdout] 92 | pub fn as_tuple(&self) -> (f32, f32, f32, f32) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `C_WHITE` [INFO] [stdout] --> src/main.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | const C_WHITE: Color = Color::RGBA(255,255,255,255); [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] [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: struct is never constructed: `Text` [INFO] [stdout] --> src/naive/text.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Text { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `cast_with_capacity` [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: associated function is never used: `new` [INFO] [stdout] --> src/naive/text.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn new(content: &str, x: u32, y: u32, size: u16, color: Option) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `change_text` [INFO] [stdout] --> src/naive/text.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn change_text(&mut self, new_text: &str) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `contents` [INFO] [stdout] --> src/naive/text.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn contents(&self) -> &str { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_color` [INFO] [stdout] --> src/naive/text.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn get_color(&self) -> sdl2::pixels::Color { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_hinting` [INFO] [stdout] --> src/naive/text.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn set_hinting(&mut self, hint: sdl2::ttf::Hinting) { self.hint = hint } [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_font` [INFO] [stdout] --> src/naive/text.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn set_font(&mut self, font: &str) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_size` [INFO] [stdout] --> src/naive/text.rs:58:12 [INFO] [stdout] | [INFO] [stdout] 58 | pub fn set_size(&mut self, size: u16) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_color` [INFO] [stdout] --> src/naive/text.rs:62:12 [INFO] [stdout] | [INFO] [stdout] 62 | pub fn set_color(&mut self, clr: sdl2::pixels::Color) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_surface` [INFO] [stdout] --> src/naive/text.rs:66:12 [INFO] [stdout] | [INFO] [stdout] 66 | pub fn get_surface(&self, styles: Vec) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `scaled_rect` [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: field is never read: `img_ctx` [INFO] [stdout] --> src/naive/render.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 54 | img_ctx: sdl2::image::Sdl2ImageContext [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_color` [INFO] [stdout] --> src/naive/render.rs:77:12 [INFO] [stdout] | [INFO] [stdout] 77 | pub fn set_color(&mut self, clr: Color) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `draw_line` [INFO] [stdout] --> src/naive/render.rs:87:12 [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] [INFO] [stdout] warning: associated function is never used: `draw_triangle` [INFO] [stdout] --> src/naive/render.rs:93:12 [INFO] [stdout] | [INFO] [stdout] 93 | pub fn draw_triangle(&mut self, color: Color, point1: (i32,i32), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `draw_text` [INFO] [stdout] --> src/naive/render.rs:122:12 [INFO] [stdout] | [INFO] [stdout] 122 | pub fn draw_text(&mut self, text_vec: &Vec, padding: u32) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_context` [INFO] [stdout] --> src/naive/render.rs:140:12 [INFO] [stdout] | [INFO] [stdout] 140 | pub fn get_context(&self) -> &sdl2::Sdl { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `load_texture` [INFO] [stdout] --> src/naive/render.rs:152:12 [INFO] [stdout] | [INFO] [stdout] 152 | pub fn load_texture(&mut self, png: &Path, src: Option, dst: Option) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `texture_to_buffer` [INFO] [stdout] --> src/naive/render.rs:159:12 [INFO] [stdout] | [INFO] [stdout] 159 | pub fn texture_to_buffer(&mut self, texture: &sdl2::render::Texture, src: Option, dst: Option) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_3d_points` [INFO] [stdout] --> src/naive/gfx/triangle.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn get_3d_points(&self) -> [(f32,f32,f32); 3] { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `as_tuple` [INFO] [stdout] --> src/naive/gfx/vector.rs:92:12 [INFO] [stdout] | [INFO] [stdout] 92 | pub fn as_tuple(&self) -> (f32, f32, f32, f32) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `C_WHITE` [INFO] [stdout] --> src/main.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | const C_WHITE: Color = Color::RGBA(255,255,255,255); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 36 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 36 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 9.23s [INFO] running `Command { std: "docker" "inspect" "2724b1d0f526d9ec120614011e8516674ad2dfab66e811ca40d001ad7c0ed3ca", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2724b1d0f526d9ec120614011e8516674ad2dfab66e811ca40d001ad7c0ed3ca", kill_on_drop: false }` [INFO] [stdout] 2724b1d0f526d9ec120614011e8516674ad2dfab66e811ca40d001ad7c0ed3ca