[INFO] cloning repository https://github.com/EvanChisholm1/ATLAS [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/EvanChisholm1/ATLAS" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FEvanChisholm1%2FATLAS", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FEvanChisholm1%2FATLAS'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a41bd0a45a27f5ca2d43226f95bcd418b1192ad2 [INFO] checking EvanChisholm1/ATLAS/a41bd0a45a27f5ca2d43226f95bcd418b1192ad2 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FEvanChisholm1%2FATLAS" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/EvanChisholm1/ATLAS on toolchain ccf408f4326a858c00dd845a64a86b16f360a801 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/EvanChisholm1/ATLAS [INFO] finished tweaking git repo https://github.com/EvanChisholm1/ATLAS [INFO] tweaked toml for git repo https://github.com/EvanChisholm1/ATLAS written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/EvanChisholm1/ATLAS 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" "+ccf408f4326a858c00dd845a64a86b16f360a801" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 104666ac2784ba4815324b14091abec7628a31f7fa8e790ea8348212d15e62d5 [INFO] running `Command { std: "docker" "start" "-a" "104666ac2784ba4815324b14091abec7628a31f7fa8e790ea8348212d15e62d5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "104666ac2784ba4815324b14091abec7628a31f7fa8e790ea8348212d15e62d5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "104666ac2784ba4815324b14091abec7628a31f7fa8e790ea8348212d15e62d5", kill_on_drop: false }` [INFO] [stdout] 104666ac2784ba4815324b14091abec7628a31f7fa8e790ea8348212d15e62d5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4f9b564ed550ba6a05fc235f7076565d64c4733157758660a9a05abc1e90a30a [INFO] running `Command { std: "docker" "start" "-a" "4f9b564ed550ba6a05fc235f7076565d64c4733157758660a9a05abc1e90a30a", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling pkg-config v0.3.30 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Compiling xml-rs v0.8.20 [INFO] [stderr] Compiling autocfg v1.3.0 [INFO] [stderr] Checking once_cell v1.19.0 [INFO] [stderr] Checking libloading v0.8.5 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Checking dlib v0.5.2 [INFO] [stderr] Checking downcast-rs v1.2.1 [INFO] [stderr] Checking scoped-tls v1.0.1 [INFO] [stderr] Compiling rustix v0.38.34 [INFO] [stderr] Compiling cc v1.1.6 [INFO] [stderr] Checking bitflags v2.6.0 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Checking linux-raw-sys v0.4.14 [INFO] [stderr] Checking xcursor v0.3.6 [INFO] [stderr] Compiling wayland-sys v0.29.5 [INFO] [stderr] Compiling x11-dl v2.21.0 [INFO] [stderr] Checking fastrand v2.1.0 [INFO] [stderr] Checking raw-window-handle v0.6.2 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling wayland-scanner v0.29.5 [INFO] [stderr] Compiling minifb v0.27.0 [INFO] [stderr] Checking nix v0.24.3 [INFO] [stderr] Compiling wayland-client v0.29.5 [INFO] [stderr] Compiling wayland-protocols v0.29.5 [INFO] [stderr] Checking tempfile v3.10.1 [INFO] [stderr] Checking wayland-commons v0.29.5 [INFO] [stderr] Checking wayland-cursor v0.29.5 [INFO] [stderr] Checking ATLAS v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `ATLAS` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/main.rs [INFO] [stderr] * src/renderer.rs [INFO] [stderr] * src/vector.rs [INFO] [stderr] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stderr] [INFO] [stderr] The following errors were reported: [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/vector.rs:109:8 [INFO] [stderr] | [INFO] [stderr] 109 | ($($N:expr_2021 => { $($field:ident : $index:expr_2021),+ }),+) => { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/vector.rs:109:43 [INFO] [stderr] | [INFO] [stderr] 109 | ($($N:expr_2021 => { $($field:ident : $index:expr_2021),+ }),+) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] warning: unused variable: `x` [INFO] [stderr] --> src/renderer.rs:85:35 [INFO] [stderr] | [INFO] [stderr] 85 | depth_func: Box::new(|x: f64, y: f64| 0.0), [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stderr] | [INFO] [stdout] warning: unused imports: `MouseButton` and `MouseMode` [INFO] [stdout] --> src/main.rs:2:19 [INFO] [stdout] | [INFO] [stdout] 2 | use minifb::{Key, MouseButton, MouseMode, Window, WindowOptions}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `y` [INFO] [stderr] --> src/renderer.rs:85:43 [INFO] [stderr] | [INFO] [stderr] 85 | depth_func: Box::new(|x: f64, y: f64| 0.0), [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `depth` [INFO] [stderr] --> src/renderer.rs:98:68 [INFO] [stderr] | [INFO] [stderr] 98 | pub fn set_pixel(&mut self, x: usize, y: usize, color: &Color, depth: f32) { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_depth` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `tri` [INFO] [stderr] --> src/renderer.rs:150:37 [INFO] [stderr] | [INFO] [stderr] 150 | pub fn draw_triangle(&mut self, tri: &Triangle) { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_tri` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `white` [INFO] [stderr] --> src/main.rs:201:9 [INFO] [stderr] | [INFO] [stderr] 201 | let white = Color { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_white` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `mat_rot_z` [INFO] [stderr] --> src/main.rs:270:13 [INFO] [stderr] | [INFO] [stderr] 270 | let mat_rot_z = Matrix4D::new([ [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mat_rot_z` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `mat_rot_x` [INFO] [stderr] --> src/main.rs:277:13 [INFO] [stderr] | [INFO] [stderr] 277 | let mat_rot_x = Matrix4D::new([ [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mat_rot_x` [INFO] [stderr] [INFO] [stderr] error: aborting due to 2 previous errors; 7 warnings emitted [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0658`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: unused imports: `Object` and `Scene` [INFO] [stdout] --> src/main.rs:3:57 [INFO] [stdout] | [INFO] [stdout] 3 | use renderer::{Camera, Color, FrameBuffer, Input, Mesh, Object, Renderer, Scene, Triangle}; [INFO] [stdout] | ^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cross` [INFO] [stdout] --> src/renderer.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | cross, multiply_matrix_vector, multiply_matrix_vector_perspective_div, Matrix4D, Vector2D, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cmp::Ordering` [INFO] [stdout] --> src/renderer.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | use std::{cmp::Ordering, f64::consts::PI}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/vector.rs:109:11 [INFO] [stdout] | [INFO] [stdout] 109 | ($($N:expr => { $($field:ident : $index:expr),+ }),+) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] = note: `--force-warn edition-2024-expr-fragment-specifier` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 109 | ($($N:expr_2021 => { $($field:ident : $index:expr),+ }),+) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/vector.rs:109:45 [INFO] [stdout] | [INFO] [stdout] 109 | ($($N:expr => { $($field:ident : $index:expr),+ }),+) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 109 | ($($N:expr => { $($field:ident : $index:expr_2021),+ }),+) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/renderer.rs:85:35 [INFO] [stdout] | [INFO] [stdout] 85 | depth_func: Box::new(|x: f64, y: f64| 0.0), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/renderer.rs:85:43 [INFO] [stdout] | [INFO] [stdout] 85 | depth_func: Box::new(|x: f64, y: f64| 0.0), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `depth` [INFO] [stdout] --> src/renderer.rs:98:68 [INFO] [stdout] | [INFO] [stdout] 98 | pub fn set_pixel(&mut self, x: usize, y: usize, color: &Color, depth: f32) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_depth` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tri` [INFO] [stdout] --> src/renderer.rs:150:37 [INFO] [stdout] | [INFO] [stdout] 150 | pub fn draw_triangle(&mut self, tri: &Triangle) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_tri` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `white` [INFO] [stdout] --> src/main.rs:201:9 [INFO] [stdout] | [INFO] [stdout] 201 | let white = Color { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_white` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mat_rot_z` [INFO] [stdout] --> src/main.rs:270:13 [INFO] [stdout] | [INFO] [stdout] 270 | let mat_rot_z = Matrix4D::new([ [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mat_rot_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mat_rot_x` [INFO] [stdout] --> src/main.rs:277:13 [INFO] [stdout] | [INFO] [stdout] 277 | let mat_rot_x = Matrix4D::new([ [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mat_rot_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:175:9 [INFO] [stdout] | [INFO] [stdout] 175 | let mut cam = Camera { [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:187:9 [INFO] [stdout] | [INFO] [stdout] 187 | let mut frame_buffer = FrameBuffer::new(WIDTH, HEIGHT); [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_z_rotation_matrix` is never used [INFO] [stdout] --> src/main.rs:39:4 [INFO] [stdout] | [INFO] [stdout] 39 | fn get_z_rotation_matrix(theta: f64) -> Matrix4D { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_x_rotation_matrix` is never used [INFO] [stdout] --> src/main.rs:48:4 [INFO] [stdout] | [INFO] [stdout] 48 | fn get_x_rotation_matrix(theta: f64) -> Matrix4D { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_y_rotation_matrix` is never used [INFO] [stdout] --> src/main.rs:57:4 [INFO] [stdout] | [INFO] [stdout] 57 | fn get_y_rotation_matrix(theta: f64) -> Matrix4D { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dot` is never used [INFO] [stdout] --> src/linalg.rs:235:8 [INFO] [stdout] | [INFO] [stdout] 235 | pub fn dot(u: &Vector3D, v: &Vector3D) -> f64 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl Fn(f64, f64) -> f64` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/zbuf.rs:3:42 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn get_depth_func(tri: &Triangle) -> impl Fn(f64, f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/zbuf.rs:3:28 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn get_depth_func(tri: &Triangle) -> impl Fn(f64, f64) -> f64 { [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] = note: `--force-warn impl-trait-overcaptures` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 3 | pub fn get_depth_func(tri: &Triangle) -> impl Fn(f64, f64) -> f64 + use<> { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 20 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `ATLAS` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/main.rs [INFO] [stderr] * src/renderer.rs [INFO] [stderr] * src/vector.rs [INFO] [stderr] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stderr] [INFO] [stderr] The following errors were reported: [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/vector.rs:109:8 [INFO] [stderr] | [INFO] [stderr] 109 | ($($N:expr_2021 => { $($field:ident : $index:expr_2021),+ }),+) => { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/vector.rs:109:43 [INFO] [stderr] | [INFO] [stderr] 109 | ($($N:expr_2021 => { $($field:ident : $index:expr_2021),+ }),+) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] warning: unused variable: `x` [INFO] [stderr] --> src/renderer.rs:85:35 [INFO] [stderr] | [INFO] [stderr] 85 | depth_func: Box::new(|x: f64, y: f64| 0.0), [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `y` [INFO] [stderr] --> src/renderer.rs:85:43 [INFO] [stderr] | [INFO] [stderr] 85 | depth_func: Box::new(|x: f64, y: f64| 0.0), [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `depth` [INFO] [stderr] --> src/renderer.rs:98:68 [INFO] [stderr] | [INFO] [stderr] 98 | pub fn set_pixel(&mut self, x: usize, y: usize, color: &Color, depth: f32) { [INFO] [stdout] warning: unused imports: `MouseButton` and `MouseMode` [INFO] [stdout] --> src/main.rs:2:19 [INFO] [stdout] | [INFO] [stdout] 2 | use minifb::{Key, MouseButton, MouseMode, Window, WindowOptions}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_depth` [INFO] [stdout] warning: unused imports: `Object` and `Scene` [INFO] [stdout] --> src/main.rs:3:57 [INFO] [stdout] | [INFO] [stdout] 3 | use renderer::{Camera, Color, FrameBuffer, Input, Mesh, Object, Renderer, Scene, Triangle}; [INFO] [stdout] | ^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] warning: unused import: `cross` [INFO] [stdout] --> src/renderer.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | cross, multiply_matrix_vector, multiply_matrix_vector_perspective_div, Matrix4D, Vector2D, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: unused variable: `tri` [INFO] [stdout] warning: unused import: `cmp::Ordering` [INFO] [stdout] --> src/renderer.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | use std::{cmp::Ordering, f64::consts::PI}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] --> src/renderer.rs:150:37 [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/vector.rs:109:11 [INFO] [stdout] | [INFO] [stdout] 109 | ($($N:expr => { $($field:ident : $index:expr),+ }),+) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] = note: `--force-warn edition-2024-expr-fragment-specifier` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 109 | ($($N:expr_2021 => { $($field:ident : $index:expr),+ }),+) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/vector.rs:109:45 [INFO] [stdout] | [INFO] [stdout] 109 | ($($N:expr => { $($field:ident : $index:expr),+ }),+) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 109 | ($($N:expr => { $($field:ident : $index:expr_2021),+ }),+) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] 150 | pub fn draw_triangle(&mut self, tri: &Triangle) { [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/renderer.rs:85:35 [INFO] [stdout] | [INFO] [stdout] 85 | depth_func: Box::new(|x: f64, y: f64| 0.0), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_tri` [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/renderer.rs:85:43 [INFO] [stdout] | [INFO] [stdout] 85 | depth_func: Box::new(|x: f64, y: f64| 0.0), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] warning: unused variable: `depth` [INFO] [stdout] --> src/renderer.rs:98:68 [INFO] [stdout] | [INFO] [stdout] 98 | pub fn set_pixel(&mut self, x: usize, y: usize, color: &Color, depth: f32) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_depth` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: unused variable: `white` [INFO] [stdout] warning: unused variable: `tri` [INFO] [stdout] --> src/renderer.rs:150:37 [INFO] [stdout] | [INFO] [stdout] 150 | pub fn draw_triangle(&mut self, tri: &Triangle) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_tri` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] --> src/main.rs:201:9 [INFO] [stdout] warning: unused variable: `white` [INFO] [stdout] --> src/main.rs:201:9 [INFO] [stdout] | [INFO] [stdout] 201 | let white = Color { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_white` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | [INFO] [stdout] warning: unused variable: `mat_rot_z` [INFO] [stdout] --> src/main.rs:270:13 [INFO] [stdout] | [INFO] [stdout] 270 | let mat_rot_z = Matrix4D::new([ [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mat_rot_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] 201 | let white = Color { [INFO] [stdout] warning: unused variable: `mat_rot_x` [INFO] [stdout] --> src/main.rs:277:13 [INFO] [stdout] | [INFO] [stdout] 277 | let mat_rot_x = Matrix4D::new([ [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mat_rot_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_white` [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:175:9 [INFO] [stdout] | [INFO] [stdout] 175 | let mut cam = Camera { [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] [stderr] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:187:9 [INFO] [stdout] | [INFO] [stdout] 187 | let mut frame_buffer = FrameBuffer::new(WIDTH, HEIGHT); [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: unused variable: `mat_rot_z` [INFO] [stdout] warning: function `get_z_rotation_matrix` is never used [INFO] [stdout] --> src/main.rs:39:4 [INFO] [stdout] | [INFO] [stdout] 39 | fn get_z_rotation_matrix(theta: f64) -> Matrix4D { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] --> src/main.rs:270:13 [INFO] [stdout] warning: function `get_x_rotation_matrix` is never used [INFO] [stdout] --> src/main.rs:48:4 [INFO] [stdout] | [INFO] [stdout] 48 | fn get_x_rotation_matrix(theta: f64) -> Matrix4D { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | [INFO] [stdout] warning: function `get_y_rotation_matrix` is never used [INFO] [stdout] --> src/main.rs:57:4 [INFO] [stdout] | [INFO] [stdout] 57 | fn get_y_rotation_matrix(theta: f64) -> Matrix4D { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] 270 | let mat_rot_z = Matrix4D::new([ [INFO] [stdout] warning: function `dot` is never used [INFO] [stdout] --> src/linalg.rs:235:8 [INFO] [stdout] | [INFO] [stdout] 235 | pub fn dot(u: &Vector3D, v: &Vector3D) -> f64 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mat_rot_z` [INFO] [stdout] warning: `impl Fn(f64, f64) -> f64` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/zbuf.rs:3:42 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn get_depth_func(tri: &Triangle) -> impl Fn(f64, f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/zbuf.rs:3:28 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn get_depth_func(tri: &Triangle) -> impl Fn(f64, f64) -> f64 { [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] = note: `--force-warn impl-trait-overcaptures` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 3 | pub fn get_depth_func(tri: &Triangle) -> impl Fn(f64, f64) -> f64 + use<> { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] warning: 20 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: unused variable: `mat_rot_x` [INFO] [stderr] --> src/main.rs:277:13 [INFO] [stderr] | [INFO] [stderr] 277 | let mat_rot_x = Matrix4D::new([ [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mat_rot_x` [INFO] [stderr] [INFO] [stderr] error: aborting due to 2 previous errors; 7 warnings emitted [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0658`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 16.03s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking ATLAS v0.1.0 (/tmp/fixit) [INFO] [stdout] warning: unused imports: `MouseButton` and `MouseMode` [INFO] [stdout] --> src/main.rs:2:19 [INFO] [stdout] | [INFO] [stdout] 2 | use minifb::{Key, MouseButton, MouseMode, Window, WindowOptions}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `MouseButton` and `MouseMode` [INFO] [stdout] --> src/main.rs:2:19 [INFO] [stdout] | [INFO] [stdout] 2 | use minifb::{Key, MouseButton, MouseMode, Window, WindowOptions}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Object` and `Scene` [INFO] [stdout] --> src/main.rs:3:57 [INFO] [stdout] | [INFO] [stdout] 3 | use renderer::{Camera, Color, FrameBuffer, Input, Mesh, Object, Renderer, Scene, Triangle}; [INFO] [stdout] | ^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Object` and `Scene` [INFO] [stdout] --> src/main.rs:3:57 [INFO] [stdout] | [INFO] [stdout] 3 | use renderer::{Camera, Color, FrameBuffer, Input, Mesh, Object, Renderer, Scene, Triangle}; [INFO] [stdout] | ^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cross` [INFO] [stdout] --> src/renderer.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | cross, multiply_matrix_vector, multiply_matrix_vector_perspective_div, Matrix4D, Vector2D, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cross` [INFO] [stdout] --> src/renderer.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | cross, multiply_matrix_vector, multiply_matrix_vector_perspective_div, Matrix4D, Vector2D, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cmp::Ordering` [INFO] [stdout] --> src/renderer.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | use std::{cmp::Ordering, f64::consts::PI}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cmp::Ordering` [INFO] [stdout] --> src/renderer.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | use std::{cmp::Ordering, f64::consts::PI}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/renderer.rs:85:35 [INFO] [stdout] | [INFO] [stdout] 85 | depth_func: Box::new(|x: f64, y: f64| 0.0), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/renderer.rs:85:43 [INFO] [stdout] | [INFO] [stdout] 85 | depth_func: Box::new(|x: f64, y: f64| 0.0), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/renderer.rs:85:35 [INFO] [stdout] | [INFO] [stdout] 85 | depth_func: Box::new(|x: f64, y: f64| 0.0), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/renderer.rs:85:43 [INFO] [stdout] | [INFO] [stdout] 85 | depth_func: Box::new(|x: f64, y: f64| 0.0), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `depth` [INFO] [stdout] --> src/renderer.rs:98:68 [INFO] [stdout] | [INFO] [stdout] 98 | pub fn set_pixel(&mut self, x: usize, y: usize, color: &Color, depth: f32) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_depth` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `depth` [INFO] [stdout] --> src/renderer.rs:98:68 [INFO] [stdout] | [INFO] [stdout] 98 | pub fn set_pixel(&mut self, x: usize, y: usize, color: &Color, depth: f32) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_depth` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tri` [INFO] [stdout] --> src/renderer.rs:150:37 [INFO] [stdout] | [INFO] [stdout] 150 | pub fn draw_triangle(&mut self, tri: &Triangle) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_tri` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tri` [INFO] [stdout] --> src/renderer.rs:150:37 [INFO] [stdout] | [INFO] [stdout] 150 | pub fn draw_triangle(&mut self, tri: &Triangle) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_tri` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `white` [INFO] [stdout] --> src/main.rs:201:9 [INFO] [stdout] | [INFO] [stdout] 201 | let white = Color { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_white` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `white` [INFO] [stdout] --> src/main.rs:201:9 [INFO] [stdout] | [INFO] [stdout] 201 | let white = Color { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_white` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mat_rot_z` [INFO] [stdout] --> src/main.rs:270:13 [INFO] [stdout] | [INFO] [stdout] 270 | let mat_rot_z = Matrix4D::new([ [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mat_rot_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mat_rot_z` [INFO] [stdout] --> src/main.rs:270:13 [INFO] [stdout] | [INFO] [stdout] 270 | let mat_rot_z = Matrix4D::new([ [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mat_rot_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mat_rot_x` [INFO] [stdout] --> src/main.rs:277:13 [INFO] [stdout] | [INFO] [stdout] 277 | let mat_rot_x = Matrix4D::new([ [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mat_rot_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mat_rot_x` [INFO] [stdout] --> src/main.rs:277:13 [INFO] [stdout] | [INFO] [stdout] 277 | let mat_rot_x = Matrix4D::new([ [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mat_rot_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:175:9 [INFO] [stdout] | [INFO] [stdout] 175 | let mut cam = Camera { [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:187:9 [INFO] [stdout] | [INFO] [stdout] 187 | let mut frame_buffer = FrameBuffer::new(WIDTH, HEIGHT); [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `triangle` does not live long enough [INFO] [stdout] --> src/main.rs:305:44 [INFO] [stdout] | [INFO] [stdout] 301 | for triangle in proj_2d.triangles { [INFO] [stdout] | -------- binding `triangle` declared here [INFO] [stdout] ... [INFO] [stdout] 305 | let depth = get_depth_func(&triangle); [INFO] [stdout] | ^^^^^^^^^ borrowed value does not live long enough [INFO] [stdout] 306 | renderer.framebuffer.depth_func = Box::new(depth); [INFO] [stdout] | ------------------------------- cast requires that `triangle` is borrowed for `'static` [INFO] [stdout] ... [INFO] [stdout] 342 | } [INFO] [stdout] | - `triangle` dropped here while still borrowed [INFO] [stdout] | [INFO] [stdout] = note: due to object lifetime defaults, `Box f64>` actually means `Box<(dyn Fn(f64, f64) -> f64 + 'static)>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0597`. [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:175:9 [INFO] [stdout] | [INFO] [stdout] 175 | let mut cam = Camera { [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:187:9 [INFO] [stdout] | [INFO] [stdout] 187 | let mut frame_buffer = FrameBuffer::new(WIDTH, HEIGHT); [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `triangle` does not live long enough [INFO] [stdout] --> src/main.rs:305:44 [INFO] [stdout] | [INFO] [stdout] 301 | for triangle in proj_2d.triangles { [INFO] [stdout] | -------- binding `triangle` declared here [INFO] [stdout] ... [INFO] [stdout] 305 | let depth = get_depth_func(&triangle); [INFO] [stdout] | ^^^^^^^^^ borrowed value does not live long enough [INFO] [stdout] 306 | renderer.framebuffer.depth_func = Box::new(depth); [INFO] [stdout] | ------------------------------- cast requires that `triangle` is borrowed for `'static` [INFO] [stdout] ... [INFO] [stdout] 342 | } [INFO] [stdout] | - `triangle` dropped here while still borrowed [INFO] [stdout] | [INFO] [stdout] = note: due to object lifetime defaults, `Box f64>` actually means `Box<(dyn Fn(f64, f64) -> f64 + 'static)>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0597`. [INFO] [stdout] [INFO] [stderr] error: could not compile `ATLAS` (bin "ATLAS" test) due to 2 previous errors; 13 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `ATLAS` (bin "ATLAS") due to 2 previous errors; 13 warnings emitted [INFO] [stderr] error: failed to check after updating to 2024 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "4f9b564ed550ba6a05fc235f7076565d64c4733157758660a9a05abc1e90a30a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4f9b564ed550ba6a05fc235f7076565d64c4733157758660a9a05abc1e90a30a", kill_on_drop: false }` [INFO] [stdout] 4f9b564ed550ba6a05fc235f7076565d64c4733157758660a9a05abc1e90a30a