[INFO] cloning repository https://github.com/arthur-zhang/just-bash [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/arthur-zhang/just-bash" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Farthur-zhang%2Fjust-bash", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Farthur-zhang%2Fjust-bash'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 2a8f50e763511ae50a746eae4d0ee024f848ecd3 [INFO] checking arthur-zhang/just-bash against try#39605810efb1a0d52f955bfba9e4eec7a01d5deb for pr-153692 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Farthur-zhang%2Fjust-bash" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/arthur-zhang/just-bash [INFO] finished tweaking git repo https://github.com/arthur-zhang/just-bash [INFO] tweaked toml for git repo https://github.com/arthur-zhang/just-bash written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/arthur-zhang/just-bash on toolchain 39605810efb1a0d52f955bfba9e4eec7a01d5deb [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+39605810efb1a0d52f955bfba9e4eec7a01d5deb" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/arthur-zhang/just-bash 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" "+39605810efb1a0d52f955bfba9e4eec7a01d5deb" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded zerocopy-derive v0.8.38 [INFO] [stderr] Downloaded zerocopy v0.8.38 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+39605810efb1a0d52f955bfba9e4eec7a01d5deb" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 796d9bc54369bea72300c5100ab83a90c32e93f6a2f8b81a7ee52ba1a40c0b0c [INFO] running `Command { std: "docker" "start" "-a" "796d9bc54369bea72300c5100ab83a90c32e93f6a2f8b81a7ee52ba1a40c0b0c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "796d9bc54369bea72300c5100ab83a90c32e93f6a2f8b81a7ee52ba1a40c0b0c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "796d9bc54369bea72300c5100ab83a90c32e93f6a2f8b81a7ee52ba1a40c0b0c", kill_on_drop: false }` [INFO] [stdout] 796d9bc54369bea72300c5100ab83a90c32e93f6a2f8b81a7ee52ba1a40c0b0c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+39605810efb1a0d52f955bfba9e4eec7a01d5deb" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 02558d08e17fe4849d0fbae0a9c783504b75f74d3a512e57034289ef333269d4 [INFO] running `Command { std: "docker" "start" "-a" "02558d08e17fe4849d0fbae0a9c783504b75f74d3a512e57034289ef333269d4", kill_on_drop: false }` [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling zerocopy v0.8.38 [INFO] [stderr] Compiling syn v2.0.114 [INFO] [stderr] Checking getrandom v0.2.17 [INFO] [stderr] Checking memchr v2.8.0 [INFO] [stderr] Compiling zmij v1.0.19 [INFO] [stderr] Checking clap_lex v0.7.7 [INFO] [stderr] Checking winnow v0.7.14 [INFO] [stderr] Checking clap_builder v4.5.57 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking chrono v0.4.43 [INFO] [stderr] Checking flate2 v1.1.9 [INFO] [stderr] Checking csv-core v0.1.13 [INFO] [stderr] Checking regex-lite v0.1.8 [INFO] [stderr] Checking similar v2.7.0 [INFO] [stderr] Checking csv v1.4.0 [INFO] [stderr] Checking serde_json v1.0.149 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling clap_derive v4.5.55 [INFO] [stderr] Compiling tokio-macros v2.6.0 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Checking tokio v1.49.0 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking clap v4.5.57 [INFO] [stderr] Checking serde v1.0.228 [INFO] [stderr] Checking toml_datetime v0.6.11 [INFO] [stderr] Checking serde_spanned v0.6.9 [INFO] [stderr] Checking serde_yaml v0.9.34+deprecated [INFO] [stderr] Checking toml_edit v0.22.27 [INFO] [stderr] Checking toml v0.8.23 [INFO] [stderr] Checking just-bash v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::collections::HashSet` [INFO] [stdout] --> src/commands/rg_cmd.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::collections::HashSet; [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 imports: `AssignmentNode`, `RedirectionNode`, and `ScriptNode` [INFO] [stdout] --> src/interpreter/alias_expansion.rs:13:57 [INFO] [stdout] | [INFO] [stdout] 13 | WordNode, WordPart, LiteralPart, SimpleCommandNode, AssignmentNode, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 14 | RedirectionNode, ScriptNode, [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `get_local_var_depth` [INFO] [stdout] --> src/interpreter/builtins/local_cmd.rs:17:79 [INFO] [stdout] | [INFO] [stdout] 17 | use crate::interpreter::builtins::variable_assignment::{push_local_var_stack, get_local_var_depth}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ForResult` [INFO] [stdout] --> src/interpreter/execution_engine.rs:12:95 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::interpreter::control_flow::{execute_for, execute_if, execute_while, execute_until, ForResult}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `build_exported_env` [INFO] [stdout] --> src/interpreter/execution_engine.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | build_exported_env, check_command_limit, should_trigger_errexit, update_exit_code, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CommandSubstFn` [INFO] [stdout] --> src/interpreter/execution_engine.rs:23:78 [INFO] [stdout] | [INFO] [stdout] 23 | use crate::interpreter::word_expansion::{expand_word, expand_word_with_glob, CommandSubstFn}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pattern_to_regex` [INFO] [stdout] --> src/interpreter/expansion/array_prefix_suffix.rs:10:79 [INFO] [stdout] | [INFO] [stdout] 10 | apply_pattern_removal, get_array_elements, get_variable, is_variable_set, pattern_to_regex, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DoubleQuotedPart`, `LiteralPart`, and `ParameterExpansionPart` [INFO] [stdout] --> src/interpreter/expansion/array_word_expansion.rs:11:25 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::ast::types::{DoubleQuotedPart, LiteralPart, ParameterExpansionPart, WordPart}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pattern_to_regex` [INFO] [stdout] --> src/interpreter/expansion/parameter_ops.rs:12:61 [INFO] [stdout] | [INFO] [stdout] 12 | get_variable, get_variable_attributes, is_variable_set, pattern_to_regex, quote_value, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pattern_to_regex` [INFO] [stdout] --> src/interpreter/expansion/positional_params.rs:9:60 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::interpreter::expansion::{apply_pattern_removal, pattern_to_regex, PatternRemovalSide}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DoubleQuotedPart` and `ParameterExpansionPart` [INFO] [stdout] --> src/interpreter/helpers/word_parts.rs:6:67 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::{WordPart, LiteralPart, SingleQuotedPart, EscapedPart, DoubleQuotedPart, ParameterExpansionPart}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `PipelineNode` and `SimpleCommandNode` [INFO] [stdout] --> src/interpreter/interpreter.rs:22:18 [INFO] [stdout] | [INFO] [stdout] 22 | CommandNode, PipelineNode, ScriptNode, SimpleCommandNode, StatementNode, [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/interpreter/type_command.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/interpreter/mod.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | pub use alias_expansion::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ the name `get_literal_value` in the value namespace is first re-exported here [INFO] [stdout] ... [INFO] [stdout] 40 | pub use helpers::*; [INFO] [stdout] | ---------- but the name `get_literal_value` in the value namespace is also re-exported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(ambiguous_glob_reexports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/interpreter/mod.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | pub use builtins::*; [INFO] [stdout] | ^^^^^^^^^^^ the name `SHELL_BUILTINS` in the value namespace is first re-exported here [INFO] [stdout] ... [INFO] [stdout] 40 | pub use helpers::*; [INFO] [stdout] | ---------- but the name `SHELL_BUILTINS` in the value namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/interpreter/mod.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | pub use builtins::*; [INFO] [stdout] | ^^^^^^^^^^^ the name `SHELL_KEYWORDS` in the value namespace is first re-exported here [INFO] [stdout] ... [INFO] [stdout] 40 | pub use helpers::*; [INFO] [stdout] | ---------- but the name `SHELL_KEYWORDS` in the value namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/interpreter/mod.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | pub use builtins::*; [INFO] [stdout] | ^^^^^^^^^^^ the name `clear_local_var_stack_for_scope` in the value namespace is first re-exported here [INFO] [stdout] ... [INFO] [stdout] 39 | pub use functions::*; [INFO] [stdout] | ------------ but the name `clear_local_var_stack_for_scope` in the value namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/interpreter/mod.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | pub use conditionals::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ the name `escape_regex_chars` in the value namespace is first re-exported here [INFO] [stdout] ... [INFO] [stdout] 49 | pub use word_expansion::*; [INFO] [stdout] | ----------------- but the name `escape_regex_chars` in the value namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/interpreter/mod.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | pub use errors::*; [INFO] [stdout] | ^^^^^^^^^ the name `is_scope_exit_error` in the value namespace is first re-exported here [INFO] [stdout] ... [INFO] [stdout] 40 | pub use helpers::*; [INFO] [stdout] | ---------- but the name `is_scope_exit_error` in the value namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/interpreter/mod.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | pub use expansion::*; [INFO] [stdout] | ^^^^^^^^^^^^ the name `quoting` in the type namespace is first re-exported here [INFO] [stdout] 39 | pub use functions::*; [INFO] [stdout] 40 | pub use helpers::*; [INFO] [stdout] | ---------- but the name `quoting` in the type namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/interpreter/mod.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | pub use expansion::*; [INFO] [stdout] | ^^^^^^^^^^^^ the name `tilde` in the type namespace is first re-exported here [INFO] [stdout] 39 | pub use functions::*; [INFO] [stdout] 40 | pub use helpers::*; [INFO] [stdout] | ---------- but the name `tilde` in the type namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/interpreter/mod.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | pub use expansion::*; [INFO] [stdout] | ^^^^^^^^^^^^ the name `quote_value` in the value namespace is first re-exported here [INFO] [stdout] 39 | pub use functions::*; [INFO] [stdout] 40 | pub use helpers::*; [INFO] [stdout] | ---------- but the name `quote_value` in the value namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/interpreter/mod.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | pub use expansion::*; [INFO] [stdout] | ^^^^^^^^^^^^ the name `WordExpansionOptions` in the type namespace is first re-exported here [INFO] [stdout] ... [INFO] [stdout] 49 | pub use word_expansion::*; [INFO] [stdout] | ----------------- but the name `WordExpansionOptions` in the type namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/interpreter/mod.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | pub use helpers::*; [INFO] [stdout] | ^^^^^^^^^^ the name `FileStat` in the type namespace is first re-exported here [INFO] [stdout] 41 | pub use interpreter::*; [INFO] [stdout] | -------------- but the name `FileStat` in the type namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/interpreter/mod.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | pub use helpers::*; [INFO] [stdout] | ^^^^^^^^^^ the name `FileSystem` in the type namespace is first re-exported here [INFO] [stdout] 41 | pub use interpreter::*; [INFO] [stdout] | -------------- but the name `FileSystem` in the type namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/interpreter/mod.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | pub use helpers::*; [INFO] [stdout] | ^^^^^^^^^^ the name `parse_rw_fd_content` in the value namespace is first re-exported here [INFO] [stdout] ... [INFO] [stdout] 43 | pub use redirections::*; [INFO] [stdout] | --------------- but the name `parse_rw_fd_content` in the value namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/interpreter/mod.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | pub use helpers::*; [INFO] [stdout] | ^^^^^^^^^^ the name `RwFdContent` in the type namespace is first re-exported here [INFO] [stdout] ... [INFO] [stdout] 43 | pub use redirections::*; [INFO] [stdout] | --------------- but the name `RwFdContent` in the type namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/interpreter/mod.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | pub use interpreter::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ the name `InterpreterContext` in the type namespace is first re-exported here [INFO] [stdout] ... [INFO] [stdout] 48 | pub use types::*; [INFO] [stdout] | -------- but the name `InterpreterContext` in the type namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ArithmeticExpressionNode` and `DoubleQuotedPart` [INFO] [stdout] --> src/parser/expansion_parser.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | ArithmeticExpressionNode, AssignDefaultOp, BadSubstitutionOp, CaseDirection, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 7 | CaseModificationOp, DefaultValueOp, DoubleQuotedPart, ErrorIfUnsetOp, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AST` [INFO] [stdout] --> src/parser/parser_substitution.rs:6:62 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::ast::types::{CommandSubstitutionPart, ScriptNode, AST}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Token` [INFO] [stdout] --> src/parser/compound_parser.rs:11:28 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::parser::lexer::{Token, TokenType}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashSet` [INFO] [stdout] --> src/commands/rg_cmd.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::collections::HashSet; [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 imports: `AssignmentNode`, `RedirectionNode`, and `ScriptNode` [INFO] [stdout] --> src/interpreter/alias_expansion.rs:13:57 [INFO] [stdout] | [INFO] [stdout] 13 | WordNode, WordPart, LiteralPart, SimpleCommandNode, AssignmentNode, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 14 | RedirectionNode, ScriptNode, [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `get_local_var_depth` [INFO] [stdout] --> src/interpreter/builtins/local_cmd.rs:17:79 [INFO] [stdout] | [INFO] [stdout] 17 | use crate::interpreter::builtins::variable_assignment::{push_local_var_stack, get_local_var_depth}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ForResult` [INFO] [stdout] --> src/interpreter/execution_engine.rs:12:95 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::interpreter::control_flow::{execute_for, execute_if, execute_while, execute_until, ForResult}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `build_exported_env` [INFO] [stdout] --> src/interpreter/execution_engine.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | build_exported_env, check_command_limit, should_trigger_errexit, update_exit_code, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CommandSubstFn` [INFO] [stdout] --> src/interpreter/execution_engine.rs:23:78 [INFO] [stdout] | [INFO] [stdout] 23 | use crate::interpreter::word_expansion::{expand_word, expand_word_with_glob, CommandSubstFn}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pattern_to_regex` [INFO] [stdout] --> src/interpreter/expansion/parameter_ops.rs:12:61 [INFO] [stdout] | [INFO] [stdout] 12 | get_variable, get_variable_attributes, is_variable_set, pattern_to_regex, quote_value, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `PipelineNode` and `SimpleCommandNode` [INFO] [stdout] --> src/interpreter/interpreter.rs:22:18 [INFO] [stdout] | [INFO] [stdout] 22 | CommandNode, PipelineNode, ScriptNode, SimpleCommandNode, StatementNode, [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AST` [INFO] [stdout] --> src/interpreter/pipeline_execution.rs:551:33 [INFO] [stdout] | [INFO] [stdout] 551 | use crate::ast::types::{AST, CommandNode, SimpleCommandNode, WordNode, WordPart, LiteralPart}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/interpreter/type_command.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/interpreter/mod.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | pub use alias_expansion::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ the name `get_literal_value` in the value namespace is first re-exported here [INFO] [stdout] ... [INFO] [stdout] 40 | pub use helpers::*; [INFO] [stdout] | ---------- but the name `get_literal_value` in the value namespace is also re-exported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(ambiguous_glob_reexports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/interpreter/mod.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | pub use builtins::*; [INFO] [stdout] | ^^^^^^^^^^^ the name `SHELL_BUILTINS` in the value namespace is first re-exported here [INFO] [stdout] ... [INFO] [stdout] 40 | pub use helpers::*; [INFO] [stdout] | ---------- but the name `SHELL_BUILTINS` in the value namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/interpreter/mod.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | pub use builtins::*; [INFO] [stdout] | ^^^^^^^^^^^ the name `SHELL_KEYWORDS` in the value namespace is first re-exported here [INFO] [stdout] ... [INFO] [stdout] 40 | pub use helpers::*; [INFO] [stdout] | ---------- but the name `SHELL_KEYWORDS` in the value namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/interpreter/mod.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | pub use builtins::*; [INFO] [stdout] | ^^^^^^^^^^^ the name `clear_local_var_stack_for_scope` in the value namespace is first re-exported here [INFO] [stdout] ... [INFO] [stdout] 39 | pub use functions::*; [INFO] [stdout] | ------------ but the name `clear_local_var_stack_for_scope` in the value namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/interpreter/mod.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | pub use conditionals::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ the name `escape_regex_chars` in the value namespace is first re-exported here [INFO] [stdout] ... [INFO] [stdout] 49 | pub use word_expansion::*; [INFO] [stdout] | ----------------- but the name `escape_regex_chars` in the value namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/interpreter/mod.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | pub use errors::*; [INFO] [stdout] | ^^^^^^^^^ the name `is_scope_exit_error` in the value namespace is first re-exported here [INFO] [stdout] ... [INFO] [stdout] 40 | pub use helpers::*; [INFO] [stdout] | ---------- but the name `is_scope_exit_error` in the value namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/interpreter/mod.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | pub use expansion::*; [INFO] [stdout] | ^^^^^^^^^^^^ the name `quoting` in the type namespace is first re-exported here [INFO] [stdout] 39 | pub use functions::*; [INFO] [stdout] 40 | pub use helpers::*; [INFO] [stdout] | ---------- but the name `quoting` in the type namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/interpreter/mod.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | pub use expansion::*; [INFO] [stdout] | ^^^^^^^^^^^^ the name `tilde` in the type namespace is first re-exported here [INFO] [stdout] 39 | pub use functions::*; [INFO] [stdout] 40 | pub use helpers::*; [INFO] [stdout] | ---------- but the name `tilde` in the type namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/interpreter/mod.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | pub use expansion::*; [INFO] [stdout] | ^^^^^^^^^^^^ the name `quote_value` in the value namespace is first re-exported here [INFO] [stdout] 39 | pub use functions::*; [INFO] [stdout] 40 | pub use helpers::*; [INFO] [stdout] | ---------- but the name `quote_value` in the value namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/interpreter/mod.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | pub use expansion::*; [INFO] [stdout] | ^^^^^^^^^^^^ the name `WordExpansionOptions` in the type namespace is first re-exported here [INFO] [stdout] ... [INFO] [stdout] 49 | pub use word_expansion::*; [INFO] [stdout] | ----------------- but the name `WordExpansionOptions` in the type namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/interpreter/mod.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | pub use helpers::*; [INFO] [stdout] | ^^^^^^^^^^ the name `FileStat` in the type namespace is first re-exported here [INFO] [stdout] 41 | pub use interpreter::*; [INFO] [stdout] | -------------- but the name `FileStat` in the type namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/interpreter/mod.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | pub use helpers::*; [INFO] [stdout] | ^^^^^^^^^^ the name `FileSystem` in the type namespace is first re-exported here [INFO] [stdout] 41 | pub use interpreter::*; [INFO] [stdout] | -------------- but the name `FileSystem` in the type namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/interpreter/mod.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | pub use helpers::*; [INFO] [stdout] | ^^^^^^^^^^ the name `parse_rw_fd_content` in the value namespace is first re-exported here [INFO] [stdout] ... [INFO] [stdout] 43 | pub use redirections::*; [INFO] [stdout] | --------------- but the name `parse_rw_fd_content` in the value namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/interpreter/mod.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | pub use helpers::*; [INFO] [stdout] | ^^^^^^^^^^ the name `RwFdContent` in the type namespace is first re-exported here [INFO] [stdout] ... [INFO] [stdout] 43 | pub use redirections::*; [INFO] [stdout] | --------------- but the name `RwFdContent` in the type namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/interpreter/mod.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | pub use interpreter::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ the name `InterpreterContext` in the type namespace is first re-exported here [INFO] [stdout] ... [INFO] [stdout] 48 | pub use types::*; [INFO] [stdout] | -------- but the name `InterpreterContext` in the type namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ArithmeticExpressionNode` and `DoubleQuotedPart` [INFO] [stdout] --> src/parser/expansion_parser.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | ArithmeticExpressionNode, AssignDefaultOp, BadSubstitutionOp, CaseDirection, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 7 | CaseModificationOp, DefaultValueOp, DoubleQuotedPart, ErrorIfUnsetOp, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AST` [INFO] [stdout] --> src/parser/parser_substitution.rs:6:62 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::ast::types::{CommandSubstitutionPart, ScriptNode, AST}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Token` [INFO] [stdout] --> src/parser/compound_parser.rs:11:28 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::parser::lexer::{Token, TokenType}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `pattern` is never read [INFO] [stdout] --> src/commands/awk/parser.rs:127:47 [INFO] [stdout] | [INFO] [stdout] 127 | let mut pattern: Option = None; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `sort_by_size` is assigned to, but never used [INFO] [stdout] --> src/commands/ls/mod.rs:105:13 [INFO] [stdout] | [INFO] [stdout] 105 | let mut sort_by_size = false; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_sort_by_size` instead [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `sort_by_time` is assigned to, but never used [INFO] [stdout] --> src/commands/ls/mod.rs:106:13 [INFO] [stdout] | [INFO] [stdout] 106 | let mut sort_by_time = false; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_sort_by_time` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `sort_by_size` is never read [INFO] [stdout] --> src/commands/ls/mod.rs:117:25 [INFO] [stdout] | [INFO] [stdout] 117 | "-S" => sort_by_size = true, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `sort_by_time` is never read [INFO] [stdout] --> src/commands/ls/mod.rs:118:25 [INFO] [stdout] | [INFO] [stdout] 118 | "-t" => sort_by_time = true, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/commands/query_engine/evaluator.rs:3908:25 [INFO] [stdout] | [INFO] [stdout] 3908 | let mut new_path = current_path.to_vec(); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/interpreter/builtin_dispatch.rs:322:9 [INFO] [stdout] | [INFO] [stdout] 322 | let n = args.first() [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/interpreter/builtin_dispatch.rs:332:9 [INFO] [stdout] | [INFO] [stdout] 332 | let n = args.first() [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `show_path` [INFO] [stdout] --> src/interpreter/builtin_dispatch.rs:494:5 [INFO] [stdout] | [INFO] [stdout] 494 | show_path: bool, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_show_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `search_prefix` is never read [INFO] [stdout] --> src/interpreter/builtins/compgen_cmd.rs:73:45 [INFO] [stdout] | [INFO] [stdout] 73 | let mut search_prefix: Option = None; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `remaining_pattern` [INFO] [stdout] --> src/interpreter/builtins/compgen_cmd.rs:397:21 [INFO] [stdout] | [INFO] [stdout] 397 | let remaining_pattern: String = p_chars.collect(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_remaining_pattern` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `test_s` [INFO] [stdout] --> src/interpreter/builtins/compgen_cmd.rs:401:25 [INFO] [stdout] | [INFO] [stdout] 401 | let test_s: String = remaining_s.chars().rev().collect::() [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_test_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `line_count` is never read [INFO] [stdout] --> src/interpreter/builtins/mapfile_cmd.rs:91:21 [INFO] [stdout] | [INFO] [stdout] 91 | line_count += 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `skipped` is never read [INFO] [stdout] --> src/interpreter/builtins/mapfile_cmd.rs:83:21 [INFO] [stdout] | [INFO] [stdout] 83 | skipped += 1; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `current_word` is never read [INFO] [stdout] --> src/interpreter/expansion/word_split.rs:82:25 [INFO] [stdout] | [INFO] [stdout] 82 | current_word = String::new(); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `current_word` is never read [INFO] [stdout] --> src/interpreter/expansion/word_split.rs:181:21 [INFO] [stdout] | [INFO] [stdout] 181 | current_word = String::new(); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/parser.rs:220:13 [INFO] [stdout] | [INFO] [stdout] 220 | let mut lexer = Lexer::new(input); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `chars` [INFO] [stdout] --> src/parser/parser.rs:888:13 [INFO] [stdout] | [INFO] [stdout] 888 | let chars: Vec = value.chars().collect(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_chars` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/parser.rs:1769:13 [INFO] [stdout] | [INFO] [stdout] 1769 | let mut fd_variable = None; [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `peek` is never used [INFO] [stdout] --> src/commands/awk/parser.rs:72:8 [INFO] [stdout] | [INFO] [stdout] 19 | impl Parser { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 72 | fn peek(&self, offset: usize) -> &Token { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `children_start` and `children_end` are never read [INFO] [stdout] --> src/commands/find/mod.rs:464:9 [INFO] [stdout] | [INFO] [stdout] 461 | struct NodeInfo { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 464 | children_start: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 465 | children_end: usize, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `algo_name` is never used [INFO] [stdout] --> src/commands/md5sum/mod.rs:184:4 [INFO] [stdout] | [INFO] [stdout] 184 | fn algo_name(algo: HashAlgorithm) -> &'static str { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `check` is never used [INFO] [stdout] --> src/commands/sed/parser.rs:46:8 [INFO] [stdout] | [INFO] [stdout] 25 | impl SedParser { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 46 | fn check(&self, expected: &SedToken) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `match_token` is never used [INFO] [stdout] --> src/commands/query_engine/parser.rs:63:8 [INFO] [stdout] | [INFO] [stdout] 17 | impl Parser { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 63 | fn match_token(&mut self, types: &[TokenType]) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `IFS_WHITESPACE` is never used [INFO] [stdout] --> src/interpreter/helpers/ifs.rs:14:7 [INFO] [stdout] | [INFO] [stdout] 14 | const IFS_WHITESPACE: &str = " \t\n"; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `quoted` is never read [INFO] [stdout] --> src/parser/lexer.rs:235:5 [INFO] [stdout] | [INFO] [stdout] 232 | struct PendingHeredoc { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 235 | quoted: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PendingHeredoc` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `advance` is never used [INFO] [stdout] --> src/parser/lexer.rs:456:8 [INFO] [stdout] | [INFO] [stdout] 397 | impl Lexer { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 456 | fn advance(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_pos`, `error`, `is_statement_end`, `do_parse_command_substitution`, `do_parse_backtick_substitution`, and `do_parse_arithmetic_expansion` are never used [INFO] [stdout] --> src/parser/parser.rs:304:8 [INFO] [stdout] | [INFO] [stdout] 162 | impl Parser { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 304 | fn get_pos(&self) -> usize { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 326 | fn error(&self, message: &str) -> Result<(), ParseException> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 402 | fn is_statement_end(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 848 | fn do_parse_command_substitution(&mut self, value: &str, start: usize) -> (Option, usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 852 | fn do_parse_backtick_substitution(&mut self, value: &str, start: usize, in_double_quotes: bool) -> (crate::ast::types::WordPart... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 856 | fn do_parse_arithmetic_expansion(&mut self, value: &str, start: usize) -> (Option, usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `effective_dotglob`, `fs`, `cwd`, `globstar`, and `dotglob` are never used [INFO] [stdout] --> src/shell/glob_expander.rs:167:19 [INFO] [stdout] | [INFO] [stdout] 56 | impl GlobExpander { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 167 | pub(crate) fn effective_dotglob(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 172 | pub(crate) fn fs(&self) -> &Arc { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 176 | pub(crate) fn cwd(&self) -> &str { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 180 | pub(crate) fn globstar(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 184 | pub(crate) fn dotglob(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `pattern` is never read [INFO] [stdout] --> src/commands/awk/parser.rs:127:47 [INFO] [stdout] | [INFO] [stdout] 127 | let mut pattern: Option = None; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `headers` [INFO] [stdout] --> src/commands/curl/mod.rs:1310:53 [INFO] [stdout] | [INFO] [stdout] 1310 | let fetch: FetchFn = Arc::new(|url, method, headers, body| { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_headers` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `sort_by_size` is assigned to, but never used [INFO] [stdout] --> src/commands/ls/mod.rs:105:13 [INFO] [stdout] | [INFO] [stdout] 105 | let mut sort_by_size = false; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_sort_by_size` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `sort_by_time` is assigned to, but never used [INFO] [stdout] --> src/commands/ls/mod.rs:106:13 [INFO] [stdout] | [INFO] [stdout] 106 | let mut sort_by_time = false; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_sort_by_time` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `sort_by_size` is never read [INFO] [stdout] --> src/commands/ls/mod.rs:117:25 [INFO] [stdout] | [INFO] [stdout] 117 | "-S" => sort_by_size = true, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `sort_by_time` is never read [INFO] [stdout] --> src/commands/ls/mod.rs:118:25 [INFO] [stdout] | [INFO] [stdout] 118 | "-t" => sort_by_time = true, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/commands/query_engine/evaluator.rs:3908:25 [INFO] [stdout] | [INFO] [stdout] 3908 | let mut new_path = current_path.to_vec(); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/interpreter/builtin_dispatch.rs:322:9 [INFO] [stdout] | [INFO] [stdout] 322 | let n = args.first() [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/interpreter/builtin_dispatch.rs:332:9 [INFO] [stdout] | [INFO] [stdout] 332 | let n = args.first() [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `show_path` [INFO] [stdout] --> src/interpreter/builtin_dispatch.rs:494:5 [INFO] [stdout] | [INFO] [stdout] 494 | show_path: bool, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_show_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `search_prefix` is never read [INFO] [stdout] --> src/interpreter/builtins/compgen_cmd.rs:73:45 [INFO] [stdout] | [INFO] [stdout] 73 | let mut search_prefix: Option = None; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `remaining_pattern` [INFO] [stdout] --> src/interpreter/builtins/compgen_cmd.rs:397:21 [INFO] [stdout] | [INFO] [stdout] 397 | let remaining_pattern: String = p_chars.collect(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_remaining_pattern` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `test_s` [INFO] [stdout] --> src/interpreter/builtins/compgen_cmd.rs:401:25 [INFO] [stdout] | [INFO] [stdout] 401 | let test_s: String = remaining_s.chars().rev().collect::() [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_test_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `line_count` is never read [INFO] [stdout] --> src/interpreter/builtins/mapfile_cmd.rs:91:21 [INFO] [stdout] | [INFO] [stdout] 91 | line_count += 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `skipped` is never read [INFO] [stdout] --> src/interpreter/builtins/mapfile_cmd.rs:83:21 [INFO] [stdout] | [INFO] [stdout] 83 | skipped += 1; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `current_word` is never read [INFO] [stdout] --> src/interpreter/expansion/word_split.rs:82:25 [INFO] [stdout] | [INFO] [stdout] 82 | current_word = String::new(); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `current_word` is never read [INFO] [stdout] --> src/interpreter/expansion/word_split.rs:181:21 [INFO] [stdout] | [INFO] [stdout] 181 | current_word = String::new(); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/parser.rs:220:13 [INFO] [stdout] | [INFO] [stdout] 220 | let mut lexer = Lexer::new(input); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `chars` [INFO] [stdout] --> src/parser/parser.rs:888:13 [INFO] [stdout] | [INFO] [stdout] 888 | let chars: Vec = value.chars().collect(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_chars` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/parser.rs:1769:13 [INFO] [stdout] | [INFO] [stdout] 1769 | let mut fd_variable = None; [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `peek` is never used [INFO] [stdout] --> src/commands/awk/parser.rs:72:8 [INFO] [stdout] | [INFO] [stdout] 19 | impl Parser { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 72 | fn peek(&self, offset: usize) -> &Token { [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 `make_ctx_with_fs` is never used [INFO] [stdout] --> src/commands/awk/mod.rs:304:8 [INFO] [stdout] | [INFO] [stdout] 304 | fn make_ctx_with_fs(args: Vec<&str>, stdin: &str, fs: Arc) -> CommandContext { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `children_start` and `children_end` are never read [INFO] [stdout] --> src/commands/find/mod.rs:464:9 [INFO] [stdout] | [INFO] [stdout] 461 | struct NodeInfo { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 464 | children_start: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 465 | children_end: usize, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `algo_name` is never used [INFO] [stdout] --> src/commands/md5sum/mod.rs:184:4 [INFO] [stdout] | [INFO] [stdout] 184 | fn algo_name(algo: HashAlgorithm) -> &'static str { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `check` is never used [INFO] [stdout] --> src/commands/sed/parser.rs:46:8 [INFO] [stdout] | [INFO] [stdout] 25 | impl SedParser { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 46 | fn check(&self, expected: &SedToken) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `match_token` is never used [INFO] [stdout] --> src/commands/query_engine/parser.rs:63:8 [INFO] [stdout] | [INFO] [stdout] 17 | impl Parser { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 63 | fn match_token(&mut self, types: &[TokenType]) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `default_opts` is never used [INFO] [stdout] --> src/commands/yq/formats.rs:927:8 [INFO] [stdout] | [INFO] [stdout] 927 | fn default_opts() -> FormatOptions { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `IFS_WHITESPACE` is never used [INFO] [stdout] --> src/interpreter/helpers/ifs.rs:14:7 [INFO] [stdout] | [INFO] [stdout] 14 | const IFS_WHITESPACE: &str = " \t\n"; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `quoted` is never read [INFO] [stdout] --> src/parser/lexer.rs:235:5 [INFO] [stdout] | [INFO] [stdout] 232 | struct PendingHeredoc { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 235 | quoted: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PendingHeredoc` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `advance` is never used [INFO] [stdout] --> src/parser/lexer.rs:456:8 [INFO] [stdout] | [INFO] [stdout] 397 | impl Lexer { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 456 | fn advance(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_pos`, `error`, `is_statement_end`, `do_parse_command_substitution`, `do_parse_backtick_substitution`, and `do_parse_arithmetic_expansion` are never used [INFO] [stdout] --> src/parser/parser.rs:304:8 [INFO] [stdout] | [INFO] [stdout] 162 | impl Parser { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 304 | fn get_pos(&self) -> usize { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 326 | fn error(&self, message: &str) -> Result<(), ParseException> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 402 | fn is_statement_end(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 848 | fn do_parse_command_substitution(&mut self, value: &str, start: usize) -> (Option, usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 852 | fn do_parse_backtick_substitution(&mut self, value: &str, start: usize, in_double_quotes: bool) -> (crate::ast::types::WordPart... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 856 | fn do_parse_arithmetic_expansion(&mut self, value: &str, start: usize) -> (Option, usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `fs`, `globstar`, and `dotglob` are never used [INFO] [stdout] --> src/shell/glob_expander.rs:172:19 [INFO] [stdout] | [INFO] [stdout] 56 | impl GlobExpander { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 172 | pub(crate) fn fs(&self) -> &Arc { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 180 | pub(crate) fn globstar(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 184 | pub(crate) fn dotglob(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 43.11s [INFO] running `Command { std: "docker" "inspect" "02558d08e17fe4849d0fbae0a9c783504b75f74d3a512e57034289ef333269d4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "02558d08e17fe4849d0fbae0a9c783504b75f74d3a512e57034289ef333269d4", kill_on_drop: false }` [INFO] [stdout] 02558d08e17fe4849d0fbae0a9c783504b75f74d3a512e57034289ef333269d4