[INFO] cloning repository https://github.com/YYF233333/rtoneweekend [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/YYF233333/rtoneweekend" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FYYF233333%2Frtoneweekend", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FYYF233333%2Frtoneweekend'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5d61de35fb151f50b40245fc7732f070d9196b81 [INFO] checking YYF233333/rtoneweekend/5d61de35fb151f50b40245fc7732f070d9196b81 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%2FYYF233333%2Frtoneweekend" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/YYF233333/rtoneweekend 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/YYF233333/rtoneweekend [INFO] finished tweaking git repo https://github.com/YYF233333/rtoneweekend [INFO] tweaked toml for git repo https://github.com/YYF233333/rtoneweekend written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/YYF233333/rtoneweekend 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-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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] 6133c7e5374e32ea4d62841d5fdffb6f5c535ebb413dee583463f2b54cf834b7 [INFO] running `Command { std: "docker" "start" "-a" "6133c7e5374e32ea4d62841d5fdffb6f5c535ebb413dee583463f2b54cf834b7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6133c7e5374e32ea4d62841d5fdffb6f5c535ebb413dee583463f2b54cf834b7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6133c7e5374e32ea4d62841d5fdffb6f5c535ebb413dee583463f2b54cf834b7", kill_on_drop: false }` [INFO] [stdout] 6133c7e5374e32ea4d62841d5fdffb6f5c535ebb413dee583463f2b54cf834b7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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] 5e1d2f8c129176a71c91a458e6a31f6e9c8d6f933794a2c53ac90aea91e540aa [INFO] running `Command { std: "docker" "start" "-a" "5e1d2f8c129176a71c91a458e6a31f6e9c8d6f933794a2c53ac90aea91e540aa", kill_on_drop: false }` [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling libc v0.2.123 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling proc-macro2 v1.0.37 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.8 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Compiling syn v1.0.91 [INFO] [stderr] Compiling serde v1.0.136 [INFO] [stderr] Compiling crossbeam-epoch v0.9.8 [INFO] [stderr] Compiling num-bigint v0.2.6 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling serde_json v1.0.79 [INFO] [stderr] Compiling num-iter v0.1.42 [INFO] [stderr] Compiling num-rational v0.2.4 [INFO] [stderr] Compiling num-complex v0.2.4 [INFO] [stderr] Compiling itoa v1.0.1 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling ryu v1.0.9 [INFO] [stderr] Compiling rayon-core v1.9.2 [INFO] [stderr] Compiling rayon v1.5.2 [INFO] [stderr] Checking ppv-lite86 v0.2.16 [INFO] [stderr] Checking half v1.8.2 [INFO] [stderr] Checking either v1.6.1 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Checking crossbeam-channel v0.5.4 [INFO] [stderr] Compiling quote v1.0.18 [INFO] [stderr] Checking crossbeam-deque v0.8.1 [INFO] [stderr] Checking getrandom v0.2.6 [INFO] [stderr] Checking num_cpus v1.13.1 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking num v0.2.1 [INFO] [stderr] Compiling serde_derive v1.0.136 [INFO] [stderr] Compiling arrayfire v3.8.0 [INFO] [stderr] Checking ray_tracing_one_weekend v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/gpu/ray_color.rs:4:18 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::ray::{self, Ray}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `arrayfire::*` [INFO] [stdout] --> src/gpu/ray_color.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use arrayfire::*; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `vec3array::*` [INFO] [stdout] --> src/gpu/vec3/mod.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub use vec3array::*; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/gpu/ray_color.rs:4:18 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::ray::{self, Ray}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `arrayfire::*` [INFO] [stdout] --> src/gpu/ray_color.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use arrayfire::*; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `vec3array::*` [INFO] [stdout] --> src/gpu/vec3/mod.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub use vec3array::*; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HitRecord` is never constructed [INFO] [stdout] --> src/gpu/hittable.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct HitRecord { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HitRecord` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_face_normal` is never used [INFO] [stdout] --> src/gpu/hittable.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl HitRecord { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 19 | pub fn set_face_normal(&mut self, r: Ray, outward_normal: Vec3) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Hittable` is never used [INFO] [stdout] --> src/gpu/hittable.rs:29:11 [INFO] [stdout] | [INFO] [stdout] 29 | pub trait Hittable: Send + Sync { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `add` are never used [INFO] [stdout] --> src/gpu/hittable_list.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl HittableList { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 9 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | pub fn add(&mut self, object: Arc) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `scatter` is never used [INFO] [stdout] --> src/gpu/material.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub trait Material: Send + Sync { [INFO] [stdout] | -------- method in this trait [INFO] [stdout] 7 | fn scatter(&self, r_in: Ray, rec: HitRecord) -> Option<(Color, Ray)>; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/gpu/material.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl Lambertian { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 15 | pub fn new(albedo: Color) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/gpu/material.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 40 | impl Metal { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 41 | pub fn new(albedo: Color, fuzz: f32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/gpu/material.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 66 | impl Dielectric { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 67 | pub fn new(index_of_refraction: f32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/gpu/material.rs:112:12 [INFO] [stdout] | [INFO] [stdout] 111 | impl TestMaterial { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] 112 | pub fn new(albedo: Color) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `origin`, `direction`, and `at` are never used [INFO] [stdout] --> src/gpu/ray.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl Ray { [INFO] [stdout] | -------- associated items in this implementation [INFO] [stdout] 10 | pub fn new(origin: Vec3, direction: Vec3) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 14 | pub fn origin(&self) -> Vec3 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn direction(&self) -> Vec3 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn at(&self, t: f32) -> Vec3 { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ray_color` is never used [INFO] [stdout] --> src/gpu/ray_color.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn ray_color(rays: Vec, world: &impl Hittable, depth: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_scene` is never used [INFO] [stdout] --> src/gpu/scene.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn test_scene() -> HittableList { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `random_scene` is never used [INFO] [stdout] --> src/gpu/scene.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn random_scene() -> HittableList { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/gpu/sphere.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Sphere { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 16 | pub fn new(center: Point3, radius: f32, material: Arc) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Point3Array` is never used [INFO] [stdout] --> src/gpu/vec3/vec3array.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | pub type Point3Array = Vec3Array; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `ColorArray` is never used [INFO] [stdout] --> src/gpu/vec3/vec3array.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | pub type ColorArray = Vec3Array; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `len`, `print`, `x`, `y`, and `z` are never used [INFO] [stdout] --> src/gpu/vec3/vec3array.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 28 | impl Vec3Array { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] 29 | pub fn len(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn print(&self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn x(&self) -> Array { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn y(&self) -> Array { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn z(&self) -> Array { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dot` is never used [INFO] [stdout] --> src/gpu/vec3/vec3array.rs:57:8 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn dot(u: Vec3Array, v: Vec3Array) -> Vec3Array { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cross` is never used [INFO] [stdout] --> src/gpu/vec3/vec3array.rs:63:8 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn cross(u: Vec3Array, v: Vec3Array) -> Vec3Array { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `unit` is never used [INFO] [stdout] --> src/gpu/vec3/vec3array.rs:72:8 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn unit(v: Vec3Array) -> Vec3Array { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `random`, `random_in_range`, and `near_zero` are never used [INFO] [stdout] --> src/gpu/vec3/vec3array.rs:84:12 [INFO] [stdout] | [INFO] [stdout] 83 | impl Vec3Array { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 84 | pub fn random(num: u64) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | pub fn random_in_range(num: u64, min: f32, max: f32) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 96 | pub fn near_zero(&self) -> Array { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `reflect` is never used [INFO] [stdout] --> src/gpu/vec3/vec3array.rs:105:8 [INFO] [stdout] | [INFO] [stdout] 105 | pub fn reflect(v: Vec3Array, n: Vec3Array) -> Vec3Array { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/material.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl Lambertian { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 15 | pub fn new(albedo: Color) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/material.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 66 | impl Dielectric { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 67 | pub fn new(index_of_refraction: f32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ray_color` is never used [INFO] [stdout] --> src/ray_color.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn ray_color(rays: Vec, world: &impl Hittable, depth: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_scene` is never used [INFO] [stdout] --> src/scene.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn test_scene() -> HittableList { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `random_scene` is never used [INFO] [stdout] --> src/scene.rs:72:8 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn random_scene() -> HittableList { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `random_in_hemisphere` is never used [INFO] [stdout] --> src/vec3/utils.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn random_in_hemisphere(normal: &Vec3) -> Vec3 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [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/gpu/vec3/vec3array.rs:59:16 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn dot(u: Vec3Array, v: Vec3Array) -> Vec3Array { [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] 58 | Vec3Array { [INFO] [stdout] 59 | elems: sum(&(u.elems * v.elems), 1), [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/gpu/vec3/vec3array.rs:79:16 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn unit(v: Vec3Array) -> Vec3Array { [INFO] [stdout] | ------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 73 | let len = sum(&(v.clone() * v.clone()), 1); [INFO] [stdout] | --- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 74 | let len1 = sqrt(&len); [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 75 | let len2 = sqrt(&len); [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 76 | let len3 = sqrt(&len); [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 77 | let len = join_many![1; &len1, &len2, &len3]; [INFO] [stdout] | --- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 78 | Vec3Array { [INFO] [stdout] 79 | elems: v.elems / len, [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: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/gpu/vec3/vec3array.rs:101:27 [INFO] [stdout] | [INFO] [stdout] 98 | let x = lt(&abs(&self.x()), &S, true); [INFO] [stdout] | - these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 99 | let y = lt(&abs(&self.y()), &S, true); [INFO] [stdout] | - these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 100 | let z = lt(&abs(&self.z()), &S, true); [INFO] [stdout] | - these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 101 | selectl(1.0, &x, &selectl(1.0, &y, &z)) [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: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/gpu/vec3/vec3array.rs:107:16 [INFO] [stdout] | [INFO] [stdout] 105 | pub fn reflect(v: Vec3Array, n: Vec3Array) -> Vec3Array { [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] 106 | Vec3Array { [INFO] [stdout] 107 | elems: v.clone() - 2.0f32 * dot(v, Vec3Array { elems: n.clone() }).clone() * n.clone(), [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: struct `HitRecord` is never constructed [INFO] [stdout] --> src/gpu/hittable.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct HitRecord { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HitRecord` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_face_normal` is never used [INFO] [stdout] --> src/gpu/hittable.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl HitRecord { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 19 | pub fn set_face_normal(&mut self, r: Ray, outward_normal: Vec3) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Hittable` is never used [INFO] [stdout] --> src/gpu/hittable.rs:29:11 [INFO] [stdout] | [INFO] [stdout] 29 | pub trait Hittable: Send + Sync { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `add` are never used [INFO] [stdout] --> src/gpu/hittable_list.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl HittableList { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 9 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | pub fn add(&mut self, object: Arc) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `scatter` is never used [INFO] [stdout] --> src/gpu/material.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub trait Material: Send + Sync { [INFO] [stdout] | -------- method in this trait [INFO] [stdout] 7 | fn scatter(&self, r_in: Ray, rec: HitRecord) -> Option<(Color, Ray)>; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/gpu/material.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl Lambertian { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 15 | pub fn new(albedo: Color) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/gpu/material.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 40 | impl Metal { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 41 | pub fn new(albedo: Color, fuzz: f32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/gpu/material.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 66 | impl Dielectric { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 67 | pub fn new(index_of_refraction: f32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/gpu/material.rs:112:12 [INFO] [stdout] | [INFO] [stdout] 111 | impl TestMaterial { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] 112 | pub fn new(albedo: Color) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `origin`, `direction`, and `at` are never used [INFO] [stdout] --> src/gpu/ray.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl Ray { [INFO] [stdout] | -------- associated items in this implementation [INFO] [stdout] 10 | pub fn new(origin: Vec3, direction: Vec3) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 14 | pub fn origin(&self) -> Vec3 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn direction(&self) -> Vec3 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn at(&self, t: f32) -> Vec3 { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ray_color` is never used [INFO] [stdout] --> src/gpu/ray_color.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn ray_color(rays: Vec, world: &impl Hittable, depth: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_scene` is never used [INFO] [stdout] --> src/gpu/scene.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn test_scene() -> HittableList { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `random_scene` is never used [INFO] [stdout] --> src/gpu/scene.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn random_scene() -> HittableList { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/gpu/sphere.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Sphere { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 16 | pub fn new(center: Point3, radius: f32, material: Arc) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors; 31 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Point3Array` is never used [INFO] [stdout] --> src/gpu/vec3/vec3array.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | pub type Point3Array = Vec3Array; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `ColorArray` is never used [INFO] [stdout] --> src/gpu/vec3/vec3array.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | pub type ColorArray = Vec3Array; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `len` is never used [INFO] [stdout] --> src/gpu/vec3/vec3array.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 28 | impl Vec3Array { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 29 | pub fn len(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dot` is never used [INFO] [stdout] --> src/gpu/vec3/vec3array.rs:57:8 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn dot(u: Vec3Array, v: Vec3Array) -> Vec3Array { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cross` is never used [INFO] [stdout] --> src/gpu/vec3/vec3array.rs:63:8 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn cross(u: Vec3Array, v: Vec3Array) -> Vec3Array { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `unit` is never used [INFO] [stdout] --> src/gpu/vec3/vec3array.rs:72:8 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn unit(v: Vec3Array) -> Vec3Array { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `random`, `random_in_range`, and `near_zero` are never used [INFO] [stdout] --> src/gpu/vec3/vec3array.rs:84:12 [INFO] [stdout] | [INFO] [stdout] 83 | impl Vec3Array { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 84 | pub fn random(num: u64) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | pub fn random_in_range(num: u64, min: f32, max: f32) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 96 | pub fn near_zero(&self) -> Array { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `reflect` is never used [INFO] [stdout] --> src/gpu/vec3/vec3array.rs:105:8 [INFO] [stdout] | [INFO] [stdout] 105 | pub fn reflect(v: Vec3Array, n: Vec3Array) -> Vec3Array { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `small_array` is never used [INFO] [stdout] --> src/gpu/vec3/vec3array.rs:124:8 [INFO] [stdout] | [INFO] [stdout] 124 | fn small_array() -> Vec3Array { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_dot` is never used [INFO] [stdout] --> src/gpu/vec3/vec3array.rs:144:8 [INFO] [stdout] | [INFO] [stdout] 144 | fn test_dot() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_cross` is never used [INFO] [stdout] --> src/gpu/vec3/vec3array.rs:152:8 [INFO] [stdout] | [INFO] [stdout] 152 | fn test_cross() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_unit` is never used [INFO] [stdout] --> src/gpu/vec3/vec3array.rs:160:8 [INFO] [stdout] | [INFO] [stdout] 160 | fn test_unit() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_near_zero` is never used [INFO] [stdout] --> src/gpu/vec3/vec3array.rs:167:8 [INFO] [stdout] | [INFO] [stdout] 167 | fn test_near_zero() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/material.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl Lambertian { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 15 | pub fn new(albedo: Color) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/material.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 66 | impl Dielectric { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 67 | pub fn new(index_of_refraction: f32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ray_color` is never used [INFO] [stdout] --> src/ray_color.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn ray_color(rays: Vec, world: &impl Hittable, depth: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_scene` is never used [INFO] [stdout] --> src/scene.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn test_scene() -> HittableList { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `random_scene` is never used [INFO] [stdout] --> src/scene.rs:72:8 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn random_scene() -> HittableList { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `random_in_hemisphere` is never used [INFO] [stdout] --> src/vec3/utils.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn random_in_hemisphere(normal: &Vec3) -> Vec3 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [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/gpu/vec3/vec3array.rs:59:16 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn dot(u: Vec3Array, v: Vec3Array) -> Vec3Array { [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] 58 | Vec3Array { [INFO] [stdout] 59 | elems: sum(&(u.elems * v.elems), 1), [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/gpu/vec3/vec3array.rs:79:16 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn unit(v: Vec3Array) -> Vec3Array { [INFO] [stdout] | ------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 73 | let len = sum(&(v.clone() * v.clone()), 1); [INFO] [stdout] | --- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 74 | let len1 = sqrt(&len); [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 75 | let len2 = sqrt(&len); [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 76 | let len3 = sqrt(&len); [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 77 | let len = join_many![1; &len1, &len2, &len3]; [INFO] [stdout] | --- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 78 | Vec3Array { [INFO] [stdout] 79 | elems: v.elems / len, [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: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/gpu/vec3/vec3array.rs:101:27 [INFO] [stdout] | [INFO] [stdout] 98 | let x = lt(&abs(&self.x()), &S, true); [INFO] [stdout] | - these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 99 | let y = lt(&abs(&self.y()), &S, true); [INFO] [stdout] | - these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 100 | let z = lt(&abs(&self.z()), &S, true); [INFO] [stdout] | - these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 101 | selectl(1.0, &x, &selectl(1.0, &y, &z)) [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: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/gpu/vec3/vec3array.rs:107:16 [INFO] [stdout] | [INFO] [stdout] 105 | pub fn reflect(v: Vec3Array, n: Vec3Array) -> Vec3Array { [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] 106 | Vec3Array { [INFO] [stdout] 107 | elems: v.clone() - 2.0f32 * dot(v, Vec3Array { elems: n.clone() }).clone() * n.clone(), [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 4 previous errors; 36 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `ray_tracing_one_weekend` (bin "ray_tracing_one_weekend") due to 5 previous errors; 31 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `ray_tracing_one_weekend` (bin "ray_tracing_one_weekend" test) due to 5 previous errors; 36 warnings emitted [INFO] running `Command { std: "docker" "inspect" "5e1d2f8c129176a71c91a458e6a31f6e9c8d6f933794a2c53ac90aea91e540aa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5e1d2f8c129176a71c91a458e6a31f6e9c8d6f933794a2c53ac90aea91e540aa", kill_on_drop: false }` [INFO] [stdout] 5e1d2f8c129176a71c91a458e6a31f6e9c8d6f933794a2c53ac90aea91e540aa