[INFO] cloning repository https://github.com/pcleavelin/rust_rasterizer [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/pcleavelin/rust_rasterizer" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpcleavelin%2Frust_rasterizer", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpcleavelin%2Frust_rasterizer'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5c65229e5ba871adfc4a56d43e08296c404a28f4 [INFO] checking pcleavelin/rust_rasterizer against try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpcleavelin%2Frust_rasterizer" "/workspace/builds/worker-9/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-9/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/pcleavelin/rust_rasterizer on toolchain 8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/pcleavelin/rust_rasterizer [INFO] finished tweaking git repo https://github.com/pcleavelin/rust_rasterizer [INFO] tweaked toml for git repo https://github.com/pcleavelin/rust_rasterizer written to /workspace/builds/worker-9/source/Cargo.toml [INFO] crate git repo https://github.com/pcleavelin/rust_rasterizer already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded text_io v0.1.6 [INFO] [stderr] Downloaded sdl2 v0.28.0 [INFO] [stderr] Downloaded num v0.1.37 [INFO] [stderr] Downloaded unborrow v0.3.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 201c0fc434a8f14ef5497f9e3fe5176f287921f7dae05448573abdba89f2a89f [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "201c0fc434a8f14ef5497f9e3fe5176f287921f7dae05448573abdba89f2a89f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "201c0fc434a8f14ef5497f9e3fe5176f287921f7dae05448573abdba89f2a89f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "201c0fc434a8f14ef5497f9e3fe5176f287921f7dae05448573abdba89f2a89f", kill_on_drop: false }` [INFO] [stdout] 201c0fc434a8f14ef5497f9e3fe5176f287921f7dae05448573abdba89f2a89f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9fd63336aa79d4353f76937bd69f411da3c406b17c0ef742e120758d9dba1306 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "9fd63336aa79d4353f76937bd69f411da3c406b17c0ef742e120758d9dba1306", kill_on_drop: false }` [INFO] [stderr] Checking lazy_static v0.2.8 [INFO] [stderr] Checking text_io v0.1.6 [INFO] [stderr] Checking unborrow v0.3.1 [INFO] [stderr] Compiling sdl2-sys v0.27.3 [INFO] [stderr] Checking num v0.1.37 [INFO] [stderr] Checking sdl2 v0.28.0 [INFO] [stderr] Checking SoftwareRasterizer v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/main.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | #[macro_use] extern crate unborrow; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sdl2::rect::Point` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use sdl2::rect::Point; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::prelude` [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::io::prelude; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem::swap` [INFO] [stdout] --> src/pointf.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::mem::swap; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/main.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | #[macro_use] extern crate unborrow; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sdl2::rect::Point` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use sdl2::rect::Point; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::prelude` [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::io::prelude; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem::swap` [INFO] [stdout] --> src/pointf.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::mem::swap; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:76:67 [INFO] [stdout] | [INFO] [stdout] 76 | Err(why) => panic!("failed to open {}, {}", path.display(), why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:76:67 [INFO] [stdout] | [INFO] [stdout] 76 | Err(why) => panic!("failed to open {}, {}", path.display(), why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `contents` [INFO] [stdout] --> src/main.rs:79:6 [INFO] [stdout] | [INFO] [stdout] 79 | let mut contents = String::new(); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_contents` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sdl_context` [INFO] [stdout] --> src/main.rs:81:7 [INFO] [stdout] | [INFO] [stdout] 81 | let (mut sdl_context, mut sdl_video, mut renderer, mut event_pump) = create_sdl(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sdl_context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sdl_video` [INFO] [stdout] --> src/main.rs:81:24 [INFO] [stdout] | [INFO] [stdout] 81 | let (mut sdl_context, mut sdl_video, mut renderer, mut event_pump) = create_sdl(); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sdl_video` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `x2` is never read [INFO] [stdout] --> src/main.rs:84:23 [INFO] [stdout] | [INFO] [stdout] 84 | let (mut x1, mut z1, mut x2, mut z2) = (0f32,0f32,0f32,0f32); [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 `z2` is never read [INFO] [stdout] --> src/main.rs:84:31 [INFO] [stdout] | [INFO] [stdout] 84 | let (mut x1, mut z1, mut x2, mut z2) = (0f32,0f32,0f32,0f32); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `tri1` is never read [INFO] [stdout] --> src/main.rs:132:6 [INFO] [stdout] | [INFO] [stdout] 132 | let mut tri1 = Triangle2D::new(v0.xy(), v1.xy(), v2.xy()); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_moving_vert` [INFO] [stdout] --> src/main.rs:135:6 [INFO] [stdout] | [INFO] [stdout] 135 | let mut is_moving_vert = false; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_moving_vert` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/main.rs:154:25 [INFO] [stdout] | [INFO] [stdout] 154 | Event::MouseMotion {x, y, mousestate, xrel, yrel, ..} => { [INFO] [stdout] | ^ help: try ignoring the field: `x: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/main.rs:154:28 [INFO] [stdout] | [INFO] [stdout] 154 | Event::MouseMotion {x, y, mousestate, xrel, yrel, ..} => { [INFO] [stdout] | ^ help: try ignoring the field: `y: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `yrel` [INFO] [stdout] --> src/main.rs:154:49 [INFO] [stdout] | [INFO] [stdout] 154 | Event::MouseMotion {x, y, mousestate, xrel, yrel, ..} => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `yrel: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tri2` [INFO] [stdout] --> src/main.rs:269:8 [INFO] [stdout] | [INFO] [stdout] 269 | let tri2 = Triangle2D::new(v0.xy(), v1.xy(), old_v2.xy()); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_tri2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fix1` [INFO] [stdout] --> src/main.rs:271:9 [INFO] [stdout] | [INFO] [stdout] 271 | let (fix1, fix2) = fix_triangle(&mut tri1); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_fix1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fix2` [INFO] [stdout] --> src/main.rs:271:15 [INFO] [stdout] | [INFO] [stdout] 271 | let (fix1, fix2) = fix_triangle(&mut tri1); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_fix2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fix1` [INFO] [stdout] --> src/main.rs:297:11 [INFO] [stdout] | [INFO] [stdout] 297 | let (fix1, fix2) = fix_triangle(&screen_tri_2); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_fix1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fix2` [INFO] [stdout] --> src/main.rs:297:17 [INFO] [stdout] | [INFO] [stdout] 297 | let (fix1, fix2) = fix_triangle(&screen_tri_2); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_fix2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `correct_v1` [INFO] [stdout] --> src/pointf.rs:173:7 [INFO] [stdout] | [INFO] [stdout] 173 | let correct_v1: Point3f; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_correct_v1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `correct_v2` [INFO] [stdout] --> src/pointf.rs:174:7 [INFO] [stdout] | [INFO] [stdout] 174 | let correct_v2: Point3f; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_correct_v2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `slope_left` is never read [INFO] [stdout] --> src/triangle.rs:318:6 [INFO] [stdout] | [INFO] [stdout] 318 | let mut slope_left = 0.0; //sort_tri.v0().slope(&sort_tri.v1()); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `slope_right` is never read [INFO] [stdout] --> src/triangle.rs:319:6 [INFO] [stdout] | [INFO] [stdout] 319 | let mut slope_right = 0.0; //sort_tri.v0().slope(&sort_tri.v2()); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `xoffset` [INFO] [stdout] --> src/triangle.rs:315:45 [INFO] [stdout] | [INFO] [stdout] 315 | pub fn draw_triangle_solid(tri: Triangle2D, xoffset: i32, yoffset: i32, color: Color, texture: &mut render::Texture) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_xoffset` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `yoffset` [INFO] [stdout] --> src/triangle.rs:315:59 [INFO] [stdout] | [INFO] [stdout] 315 | pub fn draw_triangle_solid(tri: Triangle2D, xoffset: i32, yoffset: i32, color: Color, texture: &mut render::Texture) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_yoffset` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `slope_left` is never read [INFO] [stdout] --> src/triangle.rs:389:6 [INFO] [stdout] | [INFO] [stdout] 389 | let mut slope_left = 0.0; //sort_tri.v0().slope(&sort_tri.v1()); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `slope_right` is never read [INFO] [stdout] --> src/triangle.rs:390:6 [INFO] [stdout] | [INFO] [stdout] 390 | let mut slope_right = 0.0; //sort_tri.v0().slope(&sort_tri.v2()); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `contents` [INFO] [stdout] --> src/main.rs:79:6 [INFO] [stdout] | [INFO] [stdout] 79 | let mut contents = String::new(); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_contents` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sdl_context` [INFO] [stdout] --> src/main.rs:81:7 [INFO] [stdout] | [INFO] [stdout] 81 | let (mut sdl_context, mut sdl_video, mut renderer, mut event_pump) = create_sdl(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sdl_context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sdl_video` [INFO] [stdout] --> src/main.rs:81:24 [INFO] [stdout] | [INFO] [stdout] 81 | let (mut sdl_context, mut sdl_video, mut renderer, mut event_pump) = create_sdl(); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sdl_video` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `x2` is never read [INFO] [stdout] --> src/main.rs:84:23 [INFO] [stdout] | [INFO] [stdout] 84 | let (mut x1, mut z1, mut x2, mut z2) = (0f32,0f32,0f32,0f32); [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 `z2` is never read [INFO] [stdout] --> src/main.rs:84:31 [INFO] [stdout] | [INFO] [stdout] 84 | let (mut x1, mut z1, mut x2, mut z2) = (0f32,0f32,0f32,0f32); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `tri1` is never read [INFO] [stdout] --> src/main.rs:132:6 [INFO] [stdout] | [INFO] [stdout] 132 | let mut tri1 = Triangle2D::new(v0.xy(), v1.xy(), v2.xy()); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_moving_vert` [INFO] [stdout] --> src/main.rs:135:6 [INFO] [stdout] | [INFO] [stdout] 135 | let mut is_moving_vert = false; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_moving_vert` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/main.rs:154:25 [INFO] [stdout] | [INFO] [stdout] 154 | Event::MouseMotion {x, y, mousestate, xrel, yrel, ..} => { [INFO] [stdout] | ^ help: try ignoring the field: `x: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/main.rs:154:28 [INFO] [stdout] | [INFO] [stdout] 154 | Event::MouseMotion {x, y, mousestate, xrel, yrel, ..} => { [INFO] [stdout] | ^ help: try ignoring the field: `y: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `yrel` [INFO] [stdout] --> src/main.rs:154:49 [INFO] [stdout] | [INFO] [stdout] 154 | Event::MouseMotion {x, y, mousestate, xrel, yrel, ..} => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `yrel: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tri2` [INFO] [stdout] --> src/main.rs:269:8 [INFO] [stdout] | [INFO] [stdout] 269 | let tri2 = Triangle2D::new(v0.xy(), v1.xy(), old_v2.xy()); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_tri2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fix1` [INFO] [stdout] --> src/main.rs:271:9 [INFO] [stdout] | [INFO] [stdout] 271 | let (fix1, fix2) = fix_triangle(&mut tri1); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_fix1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fix2` [INFO] [stdout] --> src/main.rs:271:15 [INFO] [stdout] | [INFO] [stdout] 271 | let (fix1, fix2) = fix_triangle(&mut tri1); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_fix2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fix1` [INFO] [stdout] --> src/main.rs:297:11 [INFO] [stdout] | [INFO] [stdout] 297 | let (fix1, fix2) = fix_triangle(&screen_tri_2); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_fix1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fix2` [INFO] [stdout] --> src/main.rs:297:17 [INFO] [stdout] | [INFO] [stdout] 297 | let (fix1, fix2) = fix_triangle(&screen_tri_2); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_fix2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `correct_v1` [INFO] [stdout] --> src/pointf.rs:173:7 [INFO] [stdout] | [INFO] [stdout] 173 | let correct_v1: Point3f; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_correct_v1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `correct_v2` [INFO] [stdout] --> src/pointf.rs:174:7 [INFO] [stdout] | [INFO] [stdout] 174 | let correct_v2: Point3f; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_correct_v2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `slope_left` is never read [INFO] [stdout] --> src/triangle.rs:318:6 [INFO] [stdout] | [INFO] [stdout] 318 | let mut slope_left = 0.0; //sort_tri.v0().slope(&sort_tri.v1()); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `slope_right` is never read [INFO] [stdout] --> src/triangle.rs:319:6 [INFO] [stdout] | [INFO] [stdout] 319 | let mut slope_right = 0.0; //sort_tri.v0().slope(&sort_tri.v2()); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `xoffset` [INFO] [stdout] --> src/triangle.rs:315:45 [INFO] [stdout] | [INFO] [stdout] 315 | pub fn draw_triangle_solid(tri: Triangle2D, xoffset: i32, yoffset: i32, color: Color, texture: &mut render::Texture) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_xoffset` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `yoffset` [INFO] [stdout] --> src/triangle.rs:315:59 [INFO] [stdout] | [INFO] [stdout] 315 | pub fn draw_triangle_solid(tri: Triangle2D, xoffset: i32, yoffset: i32, color: Color, texture: &mut render::Texture) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_yoffset` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `slope_left` is never read [INFO] [stdout] --> src/triangle.rs:389:6 [INFO] [stdout] | [INFO] [stdout] 389 | let mut slope_left = 0.0; //sort_tri.v0().slope(&sort_tri.v1()); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `slope_right` is never read [INFO] [stdout] --> src/triangle.rs:390:6 [INFO] [stdout] | [INFO] [stdout] 390 | let mut slope_right = 0.0; //sort_tri.v0().slope(&sort_tri.v2()); [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/main.rs:43:6 [INFO] [stdout] | [INFO] [stdout] 43 | let mut win_builder = sdl_video.window("Triangle2D Partitioning", 1920, 1080); [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:43:6 [INFO] [stdout] | [INFO] [stdout] 43 | let mut win_builder = sdl_video.window("Triangle2D Partitioning", 1920, 1080); [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:58:6 [INFO] [stdout] | [INFO] [stdout] 58 | let mut renderer = match render_builder.build() { [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:58:6 [INFO] [stdout] | [INFO] [stdout] 58 | let mut renderer = match render_builder.build() { [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:74:6 [INFO] [stdout] | [INFO] [stdout] 74 | let mut map_file = match File::open(&path) { [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:78:6 [INFO] [stdout] | [INFO] [stdout] 78 | let mut buf_reader = BufReader::new(map_file); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:79:6 [INFO] [stdout] | [INFO] [stdout] 79 | let mut contents = String::new(); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:81:7 [INFO] [stdout] | [INFO] [stdout] 81 | let (mut sdl_context, mut sdl_video, mut renderer, mut event_pump) = create_sdl(); [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:81:24 [INFO] [stdout] | [INFO] [stdout] 81 | let (mut sdl_context, mut sdl_video, mut renderer, mut event_pump) = create_sdl(); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:107:9 [INFO] [stdout] | [INFO] [stdout] 107 | let mut index = triangles.len(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:135:6 [INFO] [stdout] | [INFO] [stdout] 135 | let mut is_moving_vert = false; [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:144:6 [INFO] [stdout] | [INFO] [stdout] 144 | let mut texture = renderer.create_texture_streaming(pixels::PixelFormatEnum::RGB24, 1920, 1080).unwrap(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:74:6 [INFO] [stdout] | [INFO] [stdout] 74 | let mut map_file = match File::open(&path) { [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:78:6 [INFO] [stdout] | [INFO] [stdout] 78 | let mut buf_reader = BufReader::new(map_file); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:79:6 [INFO] [stdout] | [INFO] [stdout] 79 | let mut contents = String::new(); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:81:7 [INFO] [stdout] | [INFO] [stdout] 81 | let (mut sdl_context, mut sdl_video, mut renderer, mut event_pump) = create_sdl(); [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:81:24 [INFO] [stdout] | [INFO] [stdout] 81 | let (mut sdl_context, mut sdl_video, mut renderer, mut event_pump) = create_sdl(); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/pointf.rs:156:7 [INFO] [stdout] | [INFO] [stdout] 156 | let mut e = Point3f::new((1920.0 / 2.0) * self.x / self.z, [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:107:9 [INFO] [stdout] | [INFO] [stdout] 107 | let mut index = triangles.len(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/pointf.rs:160:7 [INFO] [stdout] | [INFO] [stdout] 160 | let mut b = Point3f::new(1920.0 / 2.0 + ((e.z() / self.z) * self.x - e.x()), [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:135:6 [INFO] [stdout] | [INFO] [stdout] 135 | let mut is_moving_vert = false; [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:144:6 [INFO] [stdout] | [INFO] [stdout] 144 | let mut texture = renderer.create_texture_streaming(pixels::PixelFormatEnum::RGB24, 1920, 1080).unwrap(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/triangle.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 54 | let mut plane_1 = Point3f::intersect_plane(v0,v2, Point3f::new(0.0,0.0,-1.0)); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/triangle.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 55 | let mut plane_2 = Point3f::intersect_plane(v1,v2, Point3f::new(0.0,0.0,-1.0)); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/triangle.rs:87:9 [INFO] [stdout] | [INFO] [stdout] 87 | let mut plane_1 = Point3f::intersect_plane(v0,v1, Point3f::new(0.0,0.0,-1.0)); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/triangle.rs:88:9 [INFO] [stdout] | [INFO] [stdout] 88 | let mut plane_2 = Point3f::intersect_plane(v0,v2, Point3f::new(0.0,0.0,-1.0)); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/pointf.rs:156:7 [INFO] [stdout] | [INFO] [stdout] 156 | let mut e = Point3f::new((1920.0 / 2.0) * self.x / self.z, [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/pointf.rs:160:7 [INFO] [stdout] | [INFO] [stdout] 160 | let mut b = Point3f::new(1920.0 / 2.0 + ((e.z() / self.z) * self.x - e.x()), [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/triangle.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 54 | let mut plane_1 = Point3f::intersect_plane(v0,v2, Point3f::new(0.0,0.0,-1.0)); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/triangle.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 55 | let mut plane_2 = Point3f::intersect_plane(v1,v2, Point3f::new(0.0,0.0,-1.0)); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/triangle.rs:87:9 [INFO] [stdout] | [INFO] [stdout] 87 | let mut plane_1 = Point3f::intersect_plane(v0,v1, Point3f::new(0.0,0.0,-1.0)); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/triangle.rs:88:9 [INFO] [stdout] | [INFO] [stdout] 88 | let mut plane_2 = Point3f::intersect_plane(v0,v2, Point3f::new(0.0,0.0,-1.0)); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_y` [INFO] [stdout] --> src/pointf.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn set_y(&mut self, y: f32) { [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: `set_y` [INFO] [stdout] --> src/pointf.rs:220:9 [INFO] [stdout] | [INFO] [stdout] 220 | pub fn set_y(&mut self, y: f32) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `v0` [INFO] [stdout] --> src/triangle.rs:112:9 [INFO] [stdout] | [INFO] [stdout] 112 | pub fn v0(&self) -> Point3f { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `v1` [INFO] [stdout] --> src/triangle.rs:116:9 [INFO] [stdout] | [INFO] [stdout] 116 | pub fn v1(&self) -> Point3f { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `v2` [INFO] [stdout] --> src/triangle.rs:120:9 [INFO] [stdout] | [INFO] [stdout] 120 | pub fn v2(&self) -> Point3f { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `vxs` [INFO] [stdout] --> src/triangle.rs:233:4 [INFO] [stdout] | [INFO] [stdout] 233 | fn vxs(x1: f32, y1: f32, x2: f32, y2: f32) -> f32 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `intersect` [INFO] [stdout] --> src/triangle.rs:237:4 [INFO] [stdout] | [INFO] [stdout] 237 | fn intersect(v1: Point3f, v2: Point3f, v3: Point3f, v4: Point3f) -> Point3f { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `draw_triangle_solid` [INFO] [stdout] --> src/triangle.rs:315:8 [INFO] [stdout] | [INFO] [stdout] 315 | pub fn draw_triangle_solid(tri: Triangle2D, xoffset: i32, yoffset: i32, color: Color, texture: &mut render::Texture) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message contains braces [INFO] [stdout] --> src/main.rs:94:5 [INFO] [stdout] | [INFO] [stdout] 94 | scan!(line.bytes() => "vertex {}, {}", x1, z1); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_fmt_panic)]` on by default [INFO] [stdout] = note: this message is not used as a format string, but will be in Rust 2021 [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message contains braces [INFO] [stdout] --> src/main.rs:94:5 [INFO] [stdout] | [INFO] [stdout] 94 | scan!(line.bytes() => "vertex {}, {}", x1, z1); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this message is not used as a format string, but will be in Rust 2021 [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message contains braces [INFO] [stdout] --> src/main.rs:96:5 [INFO] [stdout] | [INFO] [stdout] 96 | scan!(line.bytes() => "vertex {}, {}", x2, z2); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this message is not used as a format string, but will be in Rust 2021 [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message contains braces [INFO] [stdout] --> src/main.rs:123:4 [INFO] [stdout] | [INFO] [stdout] 123 | scan!(line.bytes() => "sector : {}, {}", y1, y2); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this message is not used as a format string, but will be in Rust 2021 [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `SoftwareRasterizer` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] = help: convert the identifier to snake case: `software_rasterizer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_y` [INFO] [stdout] --> src/pointf.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn set_y(&mut self, y: f32) { [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: `set_y` [INFO] [stdout] --> src/pointf.rs:220:9 [INFO] [stdout] | [INFO] [stdout] 220 | pub fn set_y(&mut self, y: f32) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `v0` [INFO] [stdout] --> src/triangle.rs:112:9 [INFO] [stdout] | [INFO] [stdout] 112 | pub fn v0(&self) -> Point3f { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `v1` [INFO] [stdout] --> src/triangle.rs:116:9 [INFO] [stdout] | [INFO] [stdout] 116 | pub fn v1(&self) -> Point3f { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `v2` [INFO] [stdout] --> src/triangle.rs:120:9 [INFO] [stdout] | [INFO] [stdout] 120 | pub fn v2(&self) -> Point3f { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `vxs` [INFO] [stdout] --> src/triangle.rs:233:4 [INFO] [stdout] | [INFO] [stdout] 233 | fn vxs(x1: f32, y1: f32, x2: f32, y2: f32) -> f32 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `intersect` [INFO] [stdout] --> src/triangle.rs:237:4 [INFO] [stdout] | [INFO] [stdout] 237 | fn intersect(v1: Point3f, v2: Point3f, v3: Point3f, v4: Point3f) -> Point3f { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `draw_triangle_solid` [INFO] [stdout] --> src/triangle.rs:315:8 [INFO] [stdout] | [INFO] [stdout] 315 | pub fn draw_triangle_solid(tri: Triangle2D, xoffset: i32, yoffset: i32, color: Color, texture: &mut render::Texture) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message contains braces [INFO] [stdout] --> src/main.rs:94:5 [INFO] [stdout] | [INFO] [stdout] 94 | scan!(line.bytes() => "vertex {}, {}", x1, z1); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_fmt_panic)]` on by default [INFO] [stdout] = note: this message is not used as a format string, but will be in Rust 2021 [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message contains braces [INFO] [stdout] --> src/main.rs:94:5 [INFO] [stdout] | [INFO] [stdout] 94 | scan!(line.bytes() => "vertex {}, {}", x1, z1); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this message is not used as a format string, but will be in Rust 2021 [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message contains braces [INFO] [stdout] --> src/main.rs:96:5 [INFO] [stdout] | [INFO] [stdout] 96 | scan!(line.bytes() => "vertex {}, {}", x2, z2); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this message is not used as a format string, but will be in Rust 2021 [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message contains braces [INFO] [stdout] --> src/main.rs:123:4 [INFO] [stdout] | [INFO] [stdout] 123 | scan!(line.bytes() => "sector : {}, {}", y1, y2); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this message is not used as a format string, but will be in Rust 2021 [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `SoftwareRasterizer` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] = help: convert the identifier to snake case: `software_rasterizer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/triangle.rs:286:4 [INFO] [stdout] | [INFO] [stdout] 286 | ... renderer.draw_line(sdl2::rect::Point::new(x as i32 + xoffset, y as i32 + yoffset), sdl2::rect::Point::new(x1 as i32 + xoffset, y1 as i32 + yoffset)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/triangle.rs:290:4 [INFO] [stdout] | [INFO] [stdout] 290 | ... renderer.draw_line(sdl2::rect::Point::new(x as i32 + xoffset, y as i32 + yoffset), sdl2::rect::Point::new(x1 as i32 + xoffset, y1 as i32 + yoffset)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/triangle.rs:311:3 [INFO] [stdout] | [INFO] [stdout] 311 | renderer.draw_rect(sdl2::rect::Rect::new(x as i32 - 4 + xoffset,y as i32 - 4 + yoffset, 8, 8)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/triangle.rs:440:3 [INFO] [stdout] | [INFO] [stdout] 440 | ... renderer.draw_line(sdl2::rect::Point::new(begin_x + xoffset, y + begin + yoffset), sdl2::rect::Point::new(end_x + xoffset, y + begin + yoffset)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/triangle.rs:286:4 [INFO] [stdout] | [INFO] [stdout] 286 | ... renderer.draw_line(sdl2::rect::Point::new(x as i32 + xoffset, y as i32 + yoffset), sdl2::rect::Point::new(x1 as i32 + xoffset, y1 as i32 + yoffset)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/triangle.rs:290:4 [INFO] [stdout] | [INFO] [stdout] 290 | ... renderer.draw_line(sdl2::rect::Point::new(x as i32 + xoffset, y as i32 + yoffset), sdl2::rect::Point::new(x1 as i32 + xoffset, y1 as i32 + yoffset)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/triangle.rs:311:3 [INFO] [stdout] | [INFO] [stdout] 311 | renderer.draw_rect(sdl2::rect::Rect::new(x as i32 - 4 + xoffset,y as i32 - 4 + yoffset, 8, 8)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/triangle.rs:440:3 [INFO] [stdout] | [INFO] [stdout] 440 | ... renderer.draw_line(sdl2::rect::Point::new(begin_x + xoffset, y + begin + yoffset), sdl2::rect::Point::new(end_x + xoffset, y + begin + yoffset)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 61 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 61 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 5.25s [INFO] running `Command { std: "docker" "inspect" "9fd63336aa79d4353f76937bd69f411da3c406b17c0ef742e120758d9dba1306", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9fd63336aa79d4353f76937bd69f411da3c406b17c0ef742e120758d9dba1306", kill_on_drop: false }` [INFO] [stdout] 9fd63336aa79d4353f76937bd69f411da3c406b17c0ef742e120758d9dba1306