[INFO] cloning repository https://github.com/post-rex/sdf [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/post-rex/sdf" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpost-rex%2Fsdf", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpost-rex%2Fsdf'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1ffb402a9658943f26af3876f9adc04baa7fc19e [INFO] building post-rex/sdf against try#23647e694de8d0904848ad068b2e0ec2dd098c37+target=wasm32-wasip1 for pr-149868 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpost-rex%2Fsdf" "/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/post-rex/sdf [INFO] finished tweaking git repo https://github.com/post-rex/sdf [INFO] tweaked toml for git repo https://github.com/post-rex/sdf written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/post-rex/sdf 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/post-rex/sdf 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] 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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+23647e694de8d0904848ad068b2e0ec2dd098c37" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f506e64cdd5b31b45c96fb732b4a94ea6a77b49a02efc98cdd8abd3b2aa60bdc [INFO] running `Command { std: "docker" "start" "-a" "f506e64cdd5b31b45c96fb732b4a94ea6a77b49a02efc98cdd8abd3b2aa60bdc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f506e64cdd5b31b45c96fb732b4a94ea6a77b49a02efc98cdd8abd3b2aa60bdc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f506e64cdd5b31b45c96fb732b4a94ea6a77b49a02efc98cdd8abd3b2aa60bdc", kill_on_drop: false }` [INFO] [stdout] f506e64cdd5b31b45c96fb732b4a94ea6a77b49a02efc98cdd8abd3b2aa60bdc [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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+23647e694de8d0904848ad068b2e0ec2dd098c37" "build" "--frozen" "--message-format=json" "--target" "wasm32-wasip1", kill_on_drop: false }` [INFO] [stdout] 0edc2295fbaf1fd9f061b336f17ce13bffd7309a4d608f933c590149826f283b [INFO] running `Command { std: "docker" "start" "-a" "0edc2295fbaf1fd9f061b336f17ce13bffd7309a4d608f933c590149826f283b", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling crossbeam-utils v0.8.5 [INFO] [stderr] Compiling crossbeam-epoch v0.9.5 [INFO] [stderr] Compiling libc v0.2.102 [INFO] [stderr] Compiling rayon-core v1.9.1 [INFO] [stderr] Compiling proc-macro2 v1.0.29 [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling bytemuck v1.7.2 [INFO] [stderr] Compiling cc v1.0.70 [INFO] [stderr] Compiling crc32fast v1.2.1 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling wasi v0.10.2+wasi-snapshot-preview1 [INFO] [stderr] Compiling syn v1.0.76 [INFO] [stderr] Compiling weezl v0.1.5 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling once_cell v1.8.0 [INFO] [stderr] Compiling typenum v1.14.0 [INFO] [stderr] Compiling paste v1.0.5 [INFO] [stderr] Compiling rawpointer v0.2.1 [INFO] [stderr] Compiling safe_arch v0.6.0 [INFO] [stderr] Compiling matrixmultiply v0.3.1 [INFO] [stderr] Compiling gif v0.11.2 [INFO] [stderr] Compiling wide v0.7.1 [INFO] [stderr] Compiling getrandom v0.2.3 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling ahash v0.7.4 [INFO] [stderr] Compiling deflate v0.8.6 [INFO] [stderr] Compiling instant v0.1.10 [INFO] [stderr] Compiling fastrand v1.5.0 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling memoffset v0.6.4 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling rayon v1.5.1 [INFO] [stderr] Compiling miniz_oxide v0.4.4 [INFO] [stderr] Compiling num-rational v0.3.2 [INFO] [stderr] Compiling crossbeam-channel v0.5.1 [INFO] [stderr] Compiling num-iter v0.1.42 [INFO] [stderr] Compiling num-rational v0.4.0 [INFO] [stderr] Compiling hashbrown v0.11.2 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling png v0.16.8 [INFO] [stderr] Compiling libmimalloc-sys v0.1.22 [INFO] [stderr] Compiling crossbeam-deque v0.8.1 [INFO] [stderr] Compiling hecs v0.6.5 [INFO] [stderr] Compiling num-complex v0.4.0 [INFO] [stderr] Compiling approx v0.5.0 [INFO] [stderr] Compiling mimalloc v0.1.26 [INFO] [stderr] Compiling simba v0.6.0 [INFO] [stderr] Compiling jpeg-decoder v0.1.22 [INFO] [stderr] Compiling tiff v0.6.1 [INFO] [stderr] Compiling image v0.23.14 [INFO] [stderr] Compiling nalgebra-macros v0.1.0 [INFO] [stderr] Compiling nalgebra v0.29.0 [INFO] [stderr] Compiling sdf v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Color` [INFO] [stdout] --> src/light.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{Color, Vec3f}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `nalgebra::Vector3` [INFO] [stdout] --> src/light.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use nalgebra::Vector3; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Div` and `Mul` [INFO] [stdout] --> src/light.rs:3:16 [INFO] [stdout] | [INFO] [stdout] 3 | use std::ops::{Div, Mul}; [INFO] [stdout] | ^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Norm` [INFO] [stdout] --> src/ray.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | use nalgebra::{Norm, Vector3}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Vector4` [INFO] [stdout] --> src/sdf.rs:2:34 [INFO] [stdout] | [INFO] [stdout] 2 | use nalgebra::{Vector2, Vector3, Vector4}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Sdf` [INFO] [stdout] --> src/main.rs:8:32 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::sdf::{color_sphere, Sdf}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Intersect` [INFO] [stdout] --> src/main.rs:9:20 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::world::{Intersect, World}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `nalgebra as na` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use nalgebra as na; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Point3`, `Point4`, and `Vector` [INFO] [stdout] --> src/main.rs:12:24 [INFO] [stdout] | [INFO] [stdout] 12 | use nalgebra::{Point2, Point3, Point4, Vector, Vector2, Vector3, Vector4}; [INFO] [stdout] | ^^^^^^ ^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/main.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:204:26 [INFO] [stdout] | [INFO] [stdout] 204 | fn shader(world: &World, mut dir: Vector3) -> Vector4 { [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: `pt` [INFO] [stdout] --> src/main.rs:249:33 [INFO] [stdout] | [INFO] [stdout] 249 | LightKind::Infinite(pt) => { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_pt` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ILLUM_THRESHOLD` is never used [INFO] [stdout] --> src/main.rs:48:7 [INFO] [stdout] | [INFO] [stdout] 48 | const ILLUM_THRESHOLD: f32 = 0.000001; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ColorWrapper` is never constructed [INFO] [stdout] --> src/main.rs:55:8 [INFO] [stdout] | [INFO] [stdout] 55 | struct ColorWrapper(pub Color); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `color` is never used [INFO] [stdout] --> src/main.rs:57:4 [INFO] [stdout] | [INFO] [stdout] 57 | fn color(x: f32, y: f32, z: f32) -> Color { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `origin` is never read [INFO] [stdout] --> src/main.rs:62:5 [INFO] [stdout] | [INFO] [stdout] 61 | pub struct Camera { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 62 | origin: Vector3, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rf32` is never used [INFO] [stdout] --> src/main.rs:78:4 [INFO] [stdout] | [INFO] [stdout] 78 | fn rf32() -> f32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `background_shader` is never used [INFO] [stdout] --> src/main.rs:312:4 [INFO] [stdout] | [INFO] [stdout] 312 | fn background_shader(_world: &World, dir: &Vector3) -> Vector4 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `AllBright` and `Infinite` are never constructed [INFO] [stdout] --> src/light.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub enum LightKind { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 12 | AllBright, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 13 | Point, [INFO] [stdout] 14 | Infinite(Vec3f), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `uv` is never read [INFO] [stdout] --> src/sdf.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Sdf { [INFO] [stdout] | --- field in this struct [INFO] [stdout] ... [INFO] [stdout] 11 | uv: Arc Uv + Send + Sync>, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `Sdf` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `steps` and `distance` are never read [INFO] [stdout] --> src/world.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Intersect { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 17 | pub steps: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 18 | pub distance: f32, [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" "<10 object files omitted>" "/lib/rustlib/wasm32-wasip1/lib/libpanic_abort-*.rlib" "/opt/rustwide/target/wasm32-wasip1/debug/deps/{libfastrand-9fc4f554752ed151,libinstant-88bf8c5f6a486a69,librayon-2e33f509c1b27ddf,librayon_core-7e7695095d5d7a47,libnum_cpus-bc926f24c2773bce,liblibc-6e0fc287d4432109,libcrossbeam_deque-4795f005b99f4536,libcrossbeam_epoch-d4fd57595f4fecac,libmemoffset-fcafe18dfec49f81,libscopeguard-969e7c3c4435a7ba,libcrossbeam_channel-96268804cffcca59,libcrossbeam_utils-06a455d081b8265f,liblazy_static-36da267ce9339a94,libeither-dc6839dd41631a68,libmimalloc-9aa4a3aa1a88fe5c,liblibmimalloc_sys-0a728eacb44286a3,libhecs-0437f88905233243,libhashbrown-2003fd706789bba6,libahash-4b257116cfa5474c,libgetrandom-0d989f80fd675cb6,libwasi-4ea4ad5c0c21a1a2,libcfg_if-50b02a9e3502ecf2,libonce_cell-4af22690cc657085,libnalgebra-090bbf39eaa2933f,libmatrixmultiply-d3b3530ffb5a3e48,librawpointer-bdc2b0e64d56f44e,libnum_rational-3538175fda786021,libnum_integer-4dd7eb7c765b6f02,libtypenum-4999784581bc7ff0,libsimba-a5e36e3a5c489227,libwide-ab439192dd33a645,libsafe_arch-1a4a5a2bfc73cb3a,libbytemuck-eaca2bf54f3a1ce9,libnum_complex-ae11151f31393351,libapprox-c78bda5b701a63c7,libnum_traits-9b1d81968a913e17}.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/libmimalloc-sys-bb876c64540b9782/out" "-L" "/lib/rustlib/wasm32-wasip1/lib/self-contained" "-o" "/opt/rustwide/target/wasm32-wasip1/debug/deps/sdf-b6653f67bd8570b0.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/liblibmimalloc_sys-0a728eacb44286a3.rlib: archive member 'static.o' is neither Wasm object file nor LLVM bitcode [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/sdf-b6653f67bd8570b0.sdf.dba016bd7cad96bd-cgu.7.rcgu.o: undefined symbol: mi_zalloc_aligned [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/sdf-b6653f67bd8570b0.sdf.dba016bd7cad96bd-cgu.7.rcgu.o: undefined symbol: mi_zalloc [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/sdf-b6653f67bd8570b0.sdf.dba016bd7cad96bd-cgu.7.rcgu.o: undefined symbol: mi_malloc_aligned [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/sdf-b6653f67bd8570b0.sdf.dba016bd7cad96bd-cgu.7.rcgu.o: undefined symbol: mi_malloc [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/sdf-b6653f67bd8570b0.sdf.dba016bd7cad96bd-cgu.7.rcgu.o: undefined symbol: mi_free [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/sdf-b6653f67bd8570b0.sdf.dba016bd7cad96bd-cgu.7.rcgu.o: undefined symbol: mi_realloc_aligned [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/sdf-b6653f67bd8570b0.sdf.dba016bd7cad96bd-cgu.7.rcgu.o: undefined symbol: mi_realloc [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `sdf` (bin "sdf") due to 1 previous error; 21 warnings emitted [INFO] running `Command { std: "docker" "inspect" "0edc2295fbaf1fd9f061b336f17ce13bffd7309a4d608f933c590149826f283b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0edc2295fbaf1fd9f061b336f17ce13bffd7309a4d608f933c590149826f283b", kill_on_drop: false }` [INFO] [stdout] 0edc2295fbaf1fd9f061b336f17ce13bffd7309a4d608f933c590149826f283b