[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] [stderr] error: copy-fd: write returned: No space left on device [INFO] [stderr] fatal: cannot copy '/usr/share/git-core/templates/hooks/fsmonitor-watchman.sample' to '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpcleavelin%2Frust_rasterizer/hooks/fsmonitor-watchman.sample': No space left on device [WARN] Retrying crate fetch in 3 seconds (attempt 1) [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] building pcleavelin/rust_rasterizer 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%2Fpcleavelin%2Frust_rasterizer" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/pcleavelin/rust_rasterizer 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/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-7-tc1/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: 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] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded sdl2-sys v0.27.3 [INFO] [stderr] Downloaded text_io v0.1.6 [INFO] [stderr] Downloaded sdl2 v0.28.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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] 4d38b5eb5841ccccf33812e216bc0fc231362e7a3ddcb5829b4d8bd8b83977d7 [INFO] running `Command { std: "docker" "start" "-a" "4d38b5eb5841ccccf33812e216bc0fc231362e7a3ddcb5829b4d8bd8b83977d7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4d38b5eb5841ccccf33812e216bc0fc231362e7a3ddcb5829b4d8bd8b83977d7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4d38b5eb5841ccccf33812e216bc0fc231362e7a3ddcb5829b4d8bd8b83977d7", kill_on_drop: false }` [INFO] [stdout] 4d38b5eb5841ccccf33812e216bc0fc231362e7a3ddcb5829b4d8bd8b83977d7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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] 926d16d754e4d8a0dae60cb61da36a45d527f06b83e0e31102df856d565910c0 [INFO] running `Command { std: "docker" "start" "-a" "926d16d754e4d8a0dae60cb61da36a45d527f06b83e0e31102df856d565910c0", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling num-traits v0.1.37 [INFO] [stderr] Compiling libc v0.2.23 [INFO] [stderr] Compiling sdl2-sys v0.27.3 [INFO] [stderr] Compiling lazy_static v0.2.8 [INFO] [stderr] Compiling bitflags v0.7.0 [INFO] [stderr] Compiling unborrow v0.3.1 [INFO] [stderr] Compiling text_io v0.1.6 [INFO] [stderr] Compiling rand v0.3.15 [INFO] [stderr] Compiling num-integer v0.1.34 [INFO] [stderr] Compiling num-iter v0.1.33 [INFO] [stderr] Compiling num v0.1.37 [INFO] [stderr] Compiling sdl2 v0.28.0 [INFO] [stderr] Compiling 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: use of deprecated method `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: 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] = note: `#[warn(unused_mut)]` on by default [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: 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] = note: `#[warn(unused_variables)]` on by default [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: 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: value assigned to `slope_left` is never read [INFO] [stdout] --> src/triangle.rs:318:10 [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] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `slope_right` is never read [INFO] [stdout] --> src/triangle.rs:319:10 [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:10 [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:10 [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] [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: unused variable: `contents` [INFO] [stdout] --> src/main.rs:79:10 [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] [INFO] [stdout] warning: unused variable: `sdl_context` [INFO] [stdout] --> src/main.rs:81:11 [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:28 [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:27 [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 `z2` is never read [INFO] [stdout] --> src/main.rs:84:35 [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:10 [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:10 [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] | ^- [INFO] [stdout] | | [INFO] [stdout] | help: try removing the field [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] | ^- [INFO] [stdout] | | [INFO] [stdout] | help: try removing the field [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] | ^^^^- [INFO] [stdout] | | [INFO] [stdout] | help: try removing the field [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: 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: method `set_y` is never used [INFO] [stdout] --> src/pointf.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 25 | impl Point2f { [INFO] [stdout] | ------------ method in this implementation [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: method `set_y` is never used [INFO] [stdout] --> src/pointf.rs:220:9 [INFO] [stdout] | [INFO] [stdout] 128 | impl Point3f { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 220 | pub fn set_y(&mut self, y: f32) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `v0`, `v1`, and `v2` are never used [INFO] [stdout] --> src/triangle.rs:112:9 [INFO] [stdout] | [INFO] [stdout] 18 | impl Triangle3D { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 112 | pub fn v0(&self) -> Point3f { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 116 | pub fn v1(&self) -> Point3f { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 120 | pub fn v2(&self) -> Point3f { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `vxs` is never used [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 `intersect` is never used [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 `draw_triangle_solid` is never used [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: 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: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 286 | let _ = 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] [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] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 290 | let _ = 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] [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] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 311 | let _ = 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] [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] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 440 | let _ = 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] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.74s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: bitflags v0.7.0 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "926d16d754e4d8a0dae60cb61da36a45d527f06b83e0e31102df856d565910c0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "926d16d754e4d8a0dae60cb61da36a45d527f06b83e0e31102df856d565910c0", kill_on_drop: false }` [INFO] [stdout] 926d16d754e4d8a0dae60cb61da36a45d527f06b83e0e31102df856d565910c0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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] 7d484da5e395517aa316acbad5193f375f18dbab522955af1f7293f7395c80a6 [INFO] running `Command { std: "docker" "start" "-a" "7d484da5e395517aa316acbad5193f375f18dbab522955af1f7293f7395c80a6", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling 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: use of deprecated method `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: 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] = note: `#[warn(unused_mut)]` on by default [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: 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] = note: `#[warn(unused_variables)]` on by default [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: 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: value assigned to `slope_left` is never read [INFO] [stdout] --> src/triangle.rs:318:10 [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] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `slope_right` is never read [INFO] [stdout] --> src/triangle.rs:319:10 [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:10 [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:10 [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] [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: unused variable: `contents` [INFO] [stdout] --> src/main.rs:79:10 [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] [INFO] [stdout] warning: unused variable: `sdl_context` [INFO] [stdout] --> src/main.rs:81:11 [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:28 [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:27 [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 `z2` is never read [INFO] [stdout] --> src/main.rs:84:35 [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:10 [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:10 [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] | ^- [INFO] [stdout] | | [INFO] [stdout] | help: try removing the field [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] | ^- [INFO] [stdout] | | [INFO] [stdout] | help: try removing the field [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] | ^^^^- [INFO] [stdout] | | [INFO] [stdout] | help: try removing the field [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: 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: method `set_y` is never used [INFO] [stdout] --> src/pointf.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 25 | impl Point2f { [INFO] [stdout] | ------------ method in this implementation [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: method `set_y` is never used [INFO] [stdout] --> src/pointf.rs:220:9 [INFO] [stdout] | [INFO] [stdout] 128 | impl Point3f { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 220 | pub fn set_y(&mut self, y: f32) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `v0`, `v1`, and `v2` are never used [INFO] [stdout] --> src/triangle.rs:112:9 [INFO] [stdout] | [INFO] [stdout] 18 | impl Triangle3D { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 112 | pub fn v0(&self) -> Point3f { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 116 | pub fn v1(&self) -> Point3f { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 120 | pub fn v2(&self) -> Point3f { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `vxs` is never used [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 `intersect` is never used [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 `draw_triangle_solid` is never used [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: 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: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 286 | let _ = 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] [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] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 290 | let _ = 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] [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] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 311 | let _ = 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] [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] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 440 | let _ = 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] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.52s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: bitflags v0.7.0 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "7d484da5e395517aa316acbad5193f375f18dbab522955af1f7293f7395c80a6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7d484da5e395517aa316acbad5193f375f18dbab522955af1f7293f7395c80a6", kill_on_drop: false }` [INFO] [stdout] 7d484da5e395517aa316acbad5193f375f18dbab522955af1f7293f7395c80a6