[INFO] fetching crate robotchallenge 0.0.3... [INFO] building robotchallenge-0.0.3 against try#23647e694de8d0904848ad068b2e0ec2dd098c37+target=wasm32-wasip1 for pr-149868 [INFO] extracting crate robotchallenge 0.0.3 into /workspace/builds/worker-5-tc2/source [INFO] removed /workspace/builds/worker-5-tc2/source/.cargo/config.toml [INFO] started tweaking crates.io crate robotchallenge 0.0.3 [INFO] finished tweaking crates.io crate robotchallenge 0.0.3 [INFO] tweaked toml for crates.io crate robotchallenge 0.0.3 written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate robotchallenge 0.0.3 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] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+23647e694de8d0904848ad068b2e0ec2dd098c37" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [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] 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] c65a2372538696573a679da3c56c5f8b09f1ac559246b040eeff901637bc5302 [INFO] running `Command { std: "docker" "start" "-a" "c65a2372538696573a679da3c56c5f8b09f1ac559246b040eeff901637bc5302", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c65a2372538696573a679da3c56c5f8b09f1ac559246b040eeff901637bc5302", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c65a2372538696573a679da3c56c5f8b09f1ac559246b040eeff901637bc5302", kill_on_drop: false }` [INFO] [stdout] c65a2372538696573a679da3c56c5f8b09f1ac559246b040eeff901637bc5302 [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] 307626be77e0e3aed6fb78d26318bcbfe8fefe81558f283d5c9f3f1d24aafdeb [INFO] running `Command { std: "docker" "start" "-a" "307626be77e0e3aed6fb78d26318bcbfe8fefe81558f283d5c9f3f1d24aafdeb", kill_on_drop: false }` [INFO] [stderr] Compiling robotchallenge v0.0.3 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated type alias `std::panic::PanicInfo`: use `PanicHookInfo` instead [INFO] [stdout] --> src/lib.rs:124:43 [INFO] [stdout] | [INFO] [stdout] 124 | fn console_error_panic_hook(info: &panic::PanicInfo) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` block uses type `LibInfo`, which is not FFI-safe [INFO] [stdout] --> src/lib.rs:73:38 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn get_library_info() -> LibInfo; [INFO] [stdout] | ^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stdout] = note: this struct has unspecified layout [INFO] [stdout] note: the type is defined here [INFO] [stdout] --> src/lib.rs:64:1 [INFO] [stdout] | [INFO] [stdout] 64 | pub struct LibInfo { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(improper_ctypes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` block uses type `Map`, which is not FFI-safe [INFO] [stdout] --> src/lib.rs:74:29 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn do_step(map: &Map, robot_to_move_index: usize, round_no: u32); [INFO] [stdout] | ^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stdout] = note: this struct has unspecified layout [INFO] [stdout] note: the type is defined here [INFO] [stdout] --> src/lib.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct Map { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.33s [INFO] running `Command { std: "docker" "inspect" "307626be77e0e3aed6fb78d26318bcbfe8fefe81558f283d5c9f3f1d24aafdeb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "307626be77e0e3aed6fb78d26318bcbfe8fefe81558f283d5c9f3f1d24aafdeb", kill_on_drop: false }` [INFO] [stdout] 307626be77e0e3aed6fb78d26318bcbfe8fefe81558f283d5c9f3f1d24aafdeb [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" "test" "--frozen" "--no-run" "--message-format=json" "--target" "wasm32-wasip1", kill_on_drop: false }` [INFO] [stdout] db0308421649e04b70efd57c2a9ee8b3109bd8f47c1fd3c4db15a2cc71881f34 [INFO] running `Command { std: "docker" "start" "-a" "db0308421649e04b70efd57c2a9ee8b3109bd8f47c1fd3c4db15a2cc71881f34", kill_on_drop: false }` [INFO] [stdout] warning: use of deprecated type alias `std::panic::PanicInfo`: use `PanicHookInfo` instead [INFO] [stdout] --> src/lib.rs:124:43 [INFO] [stdout] | [INFO] [stdout] 124 | fn console_error_panic_hook(info: &panic::PanicInfo) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` block uses type `LibInfo`, which is not FFI-safe [INFO] [stdout] --> src/lib.rs:73:38 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn get_library_info() -> LibInfo; [INFO] [stdout] | ^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stdout] = note: this struct has unspecified layout [INFO] [stdout] note: the type is defined here [INFO] [stdout] --> src/lib.rs:64:1 [INFO] [stdout] | [INFO] [stdout] 64 | pub struct LibInfo { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(improper_ctypes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` block uses type `Map`, which is not FFI-safe [INFO] [stdout] --> src/lib.rs:74:29 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn do_step(map: &Map, robot_to_move_index: usize, round_no: u32); [INFO] [stdout] | ^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stdout] = note: this struct has unspecified layout [INFO] [stdout] note: the type is defined here [INFO] [stdout] --> src/lib.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct Map { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling robotchallenge v0.0.3 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated type alias `std::panic::PanicInfo`: use `PanicHookInfo` instead [INFO] [stdout] --> src/lib.rs:124:43 [INFO] [stdout] | [INFO] [stdout] 124 | fn console_error_panic_hook(info: &panic::PanicInfo) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` block uses type `LibInfo`, which is not FFI-safe [INFO] [stdout] --> src/lib.rs:73:38 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn get_library_info() -> LibInfo; [INFO] [stdout] | ^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stdout] = note: this struct has unspecified layout [INFO] [stdout] note: the type is defined here [INFO] [stdout] --> src/lib.rs:64:1 [INFO] [stdout] | [INFO] [stdout] 64 | pub struct LibInfo { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(improper_ctypes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` block uses type `Map`, which is not FFI-safe [INFO] [stdout] --> src/lib.rs:74:29 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn do_step(map: &Map, robot_to_move_index: usize, round_no: u32); [INFO] [stdout] | ^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stdout] = note: this struct has unspecified layout [INFO] [stdout] note: the type is defined here [INFO] [stdout] --> src/lib.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct Map { [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" "--export" "allocate" "--export" "deallocate" "--export" "do_step_ffi" "--export" "get_lib_info" "--export" "init_game" "-z" "stack-size=1048576" "--stack-first" "--no-demangle" "/lib/rustlib/wasm32-wasip1/lib/self-contained/crt1-command.o" "<2 object files omitted>" "/lib/rustlib/wasm32-wasip1/lib/{libpanic_abort-*,libtest-*,libgetopts-*,librustc_std_workspace_std-*,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" "/lib/rustlib/wasm32-wasip1/lib/self-contained" "-o" "/opt/rustwide/target/wasm32-wasip1/debug/deps/robotchallenge-8b996fa1f62d432c.wasm" "--gc-sections" "-O0" [INFO] [stdout] = note: some arguments are omitted. use `--verbose` to show all linker arguments [INFO] [stdout] = note: rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/robotchallenge-8b996fa1f62d432c.robotchallenge.be084c880e26ff8f-cgu.0.rcgu.o: undefined symbol: do_step [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/robotchallenge-8b996fa1f62d432c.robotchallenge.be084c880e26ff8f-cgu.0.rcgu.o: undefined symbol: get_library_info [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/robotchallenge-8b996fa1f62d432c.robotchallenge.be084c880e26ff8f-cgu.0.rcgu.o: undefined symbol: init [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `robotchallenge` (lib test) due to 1 previous error; 3 warnings emitted [INFO] running `Command { std: "docker" "inspect" "db0308421649e04b70efd57c2a9ee8b3109bd8f47c1fd3c4db15a2cc71881f34", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "db0308421649e04b70efd57c2a9ee8b3109bd8f47c1fd3c4db15a2cc71881f34", kill_on_drop: false }` [INFO] [stdout] db0308421649e04b70efd57c2a9ee8b3109bd8f47c1fd3c4db15a2cc71881f34