[INFO] cloning repository https://github.com/GasparLiboreiro/canon_rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/GasparLiboreiro/canon_rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGasparLiboreiro%2Fcanon_rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGasparLiboreiro%2Fcanon_rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b786972643b3fa54385160cd239b576c4ad2f5f3 [INFO] building GasparLiboreiro/canon_rust against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGasparLiboreiro%2Fcanon_rust" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/GasparLiboreiro/canon_rust on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/GasparLiboreiro/canon_rust [INFO] finished tweaking git repo https://github.com/GasparLiboreiro/canon_rust [INFO] tweaked toml for git repo https://github.com/GasparLiboreiro/canon_rust written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/GasparLiboreiro/canon_rust already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f1843aae3221bc1312df51d144dd56becf5c8ecbd3f03821bef7910f35a1bd96 [INFO] running `Command { std: "docker" "start" "-a" "f1843aae3221bc1312df51d144dd56becf5c8ecbd3f03821bef7910f35a1bd96", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f1843aae3221bc1312df51d144dd56becf5c8ecbd3f03821bef7910f35a1bd96", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f1843aae3221bc1312df51d144dd56becf5c8ecbd3f03821bef7910f35a1bd96", kill_on_drop: false }` [INFO] [stdout] f1843aae3221bc1312df51d144dd56becf5c8ecbd3f03821bef7910f35a1bd96 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dtail-expr-drop-order" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] faeba7486a115abb0cd896951565da819e5f1059221ec65bfa8fec6654be578e [INFO] running `Command { std: "docker" "start" "-a" "faeba7486a115abb0cd896951565da819e5f1059221ec65bfa8fec6654be578e", kill_on_drop: false }` [INFO] [stderr] Compiling version-compare v0.1.1 [INFO] [stderr] Compiling libc v0.2.149 [INFO] [stderr] Compiling sdl2 v0.35.2 [INFO] [stderr] Compiling sdl2-sys v0.35.2 [INFO] [stderr] Compiling canon_1iter v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Vec3i` [INFO] [stdout] --> src/canon/modelo/entity.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | Vec3i [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `VideoSubsystem` and `sys::__STDC_IEC_559__` [INFO] [stdout] --> src/canon/vista/mod.rs:1:17 [INFO] [stdout] | [INFO] [stdout] 1 | use sdl2::{Sdl, VideoSubsystem, render::Canvas, video::Window, pixels::Color, EventPump, sys::__STDC_IEC_559__, rect::Point, event::Event... [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::canon::utils::print_matriz4x4` [INFO] [stdout] --> src/canon/vista/mod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::canon::utils::print_matriz4x4; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/canon/vista/mod.rs:4:149 [INFO] [stdout] | [INFO] [stdout] 4 | ...rm, get_traslation_transform}, modelo::entity::{Entity, camara::{self, Camara}}}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Sdl` [INFO] [stdout] --> src/canon/mod.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | use sdl2::{Sdl, event::Event}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/canon/utils.rs:235:9 [INFO] [stdout] | [INFO] [stdout] 235 | let mut matriz2:[f32;4] = [vec.x, vec.y, vec.z, 1.0]; [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 `contador_fps` is assigned to, but never used [INFO] [stdout] --> src/canon/modelo/gameloop.rs:21:17 [INFO] [stdout] | [INFO] [stdout] 21 | let mut contador_fps:u64 = 0; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_contador_fps` instead [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/canon/vista/mod.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | let mut event_queue = sdl_context.event_pump().unwrap(); [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `quit` is never used [INFO] [stdout] --> src/canon/mod.rs:90:12 [INFO] [stdout] | [INFO] [stdout] 25 | impl Canon { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 90 | pub fn quit(&mut self){ [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/canon/utils.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl Vec3 { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 15 | pub fn add(&mut self, x:f32, y:f32, z:f32){ [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn set(&mut self, x:f32, y:f32, z:f32){ [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn setv(&mut self, v:Vec3){ [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn modulo(&self) -> f32{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn distancia(&self, v:Vec3) -> f32{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn inv(&self) -> Vec3{ [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn to_string(&self) -> String{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/canon/utils.rs:73:15 [INFO] [stdout] | [INFO] [stdout] 72 | impl Vec3i { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 73 | pub const NULO:Vec3i = Vec3i{x:0,y:0,z:0}; [INFO] [stdout] | ^^^^ [INFO] [stdout] 74 | [INFO] [stdout] 75 | pub fn new(x:i32,y:i32,z:i32) -> Vec3i{ [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | pub fn add(&mut self, x:i32, y:i32, z:i32){ [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 85 | pub fn set(&mut self, x:i32, y:i32, z:i32){ [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | pub fn modulo(&self) -> f32{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 95 | pub fn distancia(&self, v:Vec3i) -> f32{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | pub fn to_string(&self) -> String{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `NULO`, `add`, `set`, `modulo`, `distancia`, and `to_string` are never used [INFO] [stdout] --> src/canon/utils.rs:117:15 [INFO] [stdout] | [INFO] [stdout] 116 | impl Vec3u { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 117 | pub const NULO:Vec3u = Vec3u{x:0,y:0,z:0}; [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 123 | pub fn add(&mut self, x:u32, y:u32, z:u32){ [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 129 | pub fn set(&mut self, x:u32, y:u32, z:u32){ [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 135 | pub fn modulo(&self) -> f32{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 139 | pub fn distancia(&self, v:Vec3u) -> f32{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 143 | pub fn to_string(&self) -> String{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `NULO`, `add`, `set`, `modulo`, `distancia`, and `to_string` are never used [INFO] [stdout] --> src/canon/utils.rs:160:15 [INFO] [stdout] | [INFO] [stdout] 159 | impl Vec2u { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 160 | pub const NULO:Vec2u = Vec2u{x:0,y:0}; [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 166 | pub fn add(&mut self, x:u32, y:u32){ [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 171 | pub fn set(&mut self, x:u32, y:u32){ [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 176 | pub fn modulo(&self) -> f32{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 180 | pub fn distancia(&self, v:Vec2u) -> f32{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 184 | pub fn to_string(&self) -> String{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_matriz4x4` is never used [INFO] [stdout] --> src/canon/utils.rs:246:8 [INFO] [stdout] | [INFO] [stdout] 246 | pub fn print_matriz4x4(matriz:[[f32;4];4]){ [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `ang` is never read [INFO] [stdout] --> src/canon/modelo/entity.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Entity{ [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 14 | pub ang:Vec3, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `print` is never used [INFO] [stdout] --> src/canon/modelo/entity.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl Entity{ [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn print(&self){ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/canon/modelo/entity.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 48 | impl Mesh { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 49 | pub fn new(vertices:Vec, triangulos:Vec) -> Mesh { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `ang` is never read [INFO] [stdout] --> src/canon/modelo/entity/camara.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Camara { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 6 | pub ang:Vec3, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `sdl_context` is never read [INFO] [stdout] --> src/canon/vista/mod.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct SDLView { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 6 | sdl_context:Sdl, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `startLoop` should have a snake case name [INFO] [stdout] --> src/canon/modelo/gameloop.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn startLoop(game:&mut Canon){ [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `start_loop` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.12s [INFO] running `Command { std: "docker" "inspect" "faeba7486a115abb0cd896951565da819e5f1059221ec65bfa8fec6654be578e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "faeba7486a115abb0cd896951565da819e5f1059221ec65bfa8fec6654be578e", kill_on_drop: false }` [INFO] [stdout] faeba7486a115abb0cd896951565da819e5f1059221ec65bfa8fec6654be578e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dtail-expr-drop-order" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b2a2028b1da7afeb2b935eadced057a1bcdaa72461c228b09aef031c675179c5 [INFO] running `Command { std: "docker" "start" "-a" "b2a2028b1da7afeb2b935eadced057a1bcdaa72461c228b09aef031c675179c5", kill_on_drop: false }` [INFO] [stderr] Compiling canon_1iter v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Vec3i` [INFO] [stdout] --> src/canon/modelo/entity.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | Vec3i [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `VideoSubsystem` and `sys::__STDC_IEC_559__` [INFO] [stdout] --> src/canon/vista/mod.rs:1:17 [INFO] [stdout] | [INFO] [stdout] 1 | use sdl2::{Sdl, VideoSubsystem, render::Canvas, video::Window, pixels::Color, EventPump, sys::__STDC_IEC_559__, rect::Point, event::Event... [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::canon::utils::print_matriz4x4` [INFO] [stdout] --> src/canon/vista/mod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::canon::utils::print_matriz4x4; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/canon/vista/mod.rs:4:149 [INFO] [stdout] | [INFO] [stdout] 4 | ...rm, get_traslation_transform}, modelo::entity::{Entity, camara::{self, Camara}}}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Sdl` [INFO] [stdout] --> src/canon/mod.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | use sdl2::{Sdl, event::Event}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/canon/utils.rs:235:9 [INFO] [stdout] | [INFO] [stdout] 235 | let mut matriz2:[f32;4] = [vec.x, vec.y, vec.z, 1.0]; [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 `contador_fps` is assigned to, but never used [INFO] [stdout] --> src/canon/modelo/gameloop.rs:21:17 [INFO] [stdout] | [INFO] [stdout] 21 | let mut contador_fps:u64 = 0; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_contador_fps` instead [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/canon/vista/mod.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | let mut event_queue = sdl_context.event_pump().unwrap(); [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `quit` is never used [INFO] [stdout] --> src/canon/mod.rs:90:12 [INFO] [stdout] | [INFO] [stdout] 25 | impl Canon { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 90 | pub fn quit(&mut self){ [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/canon/utils.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl Vec3 { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 15 | pub fn add(&mut self, x:f32, y:f32, z:f32){ [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn set(&mut self, x:f32, y:f32, z:f32){ [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn setv(&mut self, v:Vec3){ [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn modulo(&self) -> f32{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn distancia(&self, v:Vec3) -> f32{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn inv(&self) -> Vec3{ [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn to_string(&self) -> String{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/canon/utils.rs:73:15 [INFO] [stdout] | [INFO] [stdout] 72 | impl Vec3i { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 73 | pub const NULO:Vec3i = Vec3i{x:0,y:0,z:0}; [INFO] [stdout] | ^^^^ [INFO] [stdout] 74 | [INFO] [stdout] 75 | pub fn new(x:i32,y:i32,z:i32) -> Vec3i{ [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | pub fn add(&mut self, x:i32, y:i32, z:i32){ [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 85 | pub fn set(&mut self, x:i32, y:i32, z:i32){ [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | pub fn modulo(&self) -> f32{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 95 | pub fn distancia(&self, v:Vec3i) -> f32{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | pub fn to_string(&self) -> String{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `NULO`, `add`, `set`, `modulo`, `distancia`, and `to_string` are never used [INFO] [stdout] --> src/canon/utils.rs:117:15 [INFO] [stdout] | [INFO] [stdout] 116 | impl Vec3u { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 117 | pub const NULO:Vec3u = Vec3u{x:0,y:0,z:0}; [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 123 | pub fn add(&mut self, x:u32, y:u32, z:u32){ [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 129 | pub fn set(&mut self, x:u32, y:u32, z:u32){ [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 135 | pub fn modulo(&self) -> f32{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 139 | pub fn distancia(&self, v:Vec3u) -> f32{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 143 | pub fn to_string(&self) -> String{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `NULO`, `add`, `set`, `modulo`, `distancia`, and `to_string` are never used [INFO] [stdout] --> src/canon/utils.rs:160:15 [INFO] [stdout] | [INFO] [stdout] 159 | impl Vec2u { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 160 | pub const NULO:Vec2u = Vec2u{x:0,y:0}; [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 166 | pub fn add(&mut self, x:u32, y:u32){ [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 171 | pub fn set(&mut self, x:u32, y:u32){ [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 176 | pub fn modulo(&self) -> f32{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 180 | pub fn distancia(&self, v:Vec2u) -> f32{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 184 | pub fn to_string(&self) -> String{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_matriz4x4` is never used [INFO] [stdout] --> src/canon/utils.rs:246:8 [INFO] [stdout] | [INFO] [stdout] 246 | pub fn print_matriz4x4(matriz:[[f32;4];4]){ [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `ang` is never read [INFO] [stdout] --> src/canon/modelo/entity.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Entity{ [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 14 | pub ang:Vec3, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `print` is never used [INFO] [stdout] --> src/canon/modelo/entity.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl Entity{ [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn print(&self){ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/canon/modelo/entity.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 48 | impl Mesh { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 49 | pub fn new(vertices:Vec, triangulos:Vec) -> Mesh { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `ang` is never read [INFO] [stdout] --> src/canon/modelo/entity/camara.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Camara { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 6 | pub ang:Vec3, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `sdl_context` is never read [INFO] [stdout] --> src/canon/vista/mod.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct SDLView { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 6 | sdl_context:Sdl, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `startLoop` should have a snake case name [INFO] [stdout] --> src/canon/modelo/gameloop.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn startLoop(game:&mut Canon){ [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `start_loop` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.15s [INFO] running `Command { std: "docker" "inspect" "b2a2028b1da7afeb2b935eadced057a1bcdaa72461c228b09aef031c675179c5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b2a2028b1da7afeb2b935eadced057a1bcdaa72461c228b09aef031c675179c5", kill_on_drop: false }` [INFO] [stdout] b2a2028b1da7afeb2b935eadced057a1bcdaa72461c228b09aef031c675179c5