[INFO] cloning repository https://github.com/thanadolps/renderer_in_rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/thanadolps/renderer_in_rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fthanadolps%2Frenderer_in_rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fthanadolps%2Frenderer_in_rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d9080ba7307379a6577bd00bc13b624d1e0a3484 [INFO] checking thanadolps/renderer_in_rust against try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fthanadolps%2Frenderer_in_rust" "/workspace/builds/worker-2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/thanadolps/renderer_in_rust on toolchain a7a572ce3edd6d476191fbfe92c9c1986e009b34 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/thanadolps/renderer_in_rust [INFO] finished tweaking git repo https://github.com/thanadolps/renderer_in_rust [INFO] tweaked toml for git repo https://github.com/thanadolps/renderer_in_rust written to /workspace/builds/worker-2/source/Cargo.toml [INFO] crate git repo https://github.com/thanadolps/renderer_in_rust already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded enum_dispatch v0.1.4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] f011c0e9aee97fa5856096f68b170b416505efb3e8c64ffc5a551ff76419a925 [INFO] running `Command { std: "docker" "start" "-a" "f011c0e9aee97fa5856096f68b170b416505efb3e8c64ffc5a551ff76419a925", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f011c0e9aee97fa5856096f68b170b416505efb3e8c64ffc5a551ff76419a925", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f011c0e9aee97fa5856096f68b170b416505efb3e8c64ffc5a551ff76419a925", kill_on_drop: false }` [INFO] [stdout] f011c0e9aee97fa5856096f68b170b416505efb3e8c64ffc5a551ff76419a925 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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" "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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 511b3a28d570af8ce217e455a82c4dbd6fb14fb946aace15da0893e321707516 [INFO] running `Command { std: "docker" "start" "-a" "511b3a28d570af8ce217e455a82c4dbd6fb14fb946aace15da0893e321707516", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Checking rand_core v0.4.0 [INFO] [stderr] Compiling byteorder v1.3.1 [INFO] [stderr] Checking lazy_static v1.3.0 [INFO] [stderr] Compiling serde v1.0.91 [INFO] [stderr] Checking either v1.5.2 [INFO] [stderr] Compiling libm v0.1.3 [INFO] [stderr] Compiling num-derive v0.2.5 [INFO] [stderr] Compiling num-complex v0.2.1 [INFO] [stderr] Compiling num-rational v0.2.1 [INFO] [stderr] Checking rawpointer v0.1.0 [INFO] [stderr] Checking assert_approx_eq v1.1.0 [INFO] [stderr] Checking custom_error v1.7.1 [INFO] [stderr] Compiling num-traits v0.2.8 [INFO] [stderr] Compiling num-integer v0.1.41 [INFO] [stderr] Compiling num-iter v0.1.39 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Checking crossbeam-utils v0.2.2 [INFO] [stderr] Checking inflate v0.3.4 [INFO] [stderr] Checking inflate v0.4.5 [INFO] [stderr] Checking gif v0.9.2 [INFO] [stderr] Checking matrixmultiply v0.2.2 [INFO] [stderr] Checking c2-chacha v0.2.2 [INFO] [stderr] Checking itertools v0.8.0 [INFO] [stderr] Checking rand_core v0.3.1 [INFO] [stderr] Checking rand_jitter v0.1.4 [INFO] [stderr] Checking rand_pcg v0.1.2 [INFO] [stderr] Checking num_cpus v1.10.0 [INFO] [stderr] Checking rand_os v0.1.3 [INFO] [stderr] Checking crossbeam-epoch v0.3.1 [INFO] [stderr] Checking generic-array v0.12.0 [INFO] [stderr] Checking rand_isaac v0.1.1 [INFO] [stderr] Checking rand_xorshift v0.1.1 [INFO] [stderr] Checking rand_chacha v0.1.1 [INFO] [stderr] Checking rand_hc v0.1.0 [INFO] [stderr] Checking rand v0.5.6 [INFO] [stderr] Checking rand_chacha v0.2.1 [INFO] [stderr] Checking rand_pcg v0.2.0 [INFO] [stderr] Checking crossbeam-deque v0.2.0 [INFO] [stderr] Checking rand v0.7.2 [INFO] [stderr] Checking rayon-core v1.4.1 [INFO] [stderr] Checking deflate v0.7.19 [INFO] [stderr] Checking base64 v0.10.1 [INFO] [stderr] Compiling quote v0.6.12 [INFO] [stderr] Compiling syn v0.15.34 [INFO] [stderr] Checking rayon v1.0.3 [INFO] [stderr] Checking num-traits v0.1.43 [INFO] [stderr] Checking approx v0.3.2 [INFO] [stderr] Checking enum_primitive v0.1.1 [INFO] [stderr] Checking rand_distr v0.2.2 [INFO] [stderr] Checking num-rational v0.1.42 [INFO] [stderr] Checking png v0.11.0 [INFO] [stderr] Checking png v0.14.1 [INFO] [stderr] Checking jpeg-decoder v0.1.15 [INFO] [stderr] Checking image v0.18.0 [INFO] [stderr] Checking noise v0.6.0 [INFO] [stderr] Compiling serde_derive v1.0.91 [INFO] [stderr] Compiling enum_dispatch v0.1.4 [INFO] [stderr] Checking tiff v0.2.2 [INFO] [stderr] Checking image v0.21.1 [INFO] [stderr] Checking ron v0.5.1 [INFO] [stderr] Checking alga v0.9.1 [INFO] [stderr] Checking nalgebra v0.18.0 [INFO] [stderr] Checking test_project v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2018 edition to 2021 [INFO] [stderr] Fixed src/rtracer/material.rs (13 fixes) [INFO] [stderr] Fixed src/rtracer/renderer.rs (4 fixes) [INFO] [stderr] Fixed src/main.rs (4 fixes) [INFO] [stderr] Fixed src/rtracer/light.rs (1 fix) [INFO] [stderr] Fixed src/rtracer/helper.rs (11 fixes) [INFO] [stderr] Fixed src/rtracer/scene_object.rs (1 fix) [INFO] [stderr] Fixed src/rtracer/camera.rs (1 fix) [INFO] [stderr] Fixed src/rtracer/scene.rs (1 fix) [INFO] [stderr] Fixed src/rtracer/parser.rs (7 fixes) [INFO] [stdout] warning: the item `raycast_compute_light` is imported redundantly [INFO] [stdout] --> src/rtracer/material.rs:109:13 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::rtracer::renderer::raycast_compute_light; [INFO] [stdout] | ----------------------------------------------- the item `raycast_compute_light` is already imported here [INFO] [stdout] ... [INFO] [stdout] 109 | use crate::rtracer::renderer::raycast_compute_light; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `raycast_compute_light` is imported redundantly [INFO] [stdout] --> src/rtracer/material.rs:141:13 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::rtracer::renderer::raycast_compute_light; [INFO] [stdout] | ----------------------------------------------- the item `raycast_compute_light` is already imported here [INFO] [stdout] ... [INFO] [stdout] 141 | use crate::rtracer::renderer::raycast_compute_light; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `raycast_compute_light` is imported redundantly [INFO] [stdout] --> src/rtracer/material.rs:109:13 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::rtracer::renderer::raycast_compute_light; [INFO] [stdout] | ----------------------------------------------- the item `raycast_compute_light` is already imported here [INFO] [stdout] ... [INFO] [stdout] 109 | use crate::rtracer::renderer::raycast_compute_light; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `raycast_compute_light` is imported redundantly [INFO] [stdout] --> src/rtracer/material.rs:141:13 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::rtracer::renderer::raycast_compute_light; [INFO] [stdout] | ----------------------------------------------- the item `raycast_compute_light` is already imported here [INFO] [stdout] ... [INFO] [stdout] 141 | use crate::rtracer::renderer::raycast_compute_light; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Write` [INFO] [stdout] --> src/rtracer/parser.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Write` [INFO] [stdout] --> src/rtracer/parser.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/rtracer/scene.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn new() -> Scene { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from_maybe_component` [INFO] [stdout] --> src/rtracer/scene.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn from_maybe_component( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_obj` [INFO] [stdout] --> src/rtracer/scene.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn add_obj(&mut self, obj: impl Into) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_light` [INFO] [stdout] --> src/rtracer/scene.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn add_light(&mut self, light: light::Lights) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `append_objs` [INFO] [stdout] --> src/rtracer/scene.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn append_objs(&mut self, mut objs: Vec) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `append_light` [INFO] [stdout] --> src/rtracer/scene.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn append_light(&mut self, mut lights: Vec) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/rtracer/light.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn new(pos: Point3, light: Color3) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/rtracer/light.rs:92:9 [INFO] [stdout] | [INFO] [stdout] 92 | pub fn new(dir: Unit>, light: Color3) -> DirectionalLight { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/rtracer/light.rs:125:9 [INFO] [stdout] | [INFO] [stdout] 125 | pub fn new(center: Vector3, rotation: UnitQuaternion, scaling: f32, light: Option) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/rtracer/scene_object.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn new (shape: impl Into, material: impl Into) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/rtracer/shape.rs:119:10 [INFO] [stdout] | [INFO] [stdout] 119 | pub fn new(pos: Point3, norm: Unit>, r: f32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/rtracer/material.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn new(color: Color3) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/rtracer/material.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn new(roughness: f32, iteration: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/rtracer/material.rs:214:12 [INFO] [stdout] | [INFO] [stdout] 214 | pub fn new(color: Color3) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `save_scene_data` [INFO] [stdout] --> src/rtracer/parser.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn save_scene_data(path: impl AsRef, scene: &SceneData) -> Result<(), SceneParserError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `map_float` [INFO] [stdout] --> src/rtracer/helper.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn map_float(x: F, src: RangeInclusive, dest: RangeInclusive) -> F { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `UV3` [INFO] [stdout] --> src/rtracer/helper.rs:37:1 [INFO] [stdout] | [INFO] [stdout] 37 | type UV3 = Unit>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `AREALIGHT_MONTECARLO_SAMPLE` [INFO] [stdout] --> src/rtracer.rs:30:1 [INFO] [stdout] | [INFO] [stdout] 30 | const AREALIGHT_MONTECARLO_SAMPLE: u32 = 121; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test` [INFO] [stdout] --> src/main.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn test() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `setup` [INFO] [stdout] --> src/main.rs:50:4 [INFO] [stdout] | [INFO] [stdout] 50 | fn setup() -> SceneData { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 23 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/rtracer/scene.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn new() -> Scene { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from_maybe_component` [INFO] [stdout] --> src/rtracer/scene.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn from_maybe_component( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_obj` [INFO] [stdout] --> src/rtracer/scene.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn add_obj(&mut self, obj: impl Into) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_light` [INFO] [stdout] --> src/rtracer/scene.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn add_light(&mut self, light: light::Lights) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `append_objs` [INFO] [stdout] --> src/rtracer/scene.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn append_objs(&mut self, mut objs: Vec) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `append_light` [INFO] [stdout] --> src/rtracer/scene.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn append_light(&mut self, mut lights: Vec) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/rtracer/light.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn new(pos: Point3, light: Color3) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/rtracer/light.rs:92:9 [INFO] [stdout] | [INFO] [stdout] 92 | pub fn new(dir: Unit>, light: Color3) -> DirectionalLight { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/rtracer/light.rs:125:9 [INFO] [stdout] | [INFO] [stdout] 125 | pub fn new(center: Vector3, rotation: UnitQuaternion, scaling: f32, light: Option) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/rtracer/scene_object.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn new (shape: impl Into, material: impl Into) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/rtracer/shape.rs:119:10 [INFO] [stdout] | [INFO] [stdout] 119 | pub fn new(pos: Point3, norm: Unit>, r: f32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/rtracer/material.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn new(color: Color3) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/rtracer/material.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn new(roughness: f32, iteration: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/rtracer/material.rs:214:12 [INFO] [stdout] | [INFO] [stdout] 214 | pub fn new(color: Color3) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `save_scene_data` [INFO] [stdout] --> src/rtracer/parser.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn save_scene_data(path: impl AsRef, scene: &SceneData) -> Result<(), SceneParserError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `UV3` [INFO] [stdout] --> src/rtracer/helper.rs:37:1 [INFO] [stdout] | [INFO] [stdout] 37 | type UV3 = Unit>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `AREALIGHT_MONTECARLO_SAMPLE` [INFO] [stdout] --> src/rtracer.rs:30:1 [INFO] [stdout] | [INFO] [stdout] 30 | const AREALIGHT_MONTECARLO_SAMPLE: u32 = 121; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test` [INFO] [stdout] --> src/main.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn test() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `setup` [INFO] [stdout] --> src/main.rs:50:4 [INFO] [stdout] | [INFO] [stdout] 50 | fn setup() -> SceneData { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 22 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 39s [INFO] [stderr] Running `cargo check` to verify 2021 [INFO] [stderr] Checking test_project v0.1.0 (/tmp/fixit) [INFO] [stdout] warning: the item `raycast_compute_light` is imported redundantly [INFO] [stdout] --> src/rtracer/material.rs:109:13 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::rtracer::renderer::raycast_compute_light; [INFO] [stdout] | ----------------------------------------------- the item `raycast_compute_light` is already imported here [INFO] [stdout] ... [INFO] [stdout] 109 | use crate::rtracer::renderer::raycast_compute_light; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `raycast_compute_light` is imported redundantly [INFO] [stdout] --> src/rtracer/material.rs:141:13 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::rtracer::renderer::raycast_compute_light; [INFO] [stdout] | ----------------------------------------------- the item `raycast_compute_light` is already imported here [INFO] [stdout] ... [INFO] [stdout] 141 | use crate::rtracer::renderer::raycast_compute_light; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `raycast_compute_light` is imported redundantly [INFO] [stdout] --> src/rtracer/material.rs:109:13 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::rtracer::renderer::raycast_compute_light; [INFO] [stdout] | ----------------------------------------------- the item `raycast_compute_light` is already imported here [INFO] [stdout] ... [INFO] [stdout] 109 | use crate::rtracer::renderer::raycast_compute_light; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `raycast_compute_light` is imported redundantly [INFO] [stdout] --> src/rtracer/material.rs:141:13 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::rtracer::renderer::raycast_compute_light; [INFO] [stdout] | ----------------------------------------------- the item `raycast_compute_light` is already imported here [INFO] [stdout] ... [INFO] [stdout] 141 | use crate::rtracer::renderer::raycast_compute_light; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Write` [INFO] [stdout] --> src/rtracer/parser.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Write` [INFO] [stdout] --> src/rtracer/parser.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/rtracer/scene.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn new() -> Scene { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from_maybe_component` [INFO] [stdout] --> src/rtracer/scene.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn from_maybe_component( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_obj` [INFO] [stdout] --> src/rtracer/scene.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn add_obj(&mut self, obj: impl Into) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_light` [INFO] [stdout] --> src/rtracer/scene.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn add_light(&mut self, light: light::Lights) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `append_objs` [INFO] [stdout] --> src/rtracer/scene.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn append_objs(&mut self, mut objs: Vec) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `append_light` [INFO] [stdout] --> src/rtracer/scene.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn append_light(&mut self, mut lights: Vec) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/rtracer/light.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn new(pos: Point3, light: Color3) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/rtracer/light.rs:92:9 [INFO] [stdout] | [INFO] [stdout] 92 | pub fn new(dir: Unit>, light: Color3) -> DirectionalLight { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/rtracer/light.rs:125:9 [INFO] [stdout] | [INFO] [stdout] 125 | pub fn new(center: Vector3, rotation: UnitQuaternion, scaling: f32, light: Option) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/rtracer/scene_object.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn new (shape: impl Into, material: impl Into) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/rtracer/shape.rs:119:10 [INFO] [stdout] | [INFO] [stdout] 119 | pub fn new(pos: Point3, norm: Unit>, r: f32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/rtracer/material.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn new(color: Color3) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/rtracer/material.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn new(roughness: f32, iteration: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/rtracer/material.rs:214:12 [INFO] [stdout] | [INFO] [stdout] 214 | pub fn new(color: Color3) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `save_scene_data` [INFO] [stdout] --> src/rtracer/parser.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn save_scene_data(path: impl AsRef, scene: &SceneData) -> Result<(), SceneParserError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `map_float` [INFO] [stdout] --> src/rtracer/helper.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn map_float(x: F, src: RangeInclusive, dest: RangeInclusive) -> F { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `UV3` [INFO] [stdout] --> src/rtracer/helper.rs:37:1 [INFO] [stdout] | [INFO] [stdout] 37 | type UV3 = Unit>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `AREALIGHT_MONTECARLO_SAMPLE` [INFO] [stdout] --> src/rtracer.rs:30:1 [INFO] [stdout] | [INFO] [stdout] 30 | const AREALIGHT_MONTECARLO_SAMPLE: u32 = 121; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test` [INFO] [stdout] --> src/main.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn test() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `setup` [INFO] [stdout] --> src/main.rs:50:4 [INFO] [stdout] | [INFO] [stdout] 50 | fn setup() -> SceneData { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 23 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/rtracer/scene.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn new() -> Scene { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from_maybe_component` [INFO] [stdout] --> src/rtracer/scene.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn from_maybe_component( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_obj` [INFO] [stdout] --> src/rtracer/scene.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn add_obj(&mut self, obj: impl Into) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_light` [INFO] [stdout] --> src/rtracer/scene.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn add_light(&mut self, light: light::Lights) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `append_objs` [INFO] [stdout] --> src/rtracer/scene.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn append_objs(&mut self, mut objs: Vec) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `append_light` [INFO] [stdout] --> src/rtracer/scene.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn append_light(&mut self, mut lights: Vec) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/rtracer/light.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn new(pos: Point3, light: Color3) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/rtracer/light.rs:92:9 [INFO] [stdout] | [INFO] [stdout] 92 | pub fn new(dir: Unit>, light: Color3) -> DirectionalLight { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/rtracer/light.rs:125:9 [INFO] [stdout] | [INFO] [stdout] 125 | pub fn new(center: Vector3, rotation: UnitQuaternion, scaling: f32, light: Option) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/rtracer/scene_object.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn new (shape: impl Into, material: impl Into) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/rtracer/shape.rs:119:10 [INFO] [stdout] | [INFO] [stdout] 119 | pub fn new(pos: Point3, norm: Unit>, r: f32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/rtracer/material.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn new(color: Color3) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/rtracer/material.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn new(roughness: f32, iteration: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/rtracer/material.rs:214:12 [INFO] [stdout] | [INFO] [stdout] 214 | pub fn new(color: Color3) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `save_scene_data` [INFO] [stdout] --> src/rtracer/parser.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn save_scene_data(path: impl AsRef, scene: &SceneData) -> Result<(), SceneParserError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `UV3` [INFO] [stdout] --> src/rtracer/helper.rs:37:1 [INFO] [stdout] | [INFO] [stdout] 37 | type UV3 = Unit>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `AREALIGHT_MONTECARLO_SAMPLE` [INFO] [stdout] --> src/rtracer.rs:30:1 [INFO] [stdout] | [INFO] [stdout] 30 | const AREALIGHT_MONTECARLO_SAMPLE: u32 = 121; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test` [INFO] [stdout] --> src/main.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn test() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `setup` [INFO] [stdout] --> src/main.rs:50:4 [INFO] [stdout] | [INFO] [stdout] 50 | fn setup() -> SceneData { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 22 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 2.24s [INFO] running `Command { std: "docker" "inspect" "511b3a28d570af8ce217e455a82c4dbd6fb14fb946aace15da0893e321707516", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "511b3a28d570af8ce217e455a82c4dbd6fb14fb946aace15da0893e321707516", kill_on_drop: false }` [INFO] [stdout] 511b3a28d570af8ce217e455a82c4dbd6fb14fb946aace15da0893e321707516