[INFO] cloning repository https://github.com/davawen/Raytracing-Rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/davawen/Raytracing-Rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdavawen%2FRaytracing-Rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdavawen%2FRaytracing-Rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3bece8b444c801e2fd997b50ea551112614c7d82 [INFO] checking davawen/Raytracing-Rs/3bece8b444c801e2fd997b50ea551112614c7d82 against try#4d98531622e1718ae0bc3c7a1ab9cd8938428452+rustflags=-Dtail_expr_drop_order for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdavawen%2FRaytracing-Rs" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/davawen/Raytracing-Rs on toolchain 4d98531622e1718ae0bc3c7a1ab9cd8938428452 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/davawen/Raytracing-Rs [INFO] finished tweaking git repo https://github.com/davawen/Raytracing-Rs [INFO] tweaked toml for git repo https://github.com/davawen/Raytracing-Rs written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/davawen/Raytracing-Rs 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" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5e91a9b8cd771bcaafb772f5df97766b7b8f6509759553d37ceff290ab91281a [INFO] running `Command { std: "docker" "start" "-a" "5e91a9b8cd771bcaafb772f5df97766b7b8f6509759553d37ceff290ab91281a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5e91a9b8cd771bcaafb772f5df97766b7b8f6509759553d37ceff290ab91281a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5e91a9b8cd771bcaafb772f5df97766b7b8f6509759553d37ceff290ab91281a", kill_on_drop: false }` [INFO] [stdout] 5e91a9b8cd771bcaafb772f5df97766b7b8f6509759553d37ceff290ab91281a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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 -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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 789ad83462f3f0b149767bd1f58e196e3c32cfe8a076766b52240c5afe515129 [INFO] running `Command { std: "docker" "start" "-a" "789ad83462f3f0b149767bd1f58e196e3c32cfe8a076766b52240c5afe515129", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.126 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling crossbeam-utils v0.8.10 [INFO] [stderr] Compiling proc-macro2 v1.0.40 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Checking once_cell v1.12.0 [INFO] [stderr] Compiling unicode-ident v1.0.1 [INFO] [stderr] Compiling quote v1.0.20 [INFO] [stderr] Compiling crossbeam-epoch v0.9.9 [INFO] [stderr] Compiling syn v1.0.98 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling rayon-core v1.9.3 [INFO] [stderr] Compiling crc32fast v1.3.2 [INFO] [stderr] Compiling rayon v1.5.3 [INFO] [stderr] Compiling num-bigint v0.4.3 [INFO] [stderr] Compiling futures-core v0.3.21 [INFO] [stderr] Checking either v1.7.0 [INFO] [stderr] Checking adler32 v1.2.0 [INFO] [stderr] Checking miniz_oxide v0.5.3 [INFO] [stderr] Compiling num-rational v0.4.1 [INFO] [stderr] Compiling num-iter v0.1.43 [INFO] [stderr] Checking deflate v1.0.0 [INFO] [stderr] Checking spin v0.9.3 [INFO] [stderr] Checking weezl v0.1.6 [INFO] [stderr] Checking futures-sink v0.3.21 [INFO] [stderr] Checking inflate v0.4.5 [INFO] [stderr] Checking color_quant v1.1.0 [INFO] [stderr] Checking lebe v0.5.1 [INFO] [stderr] Checking half v1.8.2 [INFO] [stderr] Checking bit_field v0.10.1 [INFO] [stderr] Checking scoped_threadpool v0.1.9 [INFO] [stderr] Checking bytemuck v1.9.1 [INFO] [stderr] Compiling convert_case v0.4.0 [INFO] [stderr] Checking itertools v0.10.3 [INFO] [stderr] Checking glam v0.21.1 [INFO] [stderr] Checking gif v0.11.4 [INFO] [stderr] Checking flate2 v1.0.24 [INFO] [stderr] Checking png v0.17.5 [INFO] [stderr] Checking crossbeam-channel v0.5.5 [INFO] [stderr] Checking getrandom v0.2.7 [INFO] [stderr] Checking num_cpus v1.13.1 [INFO] [stderr] Checking threadpool v1.8.1 [INFO] [stderr] Checking nanorand v0.7.0 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Checking num-complex v0.4.2 [INFO] [stderr] Checking lerp v0.4.0 [INFO] [stderr] Checking crossbeam-deque v0.8.1 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking num v0.4.0 [INFO] [stderr] Checking jpeg-decoder v0.2.6 [INFO] [stderr] Checking tiff v0.7.2 [INFO] [stderr] Compiling pin-project-internal v1.0.10 [INFO] [stderr] Compiling derive_more v0.99.17 [INFO] [stderr] Checking pin-project v1.0.10 [INFO] [stderr] Checking flume v0.10.13 [INFO] [stderr] Checking exr v1.4.2 [INFO] [stderr] Checking image v0.24.2 [INFO] [stderr] Checking raytracing v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Rgb` and `buffer::PixelsMut` [INFO] [stdout] --> src/main.rs:3:23 [INFO] [stdout] | [INFO] [stdout] 3 | use image::{RgbImage, Rgb, buffer::PixelsMut}; [INFO] [stdout] | ^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `itertools::Itertools` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use itertools::Itertools; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Rng` and `thread_rng` [INFO] [stdout] --> src/bvh.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | use rand::{thread_rng, Rng}; [INFO] [stdout] | ^^^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MaterialKind` [INFO] [stdout] --> src/main.rs:24:26 [INFO] [stdout] | [INFO] [stdout] 24 | material::{Material, MaterialKind} [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `square` [INFO] [stdout] --> src/main.rs:241:18 [INFO] [stdout] | [INFO] [stdout] 241 | macro_rules! square { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Rgb` and `buffer::PixelsMut` [INFO] [stdout] --> src/main.rs:3:23 [INFO] [stdout] | [INFO] [stdout] 3 | use image::{RgbImage, Rgb, buffer::PixelsMut}; [INFO] [stdout] | ^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `itertools::Itertools` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use itertools::Itertools; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Rng` and `thread_rng` [INFO] [stdout] --> src/bvh.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | use rand::{thread_rng, Rng}; [INFO] [stdout] | ^^^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MaterialKind` [INFO] [stdout] --> src/main.rs:24:26 [INFO] [stdout] | [INFO] [stdout] 24 | material::{Material, MaterialKind} [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `square` [INFO] [stdout] --> src/main.rs:241:18 [INFO] [stdout] | [INFO] [stdout] 241 | macro_rules! square { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Intersection` [INFO] [stdout] --> src/main.rs:14:20 [INFO] [stdout] | [INFO] [stdout] 14 | use intersection::{Intersection, Inter}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Intersection` [INFO] [stdout] --> src/main.rs:14:20 [INFO] [stdout] | [INFO] [stdout] 14 | use intersection::{Intersection, Inter}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `w0` [INFO] [stdout] --> src/intersection.rs:210:18 [INFO] [stdout] | [INFO] [stdout] 210 | let (w0, w1, w2) = (w0.max(0.0), w1.max(0.0), w2.max(0.0)); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_w0` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `w1` [INFO] [stdout] --> src/intersection.rs:210:22 [INFO] [stdout] | [INFO] [stdout] 210 | let (w0, w1, w2) = (w0.max(0.0), w1.max(0.0), w2.max(0.0)); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_w1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `w2` [INFO] [stdout] --> src/intersection.rs:210:26 [INFO] [stdout] | [INFO] [stdout] 210 | let (w0, w1, w2) = (w0.max(0.0), w1.max(0.0), w2.max(0.0)); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_w2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `w0` [INFO] [stdout] --> src/intersection.rs:210:18 [INFO] [stdout] | [INFO] [stdout] 210 | let (w0, w1, w2) = (w0.max(0.0), w1.max(0.0), w2.max(0.0)); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_w0` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `w1` [INFO] [stdout] --> src/intersection.rs:210:22 [INFO] [stdout] | [INFO] [stdout] 210 | let (w0, w1, w2) = (w0.max(0.0), w1.max(0.0), w2.max(0.0)); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_w1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `w2` [INFO] [stdout] --> src/intersection.rs:210:26 [INFO] [stdout] | [INFO] [stdout] 210 | let (w0, w1, w2) = (w0.max(0.0), w1.max(0.0), w2.max(0.0)); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_w2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `earth_normal` [INFO] [stdout] --> src/main.rs:215:9 [INFO] [stdout] | [INFO] [stdout] 215 | let earth_normal = Texture::from_file("/home/davawen/Pictures/2k_earth_normal_map.tif")?; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_earth_normal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rusty_metal_norm` [INFO] [stdout] --> src/main.rs:216:9 [INFO] [stdout] | [INFO] [stdout] 216 | let rusty_metal_norm = Texture::from_file("/home/davawen/Pictures/3314-normal.jpg")?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rusty_metal_norm` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bumpy_norm` [INFO] [stdout] --> src/main.rs:218:9 [INFO] [stdout] | [INFO] [stdout] 218 | let bumpy_norm = Texture::from_file("/home/davawen/Pictures/bumpy_normal.jpg")?.set_wrapping(TextureWrapping::MirroredRepeat); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bumpy_norm` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scratched_norm` [INFO] [stdout] --> src/main.rs:219:9 [INFO] [stdout] | [INFO] [stdout] 219 | let scratched_norm = Texture::from_file("/home/davawen/Pictures/reduced.png")?.set_wrapping(TextureWrapping::MirroredRepeat); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_scratched_norm` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `intersection` is never used [INFO] [stdout] --> src/main.rs:55:4 [INFO] [stdout] | [INFO] [stdout] 55 | fn intersection<'a>(scene: &'a [&'a dyn Traceable], ray: &'a Ray) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `random_vector_in_hemisphere` is never used [INFO] [stdout] --> src/main.rs:65:4 [INFO] [stdout] | [INFO] [stdout] 65 | fn random_vector_in_hemisphere(normal: Vec3) -> Vec3 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `square` is never used [INFO] [stdout] --> src/main.rs:141:4 [INFO] [stdout] | [INFO] [stdout] 141 | fn square( center: Vec3, size: Vec2, orientation: Quat, material: Material ) -> ( Triangle, Triangle ) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new_emmitive` and `set_texture` are never used [INFO] [stdout] --> src/material.rs:198:12 [INFO] [stdout] | [INFO] [stdout] 188 | impl<'a> Material<'a> { [INFO] [stdout] | --------------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 198 | pub fn new_emmitive(color: Color, intensity: f32) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 203 | pub fn set_texture(mut self, texture: &'a Texture) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ClampToEdge` is never constructed [INFO] [stdout] --> src/texture.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub enum TextureWrapping { [INFO] [stdout] | --------------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 10 | ClampToEdge [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TextureWrapping` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/bvh.rs:33:18 [INFO] [stdout] | [INFO] [stdout] 23 | fn from_child(lhs: Box>, rhs: Box>) -> Self { [INFO] [stdout] | ----------------- ----------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 33 | lhs: Some(lhs), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/bvh.rs:34:18 [INFO] [stdout] | [INFO] [stdout] 23 | fn from_child(lhs: Box>, rhs: Box>) -> Self { [INFO] [stdout] | ----------------- ----------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 34 | rhs: Some(rhs), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `earth_normal` [INFO] [stdout] --> src/main.rs:215:9 [INFO] [stdout] | [INFO] [stdout] 215 | let earth_normal = Texture::from_file("/home/davawen/Pictures/2k_earth_normal_map.tif")?; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_earth_normal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rusty_metal_norm` [INFO] [stdout] --> src/main.rs:216:9 [INFO] [stdout] | [INFO] [stdout] 216 | let rusty_metal_norm = Texture::from_file("/home/davawen/Pictures/3314-normal.jpg")?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rusty_metal_norm` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bumpy_norm` [INFO] [stdout] --> src/main.rs:218:9 [INFO] [stdout] | [INFO] [stdout] 218 | let bumpy_norm = Texture::from_file("/home/davawen/Pictures/bumpy_normal.jpg")?.set_wrapping(TextureWrapping::MirroredRepeat); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bumpy_norm` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scratched_norm` [INFO] [stdout] --> src/main.rs:219:9 [INFO] [stdout] | [INFO] [stdout] 219 | let scratched_norm = Texture::from_file("/home/davawen/Pictures/reduced.png")?.set_wrapping(TextureWrapping::MirroredRepeat); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_scratched_norm` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `raytracing` (bin "raytracing" test) due to 3 previous errors; 18 warnings emitted [INFO] [stdout] warning: function `intersection` is never used [INFO] [stdout] --> src/main.rs:55:4 [INFO] [stdout] | [INFO] [stdout] 55 | fn intersection<'a>(scene: &'a [&'a dyn Traceable], ray: &'a Ray) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: function `random_vector_in_hemisphere` is never used [INFO] [stdout] --> src/main.rs:65:4 [INFO] [stdout] | [INFO] [stdout] 65 | fn random_vector_in_hemisphere(normal: Vec3) -> Vec3 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `square` is never used [INFO] [stdout] --> src/main.rs:141:4 [INFO] [stdout] | [INFO] [stdout] 141 | fn square( center: Vec3, size: Vec2, orientation: Quat, material: Material ) -> ( Triangle, Triangle ) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new_emmitive` and `set_texture` are never used [INFO] [stdout] --> src/material.rs:198:12 [INFO] [stdout] | [INFO] [stdout] 188 | impl<'a> Material<'a> { [INFO] [stdout] | --------------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 198 | pub fn new_emmitive(color: Color, intensity: f32) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 203 | pub fn set_texture(mut self, texture: &'a Texture) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ClampToEdge` is never constructed [INFO] [stdout] --> src/texture.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub enum TextureWrapping { [INFO] [stdout] | --------------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 10 | ClampToEdge [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TextureWrapping` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/bvh.rs:33:18 [INFO] [stdout] | [INFO] [stdout] 23 | fn from_child(lhs: Box>, rhs: Box>) -> Self { [INFO] [stdout] | ----------------- ----------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 33 | lhs: Some(lhs), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/bvh.rs:34:18 [INFO] [stdout] | [INFO] [stdout] 23 | fn from_child(lhs: Box>, rhs: Box>) -> Self { [INFO] [stdout] | ----------------- ----------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 34 | rhs: Some(rhs), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `raytracing` (bin "raytracing") due to 3 previous errors; 18 warnings emitted [INFO] running `Command { std: "docker" "inspect" "789ad83462f3f0b149767bd1f58e196e3c32cfe8a076766b52240c5afe515129", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "789ad83462f3f0b149767bd1f58e196e3c32cfe8a076766b52240c5afe515129", kill_on_drop: false }` [INFO] [stdout] 789ad83462f3f0b149767bd1f58e196e3c32cfe8a076766b52240c5afe515129