[INFO] cloning repository https://github.com/herisetiawan00/dartrs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/herisetiawan00/dartrs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fherisetiawan00%2Fdartrs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fherisetiawan00%2Fdartrs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 43e9aadb6f3528160492510f6d497a34cca3d33d [INFO] testing herisetiawan00/dartrs against try#2440211fe03bc45c89b6dc1a3df18382ce91e32b for pr-146098-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fherisetiawan00%2Fdartrs" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/herisetiawan00/dartrs [INFO] finished tweaking git repo https://github.com/herisetiawan00/dartrs [INFO] tweaked toml for git repo https://github.com/herisetiawan00/dartrs written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/herisetiawan00/dartrs on toolchain 2440211fe03bc45c89b6dc1a3df18382ce91e32b [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/herisetiawan00/dartrs 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" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5f0e0379acfb79376041010a59c43cf87096709b73af3d171f849d18919da581 [INFO] running `Command { std: "docker" "start" "-a" "5f0e0379acfb79376041010a59c43cf87096709b73af3d171f849d18919da581", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5f0e0379acfb79376041010a59c43cf87096709b73af3d171f849d18919da581", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5f0e0379acfb79376041010a59c43cf87096709b73af3d171f849d18919da581", kill_on_drop: false }` [INFO] [stdout] 5f0e0379acfb79376041010a59c43cf87096709b73af3d171f849d18919da581 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4a521c8ab3610b6cf5acce95ee4b763749f0a0471ad704ac451236641907ace3 [INFO] running `Command { std: "docker" "start" "-a" "4a521c8ab3610b6cf5acce95ee4b763749f0a0471ad704ac451236641907ace3", kill_on_drop: false }` [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling lock_api v0.4.13 [INFO] [stderr] Compiling hashbrown v0.15.4 [INFO] [stderr] Compiling cc v1.2.27 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling memchr v2.7.5 [INFO] [stderr] Compiling syn v2.0.102 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling percent-encoding v2.3.1 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling socket2 v0.5.10 [INFO] [stderr] Compiling signal-hook-registry v1.4.5 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling streaming-iterator v0.1.9 [INFO] [stderr] Compiling tree-sitter-language v0.1.5 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling anstyle-query v1.1.3 [INFO] [stderr] Compiling anstream v0.6.19 [INFO] [stderr] Compiling jiff v0.2.14 [INFO] [stderr] Compiling str_indices v0.4.4 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling ropey v1.6.1 [INFO] [stderr] Compiling indexmap v2.9.0 [INFO] [stderr] Compiling dashmap v5.5.3 [INFO] [stderr] Compiling tree-sitter-dart v0.0.4 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling tree-sitter v0.25.6 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Compiling tracing-attributes v0.1.29 [INFO] [stderr] Compiling serde_repr v0.1.20 [INFO] [stderr] Compiling env_filter v0.1.3 [INFO] [stderr] Compiling async-trait v0.1.88 [INFO] [stderr] Compiling auto_impl v1.3.0 [INFO] [stderr] Compiling tower-lsp-macros v0.9.0 [INFO] [stderr] Compiling env_logger v0.11.8 [INFO] [stderr] Compiling tokio v1.45.1 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling pin-project v1.1.10 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling zerovec v0.11.2 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.2 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling tower v0.4.13 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling tokio-util v0.7.15 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling lsp-types v0.94.1 [INFO] [stderr] Compiling tower-lsp v0.20.0 [INFO] [stderr] Compiling dartrs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `find_definition`, `find_node_at`, `node_to_lsp_location`, and `position_to_offset` [INFO] [stdout] --> src/handlers/goto_definition/mod.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use helper::{find_definition, find_node_at, node_to_lsp_location, position_to_offset}; [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: `parser::parse_code` [INFO] [stdout] --> src/handlers/goto_definition/mod.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::{parser::parse_code, server::LspContext}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `context` [INFO] [stdout] --> src/handlers/completion.rs:5:21 [INFO] [stdout] | [INFO] [stdout] 5 | pub async fn action(context: &LspContext, params: CompletionParams) -> Result> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_context` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `params` [INFO] [stdout] --> src/handlers/completion.rs:5:43 [INFO] [stdout] | [INFO] [stdout] 5 | pub async fn action(context: &LspContext, params: CompletionParams) -> Result> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_params` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `context` [INFO] [stdout] --> src/handlers/goto_definition/mod.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | context: &LspContext, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `params` [INFO] [stdout] --> src/handlers/goto_definition/mod.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | params: GotoDefinitionParams, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_params` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `position_to_offset` is never used [INFO] [stdout] --> src/handlers/goto_definition/helper.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn position_to_offset(source: &str, position: Position) -> usize { [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 `find_node_at` is never used [INFO] [stdout] --> src/handlers/goto_definition/helper.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn find_node_at(tree: &Tree, offset: usize) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_definition` is never used [INFO] [stdout] --> src/handlers/goto_definition/helper.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn find_definition<'tree>(tree: &'tree Tree, source: &str, name: &str) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `node_to_lsp_location` is never used [INFO] [stdout] --> src/handlers/goto_definition/helper.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn node_to_lsp_location(uri: Url, source: &str, node: Node) -> Location { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/handlers/goto_definition/helper.rs:15:27 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn find_node_at(tree: &Tree, offset: usize) -> Option { [INFO] [stdout] | ^^^^^ ^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 15 | pub fn find_node_at(tree: &Tree, offset: usize) -> Option> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 58.48s [INFO] running `Command { std: "docker" "inspect" "4a521c8ab3610b6cf5acce95ee4b763749f0a0471ad704ac451236641907ace3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4a521c8ab3610b6cf5acce95ee4b763749f0a0471ad704ac451236641907ace3", kill_on_drop: false }` [INFO] [stdout] 4a521c8ab3610b6cf5acce95ee4b763749f0a0471ad704ac451236641907ace3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2846e0c3eade0a024c7fb29f990a4cb9c9869138b4b67bcb273bafd0b4e48c92 [INFO] running `Command { std: "docker" "start" "-a" "2846e0c3eade0a024c7fb29f990a4cb9c9869138b4b67bcb273bafd0b4e48c92", kill_on_drop: false }` [INFO] [stderr] Compiling dartrs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `find_definition`, `find_node_at`, `node_to_lsp_location`, and `position_to_offset` [INFO] [stdout] --> src/handlers/goto_definition/mod.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use helper::{find_definition, find_node_at, node_to_lsp_location, position_to_offset}; [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: `parser::parse_code` [INFO] [stdout] --> src/handlers/goto_definition/mod.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::{parser::parse_code, server::LspContext}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `context` [INFO] [stdout] --> src/handlers/completion.rs:5:21 [INFO] [stdout] | [INFO] [stdout] 5 | pub async fn action(context: &LspContext, params: CompletionParams) -> Result> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_context` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `params` [INFO] [stdout] --> src/handlers/completion.rs:5:43 [INFO] [stdout] | [INFO] [stdout] 5 | pub async fn action(context: &LspContext, params: CompletionParams) -> Result> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_params` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `context` [INFO] [stdout] --> src/handlers/goto_definition/mod.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | context: &LspContext, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `params` [INFO] [stdout] --> src/handlers/goto_definition/mod.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | params: GotoDefinitionParams, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_params` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `position_to_offset` is never used [INFO] [stdout] --> src/handlers/goto_definition/helper.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn position_to_offset(source: &str, position: Position) -> usize { [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 `find_node_at` is never used [INFO] [stdout] --> src/handlers/goto_definition/helper.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn find_node_at(tree: &Tree, offset: usize) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_definition` is never used [INFO] [stdout] --> src/handlers/goto_definition/helper.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn find_definition<'tree>(tree: &'tree Tree, source: &str, name: &str) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `node_to_lsp_location` is never used [INFO] [stdout] --> src/handlers/goto_definition/helper.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn node_to_lsp_location(uri: Url, source: &str, node: Node) -> Location { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/handlers/goto_definition/helper.rs:15:27 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn find_node_at(tree: &Tree, offset: usize) -> Option { [INFO] [stdout] | ^^^^^ ^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 15 | pub fn find_node_at(tree: &Tree, offset: usize) -> Option> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.34s [INFO] running `Command { std: "docker" "inspect" "2846e0c3eade0a024c7fb29f990a4cb9c9869138b4b67bcb273bafd0b4e48c92", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2846e0c3eade0a024c7fb29f990a4cb9c9869138b4b67bcb273bafd0b4e48c92", kill_on_drop: false }` [INFO] [stdout] 2846e0c3eade0a024c7fb29f990a4cb9c9869138b4b67bcb273bafd0b4e48c92 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 0e021de6291ec42c6ca77626ad304bfce157e279c4ddeee28363d13dcec5f406 [INFO] running `Command { std: "docker" "start" "-a" "0e021de6291ec42c6ca77626ad304bfce157e279c4ddeee28363d13dcec5f406", kill_on_drop: false }` [INFO] [stderr] warning: unused imports: `find_definition`, `find_node_at`, `node_to_lsp_location`, and `position_to_offset` [INFO] [stderr] --> src/handlers/goto_definition/mod.rs:1:14 [INFO] [stderr] | [INFO] [stderr] 1 | use helper::{find_definition, find_node_at, node_to_lsp_location, position_to_offset}; [INFO] [stderr] | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `parser::parse_code` [INFO] [stderr] --> src/handlers/goto_definition/mod.rs:7:13 [INFO] [stderr] | [INFO] [stderr] 7 | use crate::{parser::parse_code, server::LspContext}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `context` [INFO] [stderr] --> src/handlers/completion.rs:5:21 [INFO] [stderr] | [INFO] [stderr] 5 | pub async fn action(context: &LspContext, params: CompletionParams) -> Result> { [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_context` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `params` [INFO] [stderr] --> src/handlers/completion.rs:5:43 [INFO] [stderr] | [INFO] [stderr] 5 | pub async fn action(context: &LspContext, params: CompletionParams) -> Result> { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_params` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `context` [INFO] [stderr] --> src/handlers/goto_definition/mod.rs:12:5 [INFO] [stderr] | [INFO] [stderr] 12 | context: &LspContext, [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_context` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `params` [INFO] [stderr] --> src/handlers/goto_definition/mod.rs:13:5 [INFO] [stderr] | [INFO] [stderr] 13 | params: GotoDefinitionParams, [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_params` [INFO] [stderr] [INFO] [stderr] warning: function `position_to_offset` is never used [INFO] [stderr] --> src/handlers/goto_definition/helper.rs:4:8 [INFO] [stderr] | [INFO] [stderr] 4 | pub fn position_to_offset(source: &str, position: Position) -> usize { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: function `find_node_at` is never used [INFO] [stderr] --> src/handlers/goto_definition/helper.rs:15:8 [INFO] [stderr] | [INFO] [stderr] 15 | pub fn find_node_at(tree: &Tree, offset: usize) -> Option { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `find_definition` is never used [INFO] [stderr] --> src/handlers/goto_definition/helper.rs:32:8 [INFO] [stderr] | [INFO] [stderr] 32 | pub fn find_definition<'tree>(tree: &'tree Tree, source: &str, name: &str) -> Option> { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `node_to_lsp_location` is never used [INFO] [stderr] --> src/handlers/goto_definition/helper.rs:52:8 [INFO] [stderr] | [INFO] [stderr] 52 | pub fn node_to_lsp_location(uri: Url, source: &str, node: Node) -> Location { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/handlers/goto_definition/helper.rs:15:27 [INFO] [stderr] | [INFO] [stderr] 15 | pub fn find_node_at(tree: &Tree, offset: usize) -> Option { [INFO] [stderr] | ^^^^^ ^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 15 | pub fn find_node_at(tree: &Tree, offset: usize) -> Option> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: `dartrs` (bin "dartrs" test) generated 11 warnings (run `cargo fix --bin "dartrs" --tests` to apply 3 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.17s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/dartrs-35f4b5ede0c46d73) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "0e021de6291ec42c6ca77626ad304bfce157e279c4ddeee28363d13dcec5f406", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0e021de6291ec42c6ca77626ad304bfce157e279c4ddeee28363d13dcec5f406", kill_on_drop: false }` [INFO] [stdout] 0e021de6291ec42c6ca77626ad304bfce157e279c4ddeee28363d13dcec5f406