[INFO] cloning repository https://github.com/SirPuddinlot/cse131-diamondback [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/SirPuddinlot/cse131-diamondback" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSirPuddinlot%2Fcse131-diamondback", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSirPuddinlot%2Fcse131-diamondback'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f2f1860016f7beabe8e53c68ec811bd0f92f2e94 [INFO] building SirPuddinlot/cse131-diamondback against try#23647e694de8d0904848ad068b2e0ec2dd098c37+target=wasm32-wasip1 for pr-149868 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSirPuddinlot%2Fcse131-diamondback" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/SirPuddinlot/cse131-diamondback [INFO] finished tweaking git repo https://github.com/SirPuddinlot/cse131-diamondback [INFO] tweaked toml for git repo https://github.com/SirPuddinlot/cse131-diamondback written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/SirPuddinlot/cse131-diamondback 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/SirPuddinlot/cse131-diamondback 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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] 4eebd795a206fda7c3af2286757d9f12e652a3a728d92613e80a2b55b3ee9b68 [INFO] running `Command { std: "docker" "start" "-a" "4eebd795a206fda7c3af2286757d9f12e652a3a728d92613e80a2b55b3ee9b68", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4eebd795a206fda7c3af2286757d9f12e652a3a728d92613e80a2b55b3ee9b68", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4eebd795a206fda7c3af2286757d9f12e652a3a728d92613e80a2b55b3ee9b68", kill_on_drop: false }` [INFO] [stdout] 4eebd795a206fda7c3af2286757d9f12e652a3a728d92613e80a2b55b3ee9b68 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] c5d472d3b1b6e7b8ab3b6072ca1a7673bed7bc0bbbe2c8df3d5c393c20e37fbd [INFO] running `Command { std: "docker" "start" "-a" "c5d472d3b1b6e7b8ab3b6072ca1a7673bed7bc0bbbe2c8df3d5c393c20e37fbd", kill_on_drop: false }` [INFO] [stderr] Compiling im v15.1.0 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling memmap2 v0.5.10 [INFO] [stderr] Compiling cc v1.2.44 [INFO] [stderr] Compiling rand_xoshiro v0.6.0 [INFO] [stderr] Compiling sexp v1.1.4 [INFO] [stderr] Compiling bitmaps v2.1.0 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling sized-chunks v0.6.5 [INFO] [stderr] Compiling capstone-sys v0.15.0 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling dynasm v2.0.0 [INFO] [stderr] Compiling dynasmrt v2.0.0 [INFO] [stderr] Compiling capstone v0.11.0 [INFO] [stderr] Compiling diamondback v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::sync::atomic::AtomicBool` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::sync::atomic::AtomicBool; [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: `std::mem` [INFO] [stdout] --> src/main.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use std::mem; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sexp::Sexp` [INFO] [stdout] --> src/main.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use sexp::Sexp; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::parser::parse_expr` [INFO] [stdout] --> src/main.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | use crate::parser::parse_expr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::jit::compile_to_jit` [INFO] [stdout] --> src/main.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | use crate::jit::compile_to_jit; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/compiler.rs:450:23 [INFO] [stdout] | [INFO] [stdout] 450 | pub fn compile_define(name: &str, expr: &Expr, defines: &HashMap, fun_ctx: &FunContext) -> (i32, Vec) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `main_instrs` [INFO] [stdout] --> src/jit.rs:244:10 [INFO] [stdout] | [INFO] [stdout] 244 | let (main_instrs, min_offset) = compile_to_instrs( [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_main_instrs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `min_offset` [INFO] [stdout] --> src/jit.rs:244:23 [INFO] [stdout] | [INFO] [stdout] 244 | let (main_instrs, min_offset) = compile_to_instrs( [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_min_offset` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `FunDefn` is never constructed [INFO] [stdout] --> src/ast.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 41 | pub enum ReplEntry { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 45 | FunDefn(FunDefn), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ReplEntry` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `RSI`, `RDX`, `R8`, and `R9` are never constructed [INFO] [stdout] --> src/instr.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub enum Reg { [INFO] [stdout] | --- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 9 | RSI, [INFO] [stdout] | ^^^ [INFO] [stdout] 10 | RDX, [INFO] [stdout] | ^^^ [INFO] [stdout] 11 | R8, [INFO] [stdout] | ^^ [INFO] [stdout] 12 | R9, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `Reg` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `IComment`, `IXor`, and `IRet` are never constructed [INFO] [stdout] --> src/instr.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 24 | pub enum Instr { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 47 | IComment(String), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | IXor(Val, Val), [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | IRet, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Instr` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `reg_to_str` is never used [INFO] [stdout] --> src/instr.rs:99:8 [INFO] [stdout] | [INFO] [stdout] 99 | pub fn reg_to_str(reg: &Reg) -> &str { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compile_to_jit` is never used [INFO] [stdout] --> src/jit.rs:141:8 [INFO] [stdout] | [INFO] [stdout] 141 | pub fn compile_to_jit( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/compiler.rs:13:34 [INFO] [stdout] | [INFO] [stdout] 13 | format!("{}_{}", prefix, LABEL_COUNTER) [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/compiler.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | if INPUT_HEAP_OFFSET.is_none() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [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" "\u{1}snek_error" "--export" "__main_void" "--export" "_snek_print" "-z" "stack-size=1048576" "--stack-first" "--no-demangle" "/lib/rustlib/wasm32-wasip1/lib/self-contained/crt1-command.o" "<17 object files omitted>" "/lib/rustlib/wasm32-wasip1/lib/libpanic_abort-*.rlib" "/opt/rustwide/target/wasm32-wasip1/debug/deps/{libcapstone-5d89404880271a9f,libcapstone_sys-8a20ec50d51ad629,liblibc-4a6290e7dd196ff4,libdynasmrt-96bacad4e866bc9f,libbyteorder-529cc76400af54b3,libfnv-4cf7b98c52023da7,libmemmap2-96cbf280325968d8,libim-587277c3114e3aca,librand_xoshiro-b8cbb0136800f2ba,librand_core-512e272d4ecb92d6,libsized_chunks-d56d366c5be07c7c,libbitmaps-f0085321642877f4,libtypenum-4ac17e86544286c1,libsexp-0625ce00372d0178}.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/capstone-sys-11f926dd4d05565a/out" "-L" "/lib/rustlib/wasm32-wasip1/lib/self-contained" "-o" "/opt/rustwide/target/wasm32-wasip1/debug/deps/diamondback-a4f02b7f7a019f8b.wasm" "--gc-sections" "-O0" [INFO] [stdout] = note: some arguments are omitted. use `--verbose` to show all linker arguments [INFO] [stdout] = note: rust-lld: error: symbol exported via --export not found: snek_error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `diamondback` (bin "diamondback") due to 1 previous error; 15 warnings emitted [INFO] running `Command { std: "docker" "inspect" "c5d472d3b1b6e7b8ab3b6072ca1a7673bed7bc0bbbe2c8df3d5c393c20e37fbd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c5d472d3b1b6e7b8ab3b6072ca1a7673bed7bc0bbbe2c8df3d5c393c20e37fbd", kill_on_drop: false }` [INFO] [stdout] c5d472d3b1b6e7b8ab3b6072ca1a7673bed7bc0bbbe2c8df3d5c393c20e37fbd