[INFO] cloning repository https://github.com/leeola/tanc [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/leeola/tanc" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fleeola%2Ftanc", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fleeola%2Ftanc'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] aba41ca190e23542fb62a25c97af7c4a98587e3e [INFO] checking leeola/tanc against master#af4a5a13a15fa0c60e06321077ef452f769b42fd for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fleeola%2Ftanc" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/leeola/tanc on toolchain af4a5a13a15fa0c60e06321077ef452f769b42fd [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-3-tc1/source/rust-toolchain [INFO] started tweaking git repo https://github.com/leeola/tanc [INFO] finished tweaking git repo https://github.com/leeola/tanc [INFO] tweaked toml for git repo https://github.com/leeola/tanc written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/leeola/tanc 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" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded tracing-appender v0.2.2 [INFO] [stderr] Downloaded serde_repr v0.1.14 [INFO] [stderr] Downloaded tower-lsp-macros v0.8.0 [INFO] [stderr] Downloaded async-trait v0.1.71 [INFO] [stderr] Downloaded lsp-types v0.94.0 [INFO] [stderr] Downloaded tower-lsp v0.19.0 [INFO] [stderr] Downloaded countme v3.0.1 [INFO] [stderr] Downloaded text-size v1.1.1 [INFO] [stderr] Downloaded serde_json v1.0.101 [INFO] [stderr] Downloaded rowan v0.15.11 [INFO] [stderr] Downloaded clap_builder v4.3.11 [INFO] [stderr] Downloaded clap v4.3.11 [INFO] [stderr] Downloaded rnix v0.11.0 [INFO] [stderr] Downloaded syn v2.0.25 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c1bd5887a645be2c9634d66fffd2c49a2358b6fdee9985ac14fdbb51400e05c3 [INFO] running `Command { std: "docker" "start" "-a" "c1bd5887a645be2c9634d66fffd2c49a2358b6fdee9985ac14fdbb51400e05c3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c1bd5887a645be2c9634d66fffd2c49a2358b6fdee9985ac14fdbb51400e05c3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c1bd5887a645be2c9634d66fffd2c49a2358b6fdee9985ac14fdbb51400e05c3", kill_on_drop: false }` [INFO] [stdout] c1bd5887a645be2c9634d66fffd2c49a2358b6fdee9985ac14fdbb51400e05c3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 02553bd802a8418173cda983215ed31dd83c958c8048bcf8362ed2fdc89f364f [INFO] running `Command { std: "docker" "start" "-a" "02553bd802a8418173cda983215ed31dd83c958c8048bcf8362ed2fdc89f364f", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] Compiling proc-macro2 v1.0.63 [INFO] [stderr] Compiling quote v1.0.29 [INFO] [stderr] Compiling unicode-ident v1.0.9 [INFO] [stderr] Compiling libc v0.2.147 [INFO] [stderr] Checking once_cell v1.18.0 [INFO] [stderr] Checking pin-project-lite v0.2.10 [INFO] [stderr] Compiling futures-core v0.3.28 [INFO] [stderr] Compiling parking_lot_core v0.9.8 [INFO] [stderr] Checking smallvec v1.10.0 [INFO] [stderr] Compiling futures-task v0.3.28 [INFO] [stderr] Checking itoa v1.0.8 [INFO] [stderr] Compiling serde v1.0.171 [INFO] [stderr] Compiling lock_api v0.4.10 [INFO] [stderr] Compiling slab v0.4.8 [INFO] [stderr] Compiling futures-channel v0.3.28 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking futures-sink v0.3.28 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling futures-util v0.3.28 [INFO] [stderr] Checking unicode-normalization v0.1.22 [INFO] [stderr] Checking tracing-core v0.1.31 [INFO] [stderr] Compiling memoffset v0.8.0 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling tokio v1.29.1 [INFO] [stderr] Checking ryu v1.0.14 [INFO] [stderr] Compiling rustix v0.38.4 [INFO] [stderr] Compiling serde_json v1.0.101 [INFO] [stderr] Compiling rustversion v1.0.13 [INFO] [stderr] Checking unicode-bidi v0.3.13 [INFO] [stderr] Checking futures-io v0.3.28 [INFO] [stderr] Checking percent-encoding v2.3.0 [INFO] [stderr] Checking linux-raw-sys v0.4.3 [INFO] [stderr] Compiling async-trait v0.1.71 [INFO] [stderr] Checking bitflags v2.3.3 [INFO] [stderr] Compiling httparse v1.8.0 [INFO] [stderr] Checking form_urlencoded v1.2.0 [INFO] [stderr] Checking text-size v1.1.1 [INFO] [stderr] Checking regex-syntax v0.6.29 [INFO] [stderr] Compiling thiserror v1.0.43 [INFO] [stderr] Checking bytes v1.4.0 [INFO] [stderr] Checking regex-syntax v0.7.4 [INFO] [stderr] Checking hashbrown v0.14.0 [INFO] [stderr] Checking tower-layer v0.3.2 [INFO] [stderr] Checking hashbrown v0.12.3 [INFO] [stderr] Checking idna v0.4.0 [INFO] [stderr] Checking utf8parse v0.2.1 [INFO] [stderr] Checking countme v3.0.1 [INFO] [stderr] Checking tower-service v0.3.2 [INFO] [stderr] Compiling crossbeam-utils v0.8.16 [INFO] [stderr] Checking anstyle-parse v0.2.1 [INFO] [stderr] Checking anstyle v1.0.1 [INFO] [stderr] Checking colorchoice v1.0.0 [INFO] [stderr] Checking log v0.4.19 [INFO] [stderr] Checking anstyle-query v1.0.0 [INFO] [stderr] Compiling syn v2.0.25 [INFO] [stderr] Checking overload v0.1.1 [INFO] [stderr] Checking sharded-slab v0.1.4 [INFO] [stderr] Checking tracing-log v0.1.3 [INFO] [stderr] Checking nu-ansi-term v0.46.0 [INFO] [stderr] Checking thread_local v1.1.7 [INFO] [stderr] Checking strsim v0.10.0 [INFO] [stderr] Compiling anyhow v1.0.71 [INFO] [stderr] Checking time-core v0.1.1 [INFO] [stderr] Checking rowan v0.15.11 [INFO] [stderr] Checking clap_lex v0.5.0 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Checking time v0.3.23 [INFO] [stderr] Checking crossbeam-channel v0.5.8 [INFO] [stderr] Checking castaway v0.2.2 [INFO] [stderr] Checking is-terminal v0.4.9 [INFO] [stderr] Checking compact_str v0.7.1 [INFO] [stderr] Checking anstream v0.3.2 [INFO] [stderr] Checking rnix v0.11.0 [INFO] [stderr] Checking signal-hook-registry v1.4.1 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking mio v0.8.8 [INFO] [stderr] Checking clap_builder v4.3.11 [INFO] [stderr] Checking dashmap v5.5.0 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking regex-automata v0.3.2 [INFO] [stderr] Checking regex-automata v0.1.10 [INFO] [stderr] Checking matchers v0.1.0 [INFO] [stderr] Checking regex v1.9.1 [INFO] [stderr] Compiling auto_impl v1.1.0 [INFO] [stderr] Compiling tower-lsp-macros v0.8.0 [INFO] [stderr] Compiling serde_derive v1.0.171 [INFO] [stderr] Compiling tracing-attributes v0.1.26 [INFO] [stderr] Compiling futures-macro v0.3.28 [INFO] [stderr] Compiling tokio-macros v2.1.0 [INFO] [stderr] Compiling pin-project-internal v1.1.2 [INFO] [stderr] Compiling serde_repr v0.1.14 [INFO] [stderr] Compiling thiserror-impl v1.0.43 [INFO] [stderr] Compiling clap_derive v4.3.2 [INFO] [stderr] Checking pin-project v1.1.2 [INFO] [stderr] Checking tracing v0.1.37 [INFO] [stderr] Checking tracing-subscriber v0.3.17 [INFO] [stderr] Checking clap v4.3.11 [INFO] [stderr] Checking tracing-appender v0.2.2 [INFO] [stderr] Checking tokio-util v0.7.8 [INFO] [stderr] Checking futures v0.3.28 [INFO] [stderr] Checking tower v0.4.13 [INFO] [stderr] Checking url v2.4.0 [INFO] [stderr] Checking lsp-types v0.94.0 [INFO] [stderr] Checking tower-lsp v0.19.0 [INFO] [stderr] Checking tanc_core v0.0.1 (/opt/rustwide/workdir/core) [INFO] [stdout] warning: unused import: `crate::index::ast_path::AstSeg` [INFO] [stdout] --> core/src/index/consume_ast.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::index::ast_path::AstSeg; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AstNode`, `Ident` [INFO] [stdout] --> core/src/index/consume_ast.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | ast::{AstNode, AstToken, Comment, Ident}, [INFO] [stdout] | ^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `btree_map`, `cmp::Reverse` [INFO] [stdout] --> core/src/index/pos_index.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | cmp::Reverse, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 3 | collections::{btree_map, BTreeMap}, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `fmt::Display` [INFO] [stdout] --> core/src/path.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{fmt::Display, str::FromStr}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::index::ast_path::AstSeg` [INFO] [stdout] --> core/src/index/consume_ast.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::index::ast_path::AstSeg; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AstNode`, `Ident` [INFO] [stdout] --> core/src/index/consume_ast.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | ast::{AstNode, AstToken, Comment, Ident}, [INFO] [stdout] | ^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `btree_map`, `cmp::Reverse` [INFO] [stdout] --> core/src/index/pos_index.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | cmp::Reverse, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 3 | collections::{btree_map, BTreeMap}, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `fmt::Display` [INFO] [stdout] --> core/src/path.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{fmt::Display, str::FromStr}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `assert_parse_and_display_eq` [INFO] [stdout] --> core/src/path.rs:37:14 [INFO] [stdout] | [INFO] [stdout] 37 | macro_rules! assert_parse_and_display_eq { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> core/src/index/consume_ast.rs:235:21 [INFO] [stdout] | [INFO] [stdout] 235 | Self::Skip [INFO] [stdout] | ^^^^^^^^^^ expected `Comment`, found `TokenOrNode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> core/src/index/consume_ast.rs:235:21 [INFO] [stdout] | [INFO] [stdout] 235 | Self::Skip [INFO] [stdout] | ^^^^^^^^^^ expected `Comment`, found `TokenOrNode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> core/src/index/consume_ast.rs:233:17 [INFO] [stdout] | [INFO] [stdout] 228 | fn from(token: SyntaxToken) -> Self { [INFO] [stdout] | ---- expected `TokenOrNode` because of return type [INFO] [stdout] ... [INFO] [stdout] 233 | / Comment::cast(token).unwrap_or_else(|| { [INFO] [stdout] 234 | | error!("TOKEN_COMMENT failed to cast to Comment"); [INFO] [stdout] 235 | | Self::Skip [INFO] [stdout] 236 | | }) [INFO] [stdout] | |__________________^ expected `TokenOrNode`, found `Comment` [INFO] [stdout] | [INFO] [stdout] help: try wrapping the expression in `index::consume_ast::TokenOrNode::Comment` [INFO] [stdout] | [INFO] [stdout] 233 ~ index::consume_ast::TokenOrNode::Comment { comment: Comment::cast(token).unwrap_or_else(|| { [INFO] [stdout] 234 | error!("TOKEN_COMMENT failed to cast to Comment"); [INFO] [stdout] 235 | Self::Skip [INFO] [stdout] 236 ~ }) } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> core/src/index/consume_ast.rs:233:17 [INFO] [stdout] | [INFO] [stdout] 228 | fn from(token: SyntaxToken) -> Self { [INFO] [stdout] | ---- expected `TokenOrNode` because of return type [INFO] [stdout] ... [INFO] [stdout] 233 | / Comment::cast(token).unwrap_or_else(|| { [INFO] [stdout] 234 | | error!("TOKEN_COMMENT failed to cast to Comment"); [INFO] [stdout] 235 | | Self::Skip [INFO] [stdout] 236 | | }) [INFO] [stdout] | |__________________^ expected `TokenOrNode`, found `Comment` [INFO] [stdout] | [INFO] [stdout] help: try wrapping the expression in `index::consume_ast::TokenOrNode::Comment` [INFO] [stdout] | [INFO] [stdout] 233 ~ index::consume_ast::TokenOrNode::Comment { comment: Comment::cast(token).unwrap_or_else(|| { [INFO] [stdout] 234 | error!("TOKEN_COMMENT failed to cast to Comment"); [INFO] [stdout] 235 | Self::Skip [INFO] [stdout] 236 ~ }) } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> core/src/index/consume_ast.rs:258:70 [INFO] [stdout] | [INFO] [stdout] 258 | SyntaxKind::TOKEN_L_BRACE | SyntaxKind::TOKEN_R_BRACE => {}, [INFO] [stdout] | ^^ expected `TokenOrNode`, found `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> core/src/index/consume_ast.rs:258:70 [INFO] [stdout] | [INFO] [stdout] 258 | SyntaxKind::TOKEN_L_BRACE | SyntaxKind::TOKEN_R_BRACE => {}, [INFO] [stdout] | ^^ expected `TokenOrNode`, found `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `consume` [INFO] [stdout] --> core/src/index/consume_ast.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | let mut consume = Root::new(&mut shared_state, node_or_token); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_consume` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> core/src/index/consume_ast.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | let mut consume = Root::new(&mut shared_state, node_or_token); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `range` [INFO] [stdout] --> core/src/index/consume_ast.rs:109:23 [INFO] [stdout] | [INFO] [stdout] 109 | fn doc_pos(&self, range: TextRange) -> (usize, usize) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_range` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `shared` [INFO] [stdout] --> core/src/index/consume_ast.rs:122:9 [INFO] [stdout] | [INFO] [stdout] 122 | shared: &mut SharedState, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_shared` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> core/src/index/consume_ast.rs:123:9 [INFO] [stdout] | [INFO] [stdout] 123 | path: AstPath, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `comment_buf` [INFO] [stdout] --> core/src/index/consume_ast.rs:124:9 [INFO] [stdout] | [INFO] [stdout] 124 | comment_buf: Vec, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_comment_buf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> core/src/index/consume_ast.rs:125:9 [INFO] [stdout] | [INFO] [stdout] 125 | node: SyntaxNode, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `consume` [INFO] [stdout] --> core/src/index/consume_ast.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | let mut consume = Root::new(&mut shared_state, node_or_token); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_consume` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> core/src/index/consume_ast.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | let mut consume = Root::new(&mut shared_state, node_or_token); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `range` [INFO] [stdout] --> core/src/index/consume_ast.rs:109:23 [INFO] [stdout] | [INFO] [stdout] 109 | fn doc_pos(&self, range: TextRange) -> (usize, usize) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_range` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `shared` [INFO] [stdout] --> core/src/index/consume_ast.rs:122:9 [INFO] [stdout] | [INFO] [stdout] 122 | shared: &mut SharedState, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_shared` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> core/src/index/consume_ast.rs:123:9 [INFO] [stdout] | [INFO] [stdout] 123 | path: AstPath, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `comment_buf` [INFO] [stdout] --> core/src/index/consume_ast.rs:124:9 [INFO] [stdout] | [INFO] [stdout] 124 | comment_buf: Vec, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_comment_buf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> core/src/index/consume_ast.rs:125:9 [INFO] [stdout] | [INFO] [stdout] 125 | node: SyntaxNode, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file_path` [INFO] [stdout] --> core/src/index.rs:26:23 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn doc(&self, file_path: impl Into, line: usize, char: usize) -> &Doc { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line` [INFO] [stdout] --> core/src/index.rs:26:60 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn doc(&self, file_path: impl Into, line: usize, char: usize) -> &Doc { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_line` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `char` [INFO] [stdout] --> core/src/index.rs:26:73 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn doc(&self, file_path: impl Into, line: usize, char: usize) -> &Doc { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_char` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `docs` [INFO] [stdout] --> core/src/index.rs:56:13 [INFO] [stdout] | [INFO] [stdout] 56 | let docs = consume_ast::docs_from_ast(ast.syntax().into()); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_docs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line` [INFO] [stdout] --> core/src/index.rs:60:23 [INFO] [stdout] | [INFO] [stdout] 60 | pub fn doc(&self, line: usize, char: usize) -> &Doc { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_line` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `char` [INFO] [stdout] --> core/src/index.rs:60:36 [INFO] [stdout] | [INFO] [stdout] 60 | pub fn doc(&self, line: usize, char: usize) -> &Doc { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_char` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> core/src/path.rs:26:17 [INFO] [stdout] | [INFO] [stdout] 26 | fn from_str(s: &str) -> Result { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> core/src/path.rs:31:19 [INFO] [stdout] | [INFO] [stdout] 31 | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file_path` [INFO] [stdout] --> core/src/index.rs:26:23 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn doc(&self, file_path: impl Into, line: usize, char: usize) -> &Doc { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line` [INFO] [stdout] --> core/src/index.rs:26:60 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn doc(&self, file_path: impl Into, line: usize, char: usize) -> &Doc { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_line` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `char` [INFO] [stdout] --> core/src/index.rs:26:73 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn doc(&self, file_path: impl Into, line: usize, char: usize) -> &Doc { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_char` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `docs` [INFO] [stdout] --> core/src/index.rs:56:13 [INFO] [stdout] | [INFO] [stdout] 56 | let docs = consume_ast::docs_from_ast(ast.syntax().into()); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_docs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line` [INFO] [stdout] --> core/src/index.rs:60:23 [INFO] [stdout] | [INFO] [stdout] 60 | pub fn doc(&self, line: usize, char: usize) -> &Doc { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_line` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `char` [INFO] [stdout] --> core/src/index.rs:60:36 [INFO] [stdout] | [INFO] [stdout] 60 | pub fn doc(&self, line: usize, char: usize) -> &Doc { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_char` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors; 19 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> core/src/path.rs:26:17 [INFO] [stdout] | [INFO] [stdout] 26 | fn from_str(s: &str) -> Result { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> core/src/path.rs:31:19 [INFO] [stdout] | [INFO] [stdout] 31 | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `tanc_core` (lib) due to 4 previous errors; 19 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 3 previous errors; 20 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `tanc_core` (lib test) due to 4 previous errors; 20 warnings emitted [INFO] running `Command { std: "docker" "inspect" "02553bd802a8418173cda983215ed31dd83c958c8048bcf8362ed2fdc89f364f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "02553bd802a8418173cda983215ed31dd83c958c8048bcf8362ed2fdc89f364f", kill_on_drop: false }` [INFO] [stdout] 02553bd802a8418173cda983215ed31dd83c958c8048bcf8362ed2fdc89f364f