[INFO] cloning repository https://github.com/Angle7C/ray_v2 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Angle7C/ray_v2" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAngle7C%2Fray_v2", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAngle7C%2Fray_v2'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a600653686a1c517e8055b0a3bad800628b6b3d9 [INFO] checking Angle7C/ray_v2/a600653686a1c517e8055b0a3bad800628b6b3d9 against master#ab869e094a907cc5d19b4080f22eccaf347f1f95 for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAngle7C%2Fray_v2" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Angle7C/ray_v2 on toolchain ab869e094a907cc5d19b4080f22eccaf347f1f95 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Angle7C/ray_v2 [INFO] finished tweaking git repo https://github.com/Angle7C/ray_v2 [INFO] tweaked toml for git repo https://github.com/Angle7C/ray_v2 written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Angle7C/ray_v2 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" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded thread-id v4.2.0 [INFO] [stderr] Downloaded gltf-derive v1.3.0 [INFO] [stderr] Downloaded obj v0.10.2 [INFO] [stderr] Downloaded gltf-json v1.3.0 [INFO] [stderr] Downloaded gltf v1.3.0 [INFO] [stderr] Downloaded chrono v0.4.28 [INFO] [stderr] Downloaded bvh v0.7.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 86e5d1594d91b3eb037c184dd28d4c4610e1abbd87fddf371a3a205f57e5f7c1 [INFO] running `Command { std: "docker" "start" "-a" "86e5d1594d91b3eb037c184dd28d4c4610e1abbd87fddf371a3a205f57e5f7c1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "86e5d1594d91b3eb037c184dd28d4c4610e1abbd87fddf371a3a205f57e5f7c1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "86e5d1594d91b3eb037c184dd28d4c4610e1abbd87fddf371a3a205f57e5f7c1", kill_on_drop: false }` [INFO] [stdout] 86e5d1594d91b3eb037c184dd28d4c4610e1abbd87fddf371a3a205f57e5f7c1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-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" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d59fa99dd463e4bb763e171d4ea265c0fee9b19f39e6e510ead3d8ec00ed9e5e [INFO] running `Command { std: "docker" "start" "-a" "d59fa99dd463e4bb763e171d4ea265c0fee9b19f39e6e510ead3d8ec00ed9e5e", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.147 [INFO] [stderr] Compiling num-traits v0.2.16 [INFO] [stderr] Compiling crossbeam-utils v0.8.16 [INFO] [stderr] Compiling memoffset v0.9.0 [INFO] [stderr] Compiling crossbeam-epoch v0.9.15 [INFO] [stderr] Compiling lock_api v0.4.10 [INFO] [stderr] Checking simd-adler32 v0.3.7 [INFO] [stderr] Compiling rayon-core v1.11.0 [INFO] [stderr] Compiling num-bigint v0.4.4 [INFO] [stderr] Compiling num-rational v0.4.1 [INFO] [stderr] Compiling futures-core v0.3.28 [INFO] [stderr] Checking smallvec v1.11.0 [INFO] [stderr] Checking either v1.9.0 [INFO] [stderr] Compiling serde_json v1.0.105 [INFO] [stderr] Compiling syn v2.0.29 [INFO] [stderr] Compiling num-iter v0.1.43 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Checking miniz_oxide v0.7.1 [INFO] [stderr] Checking weezl v0.1.7 [INFO] [stderr] Checking futures-sink v0.3.28 [INFO] [stderr] Compiling parking_lot_core v0.9.8 [INFO] [stderr] Checking fdeflate v0.3.0 [INFO] [stderr] Checking zune-inflate v0.2.54 [INFO] [stderr] Checking bit_field v0.10.2 [INFO] [stderr] Compiling portable-atomic v1.4.3 [INFO] [stderr] Compiling inflections v1.1.1 [INFO] [stderr] Checking hashbrown v0.12.3 [INFO] [stderr] Checking hashbrown v0.14.0 [INFO] [stderr] Checking linked-hash-map v0.5.6 [INFO] [stderr] Checking destructure_traitobject v0.2.0 [INFO] [stderr] Checking bytemuck v1.13.1 [INFO] [stderr] Checking spin v0.9.8 [INFO] [stderr] Checking half v2.2.1 [INFO] [stderr] Checking flate2 v1.0.27 [INFO] [stderr] Checking color_quant v1.1.0 [INFO] [stderr] Checking lebe v0.5.2 [INFO] [stderr] Checking yaml-rust v0.4.5 [INFO] [stderr] Checking gif v0.12.0 [INFO] [stderr] Checking unsafe-any-ors v1.0.0 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking unicode-width v0.1.10 [INFO] [stderr] Checking winnow v0.5.15 [INFO] [stderr] Checking crossbeam-channel v0.5.8 [INFO] [stderr] Checking iana-time-zone v0.1.57 [INFO] [stderr] Checking qoi v0.4.1 [INFO] [stderr] Checking typemap-ors v1.0.0 [INFO] [stderr] Checking number_prefix v0.4.0 [INFO] [stderr] Checking crossbeam-deque v0.8.3 [INFO] [stderr] Checking log-mdc v0.1.0 [INFO] [stderr] Checking indexmap v2.0.0 [INFO] [stderr] Checking urlencoding v2.1.3 [INFO] [stderr] Checking arc-swap v1.6.0 [INFO] [stderr] Checking base64 v0.13.1 [INFO] [stderr] Checking getrandom v0.2.10 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking time v0.1.45 [INFO] [stderr] Checking console v0.15.7 [INFO] [stderr] Checking png v0.17.10 [INFO] [stderr] Checking thread-id v4.2.0 [INFO] [stderr] Checking nanorand v0.7.0 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking obj v0.10.2 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking indicatif v0.17.6 [INFO] [stderr] Checking num-integer v0.1.45 [INFO] [stderr] Checking ordered-float v2.10.0 [INFO] [stderr] Checking num-complex v0.4.4 [INFO] [stderr] Checking approx v0.5.1 [INFO] [stderr] Checking chrono v0.4.28 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking rayon v1.7.0 [INFO] [stderr] Compiling derivative v2.2.0 [INFO] [stderr] Compiling serde_derive v1.0.188 [INFO] [stderr] Compiling pin-project-internal v1.1.3 [INFO] [stderr] Compiling gltf-derive v1.3.0 [INFO] [stderr] Compiling thiserror-impl v1.0.47 [INFO] [stderr] Checking num v0.4.1 [INFO] [stderr] Checking jpeg-decoder v0.3.0 [INFO] [stderr] Checking thiserror v1.0.47 [INFO] [stderr] Checking pin-project v1.1.3 [INFO] [stderr] Checking flume v0.10.14 [INFO] [stderr] Checking tiff v0.9.0 [INFO] [stderr] Checking exr v1.7.0 [INFO] [stderr] Checking serde v1.0.188 [INFO] [stderr] Checking image v0.24.7 [INFO] [stderr] Checking toml_datetime v0.6.3 [INFO] [stderr] Checking log v0.4.20 [INFO] [stderr] Checking serde_spanned v0.6.3 [INFO] [stderr] Checking glam v0.23.0 [INFO] [stderr] Checking serde-value v0.7.0 [INFO] [stderr] Checking serde_yaml v0.8.26 [INFO] [stderr] Checking toml_edit v0.19.15 [INFO] [stderr] Checking gltf-json v1.3.0 [INFO] [stderr] Checking log4rs v1.2.0 [INFO] [stderr] Checking bvh v0.7.2 [INFO] [stderr] Checking toml v0.7.8 [INFO] [stderr] Checking gltf v1.3.0 [INFO] [stderr] Checking ray_v2 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `build::Context` [INFO] [stdout] --> src/main.rs:2:39 [INFO] [stdout] | [INFO] [stdout] 2 | use pbrt_core::{tool::{log::log_init, build::Context}, load::Load}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `fs::File` and `io::Read` [INFO] [stdout] --> src/pbrt_core/tool/build.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{fs::File, io::Read}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `load::Load` [INFO] [stdout] --> src/pbrt_core/tool/build.rs:3:48 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::pbrt_core::{integrator::Integrator, load::Load}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `SampleUniform` and `prelude::Distribution` [INFO] [stdout] --> src/pbrt_core/tool/func.rs:5:30 [INFO] [stdout] | [INFO] [stdout] 5 | distributions::uniform::{SampleUniform, UniformSampler}, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 6 | prelude::Distribution, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `gltf::mesh::util::tex_coords` [INFO] [stdout] --> src/pbrt_core/primitive/shape/triangle.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use gltf::mesh::util::tex_coords; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sampler::concentric_sample_disk` [INFO] [stdout] --> src/pbrt_core/primitive/shape/cylinder.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | sampler::concentric_sample_disk, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `UVec4` [INFO] [stdout] --> src/pbrt_core/load/gltfload.rs:3:36 [INFO] [stdout] | [INFO] [stdout] 3 | use glam::{u32::UVec3, Mat4, Quat, UVec4, Vec2, Vec3, Vec4}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `obj::Object` [INFO] [stdout] --> src/pbrt_core/load/tomlload.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use obj::Object; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `self` and `self` [INFO] [stdout] --> src/pbrt_core/load/tomlload.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | self, [INFO] [stdout] | ^^^^ [INFO] [stdout] 17 | mesh::Mesh, [INFO] [stdout] 18 | shape::{self, rectangle::Rectangle, shpere::Shpere, triangle::Triangle, Shape}, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `build::Context` [INFO] [stdout] --> src/main.rs:2:39 [INFO] [stdout] | [INFO] [stdout] 2 | use pbrt_core::{tool::{log::log_init, build::Context}, load::Load}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `fs::File` and `io::Read` [INFO] [stdout] --> src/pbrt_core/tool/build.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{fs::File, io::Read}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `load::Load` [INFO] [stdout] --> src/pbrt_core/tool/build.rs:3:48 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::pbrt_core::{integrator::Integrator, load::Load}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `SampleUniform` and `prelude::Distribution` [INFO] [stdout] --> src/pbrt_core/tool/func.rs:5:30 [INFO] [stdout] | [INFO] [stdout] 5 | distributions::uniform::{SampleUniform, UniformSampler}, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 6 | prelude::Distribution, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `gltf::mesh::util::tex_coords` [INFO] [stdout] --> src/pbrt_core/primitive/shape/triangle.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use gltf::mesh::util::tex_coords; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sampler::concentric_sample_disk` [INFO] [stdout] --> src/pbrt_core/primitive/shape/cylinder.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | sampler::concentric_sample_disk, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `UVec4` [INFO] [stdout] --> src/pbrt_core/load/gltfload.rs:3:36 [INFO] [stdout] | [INFO] [stdout] 3 | use glam::{u32::UVec3, Mat4, Quat, UVec4, Vec2, Vec3, Vec4}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `obj::Object` [INFO] [stdout] --> src/pbrt_core/load/tomlload.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use obj::Object; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `self` and `self` [INFO] [stdout] --> src/pbrt_core/load/tomlload.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | self, [INFO] [stdout] | ^^^^ [INFO] [stdout] 17 | mesh::Mesh, [INFO] [stdout] 18 | shape::{self, rectangle::Rectangle, shpere::Shpere, triangle::Triangle, Shape}, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::pbrt_core::camera::Camera` [INFO] [stdout] --> src/pbrt_core/load/mod.rs:137:9 [INFO] [stdout] | [INFO] [stdout] 137 | use crate::pbrt_core::camera::Camera; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `glam::Mat4` [INFO] [stdout] --> src/test/mod.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | use glam::Mat4; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `i` is never read [INFO] [stdout] --> src/pbrt_core/integrator/mod.rs:126:21 [INFO] [stdout] | [INFO] [stdout] 126 | let mut i=0; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `i` is never read [INFO] [stdout] --> src/pbrt_core/integrator/mod.rs:126:21 [INFO] [stdout] | [INFO] [stdout] 126 | let mut i=0; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/pbrt_core/bxdf/microfacet_distribution.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 32 | return roughness; [INFO] [stdout] | ---------------- any code following this expression is unreachable [INFO] [stdout] 33 | // let mut roughness = roughness; [INFO] [stdout] 34 | let limit = 1e-3; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/pbrt_core/bxdf/microfacet_distribution.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 32 | return roughness; [INFO] [stdout] | ---------------- any code following this expression is unreachable [INFO] [stdout] 33 | // let mut roughness = roughness; [INFO] [stdout] 34 | let limit = 1e-3; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/pbrt_core/load/tomlload.rs:56:59 [INFO] [stdout] | [INFO] [stdout] 56 | let light = Self::load_light(self.light, unsafe { &SHAPE }, textures); [INFO] [stdout] | ^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 56 | let light = Self::load_light(self.light, unsafe { addr_of!(SHAPE) }, textures); [INFO] [stdout] | ~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/pbrt_core/load/tomlload.rs:56:59 [INFO] [stdout] | [INFO] [stdout] 56 | let light = Self::load_light(self.light, unsafe { &SHAPE }, textures); [INFO] [stdout] | ^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 56 | let light = Self::load_light(self.light, unsafe { addr_of!(SHAPE) }, textures); [INFO] [stdout] | ~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `UniformSampler` [INFO] [stdout] --> src/pbrt_core/tool/func.rs:5:45 [INFO] [stdout] | [INFO] [stdout] 5 | distributions::uniform::{SampleUniform, UniformSampler}, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `du` is assigned to, but never used [INFO] [stdout] --> src/pbrt_core/sampler/distribution_1d.rs:51:18 [INFO] [stdout] | [INFO] [stdout] 51 | let mut du=u-self.cdf[index]; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_du` instead [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `du` is never read [INFO] [stdout] --> src/pbrt_core/sampler/distribution_1d.rs:53:13 [INFO] [stdout] | [INFO] [stdout] 53 | du/=self.cdf[index+1]-self.cdf[index]; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `UniformSampler` [INFO] [stdout] --> src/pbrt_core/tool/func.rs:5:45 [INFO] [stdout] | [INFO] [stdout] 5 | distributions::uniform::{SampleUniform, UniformSampler}, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pdf` [INFO] [stdout] --> src/pbrt_core/primitive/shape/cylinder.rs:37:89 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn sample_interaction(&self, common: &mut InteractionCommon, smaple_point: Vec2,pdf:&mut f32) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_pdf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/pbrt_core/primitive/mod.rs:43:17 [INFO] [stdout] | [INFO] [stdout] 43 | _=>todo!() [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/pbrt_core/primitive/mod.rs:43:17 [INFO] [stdout] | [INFO] [stdout] 39 | Shape::Rect(rect) => rect.compute_scattering(isct, mode), [INFO] [stdout] | ----------------- matches some of the same values [INFO] [stdout] 40 | Self::Shpere(sphere) => sphere.compute_scattering(isct, mode), [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] 41 | Shape::Cylinder(cylinder) => cylinder.compute_scattering(isct, mode), [INFO] [stdout] | ------------------------- matches some of the same values [INFO] [stdout] 42 | Shape::Disk(disk) => disk.compute_scattering(isct, mode), [INFO] [stdout] | ----------------- matches some of the same values [INFO] [stdout] 43 | _=>todo!() [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/pbrt_core/primitive/mod.rs:92:17 [INFO] [stdout] | [INFO] [stdout] 92 | _=>todo!(), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/pbrt_core/primitive/mod.rs:92:17 [INFO] [stdout] | [INFO] [stdout] 88 | Self::Rect(rect) => rect.sample_interaction(common, smaple_point,pdf), [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] 89 | Self::Shpere(sphere) => sphere.sample_interaction(common, smaple_point,pdf), [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] 90 | Self::Cylinder(cylinder) => cylinder.sample_interaction(common, smaple_point,pdf), [INFO] [stdout] | ------------------------ matches some of the same values [INFO] [stdout] 91 | Self::Disk(disk)=>disk.sample_interaction(common, smaple_point,pdf), [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] 92 | _=>todo!(), [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `du` is assigned to, but never used [INFO] [stdout] --> src/pbrt_core/sampler/distribution_1d.rs:51:18 [INFO] [stdout] | [INFO] [stdout] 51 | let mut du=u-self.cdf[index]; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_du` instead [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `du` is never read [INFO] [stdout] --> src/pbrt_core/sampler/distribution_1d.rs:53:13 [INFO] [stdout] | [INFO] [stdout] 53 | du/=self.cdf[index+1]-self.cdf[index]; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/pbrt_core/bxdf/mod.rs:89:13 [INFO] [stdout] | [INFO] [stdout] 89 | _ => todo!(), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/pbrt_core/bxdf/mod.rs:89:13 [INFO] [stdout] | [INFO] [stdout] 81 | Self::LambertianReflection(lambert) => lambert.match_type(flag), [INFO] [stdout] | ----------------------------------- matches some of the same values [INFO] [stdout] 82 | Self::SpecularReflection(spec_ref) => spec_ref.match_type(flag), [INFO] [stdout] | ---------------------------------- matches some of the same values [INFO] [stdout] 83 | Self::OrenNayar(oren) => oren.match_type(flag), [INFO] [stdout] | --------------------- matches some of the same values [INFO] [stdout] 84 | Self::PbrDiff(diff) => diff.match_type(flag), [INFO] [stdout] | ------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 89 | _ => todo!(), [INFO] [stdout] | ^ ...and 2 other patterns collectively make this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/pbrt_core/bxdf/mod.rs:102:13 [INFO] [stdout] | [INFO] [stdout] 102 | _ => todo!(), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/pbrt_core/bxdf/mod.rs:102:13 [INFO] [stdout] | [INFO] [stdout] 94 | Self::LambertianReflection(lam) => lam.f(w_in, w_out), [INFO] [stdout] | ------------------------------- matches some of the same values [INFO] [stdout] 95 | Self::SpecularReflection(spec_ref) => spec_ref.f(w_in, w_out), [INFO] [stdout] | ---------------------------------- matches some of the same values [INFO] [stdout] 96 | Self::OrenNayar(oren) => oren.f(w_in, w_out), [INFO] [stdout] | --------------------- matches some of the same values [INFO] [stdout] 97 | Self::PbrDiff(diff) => diff.f(w_in, w_out), [INFO] [stdout] | ------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 102 | _ => todo!(), [INFO] [stdout] | ^ ...and 2 other patterns collectively make this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/pbrt_core/bxdf/mod.rs:115:13 [INFO] [stdout] | [INFO] [stdout] 115 | _ => todo!(), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/pbrt_core/bxdf/mod.rs:115:13 [INFO] [stdout] | [INFO] [stdout] 107 | Self::LambertianReflection(lambert) => lambert.sample_f(wi, w_out, u, pdf), [INFO] [stdout] | ----------------------------------- matches some of the same values [INFO] [stdout] 108 | Self::SpecularReflection(spec_ref) => spec_ref.sample_f(wi, w_out, u, pdf), [INFO] [stdout] | ---------------------------------- matches some of the same values [INFO] [stdout] 109 | Self::OrenNayar(oren) => oren.sample_f(wi, w_out, u, pdf), [INFO] [stdout] | --------------------- matches some of the same values [INFO] [stdout] 110 | Self::PbrDiff(diff) => diff.sample_f(wi, w_out, u, pdf), [INFO] [stdout] | ------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 115 | _ => todo!(), [INFO] [stdout] | ^ ...and 2 other patterns collectively make this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pdf` [INFO] [stdout] --> src/pbrt_core/primitive/shape/cylinder.rs:37:89 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn sample_interaction(&self, common: &mut InteractionCommon, smaple_point: Vec2,pdf:&mut f32) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_pdf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/pbrt_core/primitive/mod.rs:43:17 [INFO] [stdout] | [INFO] [stdout] 43 | _=>todo!() [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/pbrt_core/primitive/mod.rs:43:17 [INFO] [stdout] | [INFO] [stdout] 39 | Shape::Rect(rect) => rect.compute_scattering(isct, mode), [INFO] [stdout] | ----------------- matches some of the same values [INFO] [stdout] 40 | Self::Shpere(sphere) => sphere.compute_scattering(isct, mode), [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] 41 | Shape::Cylinder(cylinder) => cylinder.compute_scattering(isct, mode), [INFO] [stdout] | ------------------------- matches some of the same values [INFO] [stdout] 42 | Shape::Disk(disk) => disk.compute_scattering(isct, mode), [INFO] [stdout] | ----------------- matches some of the same values [INFO] [stdout] 43 | _=>todo!() [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/pbrt_core/primitive/mod.rs:92:17 [INFO] [stdout] | [INFO] [stdout] 92 | _=>todo!(), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/pbrt_core/primitive/mod.rs:92:17 [INFO] [stdout] | [INFO] [stdout] 88 | Self::Rect(rect) => rect.sample_interaction(common, smaple_point,pdf), [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] 89 | Self::Shpere(sphere) => sphere.sample_interaction(common, smaple_point,pdf), [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] 90 | Self::Cylinder(cylinder) => cylinder.sample_interaction(common, smaple_point,pdf), [INFO] [stdout] | ------------------------ matches some of the same values [INFO] [stdout] 91 | Self::Disk(disk)=>disk.sample_interaction(common, smaple_point,pdf), [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] 92 | _=>todo!(), [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `sampled_specular` is never read [INFO] [stdout] --> src/pbrt_core/integrator/mod.rs:350:17 [INFO] [stdout] | [INFO] [stdout] 350 | let mut sampled_specular = false; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `transform_vec` [INFO] [stdout] --> src/pbrt_core/load/gltfload.rs:27:67 [INFO] [stdout] | [INFO] [stdout] 27 | let (all_point, all_normal, all_uv, index_vec, nodes, transform_vec, det_index_vec) = [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_transform_vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `material` [INFO] [stdout] --> src/pbrt_core/load/gltfload.rs:62:13 [INFO] [stdout] | [INFO] [stdout] 62 | let material = primitive.material(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_material` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/pbrt_core/bxdf/mod.rs:89:13 [INFO] [stdout] | [INFO] [stdout] 89 | _ => todo!(), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/pbrt_core/bxdf/mod.rs:89:13 [INFO] [stdout] | [INFO] [stdout] 81 | Self::LambertianReflection(lambert) => lambert.match_type(flag), [INFO] [stdout] | ----------------------------------- matches some of the same values [INFO] [stdout] 82 | Self::SpecularReflection(spec_ref) => spec_ref.match_type(flag), [INFO] [stdout] | ---------------------------------- matches some of the same values [INFO] [stdout] 83 | Self::OrenNayar(oren) => oren.match_type(flag), [INFO] [stdout] | --------------------- matches some of the same values [INFO] [stdout] 84 | Self::PbrDiff(diff) => diff.match_type(flag), [INFO] [stdout] | ------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 89 | _ => todo!(), [INFO] [stdout] | ^ ...and 2 other patterns collectively make this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/pbrt_core/bxdf/mod.rs:102:13 [INFO] [stdout] | [INFO] [stdout] 102 | _ => todo!(), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/pbrt_core/bxdf/mod.rs:102:13 [INFO] [stdout] | [INFO] [stdout] 94 | Self::LambertianReflection(lam) => lam.f(w_in, w_out), [INFO] [stdout] | ------------------------------- matches some of the same values [INFO] [stdout] 95 | Self::SpecularReflection(spec_ref) => spec_ref.f(w_in, w_out), [INFO] [stdout] | ---------------------------------- matches some of the same values [INFO] [stdout] 96 | Self::OrenNayar(oren) => oren.f(w_in, w_out), [INFO] [stdout] | --------------------- matches some of the same values [INFO] [stdout] 97 | Self::PbrDiff(diff) => diff.f(w_in, w_out), [INFO] [stdout] | ------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 102 | _ => todo!(), [INFO] [stdout] | ^ ...and 2 other patterns collectively make this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/pbrt_core/bxdf/mod.rs:115:13 [INFO] [stdout] | [INFO] [stdout] 115 | _ => todo!(), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/pbrt_core/bxdf/mod.rs:115:13 [INFO] [stdout] | [INFO] [stdout] 107 | Self::LambertianReflection(lambert) => lambert.sample_f(wi, w_out, u, pdf), [INFO] [stdout] | ----------------------------------- matches some of the same values [INFO] [stdout] 108 | Self::SpecularReflection(spec_ref) => spec_ref.sample_f(wi, w_out, u, pdf), [INFO] [stdout] | ---------------------------------- matches some of the same values [INFO] [stdout] 109 | Self::OrenNayar(oren) => oren.sample_f(wi, w_out, u, pdf), [INFO] [stdout] | --------------------- matches some of the same values [INFO] [stdout] 110 | Self::PbrDiff(diff) => diff.sample_f(wi, w_out, u, pdf), [INFO] [stdout] | ------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 115 | _ => todo!(), [INFO] [stdout] | ^ ...and 2 other patterns collectively make this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/pbrt_core/load/tomlload.rs:109:17 [INFO] [stdout] | [INFO] [stdout] 109 | _ => todo!(), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/pbrt_core/load/tomlload.rs:109:17 [INFO] [stdout] | [INFO] [stdout] 83 | MaterialToml::Matte { kd, sigma } => { [INFO] [stdout] | --------------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 88 | MaterialToml::Plastic { kd, ks, roughness } => { [INFO] [stdout] | ------------------------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 94 | MaterialToml::Mirror { kr } => { [INFO] [stdout] | --------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 98 | MaterialToml::Metal { eta, k, roughness } => { [INFO] [stdout] | ----------------------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 109 | _ => todo!(), [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `sampled_specular` is never read [INFO] [stdout] --> src/pbrt_core/integrator/mod.rs:350:17 [INFO] [stdout] | [INFO] [stdout] 350 | let mut sampled_specular = false; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `transform_vec` [INFO] [stdout] --> src/pbrt_core/load/gltfload.rs:27:67 [INFO] [stdout] | [INFO] [stdout] 27 | let (all_point, all_normal, all_uv, index_vec, nodes, transform_vec, det_index_vec) = [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_transform_vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `material` [INFO] [stdout] --> src/pbrt_core/load/gltfload.rs:62:13 [INFO] [stdout] | [INFO] [stdout] 62 | let material = primitive.material(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_material` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/pbrt_core/load/tomlload.rs:109:17 [INFO] [stdout] | [INFO] [stdout] 109 | _ => todo!(), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/pbrt_core/load/tomlload.rs:109:17 [INFO] [stdout] | [INFO] [stdout] 83 | MaterialToml::Matte { kd, sigma } => { [INFO] [stdout] | --------------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 88 | MaterialToml::Plastic { kd, ks, roughness } => { [INFO] [stdout] | ------------------------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 94 | MaterialToml::Mirror { kr } => { [INFO] [stdout] | --------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 98 | MaterialToml::Metal { eta, k, roughness } => { [INFO] [stdout] | ----------------------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 109 | _ => todo!(), [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `message` is never read [INFO] [stdout] --> src/pbrt_core/tool/error.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct BizError{ [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 4 | message:String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BizError` has a derived impl for the trait `Debug`, 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: field `shape` is never read [INFO] [stdout] --> src/pbrt_core/tool/sence.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Sence { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 14 | shape: &'static [Box], [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `func_int` is never read [INFO] [stdout] --> src/pbrt_core/sampler/distribution_1d.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Distribution1D { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 6 | func_int: f32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `light` is never read [INFO] [stdout] --> src/pbrt_core/primitive/mod.rs:158:5 [INFO] [stdout] | [INFO] [stdout] 156 | pub struct GeometricePrimitive<'a> { [INFO] [stdout] | ------------------- field in this struct [INFO] [stdout] 157 | primitive: &'a dyn Primitive, [INFO] [stdout] 158 | light: Option<&'a dyn LightAble>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GeometricePrimitive` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `material` is never read [INFO] [stdout] --> src/pbrt_core/primitive/shape/cylinder.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct Cylinder<'a> { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 20 | material: Option<&'a dyn Material>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Cylinder` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `material` is never read [INFO] [stdout] --> src/pbrt_core/primitive/shape/disk.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Disk<'a> { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 16 | material: Option<&'a dyn Material>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Disk` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `remap` is never read [INFO] [stdout] --> src/pbrt_core/material/metal.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct MetalMaterial<'a> { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 26 | remap: bool, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MetalMaterial` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `sigma` is never read [INFO] [stdout] --> src/pbrt_core/material/plastic.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct Plastic<'a> { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 17 | sigma: Arc, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Plastic` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `filter` is never read [INFO] [stdout] --> src/pbrt_core/texture/image.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct ImageTexture { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 9 | mipmap: MipMap, [INFO] [stdout] 10 | filter: Filter, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ImageTexture` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `load_material` is never used [INFO] [stdout] --> src/pbrt_core/load/gltfload.rs:113:4 [INFO] [stdout] | [INFO] [stdout] 113 | fn load_material<'a, 'b>( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `po` and `eta` are never read [INFO] [stdout] --> src/pbrt_core/bssrdf/mod.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct BSSRDF<'a>{ [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 4 | po:&'a SurfaceInteraction<'a>, [INFO] [stdout] | ^^ [INFO] [stdout] 5 | eta: f32, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::hint::must_use` that must be used [INFO] [stdout] --> src/pbrt_core/integrator/mod.rs:164:9 [INFO] [stdout] | [INFO] [stdout] 164 | format!("渲染完成,图像输出:{}", path.display()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this warning originates in the macro `format` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::hint::must_use` that must be used [INFO] [stdout] --> src/pbrt_core/integrator/mod.rs:195:9 [INFO] [stdout] | [INFO] [stdout] 195 | format!("渲染完成,图像输出:{}", path.display()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `format` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `str` [INFO] [stdout] --> src/pbrt_core/load/mod.rs:144:13 [INFO] [stdout] | [INFO] [stdout] 144 | let str = toml::to_string(&data).unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 38 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `message` is never read [INFO] [stdout] --> src/pbrt_core/tool/error.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct BizError{ [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 4 | message:String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BizError` has a derived impl for the trait `Debug`, 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: field `shape` is never read [INFO] [stdout] --> src/pbrt_core/tool/sence.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Sence { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 14 | shape: &'static [Box], [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `func_int` is never read [INFO] [stdout] --> src/pbrt_core/sampler/distribution_1d.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Distribution1D { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 6 | func_int: f32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `light` is never read [INFO] [stdout] --> src/pbrt_core/primitive/mod.rs:158:5 [INFO] [stdout] | [INFO] [stdout] 156 | pub struct GeometricePrimitive<'a> { [INFO] [stdout] | ------------------- field in this struct [INFO] [stdout] 157 | primitive: &'a dyn Primitive, [INFO] [stdout] 158 | light: Option<&'a dyn LightAble>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GeometricePrimitive` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `material` is never read [INFO] [stdout] --> src/pbrt_core/primitive/shape/cylinder.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct Cylinder<'a> { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 20 | material: Option<&'a dyn Material>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Cylinder` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `material` is never read [INFO] [stdout] --> src/pbrt_core/primitive/shape/disk.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Disk<'a> { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 16 | material: Option<&'a dyn Material>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Disk` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `remap` is never read [INFO] [stdout] --> src/pbrt_core/material/metal.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct MetalMaterial<'a> { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 26 | remap: bool, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MetalMaterial` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `sigma` is never read [INFO] [stdout] --> src/pbrt_core/material/plastic.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct Plastic<'a> { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 17 | sigma: Arc, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Plastic` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `filter` is never read [INFO] [stdout] --> src/pbrt_core/texture/image.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct ImageTexture { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 9 | mipmap: MipMap, [INFO] [stdout] 10 | filter: Filter, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ImageTexture` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `load_material` is never used [INFO] [stdout] --> src/pbrt_core/load/gltfload.rs:113:4 [INFO] [stdout] | [INFO] [stdout] 113 | fn load_material<'a, 'b>( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `po` and `eta` are never read [INFO] [stdout] --> src/pbrt_core/bssrdf/mod.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct BSSRDF<'a>{ [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 4 | po:&'a SurfaceInteraction<'a>, [INFO] [stdout] | ^^ [INFO] [stdout] 5 | eta: f32, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::hint::must_use` that must be used [INFO] [stdout] --> src/pbrt_core/integrator/mod.rs:164:9 [INFO] [stdout] | [INFO] [stdout] 164 | format!("渲染完成,图像输出:{}", path.display()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this warning originates in the macro `format` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::hint::must_use` that must be used [INFO] [stdout] --> src/pbrt_core/integrator/mod.rs:195:9 [INFO] [stdout] | [INFO] [stdout] 195 | format!("渲染完成,图像输出:{}", path.display()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `format` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/test/mod.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | image.save_with_format("skybox.png", image::ImageFormat::Png); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 19 | let _ = image.save_with_format("skybox.png", image::ImageFormat::Png); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/test/mod.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | ObjLoad::load(path.display().to_string().as_str()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 25 | let _ = ObjLoad::load(path.display().to_string().as_str()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 43 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 36.37s [INFO] running `Command { std: "docker" "inspect" "d59fa99dd463e4bb763e171d4ea265c0fee9b19f39e6e510ead3d8ec00ed9e5e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d59fa99dd463e4bb763e171d4ea265c0fee9b19f39e6e510ead3d8ec00ed9e5e", kill_on_drop: false }` [INFO] [stdout] d59fa99dd463e4bb763e171d4ea265c0fee9b19f39e6e510ead3d8ec00ed9e5e