[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] checking GasparLiboreiro/canon_rust/b786972643b3fa54385160cd239b576c4ad2f5f3 against master#42f4793e5a514858221b07ac379029d90353913e for pr-148952 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGasparLiboreiro%2Fcanon_rust" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [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-3-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/GasparLiboreiro/canon_rust on toolchain 42f4793e5a514858221b07ac379029d90353913e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+42f4793e5a514858221b07ac379029d90353913e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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" "+42f4793e5a514858221b07ac379029d90353913e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+42f4793e5a514858221b07ac379029d90353913e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c7dc43943ad1db03e2fc4cf2d87736426302dc62975aaf25f76d507a9347afa2 [INFO] running `Command { std: "docker" "start" "-a" "c7dc43943ad1db03e2fc4cf2d87736426302dc62975aaf25f76d507a9347afa2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c7dc43943ad1db03e2fc4cf2d87736426302dc62975aaf25f76d507a9347afa2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c7dc43943ad1db03e2fc4cf2d87736426302dc62975aaf25f76d507a9347afa2", kill_on_drop: false }` [INFO] [stdout] c7dc43943ad1db03e2fc4cf2d87736426302dc62975aaf25f76d507a9347afa2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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" "-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+42f4793e5a514858221b07ac379029d90353913e" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0494dcd8f6ae9d5ee1176329c20b10bc60a9ae1ce1ce45cd5649098103bc54f5 [INFO] running `Command { std: "docker" "start" "-a" "0494dcd8f6ae9d5ee1176329c20b10bc60a9ae1ce1ce45cd5649098103bc54f5", 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] Checking 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)]` (part of `#[warn(unused)]`) 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::E... [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 | ..., 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: 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)]` (part of `#[warn(unused)]`) 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::E... [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 | ..., 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)]` (part of `#[warn(unused)]`) 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:13 [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)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `contador_fps` is never read [INFO] [stdout] --> src/canon/modelo/gameloop.rs:31:13 [INFO] [stdout] | [INFO] [stdout] 31 | contador_fps+=1; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `contador_fps` is never read [INFO] [stdout] --> src/canon/modelo/gameloop.rs:48:21 [INFO] [stdout] | [INFO] [stdout] 48 | contador_fps = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/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)]` (part of `#[warn(unused)]`) 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: struct `Vec3i` is never constructed [INFO] [stdout] --> src/canon/utils.rs:66:12 [INFO] [stdout] | [INFO] [stdout] 66 | pub struct Vec3i { [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)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/canon/vista/mod.rs:45:22 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn poll_iter(&mut self) -> EventPollIterator{ [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 45 | pub fn poll_iter(&mut self) -> EventPollIterator<'_>{ [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)]` (part of `#[warn(unused)]`) 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:13 [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)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `contador_fps` is never read [INFO] [stdout] --> src/canon/modelo/gameloop.rs:31:13 [INFO] [stdout] | [INFO] [stdout] 31 | contador_fps+=1; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `contador_fps` is never read [INFO] [stdout] --> src/canon/modelo/gameloop.rs:48:21 [INFO] [stdout] | [INFO] [stdout] 48 | contador_fps = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/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)]` (part of `#[warn(unused)]`) 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: struct `Vec3i` is never constructed [INFO] [stdout] --> src/canon/utils.rs:66:12 [INFO] [stdout] | [INFO] [stdout] 66 | pub struct Vec3i { [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)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/canon/vista/mod.rs:45:22 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn poll_iter(&mut self) -> EventPollIterator{ [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 45 | pub fn poll_iter(&mut self) -> EventPollIterator<'_>{ [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.37s [INFO] running `Command { std: "docker" "inspect" "0494dcd8f6ae9d5ee1176329c20b10bc60a9ae1ce1ce45cd5649098103bc54f5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0494dcd8f6ae9d5ee1176329c20b10bc60a9ae1ce1ce45cd5649098103bc54f5", kill_on_drop: false }` [INFO] [stdout] 0494dcd8f6ae9d5ee1176329c20b10bc60a9ae1ce1ce45cd5649098103bc54f5