[INFO] cloning repository https://github.com/Wafelack/raytracer [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Wafelack/raytracer" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FWafelack%2Fraytracer", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FWafelack%2Fraytracer'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5f40c6a9ede0b44af85ba6e3a56c21368154c727 [INFO] building Wafelack/raytracer against try#23647e694de8d0904848ad068b2e0ec2dd098c37+target=wasm32-wasip1 for pr-149868 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FWafelack%2Fraytracer" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Wafelack/raytracer [INFO] finished tweaking git repo https://github.com/Wafelack/raytracer [INFO] tweaked toml for git repo https://github.com/Wafelack/raytracer written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Wafelack/raytracer on toolchain 23647e694de8d0904848ad068b2e0ec2dd098c37 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+23647e694de8d0904848ad068b2e0ec2dd098c37" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Wafelack/raytracer 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" "+23647e694de8d0904848ad068b2e0ec2dd098c37" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+23647e694de8d0904848ad068b2e0ec2dd098c37" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ee4d218942fe4d80b7a92d8477c794cace6440779e2e5c373d957d7e3b592dbe [INFO] running `Command { std: "docker" "start" "-a" "ee4d218942fe4d80b7a92d8477c794cace6440779e2e5c373d957d7e3b592dbe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ee4d218942fe4d80b7a92d8477c794cace6440779e2e5c373d957d7e3b592dbe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ee4d218942fe4d80b7a92d8477c794cace6440779e2e5c373d957d7e3b592dbe", kill_on_drop: false }` [INFO] [stdout] ee4d218942fe4d80b7a92d8477c794cace6440779e2e5c373d957d7e3b592dbe [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+23647e694de8d0904848ad068b2e0ec2dd098c37" "build" "--frozen" "--message-format=json" "--target" "wasm32-wasip1", kill_on_drop: false }` [INFO] [stdout] 9762b5091fc23e4358b3f5edf6c749d4413c14b6cbaf8694f8931c698feca1ec [INFO] running `Command { std: "docker" "start" "-a" "9762b5091fc23e4358b3f5edf6c749d4413c14b6cbaf8694f8931c698feca1ec", kill_on_drop: false }` [INFO] [stderr] Compiling const_fn v0.4.4 [INFO] [stderr] Compiling libc v0.2.80 [INFO] [stderr] Compiling stb_image v0.2.2 [INFO] [stderr] Compiling rand_core v0.3.1 [INFO] [stderr] Compiling rand v0.5.6 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling crossbeam-epoch v0.9.1 [INFO] [stderr] Compiling crossbeam-deque v0.8.0 [INFO] [stderr] Compiling rayon-core v1.9.0 [INFO] [stderr] Compiling rayon v1.5.0 [INFO] [stderr] Compiling raytracer v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: type `point3` should have an upper camel case name [INFO] [stdout] --> src/vec3.rs:188:10 [INFO] [stdout] | [INFO] [stdout] 188 | pub type point3 = Vec3; [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `Point3` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `color` should have an upper camel case name [INFO] [stdout] --> src/vec3.rs:189:10 [INFO] [stdout] | [INFO] [stdout] 189 | pub type color = Vec3; [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time0` [INFO] [stdout] --> src/aarect.rs:37:26 [INFO] [stdout] | [INFO] [stdout] 37 | fn bounding_box(&self, time0: f32, time1: f32, output_box: &mut Aabb) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_time0` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time1` [INFO] [stdout] --> src/aarect.rs:37:38 [INFO] [stdout] | [INFO] [stdout] 37 | fn bounding_box(&self, time0: f32, time1: f32, output_box: &mut Aabb) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_time1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time0` [INFO] [stdout] --> src/aarect.rs:102:26 [INFO] [stdout] | [INFO] [stdout] 102 | fn bounding_box(&self, time0: f32, time1: f32, output_box: &mut Aabb) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_time0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time1` [INFO] [stdout] --> src/aarect.rs:102:38 [INFO] [stdout] | [INFO] [stdout] 102 | fn bounding_box(&self, time0: f32, time1: f32, output_box: &mut Aabb) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_time1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time0` [INFO] [stdout] --> src/aarect.rs:167:26 [INFO] [stdout] | [INFO] [stdout] 167 | fn bounding_box(&self, time0: f32, time1: f32, output_box: &mut Aabb) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_time0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time1` [INFO] [stdout] --> src/aarect.rs:167:38 [INFO] [stdout] | [INFO] [stdout] 167 | fn bounding_box(&self, time0: f32, time1: f32, output_box: &mut Aabb) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_time1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time0` [INFO] [stdout] --> src/bvh.rs:79:33 [INFO] [stdout] | [INFO] [stdout] 79 | fn bounding_box<'a>(&'a self, time0: f32, time1: f32, output_box: &mut Aabb) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_time0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time1` [INFO] [stdout] --> src/bvh.rs:79:45 [INFO] [stdout] | [INFO] [stdout] 79 | fn bounding_box<'a>(&'a self, time0: f32, time1: f32, output_box: &mut Aabb) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_time1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `focal_length` [INFO] [stdout] --> src/camera.rs:37:13 [INFO] [stdout] | [INFO] [stdout] 37 | let focal_length = 1.; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_focal_length` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `u` [INFO] [stdout] --> src/material/material.rs:12:23 [INFO] [stdout] | [INFO] [stdout] 12 | fn emitted(&self, u: f32, v: f32, p: &point3) -> color { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_u` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/material/material.rs:12:31 [INFO] [stdout] | [INFO] [stdout] 12 | fn emitted(&self, u: f32, v: f32, p: &point3) -> color { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> src/material/material.rs:12:39 [INFO] [stdout] | [INFO] [stdout] 12 | fn emitted(&self, u: f32, v: f32, p: &point3) -> color { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r_in` [INFO] [stdout] --> src/material/material.rs:184:9 [INFO] [stdout] | [INFO] [stdout] 184 | r_in: Ray, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_r_in` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rec` [INFO] [stdout] --> src/material/material.rs:185:9 [INFO] [stdout] | [INFO] [stdout] 185 | rec: HitRecord, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `attenuation` [INFO] [stdout] --> src/material/material.rs:186:9 [INFO] [stdout] | [INFO] [stdout] 186 | attenuation: &mut color, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_attenuation` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scattered` [INFO] [stdout] --> src/material/material.rs:187:9 [INFO] [stdout] | [INFO] [stdout] 187 | scattered: &mut Ray, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_scattered` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/objects/hittable.rs:44:26 [INFO] [stdout] | [INFO] [stdout] 44 | fn hit<'a>(&'a self, r: &Ray, t_min: f32, t_max: f32, rec: &mut HitRecord<'a>) -> bool { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t_min` [INFO] [stdout] --> src/objects/hittable.rs:44:35 [INFO] [stdout] | [INFO] [stdout] 44 | fn hit<'a>(&'a self, r: &Ray, t_min: f32, t_max: f32, rec: &mut HitRecord<'a>) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_t_min` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t_max` [INFO] [stdout] --> src/objects/hittable.rs:44:47 [INFO] [stdout] | [INFO] [stdout] 44 | fn hit<'a>(&'a self, r: &Ray, t_min: f32, t_max: f32, rec: &mut HitRecord<'a>) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_t_max` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rec` [INFO] [stdout] --> src/objects/hittable.rs:44:59 [INFO] [stdout] | [INFO] [stdout] 44 | fn hit<'a>(&'a self, r: &Ray, t_min: f32, t_max: f32, rec: &mut HitRecord<'a>) -> bool { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time0` [INFO] [stdout] --> src/objects/hittable.rs:47:35 [INFO] [stdout] | [INFO] [stdout] 47 | fn bounding_box<'a>(&'a self, time0: f32, time1: f32, output_box: &mut Aabb) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_time0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time1` [INFO] [stdout] --> src/objects/hittable.rs:47:47 [INFO] [stdout] | [INFO] [stdout] 47 | fn bounding_box<'a>(&'a self, time0: f32, time1: f32, output_box: &mut Aabb) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_time1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `output_box` [INFO] [stdout] --> src/objects/hittable.rs:47:59 [INFO] [stdout] | [INFO] [stdout] 47 | fn bounding_box<'a>(&'a self, time0: f32, time1: f32, output_box: &mut Aabb) -> bool { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_output_box` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time0` [INFO] [stdout] --> src/objects/hittable.rs:140:28 [INFO] [stdout] | [INFO] [stdout] 140 | fn bounding_box(&self, time0: f32, time1: f32, output_box: &mut Aabb) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_time0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time1` [INFO] [stdout] --> src/objects/hittable.rs:140:40 [INFO] [stdout] | [INFO] [stdout] 140 | fn bounding_box(&self, time0: f32, time1: f32, output_box: &mut Aabb) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_time1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/objects/moving_sphere.rs:54:13 [INFO] [stdout] | [INFO] [stdout] 54 | let mut front_face = false; [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `front_face` [INFO] [stdout] --> src/objects/moving_sphere.rs:54:13 [INFO] [stdout] | [INFO] [stdout] 54 | let mut front_face = false; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_front_face` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/objects/sphere.rs:33:13 [INFO] [stdout] | [INFO] [stdout] 33 | let mut front_face = false; [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `front_face` [INFO] [stdout] --> src/objects/sphere.rs:33:13 [INFO] [stdout] | [INFO] [stdout] 33 | let mut front_face = false; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_front_face` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time0` [INFO] [stdout] --> src/objects/sphere.rs:62:35 [INFO] [stdout] | [INFO] [stdout] 62 | fn bounding_box<'a>(&'a self, time0: f32, time1: f32, output_box: &mut Aabb) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_time0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time1` [INFO] [stdout] --> src/objects/sphere.rs:62:47 [INFO] [stdout] | [INFO] [stdout] 62 | fn bounding_box<'a>(&'a self, time0: f32, time1: f32, output_box: &mut Aabb) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_time1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `u` [INFO] [stdout] --> src/texture.rs:30:19 [INFO] [stdout] | [INFO] [stdout] 30 | fn value(&self, u: f32, v: f32, p: &point3) -> color { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_u` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/texture.rs:30:27 [INFO] [stdout] | [INFO] [stdout] 30 | fn value(&self, u: f32, v: f32, p: &point3) -> color { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> src/texture.rs:30:35 [INFO] [stdout] | [INFO] [stdout] 30 | fn value(&self, u: f32, v: f32, p: &point3) -> color { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `u` [INFO] [stdout] --> src/texture.rs:85:19 [INFO] [stdout] | [INFO] [stdout] 85 | fn value(&self, u: f32, v: f32, p: &point3) -> color { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_u` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/texture.rs:85:27 [INFO] [stdout] | [INFO] [stdout] 85 | fn value(&self, u: f32, v: f32, p: &point3) -> color { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> src/texture.rs:141:35 [INFO] [stdout] | [INFO] [stdout] 141 | fn value(&self, u: f32, v: f32, p: &point3) -> color { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `j` [INFO] [stdout] --> src/main.rs:131:9 [INFO] [stdout] | [INFO] [stdout] 131 | for j in 0..ns { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_j` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `sphere_material` is never read [INFO] [stdout] --> src/main.rs:387:21 [INFO] [stdout] | [INFO] [stdout] 387 | Arc::new(Metal::from(color::new(), 0.0)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:457:9 [INFO] [stdout] | [INFO] [stdout] 457 | let mut vup = Vec3::from(0., 1., 0.); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:458:9 [INFO] [stdout] | [INFO] [stdout] 458 | let mut dist_to_focus: f32 = 10.0; [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:459:9 [INFO] [stdout] | [INFO] [stdout] 459 | let mut aperture: f32 = 0.0; [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `w` is never read [INFO] [stdout] --> src/camera.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Camera { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 10 | w: Vec3, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_color` is never used [INFO] [stdout] --> src/colors.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn write_color(pixel_color: color, samples_per_pixel: i32) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `box_min` and `box_max` are never read [INFO] [stdout] --> src/material/boxx.rs:8:3 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Boxx { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 8 | box_min: point3, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 9 | box_max: point3, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `point_count` is never read [INFO] [stdout] --> src/perlin.rs:4:3 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Perlin { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 4 | point_count: usize, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/bvh.rs:48:7 [INFO] [stdout] | [INFO] [stdout] 48 | / &objects[start..end].sort_unstable_by(|a, b| { [INFO] [stdout] 49 | | if comparator(&**a, &**b) { [INFO] [stdout] 50 | | std::cmp::Ordering::Greater [INFO] [stdout] 51 | | } else { [INFO] [stdout] ... | [INFO] [stdout] 54 | | }); [INFO] [stdout] | |________^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 48 | let _ = &objects[start..end].sort_unstable_by(|a, b| { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: linking with `rust-lld` failed: exit status: 1 [INFO] [stdout] | [INFO] [stdout] = note: "rust-lld" "-flavor" "wasm" "--export" "__main_void" "-z" "stack-size=1048576" "--stack-first" "--no-demangle" "/lib/rustlib/wasm32-wasip1/lib/self-contained/crt1-command.o" "<9 object files omitted>" "/lib/rustlib/wasm32-wasip1/lib/libpanic_abort-*.rlib" "/opt/rustwide/target/wasm32-wasip1/debug/deps/{librand-64a9a08489fd99fb,librand_core-cf7a3874c86bfd6a,librand_core-7b75640df732d16f,libstb_image-3f61cef4d3673064,librayon-170027ea7e61587f,librayon_core-77ed47749bba669a,libnum_cpus-5b0ddf4d5b2a4c10,liblibc-5c9919b2444cc3d2,libcrossbeam_deque-c2e2b5dcd2003364,libcrossbeam_epoch-86f9cee34d2ef2d1,libmemoffset-65a21c95467740ee,libscopeguard-969e7c3c4435a7ba,libcrossbeam_channel-89db9bf099272ff2,libcrossbeam_utils-24015ec0c439ab1a,liblazy_static-36da267ce9339a94,libcfg_if-50b02a9e3502ecf2,libeither-dc6839dd41631a68}.rlib" "/lib/rustlib/wasm32-wasip1/lib/{libstd-*,libwasi-*,libcfg_if-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libminiz_oxide-*,libadler2-*,libunwind-*,liblibc-*}.rlib" "-l" "c" "/lib/rustlib/wasm32-wasip1/lib/{librustc_std_workspace_core-*,liballoc-*,libcore-*,libcompiler_builtins-*}.rlib" "-L" "/opt/rustwide/target/wasm32-wasip1/debug/build/stb_image-21cfa310f14f6c92/out" "-L" "/lib/rustlib/wasm32-wasip1/lib/self-contained" "-o" "/opt/rustwide/target/wasm32-wasip1/debug/deps/raytracer-4932996e04449d9c.wasm" "--gc-sections" "-O0" [INFO] [stdout] = note: some arguments are omitted. use `--verbose` to show all linker arguments [INFO] [stdout] = note: rust-lld: warning: /opt/rustwide/target/wasm32-wasip1/debug/deps/libstb_image-3f61cef4d3673064.rlib: archive member 'stb_image.o' is neither Wasm object file nor LLVM bitcode [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/raytracer-4932996e04449d9c.raytracer.b4ddfc2cc981668-cgu.6.rcgu.o: undefined symbol: stbi_is_hdr [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/raytracer-4932996e04449d9c.raytracer.b4ddfc2cc981668-cgu.6.rcgu.o: undefined symbol: stbi_load [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/raytracer-4932996e04449d9c.raytracer.b4ddfc2cc981668-cgu.6.rcgu.o: undefined symbol: stbi_loadf [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/libstb_image-3f61cef4d3673064.rlib(stb_image-3f61cef4d3673064.stb_image.f34c88c05e83240b-cgu.0.rcgu.o): undefined symbol: stbi_image_free [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/libstb_image-3f61cef4d3673064.rlib(stb_image-3f61cef4d3673064.stb_image.f34c88c05e83240b-cgu.0.rcgu.o): undefined symbol: stbi_image_free [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `raytracer` (bin "raytracer") due to 1 previous error; 49 warnings emitted [INFO] running `Command { std: "docker" "inspect" "9762b5091fc23e4358b3f5edf6c749d4413c14b6cbaf8694f8931c698feca1ec", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9762b5091fc23e4358b3f5edf6c749d4413c14b6cbaf8694f8931c698feca1ec", kill_on_drop: false }` [INFO] [stdout] 9762b5091fc23e4358b3f5edf6c749d4413c14b6cbaf8694f8931c698feca1ec