[INFO] cloning repository https://github.com/SnowWalkerJ/RustRayTrace [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/SnowWalkerJ/RustRayTrace" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSnowWalkerJ%2FRustRayTrace", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSnowWalkerJ%2FRustRayTrace'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 75956e5ee60396a680c941e5856764c5d7219075 [INFO] testing SnowWalkerJ/RustRayTrace against master#160e7623e8cbbf1feab2b6e2a24733a98c7bde9c for pr-145628-retry-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSnowWalkerJ%2FRustRayTrace" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/SnowWalkerJ/RustRayTrace [INFO] finished tweaking git repo https://github.com/SnowWalkerJ/RustRayTrace [INFO] tweaked toml for git repo https://github.com/SnowWalkerJ/RustRayTrace written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/SnowWalkerJ/RustRayTrace on toolchain 160e7623e8cbbf1feab2b6e2a24733a98c7bde9c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+160e7623e8cbbf1feab2b6e2a24733a98c7bde9c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/SnowWalkerJ/RustRayTrace 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" "+160e7623e8cbbf1feab2b6e2a24733a98c7bde9c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded zerocopy-derive v0.7.35 [INFO] [stderr] Downloaded serde_spanned v0.6.8 [INFO] [stderr] Downloaded quote v1.0.37 [INFO] [stderr] Downloaded ppv-lite86 v0.2.20 [INFO] [stderr] Downloaded profiling v1.0.16 [INFO] [stderr] Downloaded flume v0.11.1 [INFO] [stderr] Downloaded png v0.17.14 [INFO] [stderr] Downloaded winnow v0.6.20 [INFO] [stderr] Downloaded miniz_oxide v0.7.4 [INFO] [stderr] Downloaded lock_api v0.4.12 [INFO] [stderr] Downloaded image-webp v0.2.0 [INFO] [stderr] Downloaded miniz_oxide v0.8.0 [INFO] [stderr] Downloaded memchr v2.7.4 [INFO] [stderr] Downloaded toml_edit v0.22.22 [INFO] [stderr] Downloaded toml v0.8.19 [INFO] [stderr] Downloaded flate2 v1.0.34 [INFO] [stderr] Downloaded cc v1.1.31 [INFO] [stderr] Downloaded hashbrown v0.15.0 [INFO] [stderr] Downloaded indexmap v2.6.0 [INFO] [stderr] Downloaded image v0.25.4 [INFO] [stderr] Downloaded wasm-bindgen-backend v0.2.95 [INFO] [stderr] Downloaded fdeflate v0.3.5 [INFO] [stderr] Downloaded built v0.7.5 [INFO] [stderr] Downloaded serde v1.0.210 [INFO] [stderr] Downloaded wasm-bindgen-macro v0.2.95 [INFO] [stderr] Downloaded wasm-bindgen v0.2.95 [INFO] [stderr] Downloaded rgb v0.8.50 [INFO] [stderr] Downloaded half v2.4.1 [INFO] [stderr] Downloaded bytemuck v1.19.0 [INFO] [stderr] Downloaded avif-serialize v0.8.2 [INFO] [stderr] Downloaded bitstream-io v2.5.3 [INFO] [stderr] Downloaded jobserver v0.1.32 [INFO] [stderr] Downloaded profiling-procmacros v1.0.16 [INFO] [stderr] Downloaded toml_datetime v0.6.8 [INFO] [stderr] Downloaded thiserror v1.0.64 [INFO] [stderr] Downloaded once_cell v1.20.2 [INFO] [stderr] Downloaded crossbeam-utils v0.8.20 [INFO] [stderr] Downloaded zune-jpeg v0.4.13 [INFO] [stderr] Downloaded libc v0.2.160 [INFO] [stderr] Downloaded pkg-config v0.3.31 [INFO] [stderr] Downloaded serde_derive v1.0.210 [INFO] [stderr] Downloaded wasm-bindgen-macro-support v0.2.95 [INFO] [stderr] Downloaded ravif v0.11.11 [INFO] [stderr] Downloaded adler2 v2.0.0 [INFO] [stderr] Downloaded autocfg v1.4.0 [INFO] [stderr] Downloaded syn v2.0.79 [INFO] [stderr] Downloaded zerocopy v0.7.35 [INFO] [stderr] Downloaded anyhow v1.0.90 [INFO] [stderr] Downloaded getrandom v0.2.15 [INFO] [stderr] Downloaded log v0.4.22 [INFO] [stderr] Downloaded wasm-bindgen-shared v0.2.95 [INFO] [stderr] Downloaded either v1.13.0 [INFO] [stderr] Downloaded proc-macro2 v1.0.88 [INFO] [stderr] Downloaded thiserror-impl v1.0.64 [INFO] [stderr] Downloaded unicode-ident v1.0.13 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+160e7623e8cbbf1feab2b6e2a24733a98c7bde9c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f2f747cb5b34886f12204d8e923458f8af16491465b36367ec1c1d5bc6380dd2 [INFO] running `Command { std: "docker" "start" "-a" "f2f747cb5b34886f12204d8e923458f8af16491465b36367ec1c1d5bc6380dd2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f2f747cb5b34886f12204d8e923458f8af16491465b36367ec1c1d5bc6380dd2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f2f747cb5b34886f12204d8e923458f8af16491465b36367ec1c1d5bc6380dd2", kill_on_drop: false }` [INFO] [stdout] f2f747cb5b34886f12204d8e923458f8af16491465b36367ec1c1d5bc6380dd2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+160e7623e8cbbf1feab2b6e2a24733a98c7bde9c" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bd4c853a081c19d1b87f22cb30337cee0dd99fa064ca08f8c51dab205d1d380a [INFO] running `Command { std: "docker" "start" "-a" "bd4c853a081c19d1b87f22cb30337cee0dd99fa064ca08f8c51dab205d1d380a", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.88 [INFO] [stderr] Compiling unicode-ident v1.0.13 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling libc v0.2.160 [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Compiling simd-adler32 v0.3.7 [INFO] [stderr] Compiling anyhow v1.0.90 [INFO] [stderr] Compiling arrayvec v0.7.6 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Compiling thiserror v1.0.64 [INFO] [stderr] Compiling aligned-vec v0.5.0 [INFO] [stderr] Compiling built v0.7.5 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling adler2 v2.0.0 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling crc32fast v1.4.2 [INFO] [stderr] Compiling miniz_oxide v0.8.0 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling log v0.4.22 [INFO] [stderr] Compiling itertools v0.12.1 [INFO] [stderr] Compiling maybe-rayon v0.1.1 [INFO] [stderr] Compiling rav1e v0.7.1 [INFO] [stderr] Compiling once_cell v1.20.2 [INFO] [stderr] Compiling new_debug_unreachable v1.0.6 [INFO] [stderr] Compiling adler v1.0.2 [INFO] [stderr] Compiling noop_proc_macro v0.3.0 [INFO] [stderr] Compiling bitstream-io v2.5.3 [INFO] [stderr] Compiling weezl v0.1.8 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling quick-error v2.0.1 [INFO] [stderr] Compiling imgref v1.11.0 [INFO] [stderr] Compiling miniz_oxide v0.7.4 [INFO] [stderr] Compiling avif-serialize v0.8.2 [INFO] [stderr] Compiling zune-inflate v0.2.54 [INFO] [stderr] Compiling syn v2.0.79 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling simd_helpers v0.1.0 [INFO] [stderr] Compiling loop9 v0.1.5 [INFO] [stderr] Compiling fdeflate v0.3.5 [INFO] [stderr] Compiling flate2 v1.0.34 [INFO] [stderr] Compiling flume v0.11.1 [INFO] [stderr] Compiling crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling half v2.4.1 [INFO] [stderr] Compiling byteorder-lite v0.1.0 [INFO] [stderr] Compiling crossbeam-deque v0.8.5 [INFO] [stderr] Compiling bytemuck v1.19.0 [INFO] [stderr] Compiling lebe v0.5.2 [INFO] [stderr] Compiling bit_field v0.10.2 [INFO] [stderr] Compiling rgb v0.8.50 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling v_frame v0.3.8 [INFO] [stderr] Compiling zune-core v0.4.12 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling jpeg-decoder v0.3.1 [INFO] [stderr] Compiling qoi v0.4.1 [INFO] [stderr] Compiling gif v0.13.1 [INFO] [stderr] Compiling png v0.17.14 [INFO] [stderr] Compiling image-webp v0.2.0 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling zune-jpeg v0.4.13 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling rayon v1.10.0 [INFO] [stderr] Compiling exr v1.72.0 [INFO] [stderr] Compiling tiff v0.9.1 [INFO] [stderr] Compiling num-rational v0.4.2 [INFO] [stderr] Compiling av1-grain v0.2.3 [INFO] [stderr] Compiling profiling-procmacros v1.0.16 [INFO] [stderr] Compiling thiserror-impl v1.0.64 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling num-derive v0.4.2 [INFO] [stderr] Compiling arg_enum_proc_macro v0.3.4 [INFO] [stderr] Compiling profiling v1.0.16 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling ravif v0.11.11 [INFO] [stderr] Compiling image v0.25.4 [INFO] [stderr] Compiling RayTrace v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: struct `Medium` is never constructed [INFO] [stdout] --> src/shapes/medium.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct Medium { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `test_hit` are never used [INFO] [stdout] --> src/shapes/medium.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl Medium { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 10 | pub fn new(shape: impl Shape + 'static, density: f32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 14 | fn test_hit(&self, ray: &Ray, hit_record: &HitRecord) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Dielectric` is never constructed [INFO] [stdout] --> src/materials/dielectric.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct Dielectric { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/materials/dielectric.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl Dielectric { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 10 | pub fn new(refraction_index: f32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `reflectance` is never used [INFO] [stdout] --> src/materials/dielectric.rs:35:4 [INFO] [stdout] | [INFO] [stdout] 35 | fn reflectance(cosine: f32, refraction_index: f32) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `random` is never used [INFO] [stdout] --> src/misc.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn random() -> f32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `RayTrace` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = help: convert the identifier to snake case: `ray_trace` [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/shapes/sphere.rs:21:27 [INFO] [stdout] | [INFO] [stdout] 21 | fn _compute_hitrecord(&self, ray: &Ray, t: f32, is_front: bool) -> HitRecord{ [INFO] [stdout] | ^^^^^ the lifetime is elided here ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 21 | fn _compute_hitrecord(&self, ray: &Ray, t: f32, is_front: bool) -> HitRecord<'_>{ [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/shapes/sphere.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | fn hit(&self, ray: &Ray, interval: Interval) -> Option { [INFO] [stdout] | ^^^^^ the lifetime is elided here ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 33 | fn hit(&self, ray: &Ray, interval: Interval) -> Option> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/shapes/quard.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | fn hit(&self, ray: &Ray, interval: Interval) -> Option { [INFO] [stdout] | ^^^^^ the lifetime is elided here ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 31 | fn hit(&self, ray: &Ray, interval: Interval) -> Option> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/shapes/medium.rs:14:17 [INFO] [stdout] | [INFO] [stdout] 14 | fn test_hit(&self, ray: &Ray, hit_record: &HitRecord) -> Option { [INFO] [stdout] | ^^^^^ the lifetime is elided here ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 14 | fn test_hit(&self, ray: &Ray, hit_record: &HitRecord) -> Option> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/shapes/medium.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 28 | fn hit(&self, ray: &Ray, interval: Interval) -> Option { [INFO] [stdout] | ^^^^^ the lifetime is elided here ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 28 | fn hit(&self, ray: &Ray, interval: Interval) -> Option> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/object.rs:40:16 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn hit(&self, ray: &Ray, interval: Interval) -> Option { [INFO] [stdout] | ^^^^^ the lifetime is elided here ^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 40 | pub fn hit(&self, ray: &Ray, interval: Interval) -> Option> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/shape.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | fn hit(&self, ray: &Ray, interval: Interval) -> Option; [INFO] [stdout] | ^^^^^ the lifetime is elided here ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 13 | fn hit(&self, ray: &Ray, interval: Interval) -> Option>; [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/scene.rs:16:16 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn hit(&self, ray: &Ray, mut interval: Interval) -> Option { [INFO] [stdout] | ^^^^^ the lifetime is elided here ^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 16 | pub fn hit(&self, ray: &Ray, mut interval: Interval) -> Option> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 35.14s [INFO] running `Command { std: "docker" "inspect" "bd4c853a081c19d1b87f22cb30337cee0dd99fa064ca08f8c51dab205d1d380a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bd4c853a081c19d1b87f22cb30337cee0dd99fa064ca08f8c51dab205d1d380a", kill_on_drop: false }` [INFO] [stdout] bd4c853a081c19d1b87f22cb30337cee0dd99fa064ca08f8c51dab205d1d380a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+160e7623e8cbbf1feab2b6e2a24733a98c7bde9c" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e40a13929fca0ba02e4c5011942f0620a0640105bea3a45d913db7482351e794 [INFO] running `Command { std: "docker" "start" "-a" "e40a13929fca0ba02e4c5011942f0620a0640105bea3a45d913db7482351e794", kill_on_drop: false }` [INFO] [stdout] warning: struct `Medium` is never constructed [INFO] [stdout] --> src/shapes/medium.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct Medium { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `test_hit` are never used [INFO] [stdout] --> src/shapes/medium.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl Medium { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 10 | pub fn new(shape: impl Shape + 'static, density: f32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 14 | fn test_hit(&self, ray: &Ray, hit_record: &HitRecord) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Dielectric` is never constructed [INFO] [stdout] --> src/materials/dielectric.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct Dielectric { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/materials/dielectric.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl Dielectric { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 10 | pub fn new(refraction_index: f32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `reflectance` is never used [INFO] [stdout] --> src/materials/dielectric.rs:35:4 [INFO] [stdout] | [INFO] [stdout] 35 | fn reflectance(cosine: f32, refraction_index: f32) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `random` is never used [INFO] [stdout] --> src/misc.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn random() -> f32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `RayTrace` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = help: convert the identifier to snake case: `ray_trace` [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/shapes/sphere.rs:21:27 [INFO] [stdout] | [INFO] [stdout] 21 | fn _compute_hitrecord(&self, ray: &Ray, t: f32, is_front: bool) -> HitRecord{ [INFO] [stdout] | ^^^^^ the lifetime is elided here ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 21 | fn _compute_hitrecord(&self, ray: &Ray, t: f32, is_front: bool) -> HitRecord<'_>{ [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/shapes/sphere.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | fn hit(&self, ray: &Ray, interval: Interval) -> Option { [INFO] [stdout] | ^^^^^ the lifetime is elided here ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 33 | fn hit(&self, ray: &Ray, interval: Interval) -> Option> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/shapes/quard.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | fn hit(&self, ray: &Ray, interval: Interval) -> Option { [INFO] [stdout] | ^^^^^ the lifetime is elided here ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 31 | fn hit(&self, ray: &Ray, interval: Interval) -> Option> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/shapes/medium.rs:14:17 [INFO] [stdout] | [INFO] [stdout] 14 | fn test_hit(&self, ray: &Ray, hit_record: &HitRecord) -> Option { [INFO] [stdout] | ^^^^^ the lifetime is elided here ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 14 | fn test_hit(&self, ray: &Ray, hit_record: &HitRecord) -> Option> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling RayTrace v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/shapes/medium.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 28 | fn hit(&self, ray: &Ray, interval: Interval) -> Option { [INFO] [stdout] | ^^^^^ the lifetime is elided here ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 28 | fn hit(&self, ray: &Ray, interval: Interval) -> Option> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/object.rs:40:16 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn hit(&self, ray: &Ray, interval: Interval) -> Option { [INFO] [stdout] | ^^^^^ the lifetime is elided here ^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 40 | pub fn hit(&self, ray: &Ray, interval: Interval) -> Option> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/shape.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | fn hit(&self, ray: &Ray, interval: Interval) -> Option; [INFO] [stdout] | ^^^^^ the lifetime is elided here ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 13 | fn hit(&self, ray: &Ray, interval: Interval) -> Option>; [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/scene.rs:16:16 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn hit(&self, ray: &Ray, mut interval: Interval) -> Option { [INFO] [stdout] | ^^^^^ the lifetime is elided here ^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 16 | pub fn hit(&self, ray: &Ray, mut interval: Interval) -> Option> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Medium` is never constructed [INFO] [stdout] --> src/shapes/medium.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct Medium { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `test_hit` are never used [INFO] [stdout] --> src/shapes/medium.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl Medium { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 10 | pub fn new(shape: impl Shape + 'static, density: f32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 14 | fn test_hit(&self, ray: &Ray, hit_record: &HitRecord) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Dielectric` is never constructed [INFO] [stdout] --> src/materials/dielectric.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct Dielectric { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/materials/dielectric.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl Dielectric { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 10 | pub fn new(refraction_index: f32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `reflectance` is never used [INFO] [stdout] --> src/materials/dielectric.rs:35:4 [INFO] [stdout] | [INFO] [stdout] 35 | fn reflectance(cosine: f32, refraction_index: f32) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `random` is never used [INFO] [stdout] --> src/misc.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn random() -> f32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/shapes/sphere.rs:21:27 [INFO] [stdout] | [INFO] [stdout] 21 | fn _compute_hitrecord(&self, ray: &Ray, t: f32, is_front: bool) -> HitRecord{ [INFO] [stdout] | ^^^^^ the lifetime is elided here ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 21 | fn _compute_hitrecord(&self, ray: &Ray, t: f32, is_front: bool) -> HitRecord<'_>{ [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/shapes/sphere.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | fn hit(&self, ray: &Ray, interval: Interval) -> Option { [INFO] [stdout] | ^^^^^ the lifetime is elided here ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 33 | fn hit(&self, ray: &Ray, interval: Interval) -> Option> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/shapes/quard.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | fn hit(&self, ray: &Ray, interval: Interval) -> Option { [INFO] [stdout] | ^^^^^ the lifetime is elided here ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 31 | fn hit(&self, ray: &Ray, interval: Interval) -> Option> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/shapes/medium.rs:14:17 [INFO] [stdout] | [INFO] [stdout] 14 | fn test_hit(&self, ray: &Ray, hit_record: &HitRecord) -> Option { [INFO] [stdout] | ^^^^^ the lifetime is elided here ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 14 | fn test_hit(&self, ray: &Ray, hit_record: &HitRecord) -> Option> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/shapes/medium.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 28 | fn hit(&self, ray: &Ray, interval: Interval) -> Option { [INFO] [stdout] | ^^^^^ the lifetime is elided here ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 28 | fn hit(&self, ray: &Ray, interval: Interval) -> Option> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/object.rs:40:16 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn hit(&self, ray: &Ray, interval: Interval) -> Option { [INFO] [stdout] | ^^^^^ the lifetime is elided here ^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 40 | pub fn hit(&self, ray: &Ray, interval: Interval) -> Option> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/shape.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | fn hit(&self, ray: &Ray, interval: Interval) -> Option; [INFO] [stdout] | ^^^^^ the lifetime is elided here ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 13 | fn hit(&self, ray: &Ray, interval: Interval) -> Option>; [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/scene.rs:16:16 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn hit(&self, ray: &Ray, mut interval: Interval) -> Option { [INFO] [stdout] | ^^^^^ the lifetime is elided here ^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 16 | pub fn hit(&self, ray: &Ray, mut interval: Interval) -> Option> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.13s [INFO] running `Command { std: "docker" "inspect" "e40a13929fca0ba02e4c5011942f0620a0640105bea3a45d913db7482351e794", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e40a13929fca0ba02e4c5011942f0620a0640105bea3a45d913db7482351e794", kill_on_drop: false }` [INFO] [stdout] e40a13929fca0ba02e4c5011942f0620a0640105bea3a45d913db7482351e794 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+160e7623e8cbbf1feab2b6e2a24733a98c7bde9c" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] cb2ac5fd6de7207a7eb526493bd92a6bf04f54388e1d198df0bfa57bafd5474b [INFO] running `Command { std: "docker" "start" "-a" "cb2ac5fd6de7207a7eb526493bd92a6bf04f54388e1d198df0bfa57bafd5474b", kill_on_drop: false }` [INFO] [stderr] warning: struct `Medium` is never constructed [INFO] [stderr] --> src/shapes/medium.rs:4:8 [INFO] [stderr] | [INFO] [stderr] 4 | struct Medium { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: associated items `new` and `test_hit` are never used [INFO] [stderr] --> src/shapes/medium.rs:10:12 [INFO] [stderr] | [INFO] [stderr] 9 | impl Medium { [INFO] [stderr] | ----------- associated items in this implementation [INFO] [stderr] 10 | pub fn new(shape: impl Shape + 'static, density: f32) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 14 | fn test_hit(&self, ray: &Ray, hit_record: &HitRecord) -> Option { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `Dielectric` is never constructed [INFO] [stderr] --> src/materials/dielectric.rs:5:8 [INFO] [stderr] | [INFO] [stderr] 5 | struct Dielectric { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `new` is never used [INFO] [stderr] --> src/materials/dielectric.rs:10:12 [INFO] [stderr] | [INFO] [stderr] 9 | impl Dielectric { [INFO] [stderr] | --------------- associated function in this implementation [INFO] [stderr] 10 | pub fn new(refraction_index: f32) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: function `reflectance` is never used [INFO] [stderr] --> src/materials/dielectric.rs:35:4 [INFO] [stderr] | [INFO] [stderr] 35 | fn reflectance(cosine: f32, refraction_index: f32) -> f32 { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `random` is never used [INFO] [stderr] --> src/misc.rs:12:8 [INFO] [stderr] | [INFO] [stderr] 12 | pub fn random() -> f32 { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: crate `RayTrace` should have a snake case name [INFO] [stderr] | [INFO] [stderr] = help: convert the identifier to snake case: `ray_trace` [INFO] [stderr] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/shapes/sphere.rs:21:27 [INFO] [stderr] | [INFO] [stderr] 21 | fn _compute_hitrecord(&self, ray: &Ray, t: f32, is_front: bool) -> HitRecord{ [INFO] [stderr] | ^^^^^ the lifetime is elided here ^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 21 | fn _compute_hitrecord(&self, ray: &Ray, t: f32, is_front: bool) -> HitRecord<'_>{ [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/shapes/sphere.rs:33:12 [INFO] [stderr] | [INFO] [stderr] 33 | fn hit(&self, ray: &Ray, interval: Interval) -> Option { [INFO] [stderr] | ^^^^^ the lifetime is elided here ^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 33 | fn hit(&self, ray: &Ray, interval: Interval) -> Option> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/shapes/quard.rs:31:12 [INFO] [stderr] | [INFO] [stderr] 31 | fn hit(&self, ray: &Ray, interval: Interval) -> Option { [INFO] [stderr] | ^^^^^ the lifetime is elided here ^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 31 | fn hit(&self, ray: &Ray, interval: Interval) -> Option> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/shapes/medium.rs:14:17 [INFO] [stderr] | [INFO] [stderr] 14 | fn test_hit(&self, ray: &Ray, hit_record: &HitRecord) -> Option { [INFO] [stderr] | ^^^^^ the lifetime is elided here ^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 14 | fn test_hit(&self, ray: &Ray, hit_record: &HitRecord) -> Option> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/shapes/medium.rs:28:12 [INFO] [stderr] | [INFO] [stderr] 28 | fn hit(&self, ray: &Ray, interval: Interval) -> Option { [INFO] [stderr] | ^^^^^ the lifetime is elided here ^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 28 | fn hit(&self, ray: &Ray, interval: Interval) -> Option> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/object.rs:40:16 [INFO] [stderr] | [INFO] [stderr] 40 | pub fn hit(&self, ray: &Ray, interval: Interval) -> Option { [INFO] [stderr] | ^^^^^ the lifetime is elided here ^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 40 | pub fn hit(&self, ray: &Ray, interval: Interval) -> Option> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/shape.rs:13:12 [INFO] [stderr] | [INFO] [stderr] 13 | fn hit(&self, ray: &Ray, interval: Interval) -> Option; [INFO] [stderr] | ^^^^^ the lifetime is elided here ^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 13 | fn hit(&self, ray: &Ray, interval: Interval) -> Option>; [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/scene.rs:16:16 [INFO] [stderr] | [INFO] [stderr] 16 | pub fn hit(&self, ray: &Ray, mut interval: Interval) -> Option { [INFO] [stderr] | ^^^^^ the lifetime is elided here ^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 16 | pub fn hit(&self, ray: &Ray, mut interval: Interval) -> Option> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: `RayTrace` (lib) generated 15 warnings (run `cargo fix --lib -p RayTrace` to apply 8 suggestions) [INFO] [stderr] warning: `RayTrace` (lib test) generated 14 warnings (14 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.10s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/RayTrace-02c0146a466c52c3) [INFO] [stdout] [INFO] [stdout] running 5 tests [INFO] [stdout] test test::test_example ... ok [INFO] [stdout] test shapes::sphere::test::test_hit ... ok [INFO] [stdout] test vec3::test_cross ... ok [INFO] [stdout] test vec3::test_random_unit ... ok [INFO] [stderr] error: test failed, to rerun pass `--lib` [INFO] [stdout] test test::test_ppm ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- test::test_ppm stdout ---- [INFO] [stdout] [INFO] [stdout] thread 'test::test_ppm' (27) panicked at src/lib.rs:53:53: [INFO] [stdout] Can't create file: Os { code: 30, kind: ReadOnlyFilesystem, message: "Read-only file system" } [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x61b95f222a22 - std::backtrace_rs::backtrace::libunwind::trace::hf3086ff3c8ddfec7 [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x61b95f222a22 - std::backtrace_rs::backtrace::trace_unsynchronized::h6caf11542219ebc3 [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x61b95f222a22 - std::sys::backtrace::_print_fmt::hfd9f352edf0ef63b [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x61b95f222a22 - ::fmt::h746cb25d4c2f20bf [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x61b95f233ddf - core::fmt::rt::Argument::fmt::h7e560d1a4260d0bd [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x61b95f233ddf - core::fmt::write::h51c104753c8435b2 [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/core/src/fmt/mod.rs:1468:25 [INFO] [stdout] 6: 0x61b95f1f0183 - std::io::default_write_fmt::h7681766be9629d2f [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x61b95f1f0183 - std::io::Write::write_fmt::h41771a141bf0adb2 [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/std/src/io/mod.rs:1954:13 [INFO] [stdout] 8: 0x61b95f1fc1a2 - std::sys::backtrace::BacktraceLock::print::heee726a1c5b4a2c3 [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 9: 0x61b95f200b9f - std::panicking::default_hook::{{closure}}::h938489fbb79d30ee [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/std/src/panicking.rs:301:27 [INFO] [stdout] 10: 0x61b95f200a31 - std::panicking::default_hook::hf7e155db98319366 [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/std/src/panicking.rs:325:9 [INFO] [stdout] 11: 0x61b95f182ede - as core::ops::function::Fn>::call::h8041688d09537997 [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 12: 0x61b95f182ede - test::test_main_with_exit_callback::{{closure}}::hc8a7ea1f38432726 [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x61b95f20123e - as core::ops::function::Fn>::call::h688488cd0fff9b17 [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 14: 0x61b95f20123e - std::panicking::panic_with_hook::h78bb7329978b77c8 [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/std/src/panicking.rs:842:13 [INFO] [stdout] 15: 0x61b95f20100a - std::panicking::panic_handler::{{closure}}::h306ab6080b8e304c [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/std/src/panicking.rs:707:13 [INFO] [stdout] 16: 0x61b95f1fc2d9 - std::sys::backtrace::__rust_end_short_backtrace::hab10906eec9c5584 [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/std/src/sys/backtrace.rs:174:18 [INFO] [stdout] 17: 0x61b95f1e464d - __rustc[31cdaa5515be9d95]::rust_begin_unwind [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/std/src/panicking.rs:698:5 [INFO] [stdout] 18: 0x61b95f23b970 - core::panicking::panic_fmt::h8cb2938d8e2b0e7b [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/core/src/panicking.rs:75:14 [INFO] [stdout] 19: 0x61b95f23af66 - core::result::unwrap_failed::h781900d7f82db671 [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/core/src/result.rs:1852:5 [INFO] [stdout] 20: 0x61b95f15efae - core::result::Result::expect::h72e964bd1ac2c456 [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/core/src/result.rs:1175:23 [INFO] [stdout] 21: 0x61b95f160939 - RayTrace::test::test_ppm::h335b1c354133e2df [INFO] [stdout] at /opt/rustwide/workdir/src/lib.rs:53:53 [INFO] [stdout] 22: 0x61b95f160ba7 - RayTrace::test::test_ppm::{{closure}}::h0363ce3c9161c610 [INFO] [stdout] at /opt/rustwide/workdir/src/lib.rs:42:18 [INFO] [stdout] 23: 0x61b95f15e846 - core::ops::function::FnOnce::call_once::h32dcc28c9f2e858a [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 24: 0x61b95f182c9b - core::ops::function::FnOnce::call_once::ha1081c2f5558e6c0 [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 25: 0x61b95f182c9b - test::__rust_begin_short_backtrace::h42034e8abb013a4c [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/test/src/lib.rs:663:18 [INFO] [stdout] 26: 0x61b95f1987a5 - test::run_test_in_process::{{closure}}::hf6d2134f58bf7650 [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/test/src/lib.rs:686:74 [INFO] [stdout] 27: 0x61b95f1987a5 - as core::ops::function::FnOnce<()>>::call_once::hecbf148a08d929b4 [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 28: 0x61b95f1987a5 - std::panicking::catch_unwind::do_call::hdd8f84f296c52439 [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/std/src/panicking.rs:590:40 [INFO] [stdout] 29: 0x61b95f1987a5 - std::panicking::catch_unwind::h3fd77bcad74bf69c [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/std/src/panicking.rs:553:19 [INFO] [stdout] 30: 0x61b95f1987a5 - std::panic::catch_unwind::h512ad17f65705767 [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/std/src/panic.rs:359:14 [INFO] [stdout] 31: 0x61b95f1987a5 - test::run_test_in_process::h2b79c7cc828fafad [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/test/src/lib.rs:686:27 [INFO] [stdout] 32: 0x61b95f1987a5 - test::run_test::{{closure}}::hc287323e9e7aa380 [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/test/src/lib.rs:607:43 [INFO] [stdout] 33: 0x61b95f16f174 - test::run_test::{{closure}}::h26852bc3095664f0 [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/test/src/lib.rs:637:41 [INFO] [stdout] 34: 0x61b95f16f174 - std::sys::backtrace::__rust_begin_short_backtrace::he88c7ba58706034f [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/std/src/sys/backtrace.rs:158:18 [INFO] [stdout] 35: 0x61b95f1729aa - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::hff63832735ca5300 [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/std/src/thread/mod.rs:559:17 [INFO] [stdout] 36: 0x61b95f1729aa - as core::ops::function::FnOnce<()>>::call_once::h5618784f23b8bacb [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 37: 0x61b95f1729aa - std::panicking::catch_unwind::do_call::hd103d0697f7d2f72 [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/std/src/panicking.rs:590:40 [INFO] [stdout] 38: 0x61b95f1729aa - std::panicking::catch_unwind::h947b18413ee60fc2 [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/std/src/panicking.rs:553:19 [INFO] [stdout] 39: 0x61b95f1729aa - std::panic::catch_unwind::h51f47dbca8916fbf [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/std/src/panic.rs:359:14 [INFO] [stdout] 40: 0x61b95f1729aa - std::thread::Builder::spawn_unchecked_::{{closure}}::h92bd4fc7ba1a8896 [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/std/src/thread/mod.rs:557:30 [INFO] [stdout] 41: 0x61b95f1729aa - core::ops::function::FnOnce::call_once{{vtable.shim}}::h1edf6ba5edb7a202 [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 42: 0x61b95f1f655f - as core::ops::function::FnOnce>::call_once::h6765fcdde4c5daa4 [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 43: 0x61b95f1f655f - std::sys::pal::unix::thread::Thread::new::thread_start::h448c4dadc391362b [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/std/src/sys/pal/unix/thread.rs:118:17 [INFO] [stdout] 44: 0x7a0e363d1aa4 - [INFO] [stdout] 45: 0x7a0e3645ea34 - clone [INFO] [stdout] 46: 0x0 - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] test::test_ppm [INFO] [stdout] [INFO] [stdout] test result: FAILED. 4 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.08s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "cb2ac5fd6de7207a7eb526493bd92a6bf04f54388e1d198df0bfa57bafd5474b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cb2ac5fd6de7207a7eb526493bd92a6bf04f54388e1d198df0bfa57bafd5474b", kill_on_drop: false }` [INFO] [stdout] cb2ac5fd6de7207a7eb526493bd92a6bf04f54388e1d198df0bfa57bafd5474b