[INFO] cloning repository https://github.com/NicholasLYang/tlox [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/NicholasLYang/tlox" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNicholasLYang%2Ftlox", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNicholasLYang%2Ftlox'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ed4ae161571042e4fc234349177d1ae3a0681cf3 [INFO] building NicholasLYang/tlox against try#23647e694de8d0904848ad068b2e0ec2dd098c37+target=wasm32-wasip1 for pr-149868 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNicholasLYang%2Ftlox" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/NicholasLYang/tlox [INFO] finished tweaking git repo https://github.com/NicholasLYang/tlox [INFO] tweaked toml for git repo https://github.com/NicholasLYang/tlox written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/NicholasLYang/tlox 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/NicholasLYang/tlox 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-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] 3a0ed8ada6a1bbf952dcf5a7500f326406a76e0e409fcb66afe2759b5c4701e0 [INFO] running `Command { std: "docker" "start" "-a" "3a0ed8ada6a1bbf952dcf5a7500f326406a76e0e409fcb66afe2759b5c4701e0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3a0ed8ada6a1bbf952dcf5a7500f326406a76e0e409fcb66afe2759b5c4701e0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3a0ed8ada6a1bbf952dcf5a7500f326406a76e0e409fcb66afe2759b5c4701e0", kill_on_drop: false }` [INFO] [stdout] 3a0ed8ada6a1bbf952dcf5a7500f326406a76e0e409fcb66afe2759b5c4701e0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] 9f5d66800afc728c63e546a9454328668c7f0d7d2ec91c5ffc387134884ef3ae [INFO] running `Command { std: "docker" "start" "-a" "9f5d66800afc728c63e546a9454328668c7f0d7d2ec91c5ffc387134884ef3ae", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.40 [INFO] [stderr] Compiling syn v1.0.98 [INFO] [stderr] Compiling tree-sitter v0.20.8 [INFO] [stderr] Compiling tlox v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Compiling anyhow v1.0.58 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling quote v1.0.20 [INFO] [stderr] Compiling regex v1.6.0 [INFO] [stderr] Compiling thiserror-impl v1.0.31 [INFO] [stderr] Compiling thiserror v1.0.31 [INFO] [stdout] warning: unused import: `Node` [INFO] [stdout] --> src/main.rs:2:29 [INFO] [stdout] | [INFO] [stdout] 2 | use tree_sitter::{Language, Node, Parser, TreeCursor}; [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 variable: `cursor` [INFO] [stdout] --> src/main.rs:182:16 [INFO] [stdout] | [INFO] [stdout] 182 | fn parse_block(cursor: &mut TreeCursor) -> Result, anyhow::Error> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_cursor` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cursor` [INFO] [stdout] --> src/main.rs:186:21 [INFO] [stdout] | [INFO] [stdout] 186 | fn parse_parameters(cursor: &mut TreeCursor) -> Result, anyhow::Error> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_cursor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Add`, `Subtract`, `Multiply`, and `Divide` are never constructed [INFO] [stdout] --> src/main.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 15 | enum Operator { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 16 | Add, [INFO] [stdout] | ^^^ [INFO] [stdout] 17 | Subtract, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 18 | Multiply, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 19 | Divide, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Operator` 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 `Number`, `String`, and `Bool` are never constructed [INFO] [stdout] --> src/main.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 23 | enum Value { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 24 | Number(f64), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 25 | String(String), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 26 | Bool(bool), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Value` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Binary`, `Literal`, and `Unary` are never constructed [INFO] [stdout] --> src/main.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 30 | enum Expr { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 31 | Binary { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | Literal { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | Unary { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Expr` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/main.rs:46:16 [INFO] [stdout] | [INFO] [stdout] 46 | struct Program(Vec); [INFO] [stdout] | ------- ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `Program` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name`, `body`, and `params` are never read [INFO] [stdout] --> src/main.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 56 | Function { [INFO] [stdout] | -------- fields in this variant [INFO] [stdout] 57 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 58 | body: Vec, [INFO] [stdout] | ^^^^ [INFO] [stdout] 59 | params: Vec, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Stmt` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name`, `super_class`, and `methods` are never read [INFO] [stdout] --> src/main.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 61 | Class { [INFO] [stdout] | ----- fields in this variant [INFO] [stdout] 62 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 63 | super_class: Option, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 64 | methods: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Stmt` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Var`, `Expression`, and `Print` are never constructed [INFO] [stdout] --> src/main.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 49 | enum Stmt { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 50 | Var { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | Expression(Expr), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 55 | Print(Expr), [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Stmt` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [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" "<2 object files omitted>" "-l" "tree-sitter-tlox" "/lib/rustlib/wasm32-wasip1/lib/libpanic_abort-*.rlib" "/opt/rustwide/target/wasm32-wasip1/debug/deps/{libtree_sitter-aea3a77ba7dce69c,libregex-c0515113d95adb62,libaho_corasick-216c86f2849d20a1,libmemchr-b559ff6c4bd2cfb8,libregex_syntax-11d3323a9e30eb65,libanyhow-4cc0fce30aab6152}.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/tlox-70c8cfb0ab7be496/out" "-L" "/opt/rustwide/target/wasm32-wasip1/debug/build/tree-sitter-59c9efe871248661/out" "-L" "/lib/rustlib/wasm32-wasip1/lib/self-contained" "-o" "/opt/rustwide/target/wasm32-wasip1/debug/deps/tlox-2fbabf0ef91eae19.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/build/tlox-70c8cfb0ab7be496/out/libtree-sitter-tlox.a: archive member 'parser.o' is neither Wasm object file nor LLVM bitcode [INFO] [stdout] rust-lld: warning: /opt/rustwide/target/wasm32-wasip1/debug/deps/libtree_sitter-aea3a77ba7dce69c.rlib: archive member 'lib.o' is neither Wasm object file nor LLVM bitcode [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/tlox-2fbabf0ef91eae19.tlox.60155843b33db4fc-cgu.0.rcgu.o: undefined symbol: ts_parser_parse [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/tlox-2fbabf0ef91eae19.tlox.60155843b33db4fc-cgu.0.rcgu.o: undefined symbol: tree_sitter_tlox [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/libtree_sitter-aea3a77ba7dce69c.rlib(tree_sitter-aea3a77ba7dce69c.tree_sitter.830c0c525c769887-cgu.2.rcgu.o): undefined symbol: ts_parser_logger [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/libtree_sitter-aea3a77ba7dce69c.rlib(tree_sitter-aea3a77ba7dce69c.tree_sitter.830c0c525c769887-cgu.2.rcgu.o): undefined symbol: ts_parser_set_logger [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/libtree_sitter-aea3a77ba7dce69c.rlib(tree_sitter-aea3a77ba7dce69c.tree_sitter.830c0c525c769887-cgu.2.rcgu.o): undefined symbol: ts_parser_set_language [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/libtree_sitter-aea3a77ba7dce69c.rlib(tree_sitter-aea3a77ba7dce69c.tree_sitter.830c0c525c769887-cgu.2.rcgu.o): undefined symbol: ts_language_version [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/libtree_sitter-aea3a77ba7dce69c.rlib(tree_sitter-aea3a77ba7dce69c.tree_sitter.830c0c525c769887-cgu.2.rcgu.o): undefined symbol: ts_parser_print_dot_graphs [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/libtree_sitter-aea3a77ba7dce69c.rlib(tree_sitter-aea3a77ba7dce69c.tree_sitter.830c0c525c769887-cgu.2.rcgu.o): undefined symbol: ts_parser_new [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/libtree_sitter-aea3a77ba7dce69c.rlib(tree_sitter-aea3a77ba7dce69c.tree_sitter.830c0c525c769887-cgu.2.rcgu.o): undefined symbol: ts_tree_root_node [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/libtree_sitter-aea3a77ba7dce69c.rlib(tree_sitter-aea3a77ba7dce69c.tree_sitter.830c0c525c769887-cgu.2.rcgu.o): undefined symbol: ts_tree_cursor_new [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/libtree_sitter-aea3a77ba7dce69c.rlib(tree_sitter-aea3a77ba7dce69c.tree_sitter.830c0c525c769887-cgu.2.rcgu.o): undefined symbol: ts_node_start_byte [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/libtree_sitter-aea3a77ba7dce69c.rlib(tree_sitter-aea3a77ba7dce69c.tree_sitter.830c0c525c769887-cgu.2.rcgu.o): undefined symbol: ts_node_end_byte [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/libtree_sitter-aea3a77ba7dce69c.rlib(tree_sitter-aea3a77ba7dce69c.tree_sitter.830c0c525c769887-cgu.2.rcgu.o): undefined symbol: ts_tree_cursor_goto_first_child [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/libtree_sitter-aea3a77ba7dce69c.rlib(tree_sitter-aea3a77ba7dce69c.tree_sitter.830c0c525c769887-cgu.2.rcgu.o): undefined symbol: ts_node_type [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/libtree_sitter-aea3a77ba7dce69c.rlib(tree_sitter-aea3a77ba7dce69c.tree_sitter.830c0c525c769887-cgu.2.rcgu.o): undefined symbol: ts_tree_cursor_current_field_name [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/libtree_sitter-aea3a77ba7dce69c.rlib(tree_sitter-aea3a77ba7dce69c.tree_sitter.830c0c525c769887-cgu.2.rcgu.o): undefined symbol: ts_tree_cursor_goto_parent [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/libtree_sitter-aea3a77ba7dce69c.rlib(tree_sitter-aea3a77ba7dce69c.tree_sitter.830c0c525c769887-cgu.2.rcgu.o): undefined symbol: ts_tree_cursor_goto_next_sibling [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/libtree_sitter-aea3a77ba7dce69c.rlib(tree_sitter-aea3a77ba7dce69c.tree_sitter.830c0c525c769887-cgu.2.rcgu.o): undefined symbol: ts_tree_cursor_current_node [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/libtree_sitter-aea3a77ba7dce69c.rlib(tree_sitter-aea3a77ba7dce69c.tree_sitter.830c0c525c769887-cgu.2.rcgu.o): undefined symbol: ts_parser_delete [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/libtree_sitter-aea3a77ba7dce69c.rlib(tree_sitter-aea3a77ba7dce69c.tree_sitter.830c0c525c769887-cgu.2.rcgu.o): undefined symbol: ts_tree_delete [INFO] [stdout] rust-lld: error: too many errors emitted, stopping now (use -error-limit=0 to see all errors) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `tlox` (bin "tlox") due to 1 previous error; 10 warnings emitted [INFO] running `Command { std: "docker" "inspect" "9f5d66800afc728c63e546a9454328668c7f0d7d2ec91c5ffc387134884ef3ae", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9f5d66800afc728c63e546a9454328668c7f0d7d2ec91c5ffc387134884ef3ae", kill_on_drop: false }` [INFO] [stdout] 9f5d66800afc728c63e546a9454328668c7f0d7d2ec91c5ffc387134884ef3ae