[INFO] cloning repository https://github.com/Raunak-S/tinyrender [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Raunak-S/tinyrender" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRaunak-S%2Ftinyrender", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRaunak-S%2Ftinyrender'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 099e8c303dfedb1b570465fdb88b70eb51c78bd0 [INFO] checking Raunak-S/tinyrender against try#42d1facfffa1a5357d6d62815f7be91f8ad69ed8 for pr-95474 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRaunak-S%2Ftinyrender" "/workspace/builds/worker-14/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-14/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Raunak-S/tinyrender on toolchain 42d1facfffa1a5357d6d62815f7be91f8ad69ed8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+42d1facfffa1a5357d6d62815f7be91f8ad69ed8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Raunak-S/tinyrender [INFO] finished tweaking git repo https://github.com/Raunak-S/tinyrender [INFO] tweaked toml for git repo https://github.com/Raunak-S/tinyrender written to /workspace/builds/worker-14/source/Cargo.toml [INFO] crate git repo https://github.com/Raunak-S/tinyrender already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+42d1facfffa1a5357d6d62815f7be91f8ad69ed8" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+42d1facfffa1a5357d6d62815f7be91f8ad69ed8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7934548d5e6ec75c2133a3de3acf84c56ae331acbe45104fc9633ab4f13f7b4d [INFO] running `Command { std: "docker" "start" "-a" "7934548d5e6ec75c2133a3de3acf84c56ae331acbe45104fc9633ab4f13f7b4d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7934548d5e6ec75c2133a3de3acf84c56ae331acbe45104fc9633ab4f13f7b4d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7934548d5e6ec75c2133a3de3acf84c56ae331acbe45104fc9633ab4f13f7b4d", kill_on_drop: false }` [INFO] [stdout] 7934548d5e6ec75c2133a3de3acf84c56ae331acbe45104fc9633ab4f13f7b4d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+42d1facfffa1a5357d6d62815f7be91f8ad69ed8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 007daafbd268cf72c410c9209853be69349043be69f3e0e41f98f8bc6a767b10 [INFO] running `Command { std: "docker" "start" "-a" "007daafbd268cf72c410c9209853be69349043be69f3e0e41f98f8bc6a767b10", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Checking byteorder v1.4.3 [INFO] [stderr] Checking obj v0.10.2 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling num-bigint v0.4.3 [INFO] [stderr] Compiling num-rational v0.4.0 [INFO] [stderr] Compiling num-iter v0.1.42 [INFO] [stderr] Checking num-complex v0.4.0 [INFO] [stderr] Checking num v0.4.0 [INFO] [stderr] Checking tinyrender v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `model::Model` [INFO] [stdout] --> src/our_gl.rs:3:34 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::{geometry::*, tga::*, model::Model}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `WIDTH`, `geometry::*`, `model::Model` [INFO] [stdout] --> src/tga.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{geometry::*, model::Model, WIDTH}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `model::Model` [INFO] [stdout] --> src/our_gl.rs:3:34 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::{geometry::*, tga::*, model::Model}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `WIDTH`, `geometry::*`, `model::Model` [INFO] [stdout] --> src/tga.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{geometry::*, model::Model, WIDTH}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `chunkheader` is never read [INFO] [stdout] --> src/tga.rs:230:21 [INFO] [stdout] | [INFO] [stdout] 230 | let mut chunkheader = 0 as u8; [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: unused variable: `i` [INFO] [stdout] --> src/tga.rs:240:21 [INFO] [stdout] | [INFO] [stdout] 240 | for i in 0..chunkheader { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `developer_area_ref` [INFO] [stdout] --> src/tga.rs:285:13 [INFO] [stdout] | [INFO] [stdout] 285 | let developer_area_ref: [u8; 4] = [0, 0, 0, 0]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_developer_area_ref` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `extension_area_ref` [INFO] [stdout] --> src/tga.rs:286:13 [INFO] [stdout] | [INFO] [stdout] 286 | let extension_area_ref: [u8; 4] = [0, 0, 0, 0]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_extension_area_ref` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `footer` [INFO] [stdout] --> src/tga.rs:288:17 [INFO] [stdout] | [INFO] [stdout] 288 | let mut footer: &[char] = &[ [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_footer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `chunkheader` is never read [INFO] [stdout] --> src/tga.rs:230:21 [INFO] [stdout] | [INFO] [stdout] 230 | let mut chunkheader = 0 as u8; [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: unused variable: `i` [INFO] [stdout] --> src/tga.rs:240:21 [INFO] [stdout] | [INFO] [stdout] 240 | for i in 0..chunkheader { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `developer_area_ref` [INFO] [stdout] --> src/tga.rs:285:13 [INFO] [stdout] | [INFO] [stdout] 285 | let developer_area_ref: [u8; 4] = [0, 0, 0, 0]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_developer_area_ref` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `extension_area_ref` [INFO] [stdout] --> src/tga.rs:286:13 [INFO] [stdout] | [INFO] [stdout] 286 | let extension_area_ref: [u8; 4] = [0, 0, 0, 0]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_extension_area_ref` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `footer` [INFO] [stdout] --> src/tga.rs:288:17 [INFO] [stdout] | [INFO] [stdout] 288 | let mut footer: &[char] = &[ [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_footer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tga.rs:288:13 [INFO] [stdout] | [INFO] [stdout] 288 | let mut footer: &[char] = &[ [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: associated function is never used: `from_matrix` [INFO] [stdout] --> src/geometry.rs:121:12 [INFO] [stdout] | [INFO] [stdout] 121 | pub fn from_matrix(m: Matrix) -> Vec3f { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `into_float` [INFO] [stdout] --> src/geometry.rs:137:12 [INFO] [stdout] | [INFO] [stdout] 137 | pub fn into_float(v: Vec3i) -> Vec3f { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `into_int` [INFO] [stdout] --> src/geometry.rs:144:12 [INFO] [stdout] | [INFO] [stdout] 144 | pub fn into_int(v: Vec3f) -> Vec3i { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `Vec3i` [INFO] [stdout] --> src/geometry.rs:274:1 [INFO] [stdout] | [INFO] [stdout] 274 | pub type Vec3i = Vec3D; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from_vec3f` [INFO] [stdout] --> src/geometry.rs:321:12 [INFO] [stdout] | [INFO] [stdout] 321 | pub fn from_vec3f(v: Vec3f) -> Matrix { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `nrows` [INFO] [stdout] --> src/geometry.rs:329:12 [INFO] [stdout] | [INFO] [stdout] 329 | pub fn nrows(&self) -> i32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `ncols` [INFO] [stdout] --> src/geometry.rs:332:12 [INFO] [stdout] | [INFO] [stdout] 332 | pub fn ncols(&self) -> i32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `transpose` [INFO] [stdout] --> src/geometry.rs:344:12 [INFO] [stdout] | [INFO] [stdout] 344 | pub fn transpose(&self) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `inverse` [INFO] [stdout] --> src/geometry.rs:353:12 [INFO] [stdout] | [INFO] [stdout] 353 | pub fn inverse(&self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `diffusemap` [INFO] [stdout] --> src/model.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | diffusemap: TGAImage, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `diffuse` [INFO] [stdout] --> src/model.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn diffuse(&self, uv: Vec2i) -> TGAColor { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `uv` [INFO] [stdout] --> src/model.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn uv(&self, iface: i32, nvert: i32) -> Vec2i { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `norm` [INFO] [stdout] --> src/model.rs:66:12 [INFO] [stdout] | [INFO] [stdout] 66 | pub fn norm(&self, iface: i32, nvert: i32) -> Vec3f { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_bytespp` [INFO] [stdout] --> src/tga.rs:331:12 [INFO] [stdout] | [INFO] [stdout] 331 | pub fn get_bytespp(&self) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_width` [INFO] [stdout] --> src/tga.rs:335:12 [INFO] [stdout] | [INFO] [stdout] 335 | pub fn get_width(&self) -> i32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_height` [INFO] [stdout] --> src/tga.rs:339:12 [INFO] [stdout] | [INFO] [stdout] 339 | pub fn get_height(&self) -> i32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `swap` [INFO] [stdout] --> src/tga.rs:401:8 [INFO] [stdout] | [INFO] [stdout] 401 | pub fn swap(a: &mut T, b: &mut T) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `line` [INFO] [stdout] --> src/tga.rs:407:8 [INFO] [stdout] | [INFO] [stdout] 407 | pub fn line( [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `WHITE` [INFO] [stdout] --> src/tga.rs:444:1 [INFO] [stdout] | [INFO] [stdout] 444 | / pub const WHITE: TGAColor = TGAColor { [INFO] [stdout] 445 | | color_type: ColorType::RGBA(RGBA { [INFO] [stdout] 446 | | r: 255, [INFO] [stdout] 447 | | g: 255, [INFO] [stdout] ... | [INFO] [stdout] 451 | | bytespp: 4, [INFO] [stdout] 452 | | }; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `RED` [INFO] [stdout] --> src/tga.rs:453:1 [INFO] [stdout] | [INFO] [stdout] 453 | / pub const RED: TGAColor = TGAColor { [INFO] [stdout] 454 | | color_type: ColorType::RGBA(RGBA { [INFO] [stdout] 455 | | r: 255, [INFO] [stdout] 456 | | g: 0, [INFO] [stdout] ... | [INFO] [stdout] 460 | | bytespp: 4, [INFO] [stdout] 461 | | }; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `GREEN` [INFO] [stdout] --> src/tga.rs:462:1 [INFO] [stdout] | [INFO] [stdout] 462 | / pub const GREEN: TGAColor = TGAColor { [INFO] [stdout] 463 | | color_type: ColorType::RGBA(RGBA { [INFO] [stdout] 464 | | r: 0, [INFO] [stdout] 465 | | g: 255, [INFO] [stdout] ... | [INFO] [stdout] 469 | | bytespp: 4, [INFO] [stdout] 470 | | }; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `gl_Vertex` should have a snake case name [INFO] [stdout] --> src/main.rs:24:17 [INFO] [stdout] | [INFO] [stdout] 24 | let mut gl_Vertex = embed(&Vec3f::from_slice(&model.data.position[idx])); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `gl_vertex` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ModelView` should have a snake case name [INFO] [stdout] --> src/main.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | let ModelView = lookat(eye, center, up); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `model_view` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ViewPort` should have a snake case name [INFO] [stdout] --> src/main.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | let ViewPort = viewport(WIDTH / 8, HEIGHT / 8, WIDTH * 3 / 4, HEIGHT * 3 / 4); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `view_port` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Projection` should have a snake case name [INFO] [stdout] --> src/main.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | let Projection = projection(-1. / (eye - center).norm()); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `projection` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/geometry.rs:336:17 [INFO] [stdout] | [INFO] [stdout] 336 | let mut E = Matrix::new(Some(dimensions), Some(dimensions)); [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Projection` should have a snake case name [INFO] [stdout] --> src/our_gl.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | let mut Projection = Matrix::identity(4); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `projection` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `A` should have a snake case name [INFO] [stdout] --> src/our_gl.rs:37:20 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn barycentric(A: Vec2f, B: Vec2f, C: Vec2f, P: Vec2f) -> Vec3f { [INFO] [stdout] | ^ help: convert the identifier to snake case: `a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `B` should have a snake case name [INFO] [stdout] --> src/our_gl.rs:37:30 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn barycentric(A: Vec2f, B: Vec2f, C: Vec2f, P: Vec2f) -> Vec3f { [INFO] [stdout] | ^ help: convert the identifier to snake case: `b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `C` should have a snake case name [INFO] [stdout] --> src/our_gl.rs:37:40 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn barycentric(A: Vec2f, B: Vec2f, C: Vec2f, P: Vec2f) -> Vec3f { [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `P` should have a snake case name [INFO] [stdout] --> src/our_gl.rs:37:50 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn barycentric(A: Vec2f, B: Vec2f, C: Vec2f, P: Vec2f) -> Vec3f { [INFO] [stdout] | ^ help: convert the identifier to snake case: `p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `ModelView` should have a snake case name [INFO] [stdout] --> src/our_gl.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | pub ModelView: Matrix, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `model_view` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `ViewPort` should have a snake case name [INFO] [stdout] --> src/our_gl.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 54 | pub ViewPort: Matrix, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `view_port` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Projection` should have a snake case name [INFO] [stdout] --> src/our_gl.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 55 | pub Projection: Matrix, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `projection` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `P` should have a snake case name [INFO] [stdout] --> src/our_gl.rs:72:13 [INFO] [stdout] | [INFO] [stdout] 72 | let mut P = Vec2i::new(); [INFO] [stdout] | ^ help: convert the identifier to snake case: `p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `proj_P` should have a snake case name [INFO] [stdout] --> src/our_gl.rs:77:21 [INFO] [stdout] | [INFO] [stdout] 77 | let mut proj_P = Vec4f::new(); [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `proj_p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Grayscale` should have a snake case name [INFO] [stdout] --> src/tga.rs:139:9 [INFO] [stdout] | [INFO] [stdout] 139 | pub Grayscale: u8, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `grayscale` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `RGB` should have a snake case name [INFO] [stdout] --> src/tga.rs:140:9 [INFO] [stdout] | [INFO] [stdout] 140 | pub RGB: u8, [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `rgb` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `RGBA` should have a snake case name [INFO] [stdout] --> src/tga.rs:141:9 [INFO] [stdout] | [INFO] [stdout] 141 | pub RGBA: u8, [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `rgba` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TGAFormat` should have an upper case name [INFO] [stdout] --> src/tga.rs:144:11 [INFO] [stdout] | [INFO] [stdout] 144 | pub const TGAFormat: Format = Format { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `TGAFORMAT` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tga.rs:288:13 [INFO] [stdout] | [INFO] [stdout] 288 | let mut footer: &[char] = &[ [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: 48 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from_matrix` [INFO] [stdout] --> src/geometry.rs:121:12 [INFO] [stdout] | [INFO] [stdout] 121 | pub fn from_matrix(m: Matrix) -> Vec3f { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `into_float` [INFO] [stdout] --> src/geometry.rs:137:12 [INFO] [stdout] | [INFO] [stdout] 137 | pub fn into_float(v: Vec3i) -> Vec3f { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `into_int` [INFO] [stdout] --> src/geometry.rs:144:12 [INFO] [stdout] | [INFO] [stdout] 144 | pub fn into_int(v: Vec3f) -> Vec3i { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `Vec3i` [INFO] [stdout] --> src/geometry.rs:274:1 [INFO] [stdout] | [INFO] [stdout] 274 | pub type Vec3i = Vec3D; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from_vec3f` [INFO] [stdout] --> src/geometry.rs:321:12 [INFO] [stdout] | [INFO] [stdout] 321 | pub fn from_vec3f(v: Vec3f) -> Matrix { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `nrows` [INFO] [stdout] --> src/geometry.rs:329:12 [INFO] [stdout] | [INFO] [stdout] 329 | pub fn nrows(&self) -> i32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `ncols` [INFO] [stdout] --> src/geometry.rs:332:12 [INFO] [stdout] | [INFO] [stdout] 332 | pub fn ncols(&self) -> i32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `transpose` [INFO] [stdout] --> src/geometry.rs:344:12 [INFO] [stdout] | [INFO] [stdout] 344 | pub fn transpose(&self) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `inverse` [INFO] [stdout] --> src/geometry.rs:353:12 [INFO] [stdout] | [INFO] [stdout] 353 | pub fn inverse(&self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `diffusemap` [INFO] [stdout] --> src/model.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | diffusemap: TGAImage, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `diffuse` [INFO] [stdout] --> src/model.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn diffuse(&self, uv: Vec2i) -> TGAColor { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `uv` [INFO] [stdout] --> src/model.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn uv(&self, iface: i32, nvert: i32) -> Vec2i { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `norm` [INFO] [stdout] --> src/model.rs:66:12 [INFO] [stdout] | [INFO] [stdout] 66 | pub fn norm(&self, iface: i32, nvert: i32) -> Vec3f { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_bytespp` [INFO] [stdout] --> src/tga.rs:331:12 [INFO] [stdout] | [INFO] [stdout] 331 | pub fn get_bytespp(&self) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_width` [INFO] [stdout] --> src/tga.rs:335:12 [INFO] [stdout] | [INFO] [stdout] 335 | pub fn get_width(&self) -> i32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_height` [INFO] [stdout] --> src/tga.rs:339:12 [INFO] [stdout] | [INFO] [stdout] 339 | pub fn get_height(&self) -> i32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `swap` [INFO] [stdout] --> src/tga.rs:401:8 [INFO] [stdout] | [INFO] [stdout] 401 | pub fn swap(a: &mut T, b: &mut T) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `line` [INFO] [stdout] --> src/tga.rs:407:8 [INFO] [stdout] | [INFO] [stdout] 407 | pub fn line( [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `WHITE` [INFO] [stdout] --> src/tga.rs:444:1 [INFO] [stdout] | [INFO] [stdout] 444 | / pub const WHITE: TGAColor = TGAColor { [INFO] [stdout] 445 | | color_type: ColorType::RGBA(RGBA { [INFO] [stdout] 446 | | r: 255, [INFO] [stdout] 447 | | g: 255, [INFO] [stdout] ... | [INFO] [stdout] 451 | | bytespp: 4, [INFO] [stdout] 452 | | }; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `RED` [INFO] [stdout] --> src/tga.rs:453:1 [INFO] [stdout] | [INFO] [stdout] 453 | / pub const RED: TGAColor = TGAColor { [INFO] [stdout] 454 | | color_type: ColorType::RGBA(RGBA { [INFO] [stdout] 455 | | r: 255, [INFO] [stdout] 456 | | g: 0, [INFO] [stdout] ... | [INFO] [stdout] 460 | | bytespp: 4, [INFO] [stdout] 461 | | }; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `GREEN` [INFO] [stdout] --> src/tga.rs:462:1 [INFO] [stdout] | [INFO] [stdout] 462 | / pub const GREEN: TGAColor = TGAColor { [INFO] [stdout] 463 | | color_type: ColorType::RGBA(RGBA { [INFO] [stdout] 464 | | r: 0, [INFO] [stdout] 465 | | g: 255, [INFO] [stdout] ... | [INFO] [stdout] 469 | | bytespp: 4, [INFO] [stdout] 470 | | }; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `gl_Vertex` should have a snake case name [INFO] [stdout] --> src/main.rs:24:17 [INFO] [stdout] | [INFO] [stdout] 24 | let mut gl_Vertex = embed(&Vec3f::from_slice(&model.data.position[idx])); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `gl_vertex` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ModelView` should have a snake case name [INFO] [stdout] --> src/main.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | let ModelView = lookat(eye, center, up); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `model_view` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ViewPort` should have a snake case name [INFO] [stdout] --> src/main.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | let ViewPort = viewport(WIDTH / 8, HEIGHT / 8, WIDTH * 3 / 4, HEIGHT * 3 / 4); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `view_port` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Projection` should have a snake case name [INFO] [stdout] --> src/main.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | let Projection = projection(-1. / (eye - center).norm()); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `projection` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/geometry.rs:336:17 [INFO] [stdout] | [INFO] [stdout] 336 | let mut E = Matrix::new(Some(dimensions), Some(dimensions)); [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Projection` should have a snake case name [INFO] [stdout] --> src/our_gl.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | let mut Projection = Matrix::identity(4); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `projection` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `A` should have a snake case name [INFO] [stdout] --> src/our_gl.rs:37:20 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn barycentric(A: Vec2f, B: Vec2f, C: Vec2f, P: Vec2f) -> Vec3f { [INFO] [stdout] | ^ help: convert the identifier to snake case: `a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `B` should have a snake case name [INFO] [stdout] --> src/our_gl.rs:37:30 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn barycentric(A: Vec2f, B: Vec2f, C: Vec2f, P: Vec2f) -> Vec3f { [INFO] [stdout] | ^ help: convert the identifier to snake case: `b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `C` should have a snake case name [INFO] [stdout] --> src/our_gl.rs:37:40 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn barycentric(A: Vec2f, B: Vec2f, C: Vec2f, P: Vec2f) -> Vec3f { [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `P` should have a snake case name [INFO] [stdout] --> src/our_gl.rs:37:50 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn barycentric(A: Vec2f, B: Vec2f, C: Vec2f, P: Vec2f) -> Vec3f { [INFO] [stdout] | ^ help: convert the identifier to snake case: `p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `ModelView` should have a snake case name [INFO] [stdout] --> src/our_gl.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | pub ModelView: Matrix, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `model_view` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `ViewPort` should have a snake case name [INFO] [stdout] --> src/our_gl.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 54 | pub ViewPort: Matrix, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `view_port` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Projection` should have a snake case name [INFO] [stdout] --> src/our_gl.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 55 | pub Projection: Matrix, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `projection` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `P` should have a snake case name [INFO] [stdout] --> src/our_gl.rs:72:13 [INFO] [stdout] | [INFO] [stdout] 72 | let mut P = Vec2i::new(); [INFO] [stdout] | ^ help: convert the identifier to snake case: `p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `proj_P` should have a snake case name [INFO] [stdout] --> src/our_gl.rs:77:21 [INFO] [stdout] | [INFO] [stdout] 77 | let mut proj_P = Vec4f::new(); [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `proj_p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Grayscale` should have a snake case name [INFO] [stdout] --> src/tga.rs:139:9 [INFO] [stdout] | [INFO] [stdout] 139 | pub Grayscale: u8, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `grayscale` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `RGB` should have a snake case name [INFO] [stdout] --> src/tga.rs:140:9 [INFO] [stdout] | [INFO] [stdout] 140 | pub RGB: u8, [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `rgb` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `RGBA` should have a snake case name [INFO] [stdout] --> src/tga.rs:141:9 [INFO] [stdout] | [INFO] [stdout] 141 | pub RGBA: u8, [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `rgba` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TGAFormat` should have an upper case name [INFO] [stdout] --> src/tga.rs:144:11 [INFO] [stdout] | [INFO] [stdout] 144 | pub const TGAFormat: Format = Format { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `TGAFORMAT` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 48 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 25s [INFO] running `Command { std: "docker" "inspect" "007daafbd268cf72c410c9209853be69349043be69f3e0e41f98f8bc6a767b10", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "007daafbd268cf72c410c9209853be69349043be69f3e0e41f98f8bc6a767b10", kill_on_drop: false }` [INFO] [stdout] 007daafbd268cf72c410c9209853be69349043be69f3e0e41f98f8bc6a767b10