[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#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNyanguy%2Frust.naive" "/workspace/builds/worker-3/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Nyanguy/rust.naive 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/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-3/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" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded c_vec v1.3.3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 7d4fb41771aaa1e13af8e4b7f7175fb44a21207327ec027f8ba68d65bb3dc608 [INFO] running `Command { std: "docker" "start" "-a" "7d4fb41771aaa1e13af8e4b7f7175fb44a21207327ec027f8ba68d65bb3dc608", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7d4fb41771aaa1e13af8e4b7f7175fb44a21207327ec027f8ba68d65bb3dc608", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7d4fb41771aaa1e13af8e4b7f7175fb44a21207327ec027f8ba68d65bb3dc608", kill_on_drop: false }` [INFO] [stdout] 7d4fb41771aaa1e13af8e4b7f7175fb44a21207327ec027f8ba68d65bb3dc608 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] a5175595c7b8e83e1da639a5a2215889ea96a4d8cac94b7edf95cffef7a1ff46 [INFO] running `Command { std: "docker" "start" "-a" "a5175595c7b8e83e1da639a5a2215889ea96a4d8cac94b7edf95cffef7a1ff46", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling libc v0.2.68 [INFO] [stderr] Compiling sdl2 v0.33.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 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2018 edition to 2021 [INFO] [stderr] Fixed src/naive/gfx/matrix.rs (1 fix) [INFO] [stderr] Fixed src/naive/gfx/vector.rs (1 fix) [INFO] [stderr] Fixed src/naive/gfx/mesh.rs (1 fix) [INFO] [stderr] Fixed src/naive/render.rs (2 fixes) [INFO] [stderr] Fixed src/naive/gfx/triangle.rs (2 fixes) [INFO] [stderr] Fixed src/main.rs (5 fixes) [INFO] [stdout] warning: value assigned to `mat_world` is never read [INFO] [stdout] --> src/main.rs:73:17 [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:17 [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: 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:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | 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:52:5 [INFO] [stdout] | [INFO] [stdout] 52 | 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:75:12 [INFO] [stdout] | [INFO] [stdout] 75 | 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:85:12 [INFO] [stdout] | [INFO] [stdout] 85 | 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:91:12 [INFO] [stdout] | [INFO] [stdout] 91 | 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:120:12 [INFO] [stdout] | [INFO] [stdout] 120 | 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:138:12 [INFO] [stdout] | [INFO] [stdout] 138 | 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:150:12 [INFO] [stdout] | [INFO] [stdout] 150 | 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:157:12 [INFO] [stdout] | [INFO] [stdout] 157 | 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: 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:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | 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:52:5 [INFO] [stdout] | [INFO] [stdout] 52 | 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:75:12 [INFO] [stdout] | [INFO] [stdout] 75 | 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:85:12 [INFO] [stdout] | [INFO] [stdout] 85 | 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:91:12 [INFO] [stdout] | [INFO] [stdout] 91 | 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:120:12 [INFO] [stdout] | [INFO] [stdout] 120 | 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:138:12 [INFO] [stdout] | [INFO] [stdout] 138 | 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:150:12 [INFO] [stdout] | [INFO] [stdout] 150 | 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:157:12 [INFO] [stdout] | [INFO] [stdout] 157 | 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: 24 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 24 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 8.14s [INFO] [stderr] Running `cargo check` to verify 2021 [INFO] [stderr] Checking gfx_3d v0.1.0 (/tmp/fixit) [INFO] [stdout] warning: value assigned to `mat_world` is never read [INFO] [stdout] --> src/main.rs:73:17 [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:17 [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: 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:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | 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:52:5 [INFO] [stdout] | [INFO] [stdout] 52 | 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:75:12 [INFO] [stdout] | [INFO] [stdout] 75 | 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:85:12 [INFO] [stdout] | [INFO] [stdout] 85 | 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:91:12 [INFO] [stdout] | [INFO] [stdout] 91 | 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:120:12 [INFO] [stdout] | [INFO] [stdout] 120 | 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:138:12 [INFO] [stdout] | [INFO] [stdout] 138 | 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:150:12 [INFO] [stdout] | [INFO] [stdout] 150 | 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:157:12 [INFO] [stdout] | [INFO] [stdout] 157 | 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: 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:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | 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:52:5 [INFO] [stdout] | [INFO] [stdout] 52 | 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:75:12 [INFO] [stdout] | [INFO] [stdout] 75 | 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:85:12 [INFO] [stdout] | [INFO] [stdout] 85 | 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:91:12 [INFO] [stdout] | [INFO] [stdout] 91 | 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:120:12 [INFO] [stdout] | [INFO] [stdout] 120 | 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:138:12 [INFO] [stdout] | [INFO] [stdout] 138 | 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:150:12 [INFO] [stdout] | [INFO] [stdout] 150 | 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:157:12 [INFO] [stdout] | [INFO] [stdout] 157 | 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: 24 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 24 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.60s [INFO] running `Command { std: "docker" "inspect" "a5175595c7b8e83e1da639a5a2215889ea96a4d8cac94b7edf95cffef7a1ff46", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a5175595c7b8e83e1da639a5a2215889ea96a4d8cac94b7edf95cffef7a1ff46", kill_on_drop: false }` [INFO] [stdout] a5175595c7b8e83e1da639a5a2215889ea96a4d8cac94b7edf95cffef7a1ff46