[INFO] cloning repository https://github.com/buggy213/rust-raytracing [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/buggy213/rust-raytracing" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbuggy213%2Frust-raytracing", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbuggy213%2Frust-raytracing'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 741bda9bcb60f5ffd843c3f8de1dae916b11644d [INFO] testing buggy213/rust-raytracing against try#c066bf6804adc55193b71afdff6a56922f4a8689+target=x86_64-unknown-linux-musl for musl_upgrade_1_2_5_in_2025-retry-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbuggy213%2Frust-raytracing" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/buggy213/rust-raytracing [INFO] finished tweaking git repo https://github.com/buggy213/rust-raytracing [INFO] tweaked toml for git repo https://github.com/buggy213/rust-raytracing written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/buggy213/rust-raytracing on toolchain c066bf6804adc55193b71afdff6a56922f4a8689 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c066bf6804adc55193b71afdff6a56922f4a8689" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/buggy213/rust-raytracing 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" "+c066bf6804adc55193b71afdff6a56922f4a8689" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+c066bf6804adc55193b71afdff6a56922f4a8689" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bd02971796466b1f07f5a14acc2e206261ed0d6e3820a21701d927f84f095ea7 [INFO] running `Command { std: "docker" "start" "-a" "bd02971796466b1f07f5a14acc2e206261ed0d6e3820a21701d927f84f095ea7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bd02971796466b1f07f5a14acc2e206261ed0d6e3820a21701d927f84f095ea7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bd02971796466b1f07f5a14acc2e206261ed0d6e3820a21701d927f84f095ea7", kill_on_drop: false }` [INFO] [stdout] bd02971796466b1f07f5a14acc2e206261ed0d6e3820a21701d927f84f095ea7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+c066bf6804adc55193b71afdff6a56922f4a8689" "build" "--frozen" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] c1aacc59ac66f9a563fb1b88156802f3f0f2d77e9568cb2b12db0f14e1298580 [INFO] running `Command { std: "docker" "start" "-a" "c1aacc59ac66f9a563fb1b88156802f3f0f2d77e9568cb2b12db0f14e1298580", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.126 [INFO] [stderr] Compiling once_cell v1.12.0 [INFO] [stderr] Compiling syn v1.0.98 [INFO] [stderr] Compiling crossbeam-utils v0.8.10 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Compiling crossbeam-epoch v0.9.9 [INFO] [stderr] Compiling rayon-core v1.9.3 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling lock_api v0.4.7 [INFO] [stderr] Compiling crc32fast v1.3.2 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling rayon v1.5.3 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling futures-core v0.3.21 [INFO] [stderr] Compiling adler v1.0.2 [INFO] [stderr] Compiling adler32 v1.2.0 [INFO] [stderr] Compiling miniz_oxide v0.5.3 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling crossbeam-channel v0.5.5 [INFO] [stderr] Compiling crossbeam-deque v0.8.1 [INFO] [stderr] Compiling spin v0.9.3 [INFO] [stderr] Compiling num_cpus v1.13.1 [INFO] [stderr] Compiling getrandom v0.2.7 [INFO] [stderr] Compiling deflate v1.0.0 [INFO] [stderr] Compiling num-iter v0.1.43 [INFO] [stderr] Compiling nanorand v0.7.0 [INFO] [stderr] Compiling indexmap v1.9.1 [INFO] [stderr] Compiling num-rational v0.4.1 [INFO] [stderr] Compiling futures-sink v0.3.21 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling weezl v0.1.6 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling threadpool v1.8.1 [INFO] [stderr] Compiling flate2 v1.0.24 [INFO] [stderr] Compiling inflate v0.4.5 [INFO] [stderr] Compiling heck v0.4.0 [INFO] [stderr] Compiling half v1.8.2 [INFO] [stderr] Compiling hashbrown v0.12.1 [INFO] [stderr] Compiling bit_field v0.10.1 [INFO] [stderr] Compiling smallvec v1.9.0 [INFO] [stderr] Compiling os_str_bytes v6.1.0 [INFO] [stderr] Compiling color_quant v1.1.0 [INFO] [stderr] Compiling lebe v0.5.1 [INFO] [stderr] Compiling clap_lex v0.2.4 [INFO] [stderr] Compiling gif v0.11.4 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling png v0.17.5 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling scoped_threadpool v0.1.9 [INFO] [stderr] Compiling strsim v0.10.0 [INFO] [stderr] Compiling termcolor v1.1.3 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling bytemuck v1.9.1 [INFO] [stderr] Compiling textwrap v0.15.0 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling obj v0.10.2 [INFO] [stderr] Compiling jpeg-decoder v0.2.6 [INFO] [stderr] Compiling tiff v0.7.2 [INFO] [stderr] Compiling pin-project-internal v1.0.10 [INFO] [stderr] Compiling clap_derive v3.2.7 [INFO] [stderr] Compiling pin-project v1.0.10 [INFO] [stderr] Compiling flume v0.10.13 [INFO] [stderr] Compiling exr v1.4.2 [INFO] [stderr] Compiling clap v3.2.8 [INFO] [stderr] Compiling image v0.24.2 [INFO] [stderr] Compiling raytrace v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `ray` [INFO] [stdout] --> src/hittables/hittable.rs:53:21 [INFO] [stdout] | [INFO] [stdout] 53 | t: f64, ray: Ray, material: &'a Material, u: f64, v: f64) -> HitRecord<'a> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ray` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `top_checker` [INFO] [stdout] --> src/preset_scenes.rs:230:9 [INFO] [stdout] | [INFO] [stdout] 230 | let top_checker = CheckerTexture::make_solid_checkered(Vec3(0.2, 0.3, 0.1), Vec3(0.9, 0.9, 0.9)); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_top_checker` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `top_perlin` [INFO] [stdout] --> src/preset_scenes.rs:283:9 [INFO] [stdout] | [INFO] [stdout] 283 | let top_perlin = NoiseTexture::new(4.0); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_top_perlin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `interactive` [INFO] [stdout] --> src/main.rs:200:13 [INFO] [stdout] | [INFO] [stdout] 200 | interactive, [INFO] [stdout] | ^^^^^^^^^^^ help: try ignoring the field: `interactive: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `rotate_euler` is never used [INFO] [stdout] --> src/types/transform.rs:86:12 [INFO] [stdout] | [INFO] [stdout] 65 | impl TransformData { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 86 | pub fn rotate_euler(&self, rotation: Vec3) -> TransformData { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/types/vec2.rs:2:17 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Vec2(pub f64, pub f64); [INFO] [stdout] | ---- ^^^^^^^ ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing these fields [INFO] [stdout] = note: `Vec2` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/types/vec2.rs:5:15 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct UV(pub Vec2); [INFO] [stdout] | -- ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `UV` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/hittables/sphere.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl Sphere { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 19 | pub fn new(center: Point, radius: f64, material: Material) -> Sphere { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/hittables/moving_sphere.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 30 | impl MovingSphere { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] 31 | pub fn new(start_position: Point, end_position: Point, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `texture_coordinates` is never read [INFO] [stdout] --> src/hittables/mesh.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 39 | pub struct MeshTri { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 42 | pub texture_coordinates: [UV; 3], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/hittables/mesh.rs:55:19 [INFO] [stdout] | [INFO] [stdout] 55 | MeshLoadError(ObjError), [INFO] [stdout] | ------------- ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `MeshError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 55 - MeshLoadError(ObjError), [INFO] [stdout] 55 + MeshLoadError(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/hittables/mesh.rs:56:23 [INFO] [stdout] | [INFO] [stdout] 56 | MaterialLoadError(MtlLibsLoadError), [INFO] [stdout] | ----------------- ^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `MeshError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 56 - MaterialLoadError(MtlLibsLoadError), [INFO] [stdout] 56 + MaterialLoadError(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Clamp` is never used [INFO] [stdout] --> src/utils.rs:12:11 [INFO] [stdout] | [INFO] [stdout] 12 | pub trait Clamp { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `w` is never read [INFO] [stdout] --> src/camera.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Camera { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 20 | w: Vec3, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `Camera` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `default` is never used [INFO] [stdout] --> src/camera.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 28 | impl Camera { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 29 | pub fn default() -> Camera { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `aspect_ratio` is never read [INFO] [stdout] --> src/scene.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Scene { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] ... [INFO] [stdout] 9 | pub aspect_ratio: f64, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Scene` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/types/bvh.rs:87:12 [INFO] [stdout] | [INFO] [stdout] 87 | fn hit(&self, r: Ray, t_min: f64, t_max: f64) -> Option { [INFO] [stdout] | ^^^^^ this lifetime flows to the output --------- the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 87 | fn hit(&self, r: Ray, t_min: f64, t_max: f64) -> Option> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/hittables/hittable.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | fn hit(&self, r: Ray, t_min: f64, t_max: f64) -> Option; [INFO] [stdout] | ^^^^^ this lifetime flows to the output --------- the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 7 | fn hit(&self, r: Ray, t_min: f64, t_max: f64) -> Option>; [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/hittables/sphere.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 63 | fn hit(&self, ray: Ray, t_min: f64, t_max: f64) -> Option { [INFO] [stdout] | ^^^^^ this lifetime flows to the output --------- the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 63 | fn hit(&self, ray: Ray, t_min: f64, t_max: f64) -> Option> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/hittables/hittable_list.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 54 | fn hit(&self, r: Ray, t_min: f64, t_max: f64) -> Option { [INFO] [stdout] | ^^^^^ this lifetime flows to the output --------- the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 54 | fn hit(&self, r: Ray, t_min: f64, t_max: f64) -> Option> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/hittables/moving_sphere.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 55 | fn hit(&self, ray: Ray, t_min: f64, t_max: f64) -> Option { [INFO] [stdout] | ^^^^^ this lifetime flows to the output --------- the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 55 | fn hit(&self, ray: Ray, t_min: f64, t_max: f64) -> Option> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/hittables/aarect.rs:47:20 [INFO] [stdout] | [INFO] [stdout] 47 | fn hit(&self, r: Ray, t_min: f64, t_max: f64) -> Option { [INFO] [stdout] | ^^^^^ this lifetime flows to the output --------- the lifetime gets resolved as `'_` [INFO] [stdout] ... [INFO] [stdout] 84 | aarect!(XY, 0, 1, 2); [INFO] [stdout] | -------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `aarect` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 47 | fn hit(&self, r: Ray, t_min: f64, t_max: f64) -> Option> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/hittables/aarect.rs:47:20 [INFO] [stdout] | [INFO] [stdout] 47 | fn hit(&self, r: Ray, t_min: f64, t_max: f64) -> Option { [INFO] [stdout] | ^^^^^ this lifetime flows to the output --------- the lifetime gets resolved as `'_` [INFO] [stdout] ... [INFO] [stdout] 85 | aarect!(XZ, 0, 2, 1); [INFO] [stdout] | -------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `aarect` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 47 | fn hit(&self, r: Ray, t_min: f64, t_max: f64) -> Option> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/hittables/aarect.rs:47:20 [INFO] [stdout] | [INFO] [stdout] 47 | fn hit(&self, r: Ray, t_min: f64, t_max: f64) -> Option { [INFO] [stdout] | ^^^^^ this lifetime flows to the output --------- the lifetime gets resolved as `'_` [INFO] [stdout] ... [INFO] [stdout] 86 | aarect!(YZ, 1, 2, 0); [INFO] [stdout] | -------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `aarect` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 47 | fn hit(&self, r: Ray, t_min: f64, t_max: f64) -> Option> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/hittables/block.rs:102:12 [INFO] [stdout] | [INFO] [stdout] 102 | fn hit(&self, r: Ray, t_min: f64, t_max: f64) -> Option { [INFO] [stdout] | ^^^^^ this lifetime flows to the output --------- the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 102 | fn hit(&self, r: Ray, t_min: f64, t_max: f64) -> Option> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/hittables/instance.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 55 | fn hit(&self, r: Ray, t_min: f64, t_max: f64) -> Option { [INFO] [stdout] | ^^^^^ this lifetime flows to the output --------- the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 55 | fn hit(&self, r: Ray, t_min: f64, t_max: f64) -> Option> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/hittables/constant_medium.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 63 | fn hit(&self, r: Ray, t_min: f64, t_max: f64) -> Option { [INFO] [stdout] | ^^^^^ this lifetime flows to the output --------- the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 63 | fn hit(&self, r: Ray, t_min: f64, t_max: f64) -> Option> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `P` should have a snake case name [INFO] [stdout] --> src/hittables/tri.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 40 | let P = Vec3::cross(r.direction, e2); [INFO] [stdout] | ^ help: convert the identifier to snake case: `p` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/hittables/tri.rs:47:13 [INFO] [stdout] | [INFO] [stdout] 47 | let T = r.origin - v0; [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Q` should have a snake case name [INFO] [stdout] --> src/hittables/tri.rs:54:13 [INFO] [stdout] | [INFO] [stdout] 54 | let Q = Vec3::cross(T, e1); [INFO] [stdout] | ^ help: convert the identifier to snake case: `q` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/hittables/tri.rs:74:12 [INFO] [stdout] | [INFO] [stdout] 74 | fn hit(&self, r: Ray, t_min: f64, t_max: f64) -> Option { [INFO] [stdout] | ^^^^^ this lifetime flows to the output --------- the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 74 | fn hit(&self, r: Ray, t_min: f64, t_max: f64) -> Option> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/hittables/mesh.rs:186:12 [INFO] [stdout] | [INFO] [stdout] 186 | fn hit(&self, r: Ray, t_min: f64, t_max: f64) -> Option { [INFO] [stdout] | ^^^^^ this lifetime flows to the output --------- the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 186 | fn hit(&self, r: Ray, t_min: f64, t_max: f64) -> Option> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: linking with `cc` failed: exit status: 1 [INFO] [stdout] | [INFO] [stdout] = note: "cc" "-m64" "/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/rcrt1.o" "/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/crti.o" "/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/crtbeginS.o" "/tmp/rustcVEvPYF/symbols.o" "<17 object files omitted>" "-Wl,--as-needed" "-Wl,-Bstatic" "/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/{libclap-cdda04fd3b864d0b.rlib,libatty-b3e0f47ca1dd12df.rlib,libstrsim-7a71560e0c2955e4.rlib,libtermcolor-a537f8c45744a682.rlib,libtextwrap-dd5d0e05f597c38b.rlib,libindexmap-c359ed96c69f3c7d.rlib,libhashbrown-c4e16d0fbfe3ace3.rlib,libclap_lex-d15c8f86b45610a7.rlib,libos_str_bytes-ae15f4f4b617533a.rlib,libobj-a6412894b0fd2f88.rlib,libimage-4bff449f606ec8ec.rlib,libbytemuck-4451595521b01e90.rlib,libpng-e7d7bc7cf95a00f8.rlib,libbitflags-e274cd04b58a060d.rlib,libnum_iter-6b1f39f2b6d09022.rlib,libscoped_threadpool-7a69c1f095d1210f.rlib,libnum_rational-dd79f6aba379bc28.rlib,libnum_integer-d2cf829730df7cfd.rlib,libgif-4f05134cd062e69f.rlib,libcolor_quant-fd36927056f4d79f.rlib,libbyteorder-c7092f68299ac016.rlib,libnum_traits-3cb65ae8623d94f1.rlib,libtiff-cf986ef1b44669ae.rlib,libflate2-7e71747367124604.rlib,libminiz_oxide-eaac9f770cbf95cc.rlib,libadler-b32dea79b2f05ffd.rlib,libcrc32fast-8f2d6020cd2aee51.rlib,libweezl-f48c3323536f8247.rlib,libjpeg_decoder-4af8ce6bd25d661d.rlib,librayon-cf6fea33e61a7e75.rlib,librayon_core-cfbeb87d283274ca.rlib,libcrossbeam_deque-7a4bd0dd235d1670.rlib,libcrossbeam_epoch-eabb7fcbb462d1ac.rlib,libmemoffset-9acda8b838fa5d0e.rlib,libcrossbeam_channel-8b6e0bb6e40f3e1b.rlib,libcrossbeam_utils-45a602c1a2544285.rlib,libonce_cell-5fb422ec4b835c16.rlib,libeither-6d630fb060af2013.rlib,libexr-e531e71d2ae220fc.rlib,libflume-8837a5c07930b662.rlib,libspin-42ceb0ff8d87aec8.rlib,liblock_api-05ccfdad17814006.rlib,libscopeguard-73056285f12cb829.rlib,libpin_project-06d5392b2ee39884.rlib,libfutures_sink-6b34edd4ad0827d4.rlib,libfutures_core-262b0b080aab7fb5.rlib,libnanorand-9450d4f16a1b99bd.rlib,libthreadpool-0d07a1f82666390f.rlib,libnum_cpus-9d308afd159ac3a9.rlib,libbit_field-64298eae6118a5b2.rlib,libinflate-5e5bdc6ff1667a9c.rlib,libdeflate-a6f271635a280993.rlib,libadler32-5cb8e62306edda0a.rlib,liblebe-a22831b628e61137.rlib,libhalf-34d4a81151972767.rlib,libsmallvec-cccb44d9dce4cf27.rlib,librand-a6562581501c9602.rlib,librand_chacha-78604c898546c457.rlib,libppv_lite86-a9f3c9ee76597f1e.rlib,librand_core-b21665d6032f252f.rlib,libgetrandom-235025dc05cd1908.rlib,liblibc-46cbd4892249b89e.rlib,libcfg_if-66d55f6b302e88c8.rlib}.rlib" "/lib/rustlib/x86_64-unknown-linux-musl/lib/{libstd-*,libpanic_unwind-*,libobject-*,libmemchr-*,libaddr2line-*,libgimli-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libminiz_oxide-*,libadler2-*,libunwind-*}.rlib" "-lunwind" "/lib/rustlib/x86_64-unknown-linux-musl/lib/{libcfg_if-*,liblibc-*}.rlib" "-lc" "/lib/rustlib/x86_64-unknown-linux-musl/lib/{librustc_std_workspace_core-*,liballoc-*,libcore-*,libcompiler_builtins-*}.rlib" "-L" "/tmp/rustcVEvPYF/raw-dylibs" "-Wl,-Bdynamic" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-nostartfiles" "-L" "/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained" "-L" "/lib/rustlib/x86_64-unknown-linux-musl/lib" "-o" "/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/raytrace-14c9ee7d6e6a237f" "-Wl,--gc-sections" "-static-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs" "/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/crtendS.o" "/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/crtn.o" [INFO] [stdout] = note: some arguments are omitted. use `--verbose` to show all linker arguments [INFO] [stdout] = note: /usr/bin/ld: /opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/libgetrandom-235025dc05cd1908.rlib(getrandom-235025dc05cd1908.getrandom.a6e46f759f0147d0-cgu.0.rcgu.o): in function `getrandom::util_libc::open_readonly': [INFO] [stdout] /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/getrandom-0.2.7/src/util_libc.rs:150:(.text._ZN9getrandom9util_libc13open_readonly17h5de7dafba1f8fc4bE+0xbc): undefined reference to `open64' [INFO] [stdout] collect2: error: ld returned 1 exit status [INFO] [stdout] [INFO] [stdout] = note: some `extern` functions couldn't be found; some native libraries may need to be installed or have their path specified [INFO] [stdout] = note: use the `-l` flag to specify native libraries to link [INFO] [stdout] = note: use the `cargo:rustc-link-lib` directive to specify the native libraries to link with Cargo (see https://doc.rust-lang.org/cargo/reference/build-scripts.html#rustc-link-lib) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `raytrace` (bin "raytrace") due to 1 previous error; 32 warnings emitted [INFO] running `Command { std: "docker" "inspect" "c1aacc59ac66f9a563fb1b88156802f3f0f2d77e9568cb2b12db0f14e1298580", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c1aacc59ac66f9a563fb1b88156802f3f0f2d77e9568cb2b12db0f14e1298580", kill_on_drop: false }` [INFO] [stdout] c1aacc59ac66f9a563fb1b88156802f3f0f2d77e9568cb2b12db0f14e1298580