[INFO] cloning repository https://github.com/csicar/structless [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/csicar/structless" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcsicar%2Fstructless", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcsicar%2Fstructless'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1b8d1e04ac45b3fc882dee45a9b1f3516e8a53f0 [INFO] building csicar/structless against try#0c94de7c1a8f4b82b92d562847c35f513f520c7a for pr-102832-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcsicar%2Fstructless" "/workspace/builds/worker-3/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/csicar/structless on toolchain 0c94de7c1a8f4b82b92d562847c35f513f520c7a [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+0c94de7c1a8f4b82b92d562847c35f513f520c7a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/csicar/structless [INFO] finished tweaking git repo https://github.com/csicar/structless [INFO] tweaked toml for git repo https://github.com/csicar/structless written to /workspace/builds/worker-3/source/Cargo.toml [INFO] crate git repo https://github.com/csicar/structless already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+0c94de7c1a8f4b82b92d562847c35f513f520c7a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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:83125433e4fff17b1ac56874832f668d9df75ee638575aca552b68e127bedee9" "/opt/rustwide/cargo-home/bin/cargo" "+0c94de7c1a8f4b82b92d562847c35f513f520c7a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9cd77d18adb1c9b9d4177c6acf47eaf73822fae9d5b5173e3fef4f2d8115b8ac [INFO] running `Command { std: "docker" "start" "-a" "9cd77d18adb1c9b9d4177c6acf47eaf73822fae9d5b5173e3fef4f2d8115b8ac", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9cd77d18adb1c9b9d4177c6acf47eaf73822fae9d5b5173e3fef4f2d8115b8ac", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9cd77d18adb1c9b9d4177c6acf47eaf73822fae9d5b5173e3fef4f2d8115b8ac", kill_on_drop: false }` [INFO] [stdout] 9cd77d18adb1c9b9d4177c6acf47eaf73822fae9d5b5173e3fef4f2d8115b8ac [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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:83125433e4fff17b1ac56874832f668d9df75ee638575aca552b68e127bedee9" "/opt/rustwide/cargo-home/bin/cargo" "+0c94de7c1a8f4b82b92d562847c35f513f520c7a" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2858f4bae84dbb3437843728d8766321437ff47c2ac981cceace10e919df3a24 [INFO] running `Command { std: "docker" "start" "-a" "2858f4bae84dbb3437843728d8766321437ff47c2ac981cceace10e919df3a24", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.121 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling cc v1.0.73 [INFO] [stderr] Compiling proc-macro2 v1.0.36 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling syn v1.0.89 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling smallvec v1.8.0 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling signal-hook v0.3.13 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling serde v1.0.136 [INFO] [stderr] Compiling parking_lot_core v0.8.5 [INFO] [stderr] Compiling lock_api v0.4.6 [INFO] [stderr] Compiling instant v0.1.12 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling tracing-core v0.1.23 [INFO] [stderr] Compiling parking_lot_core v0.9.1 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling serde_json v1.0.79 [INFO] [stderr] Compiling anyhow v1.0.56 [INFO] [stderr] Compiling heck v0.4.0 [INFO] [stderr] Compiling itoa v1.0.1 [INFO] [stderr] Compiling ryu v1.0.9 [INFO] [stderr] Compiling pin-project-lite v0.2.8 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling hashbrown v0.11.2 [INFO] [stderr] Compiling once_cell v1.10.0 [INFO] [stderr] Compiling tracing-log v0.1.2 [INFO] [stderr] Compiling sharded-slab v0.1.4 [INFO] [stderr] Compiling thread_local v1.1.4 [INFO] [stderr] Compiling cassowary v0.3.0 [INFO] [stderr] Compiling termcolor v1.1.3 [INFO] [stderr] Compiling indexmap v1.8.0 [INFO] [stderr] Compiling unicode-width v0.1.9 [INFO] [stderr] Compiling ansi_term v0.12.1 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling os_str_bytes v6.0.0 [INFO] [stderr] Compiling textwrap v0.15.0 [INFO] [stderr] Compiling quote v1.0.16 [INFO] [stderr] Compiling strsim v0.10.0 [INFO] [stderr] Compiling unicode-segmentation v1.9.0 [INFO] [stderr] Compiling signal-hook-registry v1.4.0 [INFO] [stderr] Compiling mio v0.7.14 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling tree-sitter v0.20.6 [INFO] [stderr] Compiling tree-sitter-json v0.19.0 [INFO] [stderr] Compiling tree-sitter-structless v0.0.1 (/opt/rustwide/workdir/tree-sitter-structless) [INFO] [stderr] Compiling tree-sitter-rust v0.20.1 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling parking_lot v0.12.0 [INFO] [stderr] Compiling signal-hook-mio v0.2.1 [INFO] [stderr] Compiling crossterm v0.22.1 [INFO] [stderr] Compiling crossterm v0.23.1 [INFO] [stderr] Compiling regex v1.5.5 [INFO] [stderr] Compiling regex-automata v0.1.10 [INFO] [stderr] Compiling tui v0.17.0 [INFO] [stderr] Compiling matchers v0.1.0 [INFO] [stderr] Compiling tracing-serde v0.1.3 [INFO] [stderr] Compiling tracing-attributes v0.1.20 [INFO] [stderr] Compiling clap_derive v3.1.4 [INFO] [stderr] Compiling tracing v0.1.32 [INFO] [stderr] Compiling tracing-subscriber v0.3.9 [INFO] [stderr] Compiling clap v3.1.6 [INFO] [stderr] Compiling structless v0.1.0 (/opt/rustwide/workdir/structless) [INFO] [stdout] warning: unused imports: `BufWriter`, `Bytes`, `HashMap`, `convert::Infallible`, `fmt::Display`, `iter::Peekable`, `path::Path`, `str::FromStr`, `thread`, `time::Duration` [INFO] [stdout] --> structless/src/main.rs:3:19 [INFO] [stdout] | [INFO] [stdout] 3 | collections::{HashMap, HashSet}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 4 | convert::Infallible, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 5 | fmt::Display, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 6 | fs::File, [INFO] [stdout] 7 | io::{self, BufRead, BufReader, BufWriter, Bytes, Read, Write}, [INFO] [stdout] | ^^^^^^^^^ ^^^^^ [INFO] [stdout] 8 | iter::Peekable, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 9 | path::Path, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 10 | str::FromStr, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 11 | sync::Arc, [INFO] [stdout] 12 | thread, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 13 | time::Duration, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `error` [INFO] [stdout] --> structless/src/main.rs:20:15 [INFO] [stdout] | [INFO] [stdout] 20 | use tracing::{error, instrument, trace}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tracing_subscriber::fmt::format::Writer` [INFO] [stdout] --> structless/src/main.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | use tracing_subscriber::fmt::format::Writer; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TreeCursor` [INFO] [stdout] --> structless/src/main.rs:22:56 [INFO] [stdout] | [INFO] [stdout] 22 | use tree_sitter::{Language, Node, Parser, Range, Tree, TreeCursor}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Alignment` [INFO] [stdout] --> structless/src/main.rs:32:14 [INFO] [stdout] | [INFO] [stdout] 32 | layout::{Alignment, Constraint, Direction, Layout}, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> structless/src/main.rs:323:8 [INFO] [stdout] | [INFO] [stdout] 323 | if (s.len() > max_length) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 323 - if (s.len() > max_length) { [INFO] [stdout] 323 + if s.len() > max_length { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufRead` [INFO] [stdout] --> structless/src/main.rs:7:16 [INFO] [stdout] | [INFO] [stdout] 7 | io::{self, BufRead, BufReader, BufWriter, Bytes, Read, Write}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Write` [INFO] [stdout] --> structless/src/main.rs:7:60 [INFO] [stdout] | [INFO] [stdout] 7 | io::{self, BufRead, BufReader, BufWriter, Bytes, Read, Write}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> structless/src/main.rs:153:60 [INFO] [stdout] | [INFO] [stdout] 153 | let mut f = flatten(app.tree.root_node(), 0, Arc::new(|id| false)); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [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] --> structless/src/main.rs:153:9 [INFO] [stdout] | [INFO] [stdout] 153 | let mut f = flatten(app.tree.root_node(), 0, Arc::new(|id| false)); [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: associated function `selected` is never used [INFO] [stdout] --> structless/src/tree.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn selected(&self) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `select` is never used [INFO] [stdout] --> structless/src/tree.rs:21:10 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn select(&mut self, index: Option) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> structless/src/tree.rs:36:10 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn new(content: T) -> ListItem<'a> [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `style` is never used [INFO] [stdout] --> structless/src/tree.rs:46:10 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn style(mut self, style: Style) -> ListItem<'a> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> structless/src/tree.rs:86:10 [INFO] [stdout] | [INFO] [stdout] 86 | pub fn new(items: T) -> Tree<'a> [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `block` is never used [INFO] [stdout] --> structless/src/tree.rs:101:10 [INFO] [stdout] | [INFO] [stdout] 101 | pub fn block(mut self, block: Block<'a>) -> Tree<'a> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `style` is never used [INFO] [stdout] --> structless/src/tree.rs:106:10 [INFO] [stdout] | [INFO] [stdout] 106 | pub fn style(mut self, style: Style) -> Tree<'a> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `highlight_symbol` is never used [INFO] [stdout] --> structless/src/tree.rs:111:10 [INFO] [stdout] | [INFO] [stdout] 111 | pub fn highlight_symbol(mut self, highlight_symbol: &'a str) -> Tree<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `highlight_style` is never used [INFO] [stdout] --> structless/src/tree.rs:116:10 [INFO] [stdout] | [INFO] [stdout] 116 | pub fn highlight_style(mut self, style: Style) -> Tree<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `repeat_highlight_symbol` is never used [INFO] [stdout] --> structless/src/tree.rs:121:10 [INFO] [stdout] | [INFO] [stdout] 121 | pub fn repeat_highlight_symbol(mut self, repeat: bool) -> Tree<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `start_corner` is never used [INFO] [stdout] --> structless/src/tree.rs:126:10 [INFO] [stdout] | [INFO] [stdout] 126 | pub fn start_corner(mut self, corner: Corner) -> Tree<'a> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 21 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 28.77s [INFO] running `Command { std: "docker" "inspect" "2858f4bae84dbb3437843728d8766321437ff47c2ac981cceace10e919df3a24", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2858f4bae84dbb3437843728d8766321437ff47c2ac981cceace10e919df3a24", kill_on_drop: false }` [INFO] [stdout] 2858f4bae84dbb3437843728d8766321437ff47c2ac981cceace10e919df3a24 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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:83125433e4fff17b1ac56874832f668d9df75ee638575aca552b68e127bedee9" "/opt/rustwide/cargo-home/bin/cargo" "+0c94de7c1a8f4b82b92d562847c35f513f520c7a" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bd647f75bad435c60aff02fd6eca492b65655461861be8061cf837ffe0585c7e [INFO] running `Command { std: "docker" "start" "-a" "bd647f75bad435c60aff02fd6eca492b65655461861be8061cf837ffe0585c7e", kill_on_drop: false }` [INFO] [stderr] Compiling tree-sitter-structless v0.0.1 (/opt/rustwide/workdir/tree-sitter-structless) [INFO] [stderr] Compiling structless v0.1.0 (/opt/rustwide/workdir/structless) [INFO] [stdout] warning: unused imports: `BufWriter`, `Bytes`, `HashMap`, `convert::Infallible`, `fmt::Display`, `iter::Peekable`, `path::Path`, `str::FromStr`, `thread`, `time::Duration` [INFO] [stdout] --> structless/src/main.rs:3:19 [INFO] [stdout] | [INFO] [stdout] 3 | collections::{HashMap, HashSet}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 4 | convert::Infallible, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 5 | fmt::Display, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 6 | fs::File, [INFO] [stdout] 7 | io::{self, BufRead, BufReader, BufWriter, Bytes, Read, Write}, [INFO] [stdout] | ^^^^^^^^^ ^^^^^ [INFO] [stdout] 8 | iter::Peekable, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 9 | path::Path, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 10 | str::FromStr, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 11 | sync::Arc, [INFO] [stdout] 12 | thread, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 13 | time::Duration, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `error` [INFO] [stdout] --> structless/src/main.rs:20:15 [INFO] [stdout] | [INFO] [stdout] 20 | use tracing::{error, instrument, trace}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tracing_subscriber::fmt::format::Writer` [INFO] [stdout] --> structless/src/main.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | use tracing_subscriber::fmt::format::Writer; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TreeCursor` [INFO] [stdout] --> structless/src/main.rs:22:56 [INFO] [stdout] | [INFO] [stdout] 22 | use tree_sitter::{Language, Node, Parser, Range, Tree, TreeCursor}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Alignment` [INFO] [stdout] --> structless/src/main.rs:32:14 [INFO] [stdout] | [INFO] [stdout] 32 | layout::{Alignment, Constraint, Direction, Layout}, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> structless/src/main.rs:323:8 [INFO] [stdout] | [INFO] [stdout] 323 | if (s.len() > max_length) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 323 - if (s.len() > max_length) { [INFO] [stdout] 323 + if s.len() > max_length { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufRead` [INFO] [stdout] --> structless/src/main.rs:7:16 [INFO] [stdout] | [INFO] [stdout] 7 | io::{self, BufRead, BufReader, BufWriter, Bytes, Read, Write}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Write` [INFO] [stdout] --> structless/src/main.rs:7:60 [INFO] [stdout] | [INFO] [stdout] 7 | io::{self, BufRead, BufReader, BufWriter, Bytes, Read, Write}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> structless/src/main.rs:153:60 [INFO] [stdout] | [INFO] [stdout] 153 | let mut f = flatten(app.tree.root_node(), 0, Arc::new(|id| false)); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [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] --> structless/src/main.rs:153:9 [INFO] [stdout] | [INFO] [stdout] 153 | let mut f = flatten(app.tree.root_node(), 0, Arc::new(|id| false)); [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: associated function `selected` is never used [INFO] [stdout] --> structless/src/tree.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn selected(&self) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `select` is never used [INFO] [stdout] --> structless/src/tree.rs:21:10 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn select(&mut self, index: Option) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> structless/src/tree.rs:36:10 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn new(content: T) -> ListItem<'a> [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `style` is never used [INFO] [stdout] --> structless/src/tree.rs:46:10 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn style(mut self, style: Style) -> ListItem<'a> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> structless/src/tree.rs:86:10 [INFO] [stdout] | [INFO] [stdout] 86 | pub fn new(items: T) -> Tree<'a> [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `block` is never used [INFO] [stdout] --> structless/src/tree.rs:101:10 [INFO] [stdout] | [INFO] [stdout] 101 | pub fn block(mut self, block: Block<'a>) -> Tree<'a> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `style` is never used [INFO] [stdout] --> structless/src/tree.rs:106:10 [INFO] [stdout] | [INFO] [stdout] 106 | pub fn style(mut self, style: Style) -> Tree<'a> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `highlight_symbol` is never used [INFO] [stdout] --> structless/src/tree.rs:111:10 [INFO] [stdout] | [INFO] [stdout] 111 | pub fn highlight_symbol(mut self, highlight_symbol: &'a str) -> Tree<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `highlight_style` is never used [INFO] [stdout] --> structless/src/tree.rs:116:10 [INFO] [stdout] | [INFO] [stdout] 116 | pub fn highlight_style(mut self, style: Style) -> Tree<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `repeat_highlight_symbol` is never used [INFO] [stdout] --> structless/src/tree.rs:121:10 [INFO] [stdout] | [INFO] [stdout] 121 | pub fn repeat_highlight_symbol(mut self, repeat: bool) -> Tree<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `start_corner` is never used [INFO] [stdout] --> structless/src/tree.rs:126:10 [INFO] [stdout] | [INFO] [stdout] 126 | pub fn start_corner(mut self, corner: Corner) -> Tree<'a> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 21 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.94s [INFO] running `Command { std: "docker" "inspect" "bd647f75bad435c60aff02fd6eca492b65655461861be8061cf837ffe0585c7e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bd647f75bad435c60aff02fd6eca492b65655461861be8061cf837ffe0585c7e", kill_on_drop: false }` [INFO] [stdout] bd647f75bad435c60aff02fd6eca492b65655461861be8061cf837ffe0585c7e