[INFO] cloning repository https://github.com/bittermandel/pbrt-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/bittermandel/pbrt-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbittermandel%2Fpbrt-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbittermandel%2Fpbrt-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 336dbe60b4b416977bf645ef9ffcd17c01128fa4 [INFO] building bittermandel/pbrt-rust against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbittermandel%2Fpbrt-rust" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/bittermandel/pbrt-rust on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/bittermandel/pbrt-rust [INFO] finished tweaking git repo https://github.com/bittermandel/pbrt-rust [INFO] tweaked toml for git repo https://github.com/bittermandel/pbrt-rust written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/bittermandel/pbrt-rust already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bf3fb4d87b60eecdd496647af0e973ef7faaa20379145335361dba02116b1884 [INFO] running `Command { std: "docker" "start" "-a" "bf3fb4d87b60eecdd496647af0e973ef7faaa20379145335361dba02116b1884", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bf3fb4d87b60eecdd496647af0e973ef7faaa20379145335361dba02116b1884", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bf3fb4d87b60eecdd496647af0e973ef7faaa20379145335361dba02116b1884", kill_on_drop: false }` [INFO] [stdout] bf3fb4d87b60eecdd496647af0e973ef7faaa20379145335361dba02116b1884 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dtail-expr-drop-order" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 08ae23557a6db9fb770aac9e32d8c1b7026d6ae2dfa52f6aec5bdb7a5e383406 [INFO] running `Command { std: "docker" "start" "-a" "08ae23557a6db9fb770aac9e32d8c1b7026d6ae2dfa52f6aec5bdb7a5e383406", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.14 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling libc v0.2.139 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling rayon-core v1.10.1 [INFO] [stderr] Compiling anyhow v1.0.68 [INFO] [stderr] Compiling either v1.8.0 [INFO] [stderr] Compiling memoffset v0.7.1 [INFO] [stderr] Compiling crossbeam-epoch v0.9.13 [INFO] [stderr] Compiling crossbeam-channel v0.5.6 [INFO] [stderr] Compiling num_cpus v1.15.0 [INFO] [stderr] Compiling crossbeam-deque v0.8.2 [INFO] [stderr] Compiling rayon v1.6.1 [INFO] [stderr] Compiling pbrt v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/core/scene.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scene` [INFO] [stdout] --> src/core/integrator.rs:23:30 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn preprocess(&self, scene: &Scene) {} [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_scene` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ray` [INFO] [stdout] --> src/core/integrator.rs:25:22 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn Li(&self, ray: &RayDifferential, scene: &Scene, depth: i64) -> Spectrum { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ray` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scene` [INFO] [stdout] --> src/core/integrator.rs:25:45 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn Li(&self, ray: &RayDifferential, scene: &Scene, depth: i64) -> Spectrum { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_scene` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `depth` [INFO] [stdout] --> src/core/integrator.rs:25:60 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn Li(&self, ray: &RayDifferential, scene: &Scene, depth: i64) -> Spectrum { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_depth` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `filename` [INFO] [stdout] --> src/main.rs:34:13 [INFO] [stdout] | [INFO] [stdout] 34 | for filename in filenames { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_filename` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Options` is never constructed [INFO] [stdout] --> src/main.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct Options { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Camera` is never constructed [INFO] [stdout] --> src/core/camera.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Camera { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Pixel` is never constructed [INFO] [stdout] --> src/core/film.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct Pixel { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Film` is never constructed [INFO] [stdout] --> src/core/film.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Film { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `get_film_tile` and `get_sample_bounds` are never used [INFO] [stdout] --> src/core/film.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl Film { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 14 | pub fn get_film_tile(sample_bounds: Bounds2i) -> FilmTile { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | pub fn get_sample_bounds(&self) -> Bounds2i { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FilmTile` is never constructed [INFO] [stdout] --> src/core/film.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 28 | pub struct FilmTile { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RayDifferential` is never constructed [INFO] [stdout] --> src/core/geometry.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct RayDifferential {} [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `length_squared` is never used [INFO] [stdout] --> src/core/geometry.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl Vector2i { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 11 | pub fn length_squared(&self) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `has_nans`, `length_squared`, and `length` are never used [INFO] [stdout] --> src/core/geometry.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl Vector2f { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] 22 | pub fn has_nans(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn length_squared(&self) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn length(&self) -> f32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Vector3i` is never constructed [INFO] [stdout] --> src/core/geometry.rs:59:12 [INFO] [stdout] | [INFO] [stdout] 59 | pub struct Vector3i { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `length_squared` is never used [INFO] [stdout] --> src/core/geometry.rs:66:12 [INFO] [stdout] | [INFO] [stdout] 65 | impl Vector3i { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 66 | pub fn length_squared(&self) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Vector3f` is never constructed [INFO] [stdout] --> src/core/geometry.rs:71:12 [INFO] [stdout] | [INFO] [stdout] 71 | pub struct Vector3f { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `length_squared` is never used [INFO] [stdout] --> src/core/geometry.rs:78:12 [INFO] [stdout] | [INFO] [stdout] 77 | impl Vector3f { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 78 | pub fn length_squared(&self) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Point2i` is never constructed [INFO] [stdout] --> src/core/geometry.rs:83:12 [INFO] [stdout] | [INFO] [stdout] 83 | pub struct Point2i { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Point2f` is never constructed [INFO] [stdout] --> src/core/geometry.rs:88:12 [INFO] [stdout] | [INFO] [stdout] 88 | pub struct Point2f { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Bounds2i` is never constructed [INFO] [stdout] --> src/core/geometry.rs:93:12 [INFO] [stdout] | [INFO] [stdout] 93 | pub struct Bounds2i { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `diagonal` is never used [INFO] [stdout] --> src/core/geometry.rs:99:12 [INFO] [stdout] | [INFO] [stdout] 98 | impl Bounds2i { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 99 | pub fn diagonal(&self) -> Vector2i { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Bounds2f` is never constructed [INFO] [stdout] --> src/core/geometry.rs:107:12 [INFO] [stdout] | [INFO] [stdout] 107 | pub struct Bounds2f { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `diagonal` is never used [INFO] [stdout] --> src/core/geometry.rs:113:12 [INFO] [stdout] | [INFO] [stdout] 112 | impl Bounds2f { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 113 | pub fn diagonal(&self) -> Vector2f { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Integrator` is never used [INFO] [stdout] --> src/core/integrator.rs:9:7 [INFO] [stdout] | [INFO] [stdout] 9 | trait Integrator { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SamplerIntegrator` is never constructed [INFO] [stdout] --> src/core/integrator.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct SamplerIntegrator { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `preprocess`, and `Li` are never used [INFO] [stdout] --> src/core/integrator.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl SamplerIntegrator { [INFO] [stdout] | ---------------------- associated items in this implementation [INFO] [stdout] 19 | pub fn new(camera: Camera, sampler: Sampler) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn preprocess(&self, scene: &Scene) {} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 24 | [INFO] [stdout] 25 | pub fn Li(&self, ray: &RayDifferential, scene: &Scene, depth: i64) -> Spectrum { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Sampler` is never constructed [INFO] [stdout] --> src/core/sampler.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Sampler {} [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Scene` is never constructed [INFO] [stdout] --> src/core/scene.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Scene { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/core/scene.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl Scene { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 10 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Spectrum` is never constructed [INFO] [stdout] --> src/core/spectrum.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Spectrum {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `Li` should have a snake case name [INFO] [stdout] --> src/core/integrator.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn Li(&self, ray: &RayDifferential, scene: &Scene, depth: i64) -> Spectrum { [INFO] [stdout] | ^^ help: convert the identifier to snake case: `li` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.19s [INFO] running `Command { std: "docker" "inspect" "08ae23557a6db9fb770aac9e32d8c1b7026d6ae2dfa52f6aec5bdb7a5e383406", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "08ae23557a6db9fb770aac9e32d8c1b7026d6ae2dfa52f6aec5bdb7a5e383406", kill_on_drop: false }` [INFO] [stdout] 08ae23557a6db9fb770aac9e32d8c1b7026d6ae2dfa52f6aec5bdb7a5e383406 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dtail-expr-drop-order" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a84cf4c507be0d0dd0fa22b0a5f13ea3cea670ebc7bbea57d261a8fb21816454 [INFO] running `Command { std: "docker" "start" "-a" "a84cf4c507be0d0dd0fa22b0a5f13ea3cea670ebc7bbea57d261a8fb21816454", kill_on_drop: false }` [INFO] [stderr] Compiling pbrt v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/core/scene.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scene` [INFO] [stdout] --> src/core/integrator.rs:23:30 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn preprocess(&self, scene: &Scene) {} [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_scene` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ray` [INFO] [stdout] --> src/core/integrator.rs:25:22 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn Li(&self, ray: &RayDifferential, scene: &Scene, depth: i64) -> Spectrum { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ray` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scene` [INFO] [stdout] --> src/core/integrator.rs:25:45 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn Li(&self, ray: &RayDifferential, scene: &Scene, depth: i64) -> Spectrum { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_scene` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `depth` [INFO] [stdout] --> src/core/integrator.rs:25:60 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn Li(&self, ray: &RayDifferential, scene: &Scene, depth: i64) -> Spectrum { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_depth` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `filename` [INFO] [stdout] --> src/main.rs:34:13 [INFO] [stdout] | [INFO] [stdout] 34 | for filename in filenames { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_filename` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Options` is never constructed [INFO] [stdout] --> src/main.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct Options { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Camera` is never constructed [INFO] [stdout] --> src/core/camera.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Camera { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Pixel` is never constructed [INFO] [stdout] --> src/core/film.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct Pixel { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Film` is never constructed [INFO] [stdout] --> src/core/film.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Film { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `get_film_tile` and `get_sample_bounds` are never used [INFO] [stdout] --> src/core/film.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl Film { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 14 | pub fn get_film_tile(sample_bounds: Bounds2i) -> FilmTile { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | pub fn get_sample_bounds(&self) -> Bounds2i { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FilmTile` is never constructed [INFO] [stdout] --> src/core/film.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 28 | pub struct FilmTile { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RayDifferential` is never constructed [INFO] [stdout] --> src/core/geometry.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct RayDifferential {} [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `length_squared` is never used [INFO] [stdout] --> src/core/geometry.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl Vector2i { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 11 | pub fn length_squared(&self) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `has_nans`, `length_squared`, and `length` are never used [INFO] [stdout] --> src/core/geometry.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl Vector2f { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] 22 | pub fn has_nans(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn length_squared(&self) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn length(&self) -> f32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Vector3i` is never constructed [INFO] [stdout] --> src/core/geometry.rs:59:12 [INFO] [stdout] | [INFO] [stdout] 59 | pub struct Vector3i { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `length_squared` is never used [INFO] [stdout] --> src/core/geometry.rs:66:12 [INFO] [stdout] | [INFO] [stdout] 65 | impl Vector3i { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 66 | pub fn length_squared(&self) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Vector3f` is never constructed [INFO] [stdout] --> src/core/geometry.rs:71:12 [INFO] [stdout] | [INFO] [stdout] 71 | pub struct Vector3f { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `length_squared` is never used [INFO] [stdout] --> src/core/geometry.rs:78:12 [INFO] [stdout] | [INFO] [stdout] 77 | impl Vector3f { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 78 | pub fn length_squared(&self) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Point2i` is never constructed [INFO] [stdout] --> src/core/geometry.rs:83:12 [INFO] [stdout] | [INFO] [stdout] 83 | pub struct Point2i { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Point2f` is never constructed [INFO] [stdout] --> src/core/geometry.rs:88:12 [INFO] [stdout] | [INFO] [stdout] 88 | pub struct Point2f { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Bounds2i` is never constructed [INFO] [stdout] --> src/core/geometry.rs:93:12 [INFO] [stdout] | [INFO] [stdout] 93 | pub struct Bounds2i { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `diagonal` is never used [INFO] [stdout] --> src/core/geometry.rs:99:12 [INFO] [stdout] | [INFO] [stdout] 98 | impl Bounds2i { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 99 | pub fn diagonal(&self) -> Vector2i { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Bounds2f` is never constructed [INFO] [stdout] --> src/core/geometry.rs:107:12 [INFO] [stdout] | [INFO] [stdout] 107 | pub struct Bounds2f { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `diagonal` is never used [INFO] [stdout] --> src/core/geometry.rs:113:12 [INFO] [stdout] | [INFO] [stdout] 112 | impl Bounds2f { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 113 | pub fn diagonal(&self) -> Vector2f { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Integrator` is never used [INFO] [stdout] --> src/core/integrator.rs:9:7 [INFO] [stdout] | [INFO] [stdout] 9 | trait Integrator { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SamplerIntegrator` is never constructed [INFO] [stdout] --> src/core/integrator.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct SamplerIntegrator { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `preprocess`, and `Li` are never used [INFO] [stdout] --> src/core/integrator.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl SamplerIntegrator { [INFO] [stdout] | ---------------------- associated items in this implementation [INFO] [stdout] 19 | pub fn new(camera: Camera, sampler: Sampler) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn preprocess(&self, scene: &Scene) {} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 24 | [INFO] [stdout] 25 | pub fn Li(&self, ray: &RayDifferential, scene: &Scene, depth: i64) -> Spectrum { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Sampler` is never constructed [INFO] [stdout] --> src/core/sampler.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Sampler {} [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Scene` is never constructed [INFO] [stdout] --> src/core/scene.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Scene { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/core/scene.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl Scene { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 10 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Spectrum` is never constructed [INFO] [stdout] --> src/core/spectrum.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Spectrum {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `Li` should have a snake case name [INFO] [stdout] --> src/core/integrator.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn Li(&self, ray: &RayDifferential, scene: &Scene, depth: i64) -> Spectrum { [INFO] [stdout] | ^^ help: convert the identifier to snake case: `li` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.12s [INFO] running `Command { std: "docker" "inspect" "a84cf4c507be0d0dd0fa22b0a5f13ea3cea670ebc7bbea57d261a8fb21816454", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a84cf4c507be0d0dd0fa22b0a5f13ea3cea670ebc7bbea57d261a8fb21816454", kill_on_drop: false }` [INFO] [stdout] a84cf4c507be0d0dd0fa22b0a5f13ea3cea670ebc7bbea57d261a8fb21816454