[INFO] cloning repository https://github.com/nicholasklick/sast [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/nicholasklick/sast" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnicholasklick%2Fsast", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnicholasklick%2Fsast'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] fb3b390b3915d4b1caf15e5e0bbe12b75f7f18d3 [INFO] checking nicholasklick/sast against try#18c1d185ac7a6a3bf399296b35e4b2736809a756 for pr-146972 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnicholasklick%2Fsast" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/nicholasklick/sast [INFO] finished tweaking git repo https://github.com/nicholasklick/sast [INFO] tweaked toml for git repo https://github.com/nicholasklick/sast written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/nicholasklick/sast on toolchain 18c1d185ac7a6a3bf399296b35e4b2736809a756 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+18c1d185ac7a6a3bf399296b35e4b2736809a756" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/nicholasklick/sast 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" "+18c1d185ac7a6a3bf399296b35e4b2736809a756" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+18c1d185ac7a6a3bf399296b35e4b2736809a756" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a3c5e620747f72f3e809418787d36316a5ab414d416e761850f60dc366daf1ea [INFO] running `Command { std: "docker" "start" "-a" "a3c5e620747f72f3e809418787d36316a5ab414d416e761850f60dc366daf1ea", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a3c5e620747f72f3e809418787d36316a5ab414d416e761850f60dc366daf1ea", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a3c5e620747f72f3e809418787d36316a5ab414d416e761850f60dc366daf1ea", kill_on_drop: false }` [INFO] [stdout] a3c5e620747f72f3e809418787d36316a5ab414d416e761850f60dc366daf1ea [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+18c1d185ac7a6a3bf399296b35e4b2736809a756" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 735260a74d46fd07869c1c290813e1a3353c9a598b63267b77b03dc55b0914bf [INFO] running `Command { std: "docker" "start" "-a" "735260a74d46fd07869c1c290813e1a3353c9a598b63267b77b03dc55b0914bf", kill_on_drop: false }` [INFO] [stderr] Compiling cc v1.2.45 [INFO] [stderr] Checking tree-sitter-language v0.1.5 [INFO] [stderr] Checking streaming-iterator v0.1.9 [INFO] [stderr] Checking aho-corasick v1.1.4 [INFO] [stderr] Checking bumpalo v3.19.0 [INFO] [stderr] Compiling zerocopy v0.8.27 [INFO] [stderr] Compiling syn v2.0.110 [INFO] [stderr] Checking indexmap v2.12.0 [INFO] [stderr] Checking parking_lot_core v0.9.12 [INFO] [stderr] Compiling rustix v1.1.2 [INFO] [stderr] Checking serde_json v1.0.145 [INFO] [stderr] Compiling rayon-core v1.13.0 [INFO] [stderr] Checking anstream v0.6.21 [INFO] [stderr] Checking plotters v0.3.7 [INFO] [stderr] Checking is-terminal v0.4.17 [INFO] [stderr] Checking nom v7.1.3 [INFO] [stderr] Checking wait-timeout v0.2.1 [INFO] [stderr] Checking quick-error v1.2.3 [INFO] [stderr] Checking bit-vec v0.8.0 [INFO] [stderr] Checking rand v0.9.2 [INFO] [stderr] Checking dashmap v6.1.0 [INFO] [stderr] Checking clap_builder v4.5.51 [INFO] [stderr] Checking bit-set v0.8.0 [INFO] [stderr] Checking rand_xorshift v0.4.0 [INFO] [stderr] Checking unarray v0.1.4 [INFO] [stderr] Checking arrayvec v0.7.6 [INFO] [stderr] Checking constant_time_eq v0.3.1 [INFO] [stderr] Checking sha2 v0.10.9 [INFO] [stderr] Checking colored v2.2.0 [INFO] [stderr] Compiling portable-atomic v1.11.1 [INFO] [stderr] Checking predicates-core v1.0.9 [INFO] [stderr] Checking petgraph v0.6.5 [INFO] [stderr] Checking unicode-width v0.2.2 [INFO] [stderr] Checking parking_lot v0.12.5 [INFO] [stderr] Checking float-cmp v0.10.0 [INFO] [stderr] Checking difflib v0.4.0 [INFO] [stderr] Checking rayon v1.11.0 [INFO] [stderr] Checking termtree v0.5.1 [INFO] [stderr] Compiling assert_cmd v2.1.1 [INFO] [stderr] Checking predicates-tree v1.0.12 [INFO] [stderr] Checking tracing-subscriber v0.3.20 [INFO] [stderr] Checking console v0.15.11 [INFO] [stderr] Checking glob v0.3.3 [INFO] [stderr] Checking yansi v1.0.1 [INFO] [stderr] Checking regex-automata v0.4.13 [INFO] [stderr] Checking pretty_assertions v1.4.1 [INFO] [stderr] Checking indicatif v0.17.11 [INFO] [stderr] Compiling tree-sitter v0.24.7 [INFO] [stderr] Compiling tree-sitter-c v0.23.4 [INFO] [stderr] Compiling tree-sitter-rust v0.23.3 [INFO] [stderr] Compiling tree-sitter-kotlin-ng v1.1.0 [INFO] [stderr] Compiling tree-sitter-scala v0.24.0 [INFO] [stderr] Compiling tree-sitter-typescript v0.23.2 [INFO] [stderr] Compiling tree-sitter-dart v0.0.4 [INFO] [stderr] Compiling tree-sitter-ruby v0.23.1 [INFO] [stderr] Compiling tree-sitter-perl v0.0.1 (https://github.com/tree-sitter-perl/tree-sitter-perl.git?branch=release#0c24d001) [INFO] [stderr] Compiling tree-sitter-python v0.23.6 [INFO] [stderr] Compiling tree-sitter-go v0.23.4 [INFO] [stderr] Compiling tree-sitter-lua v0.2.0 [INFO] [stderr] Compiling tree-sitter-bash v0.23.3 [INFO] [stderr] Compiling tree-sitter-cpp v0.23.4 [INFO] [stderr] Compiling tree-sitter-javascript v0.23.1 [INFO] [stderr] Compiling tree-sitter-swift v0.6.0 [INFO] [stderr] Compiling tree-sitter-php v0.23.11 [INFO] [stderr] Compiling tree-sitter-c-sharp v0.23.1 [INFO] [stderr] Compiling tree-sitter-java v0.23.5 [INFO] [stderr] Checking regex v1.12.2 [INFO] [stderr] Checking tempfile v3.23.0 [INFO] [stderr] Checking bstr v1.12.1 [INFO] [stderr] Compiling blake3 v1.8.2 [INFO] [stderr] Checking rusty-fork v0.3.1 [INFO] [stderr] Checking predicates v3.1.3 [INFO] [stderr] Checking globset v0.4.18 [INFO] [stderr] Compiling logos-codegen v0.14.4 [INFO] [stderr] Checking ignore v0.4.25 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling zerocopy-derive v0.8.27 [INFO] [stderr] Compiling clap_derive v4.5.49 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling tokio-macros v2.6.0 [INFO] [stderr] Checking tokio v1.48.0 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Compiling logos-derive v0.14.4 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Checking logos v0.14.4 [INFO] [stderr] Checking clap v4.5.51 [INFO] [stderr] Checking half v2.7.1 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Checking serde v1.0.228 [INFO] [stderr] Checking ciborium-ll v0.2.2 [INFO] [stderr] Checking rand_chacha v0.9.0 [INFO] [stderr] Checking proptest v1.9.0 [INFO] [stderr] Checking gittera-parser v0.1.0 (/opt/rustwide/workdir/crates/parser) [INFO] [stderr] Checking tinytemplate v1.2.1 [INFO] [stderr] Checking ciborium v0.2.2 [INFO] [stderr] Checking bincode v1.3.3 [INFO] [stderr] Checking chrono v0.4.42 [INFO] [stderr] Checking criterion v0.5.1 [INFO] [stderr] Checking gittera-analyzer v0.1.0 (/opt/rustwide/workdir/crates/analyzer) [INFO] [stdout] warning: unused import: `AstNodeKind` [INFO] [stdout] --> crates/analyzer/src/taint.rs:7:36 [INFO] [stdout] | [INFO] [stdout] 7 | use gittera_parser::ast::{AstNode, AstNodeKind, NodeId}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashMap` [INFO] [stdout] --> crates/analyzer/src/taint.rs:9:24 [INFO] [stdout] | [INFO] [stdout] 9 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::access_path::AccessPath` [INFO] [stdout] --> crates/analyzer/src/taint_pipeline.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | use crate::access_path::AccessPath; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::call_context::CallContext` [INFO] [stdout] --> crates/analyzer/src/taint_pipeline.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | use crate::call_context::CallContext; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `FlowState` [INFO] [stdout] --> crates/analyzer/src/taint_pipeline.rs:25:20 [INFO] [stdout] | [INFO] [stdout] 25 | use crate::taint::{FlowState, TaintSink, TaintSource, TaintSourceKind, TaintValue, TaintVulnerability, Severity}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `NodeId` [INFO] [stdout] --> crates/analyzer/src/taint_pipeline.rs:26:36 [INFO] [stdout] | [INFO] [stdout] 26 | use gittera_parser::ast::{AstNode, NodeId}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HashMap` and `HashSet` [INFO] [stdout] --> crates/analyzer/src/taint_pipeline.rs:27:24 [INFO] [stdout] | [INFO] [stdout] 27 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `evaluate_node_symbolic` [INFO] [stdout] --> crates/analyzer/src/interprocedural_taint.rs:20:96 [INFO] [stdout] | [INFO] [stdout] 20 | use crate::language_handler::{LanguageTaintHandler, SafeSinkPattern, get_handler_for_language, evaluate_node_symbolic}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> crates/analyzer/src/interprocedural_taint.rs:1957:12 [INFO] [stdout] | [INFO] [stdout] 1957 | if (method_lower == "getvalue" || method_lower == "getname" || method_lower == "getcomment") { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1957 - if (method_lower == "getvalue" || method_lower == "getname" || method_lower == "getcomment") { [INFO] [stdout] 1957 + if method_lower == "getvalue" || method_lower == "getname" || method_lower == "getcomment" { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `taint::OwnedTaintTransferFunction`: Use AstBasedTaintTransferFunction from taint_ast_based module instead. This legacy implementation has known issues with complex expressions. [INFO] [stdout] --> crates/analyzer/src/taint.rs:760:6 [INFO] [stdout] | [INFO] [stdout] 760 | impl OwnedTaintTransferFunction { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `taint::OwnedTaintTransferFunction`: Use AstBasedTaintTransferFunction from taint_ast_based module instead. This legacy implementation has known issues with complex expressions. [INFO] [stdout] --> crates/analyzer/src/taint.rs:834:39 [INFO] [stdout] | [INFO] [stdout] 834 | impl TransferFunction for OwnedTaintTransferFunction { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated field `taint::OwnedTaintTransferFunction::sources`: Use AstBasedTaintTransferFunction from taint_ast_based module instead. This legacy implementation has known issues with complex expressions. [INFO] [stdout] --> crates/analyzer/src/taint.rs:764:24 [INFO] [stdout] | [INFO] [stdout] 764 | for source in &self.sources { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated field `taint::OwnedTaintTransferFunction::sanitizers`: Use AstBasedTaintTransferFunction from taint_ast_based module instead. This legacy implementation has known issues with complex expressions. [INFO] [stdout] --> crates/analyzer/src/taint.rs:777:9 [INFO] [stdout] | [INFO] [stdout] 777 | self.sanitizers.iter().any(|san| name_lower.contains(&san.to_lowercase())) [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AstNodeKind` [INFO] [stdout] --> crates/analyzer/src/taint.rs:7:36 [INFO] [stdout] | [INFO] [stdout] 7 | use gittera_parser::ast::{AstNode, AstNodeKind, NodeId}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashMap` [INFO] [stdout] --> crates/analyzer/src/taint.rs:9:24 [INFO] [stdout] | [INFO] [stdout] 9 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::access_path::AccessPath` [INFO] [stdout] --> crates/analyzer/src/taint_pipeline.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | use crate::access_path::AccessPath; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::call_context::CallContext` [INFO] [stdout] --> crates/analyzer/src/taint_pipeline.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | use crate::call_context::CallContext; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `FlowState` [INFO] [stdout] --> crates/analyzer/src/taint_pipeline.rs:25:20 [INFO] [stdout] | [INFO] [stdout] 25 | use crate::taint::{FlowState, TaintSink, TaintSource, TaintSourceKind, TaintValue, TaintVulnerability, Severity}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `NodeId` [INFO] [stdout] --> crates/analyzer/src/taint_pipeline.rs:26:36 [INFO] [stdout] | [INFO] [stdout] 26 | use gittera_parser::ast::{AstNode, NodeId}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HashMap` and `HashSet` [INFO] [stdout] --> crates/analyzer/src/taint_pipeline.rs:27:24 [INFO] [stdout] | [INFO] [stdout] 27 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `evaluate_node_symbolic` [INFO] [stdout] --> crates/analyzer/src/interprocedural_taint.rs:20:96 [INFO] [stdout] | [INFO] [stdout] 20 | use crate::language_handler::{LanguageTaintHandler, SafeSinkPattern, get_handler_for_language, evaluate_node_symbolic}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> crates/analyzer/src/interprocedural_taint.rs:1957:12 [INFO] [stdout] | [INFO] [stdout] 1957 | if (method_lower == "getvalue" || method_lower == "getname" || method_lower == "getcomment") { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1957 - if (method_lower == "getvalue" || method_lower == "getname" || method_lower == "getcomment") { [INFO] [stdout] 1957 + if method_lower == "getvalue" || method_lower == "getname" || method_lower == "getcomment" { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `taint::OwnedTaintTransferFunction`: Use AstBasedTaintTransferFunction from taint_ast_based module instead. This legacy implementation has known issues with complex expressions. [INFO] [stdout] --> crates/analyzer/src/taint.rs:760:6 [INFO] [stdout] | [INFO] [stdout] 760 | impl OwnedTaintTransferFunction { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `taint::OwnedTaintTransferFunction`: Use AstBasedTaintTransferFunction from taint_ast_based module instead. This legacy implementation has known issues with complex expressions. [INFO] [stdout] --> crates/analyzer/src/taint.rs:834:39 [INFO] [stdout] | [INFO] [stdout] 834 | impl TransferFunction for OwnedTaintTransferFunction { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `taint::OwnedTaintTransferFunction`: Use AstBasedTaintTransferFunction from taint_ast_based module instead. This legacy implementation has known issues with complex expressions. [INFO] [stdout] --> crates/analyzer/src/taint.rs:1044:24 [INFO] [stdout] | [INFO] [stdout] 1044 | let transfer = OwnedTaintTransferFunction { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `taint::OwnedTaintTransferFunction`: Use AstBasedTaintTransferFunction from taint_ast_based module instead. This legacy implementation has known issues with complex expressions. [INFO] [stdout] --> crates/analyzer/src/taint.rs:1064:24 [INFO] [stdout] | [INFO] [stdout] 1064 | let transfer = OwnedTaintTransferFunction { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `taint::OwnedTaintTransferFunction`: Use AstBasedTaintTransferFunction from taint_ast_based module instead. This legacy implementation has known issues with complex expressions. [INFO] [stdout] --> crates/analyzer/src/taint.rs:1112:24 [INFO] [stdout] | [INFO] [stdout] 1112 | let transfer = OwnedTaintTransferFunction { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `taint::OwnedTaintTransferFunction`: Use AstBasedTaintTransferFunction from taint_ast_based module instead. This legacy implementation has known issues with complex expressions. [INFO] [stdout] --> crates/analyzer/src/taint.rs:1152:24 [INFO] [stdout] | [INFO] [stdout] 1152 | let transfer = OwnedTaintTransferFunction { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `taint::OwnedTaintTransferFunction`: Use AstBasedTaintTransferFunction from taint_ast_based module instead. This legacy implementation has known issues with complex expressions. [INFO] [stdout] --> crates/analyzer/src/taint.rs:1219:24 [INFO] [stdout] | [INFO] [stdout] 1219 | let transfer = OwnedTaintTransferFunction { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `taint::OwnedTaintTransferFunction`: Use AstBasedTaintTransferFunction from taint_ast_based module instead. This legacy implementation has known issues with complex expressions. [INFO] [stdout] --> crates/analyzer/src/taint.rs:1254:24 [INFO] [stdout] | [INFO] [stdout] 1254 | let transfer = OwnedTaintTransferFunction { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ast` [INFO] [stdout] --> crates/analyzer/src/taint.rs:835:48 [INFO] [stdout] | [INFO] [stdout] 835 | fn transfer(&self, cfg: &ControlFlowGraph, ast: &AstNode, node_idx: CfgGraphIndex, input: &HashSet) -> HashSet crates/analyzer/src/taint_config.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 40 | _ => Self::generic_config(language), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> crates/analyzer/src/taint_config.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 22 | Language::Ruby => Self::ruby_config(), [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] 23 | Language::Php => Self::php_config(), [INFO] [stdout] | ------------- matches some of the same values [INFO] [stdout] 24 | Language::JavaScript => Self::javascript_config(Language::JavaScript), [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] 25 | Language::TypeScript => Self::javascript_config(Language::TypeScript), [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 40 | _ => Self::generic_config(language), [INFO] [stdout] | ^ ...and 14 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated field `taint::OwnedTaintTransferFunction::sources`: Use AstBasedTaintTransferFunction from taint_ast_based module instead. This legacy implementation has known issues with complex expressions. [INFO] [stdout] --> crates/analyzer/src/taint.rs:764:24 [INFO] [stdout] | [INFO] [stdout] 764 | for source in &self.sources { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated field `taint::OwnedTaintTransferFunction::sanitizers`: Use AstBasedTaintTransferFunction from taint_ast_based module instead. This legacy implementation has known issues with complex expressions. [INFO] [stdout] --> crates/analyzer/src/taint.rs:777:9 [INFO] [stdout] | [INFO] [stdout] 777 | self.sanitizers.iter().any(|san| name_lower.contains(&san.to_lowercase())) [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated field `taint::OwnedTaintTransferFunction::sources`: Use AstBasedTaintTransferFunction from taint_ast_based module instead. This legacy implementation has known issues with complex expressions. [INFO] [stdout] --> crates/analyzer/src/taint.rs:1045:13 [INFO] [stdout] | [INFO] [stdout] 1045 | sources, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated field `taint::OwnedTaintTransferFunction::sanitizers`: Use AstBasedTaintTransferFunction from taint_ast_based module instead. This legacy implementation has known issues with complex expressions. [INFO] [stdout] --> crates/analyzer/src/taint.rs:1046:13 [INFO] [stdout] | [INFO] [stdout] 1046 | sanitizers: HashSet::new(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated field `taint::OwnedTaintTransferFunction::sources`: Use AstBasedTaintTransferFunction from taint_ast_based module instead. This legacy implementation has known issues with complex expressions. [INFO] [stdout] --> crates/analyzer/src/taint.rs:1065:13 [INFO] [stdout] | [INFO] [stdout] 1065 | sources: Vec::new(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated field `taint::OwnedTaintTransferFunction::sanitizers`: Use AstBasedTaintTransferFunction from taint_ast_based module instead. This legacy implementation has known issues with complex expressions. [INFO] [stdout] --> crates/analyzer/src/taint.rs:1066:13 [INFO] [stdout] | [INFO] [stdout] 1066 | sanitizers, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated field `taint::OwnedTaintTransferFunction::sources`: Use AstBasedTaintTransferFunction from taint_ast_based module instead. This legacy implementation has known issues with complex expressions. [INFO] [stdout] --> crates/analyzer/src/taint.rs:1113:13 [INFO] [stdout] | [INFO] [stdout] 1113 | sources, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated field `taint::OwnedTaintTransferFunction::sanitizers`: Use AstBasedTaintTransferFunction from taint_ast_based module instead. This legacy implementation has known issues with complex expressions. [INFO] [stdout] --> crates/analyzer/src/taint.rs:1114:13 [INFO] [stdout] | [INFO] [stdout] 1114 | sanitizers: HashSet::new(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated field `taint::OwnedTaintTransferFunction::sources`: Use AstBasedTaintTransferFunction from taint_ast_based module instead. This legacy implementation has known issues with complex expressions. [INFO] [stdout] --> crates/analyzer/src/taint.rs:1153:13 [INFO] [stdout] | [INFO] [stdout] 1153 | sources: Vec::new(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated field `taint::OwnedTaintTransferFunction::sanitizers`: Use AstBasedTaintTransferFunction from taint_ast_based module instead. This legacy implementation has known issues with complex expressions. [INFO] [stdout] --> crates/analyzer/src/taint.rs:1154:13 [INFO] [stdout] | [INFO] [stdout] 1154 | sanitizers, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated field `taint::OwnedTaintTransferFunction::sources`: Use AstBasedTaintTransferFunction from taint_ast_based module instead. This legacy implementation has known issues with complex expressions. [INFO] [stdout] --> crates/analyzer/src/taint.rs:1220:13 [INFO] [stdout] | [INFO] [stdout] 1220 | sources: Vec::new(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated field `taint::OwnedTaintTransferFunction::sanitizers`: Use AstBasedTaintTransferFunction from taint_ast_based module instead. This legacy implementation has known issues with complex expressions. [INFO] [stdout] --> crates/analyzer/src/taint.rs:1221:13 [INFO] [stdout] | [INFO] [stdout] 1221 | sanitizers: HashSet::new(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated field `taint::OwnedTaintTransferFunction::sources`: Use AstBasedTaintTransferFunction from taint_ast_based module instead. This legacy implementation has known issues with complex expressions. [INFO] [stdout] --> crates/analyzer/src/taint.rs:1255:13 [INFO] [stdout] | [INFO] [stdout] 1255 | sources: Vec::new(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated field `taint::OwnedTaintTransferFunction::sanitizers`: Use AstBasedTaintTransferFunction from taint_ast_based module instead. This legacy implementation has known issues with complex expressions. [INFO] [stdout] --> crates/analyzer/src/taint.rs:1256:13 [INFO] [stdout] | [INFO] [stdout] 1256 | sanitizers: HashSet::new(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/analyzer/src/taint_config.rs:2997:13 [INFO] [stdout] | [INFO] [stdout] 2997 | let mut sanitizers = c_config.sanitizers; [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: variable does not need to be mutable [INFO] [stdout] --> crates/analyzer/src/taint_config.rs:3044:13 [INFO] [stdout] | [INFO] [stdout] 3044 | let mut sinks = java_config.sinks; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/analyzer/src/taint_config.rs:3045:13 [INFO] [stdout] | [INFO] [stdout] 3045 | let mut sanitizers = java_config.sanitizers; [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/analyzer/src/taint_config.rs:3073:13 [INFO] [stdout] | [INFO] [stdout] 3073 | let mut sinks = java_config.sinks; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/analyzer/src/taint_config.rs:3074:13 [INFO] [stdout] | [INFO] [stdout] 3074 | let mut sanitizers = java_config.sanitizers; [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ast` [INFO] [stdout] --> crates/parser/src/parser_arena.rs:548:13 [INFO] [stdout] | [INFO] [stdout] 548 | let ast = parser.parse_source(&arena, source).unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ast` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `OwnedTaintTransferFunction` is never constructed [INFO] [stdout] --> crates/analyzer/src/taint.rs:755:8 [INFO] [stdout] | [INFO] [stdout] 755 | struct OwnedTaintTransferFunction { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_source`, `is_sanitizer`, `extract_assigned_variable`, `extract_callee`, and `extract_referenced_variables` are never used [INFO] [stdout] --> crates/analyzer/src/taint.rs:762:8 [INFO] [stdout] | [INFO] [stdout] 760 | impl OwnedTaintTransferFunction { [INFO] [stdout] | ------------------------------- methods in this implementation [INFO] [stdout] 761 | /// Check if a name matches any taint source (case-insensitive) [INFO] [stdout] 762 | fn is_source(&self, name: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 775 | fn is_sanitizer(&self, name: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 781 | fn extract_assigned_variable(&self, node: &CfgNode) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 800 | fn extract_callee(&self, node: &CfgNode) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 811 | fn extract_referenced_variables(&self, node: &CfgNode) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `build_ast_map` is never used [INFO] [stdout] --> crates/analyzer/src/taint_ast_based.rs:84:8 [INFO] [stdout] | [INFO] [stdout] 28 | impl AstBasedTaintTransferFunction { [INFO] [stdout] | ---------------------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 84 | fn build_ast_map<'a>(node: &'a AstNode, map: &mut HashMap) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `types_could_alias` is never used [INFO] [stdout] --> crates/analyzer/src/points_to.rs:396:8 [INFO] [stdout] | [INFO] [stdout] 324 | impl PointsToAnalysisBuilder { [INFO] [stdout] | ---------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 396 | fn types_could_alias(&self, var1: &str, var2: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `max_loop_iterations` is never read [INFO] [stdout] --> crates/analyzer/src/symbolic.rs:546:5 [INFO] [stdout] | [INFO] [stdout] 543 | pub struct SymbolicExecutor { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 546 | max_loop_iterations: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Skip` is never constructed [INFO] [stdout] --> crates/analyzer/src/symbolic.rs:797:5 [INFO] [stdout] | [INFO] [stdout] 786 | enum ExecutionAction { [INFO] [stdout] | --------------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 797 | Skip, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking gittera-query v0.1.0 (/opt/rustwide/workdir/crates/query) [INFO] [stdout] warning: unused variable: `taint` [INFO] [stdout] --> crates/analyzer/tests/ruby_taint_test.rs:150:9 [INFO] [stdout] | [INFO] [stdout] 150 | let taint = TaintAnalysis::new().for_language(Language::Ruby); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_taint` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_literal_bool` is never used [INFO] [stdout] --> crates/analyzer/tests/symbolic_execution_tests.rs:53:4 [INFO] [stdout] | [INFO] [stdout] 53 | fn create_literal_bool(value: bool) -> AstNode { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TaintSinkKind`, `TaintSink`, and `TaintSource` [INFO] [stdout] --> crates/analyzer/tests/predicated_taint_basic_test.rs:2:32 [INFO] [stdout] | [INFO] [stdout] 2 | CfgBuilder, TaintAnalysis, TaintSink, TaintSinkKind, TaintSource, TaintSourceKind, [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> crates/analyzer/tests/symbolic_execution_tests.rs:748:13 [INFO] [stdout] | [INFO] [stdout] 748 | assert!(result.stats.total_paths >= 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> crates/analyzer/tests/taint_integration_test.rs:225:13 [INFO] [stdout] | [INFO] [stdout] 225 | assert!(result.vulnerabilities.len() >= 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/analyzer/tests/predicated_taint_basic_test.rs:133:9 [INFO] [stdout] | [INFO] [stdout] 133 | let mut analysis = TaintAnalysis::new() [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 imports: `LanguageConfig`, `Language`, and `Parser` [INFO] [stdout] --> crates/analyzer/tests/points_to_test.rs:4:22 [INFO] [stdout] | [INFO] [stdout] 4 | use gittera_parser::{Parser, Language, LanguageConfig, AstNode, AstNodeKind, Location, Span}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Path` [INFO] [stdout] --> crates/analyzer/tests/points_to_test.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::path::Path; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `taint` [INFO] [stdout] --> crates/analyzer/tests/rust_taint_test.rs:195:9 [INFO] [stdout] | [INFO] [stdout] 195 | let taint = TaintAnalysis::new().for_language(Language::Rust); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_taint` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `taint` [INFO] [stdout] --> crates/analyzer/tests/swift_taint_test.rs:194:9 [INFO] [stdout] | [INFO] [stdout] 194 | let taint = TaintAnalysis::new().for_language(Language::Swift); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_taint` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `taint` [INFO] [stdout] --> crates/analyzer/tests/go_taint_test.rs:185:9 [INFO] [stdout] | [INFO] [stdout] 185 | let taint = TaintAnalysis::new().for_language(Language::Go); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_taint` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `taint` [INFO] [stdout] --> crates/analyzer/tests/php_taint_test.rs:182:9 [INFO] [stdout] | [INFO] [stdout] 182 | let taint = TaintAnalysis::new().for_language(Language::Php); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_taint` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `taint` [INFO] [stdout] --> crates/analyzer/tests/java_taint_test.rs:185:9 [INFO] [stdout] | [INFO] [stdout] 185 | let taint = TaintAnalysis::new().for_language(Language::Java); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_taint` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `targets` [INFO] [stdout] --> crates/analyzer/tests/points_to_test.rs:134:9 [INFO] [stdout] | [INFO] [stdout] 134 | let targets = pts.points_to("obj"); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_targets` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `targets` [INFO] [stdout] --> crates/analyzer/tests/points_to_test.rs:169:9 [INFO] [stdout] | [INFO] [stdout] 169 | let targets = pts.points_to("arr"); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_targets` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> crates/analyzer/tests/interprocedural_test.rs:341:13 [INFO] [stdout] | [INFO] [stdout] 341 | assert!(result.vulnerabilities.len() >= 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> crates/analyzer/tests/interprocedural_test.rs:603:13 [INFO] [stdout] | [INFO] [stdout] 603 | assert!(result.vulnerabilities.len() >= 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> crates/analyzer/tests/interprocedural_test.rs:710:13 [INFO] [stdout] | [INFO] [stdout] 710 | assert!(result.vulnerabilities.len() >= 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> crates/analyzer/tests/interprocedural_test.rs:823:13 [INFO] [stdout] | [INFO] [stdout] 823 | assert!(result.vulnerabilities.len() >= 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> crates/analyzer/tests/interprocedural_test.rs:947:13 [INFO] [stdout] | [INFO] [stdout] 947 | assert!(result.vulnerabilities.len() >= 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> crates/analyzer/tests/interprocedural_test.rs:1045:13 [INFO] [stdout] | [INFO] [stdout] 1045 | assert!(result.vulnerabilities.len() >= 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> crates/analyzer/tests/interprocedural_test.rs:1211:13 [INFO] [stdout] | [INFO] [stdout] 1211 | assert!(result.vulnerabilities.len() >= 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `obj_pts` [INFO] [stdout] --> crates/analyzer/tests/points_to_test.rs:559:9 [INFO] [stdout] | [INFO] [stdout] 559 | let obj_pts = pts.points_to("obj"); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_obj_pts` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a_pts` [INFO] [stdout] --> crates/analyzer/tests/points_to_test.rs:560:9 [INFO] [stdout] | [INFO] [stdout] 560 | let a_pts = pts.points_to("a"); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_a_pts` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b_pts` [INFO] [stdout] --> crates/analyzer/tests/points_to_test.rs:561:9 [INFO] [stdout] | [INFO] [stdout] 561 | let b_pts = pts.points_to("b"); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_b_pts` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c_pts` [INFO] [stdout] --> crates/analyzer/tests/points_to_test.rs:562:9 [INFO] [stdout] | [INFO] [stdout] 562 | let c_pts = pts.points_to("c"); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_c_pts` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> crates/analyzer/tests/points_to_test.rs:195:13 [INFO] [stdout] | [INFO] [stdout] 195 | assert!(stats.num_locations >= 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> crates/analyzer/tests/points_to_test.rs:218:13 [INFO] [stdout] | [INFO] [stdout] 218 | assert!(stats.num_locations >= 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> crates/analyzer/tests/points_to_test.rs:327:13 [INFO] [stdout] | [INFO] [stdout] 327 | assert!(stats.num_locations >= 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> crates/analyzer/tests/points_to_test.rs:440:13 [INFO] [stdout] | [INFO] [stdout] 440 | assert!(stats.num_locations >= 0, "should process nested member expressions"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> crates/analyzer/tests/points_to_test.rs:443:13 [INFO] [stdout] | [INFO] [stdout] 443 | assert!(stats.num_constraints >= 0, "should handle field access chains"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> crates/analyzer/tests/points_to_test.rs:556:13 [INFO] [stdout] | [INFO] [stdout] 556 | assert!(stats.total_points_to_relations >= 0, "should have computed points-to relations"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ast` [INFO] [stdout] --> crates/analyzer/src/taint.rs:835:48 [INFO] [stdout] | [INFO] [stdout] 835 | fn transfer(&self, cfg: &ControlFlowGraph, ast: &AstNode, node_idx: CfgGraphIndex, input: &HashSet) -> HashSet crates/analyzer/src/taint_config.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 40 | _ => Self::generic_config(language), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> crates/analyzer/src/taint_config.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 22 | Language::Ruby => Self::ruby_config(), [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] 23 | Language::Php => Self::php_config(), [INFO] [stdout] | ------------- matches some of the same values [INFO] [stdout] 24 | Language::JavaScript => Self::javascript_config(Language::JavaScript), [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] 25 | Language::TypeScript => Self::javascript_config(Language::TypeScript), [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 40 | _ => Self::generic_config(language), [INFO] [stdout] | ^ ...and 14 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/analyzer/src/taint_config.rs:2997:13 [INFO] [stdout] | [INFO] [stdout] 2997 | let mut sanitizers = c_config.sanitizers; [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: variable does not need to be mutable [INFO] [stdout] --> crates/analyzer/src/taint_config.rs:3044:13 [INFO] [stdout] | [INFO] [stdout] 3044 | let mut sinks = java_config.sinks; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/analyzer/src/taint_config.rs:3045:13 [INFO] [stdout] | [INFO] [stdout] 3045 | let mut sanitizers = java_config.sanitizers; [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/analyzer/src/taint_config.rs:3073:13 [INFO] [stdout] | [INFO] [stdout] 3073 | let mut sinks = java_config.sinks; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/analyzer/src/taint_config.rs:3074:13 [INFO] [stdout] | [INFO] [stdout] 3074 | let mut sanitizers = java_config.sanitizers; [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `program` [INFO] [stdout] --> crates/analyzer/src/symbol_table.rs:534:13 [INFO] [stdout] | [INFO] [stdout] 534 | let program = AstNode::new( [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_program` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/analyzer/src/interprocedural_taint.rs:2465:13 [INFO] [stdout] | [INFO] [stdout] 2465 | let mut analysis = InterproceduralTaintAnalysis::new() [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/analyzer/src/interprocedural_taint.rs:2475:13 [INFO] [stdout] | [INFO] [stdout] 2475 | let mut analysis = InterproceduralTaintAnalysis::new() [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/analyzer/src/interprocedural_taint.rs:2485:13 [INFO] [stdout] | [INFO] [stdout] 2485 | let mut analysis = InterproceduralTaintAnalysis::new() [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DummyTransfer` is never constructed [INFO] [stdout] --> crates/analyzer/src/dataflow.rs:222:12 [INFO] [stdout] | [INFO] [stdout] 222 | struct DummyTransfer; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `build_ast_map` is never used [INFO] [stdout] --> crates/analyzer/src/taint_ast_based.rs:84:8 [INFO] [stdout] | [INFO] [stdout] 28 | impl AstBasedTaintTransferFunction { [INFO] [stdout] | ---------------------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 84 | fn build_ast_map<'a>(node: &'a AstNode, map: &mut HashMap) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `types_could_alias` is never used [INFO] [stdout] --> crates/analyzer/src/points_to.rs:396:8 [INFO] [stdout] | [INFO] [stdout] 324 | impl PointsToAnalysisBuilder { [INFO] [stdout] | ---------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 396 | fn types_could_alias(&self, var1: &str, var2: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `max_loop_iterations` is never read [INFO] [stdout] --> crates/analyzer/src/symbolic.rs:546:5 [INFO] [stdout] | [INFO] [stdout] 543 | pub struct SymbolicExecutor { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 546 | max_loop_iterations: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Skip` is never constructed [INFO] [stdout] --> crates/analyzer/src/symbolic.rs:797:5 [INFO] [stdout] | [INFO] [stdout] 786 | enum ExecutionAction { [INFO] [stdout] | --------------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 797 | Skip, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `node` is never read [INFO] [stdout] --> crates/query/src/executor.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 30 | struct EvaluationContext<'a> { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] 31 | /// The current AST node being evaluated [INFO] [stdout] 32 | node: &'a AstNode, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_bool` is never used [INFO] [stdout] --> crates/query/src/executor.rs:84:8 [INFO] [stdout] | [INFO] [stdout] 74 | impl Value { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 84 | fn as_bool(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `evaluate_function_call` is never used [INFO] [stdout] --> crates/query/src/executor.rs:577:8 [INFO] [stdout] | [INFO] [stdout] 96 | impl QueryExecutor { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 577 | fn evaluate_function_call(variable: &str, function: &str, ctx: &EvaluationContext) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking gittera-cache v0.1.0 (/opt/rustwide/workdir/crates/cache) [INFO] [stderr] Checking gittera-reporter v0.1.0 (/opt/rustwide/workdir/crates/reporter) [INFO] [stdout] warning: field `node` is never read [INFO] [stdout] --> crates/query/src/executor.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 30 | struct EvaluationContext<'a> { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] 31 | /// The current AST node being evaluated [INFO] [stdout] 32 | node: &'a AstNode, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_bool` is never used [INFO] [stdout] --> crates/query/src/executor.rs:84:8 [INFO] [stdout] | [INFO] [stdout] 74 | impl Value { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 84 | fn as_bool(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `evaluate_function_call` is never used [INFO] [stdout] --> crates/query/src/executor.rs:577:8 [INFO] [stdout] | [INFO] [stdout] 96 | impl QueryExecutor { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 577 | fn evaluate_function_call(variable: &str, function: &str, ctx: &EvaluationContext) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking gittera-sast v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `is_suppressed` [INFO] [stdout] --> crates/cache/tests/suppression_tests.rs:74:9 [INFO] [stdout] | [INFO] [stdout] 74 | let is_suppressed = manager.is_suppressed(&test_file, 5, "any-rule"); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_suppressed` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `assert_cmd::Command::cargo_bin`: incompatible with a custom cargo build-dir, see instead `cargo::cargo_bin_cmd!` [INFO] [stdout] --> tests/cli_tests.rs:18:28 [INFO] [stdout] | [INFO] [stdout] 18 | let mut cmd = Command::cargo_bin("gittera-sast").unwrap(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `assert_cmd::Command::cargo_bin`: incompatible with a custom cargo build-dir, see instead `cargo::cargo_bin_cmd!` [INFO] [stdout] --> tests/cli_tests.rs:28:28 [INFO] [stdout] | [INFO] [stdout] 28 | let mut cmd = Command::cargo_bin("gittera-sast").unwrap(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `assert_cmd::Command::cargo_bin`: incompatible with a custom cargo build-dir, see instead `cargo::cargo_bin_cmd!` [INFO] [stdout] --> tests/cli_tests.rs:51:28 [INFO] [stdout] | [INFO] [stdout] 51 | let mut cmd = Command::cargo_bin("gittera-sast").unwrap(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `assert_cmd::Command::cargo_bin`: incompatible with a custom cargo build-dir, see instead `cargo::cargo_bin_cmd!` [INFO] [stdout] --> tests/cli_tests.rs:71:28 [INFO] [stdout] | [INFO] [stdout] 71 | let mut cmd = Command::cargo_bin("gittera-sast").unwrap(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `assert_cmd::Command::cargo_bin`: incompatible with a custom cargo build-dir, see instead `cargo::cargo_bin_cmd!` [INFO] [stdout] --> tests/cli_tests.rs:83:28 [INFO] [stdout] | [INFO] [stdout] 83 | let mut cmd = Command::cargo_bin("gittera-sast").unwrap(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `assert_cmd::Command::cargo_bin`: incompatible with a custom cargo build-dir, see instead `cargo::cargo_bin_cmd!` [INFO] [stdout] --> tests/cli_tests.rs:102:28 [INFO] [stdout] | [INFO] [stdout] 102 | let mut cmd = Command::cargo_bin("gittera-sast").unwrap(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `assert_cmd::Command::cargo_bin`: incompatible with a custom cargo build-dir, see instead `cargo::cargo_bin_cmd!` [INFO] [stdout] --> tests/cli_tests.rs:119:28 [INFO] [stdout] | [INFO] [stdout] 119 | let mut cmd = Command::cargo_bin("gittera-sast").unwrap(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `assert_cmd::Command::cargo_bin`: incompatible with a custom cargo build-dir, see instead `cargo::cargo_bin_cmd!` [INFO] [stdout] --> tests/cli_tests.rs:140:28 [INFO] [stdout] | [INFO] [stdout] 140 | let mut cmd = Command::cargo_bin("gittera-sast").unwrap(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `assert_cmd::Command::cargo_bin`: incompatible with a custom cargo build-dir, see instead `cargo::cargo_bin_cmd!` [INFO] [stdout] --> tests/cli_tests.rs:174:28 [INFO] [stdout] | [INFO] [stdout] 174 | let mut cmd = Command::cargo_bin("gittera-sast").unwrap(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/parallel_analysis_test.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | let mut analysis = TaintAnalysis::new() [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: use of deprecated associated function `assert_cmd::Command::cargo_bin`: incompatible with a custom cargo build-dir, see instead `cargo::cargo_bin_cmd!` [INFO] [stdout] --> tests/cli_tests.rs:195:28 [INFO] [stdout] | [INFO] [stdout] 195 | let mut cmd = Command::cargo_bin("gittera-sast").unwrap(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `assert_cmd::Command::cargo_bin`: incompatible with a custom cargo build-dir, see instead `cargo::cargo_bin_cmd!` [INFO] [stdout] --> tests/cli_tests.rs:217:28 [INFO] [stdout] | [INFO] [stdout] 217 | let mut cmd = Command::cargo_bin("gittera-sast").unwrap(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `assert_cmd::Command::cargo_bin`: incompatible with a custom cargo build-dir, see instead `cargo::cargo_bin_cmd!` [INFO] [stdout] --> tests/cli_tests.rs:245:28 [INFO] [stdout] | [INFO] [stdout] 245 | let mut cmd = Command::cargo_bin("gittera-sast").unwrap(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `assert_cmd::Command::cargo_bin`: incompatible with a custom cargo build-dir, see instead `cargo::cargo_bin_cmd!` [INFO] [stdout] --> tests/cli_tests.rs:255:29 [INFO] [stdout] | [INFO] [stdout] 255 | let mut cmd2 = Command::cargo_bin("gittera-sast").unwrap(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `assert_cmd::Command::cargo_bin`: incompatible with a custom cargo build-dir, see instead `cargo::cargo_bin_cmd!` [INFO] [stdout] --> tests/cli_tests.rs:271:28 [INFO] [stdout] | [INFO] [stdout] 271 | let mut cmd = Command::cargo_bin("gittera-sast").unwrap(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `assert_cmd::Command::cargo_bin`: incompatible with a custom cargo build-dir, see instead `cargo::cargo_bin_cmd!` [INFO] [stdout] --> tests/cli_tests.rs:291:29 [INFO] [stdout] | [INFO] [stdout] 291 | let mut cmd1 = Command::cargo_bin("gittera-sast").unwrap(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `assert_cmd::Command::cargo_bin`: incompatible with a custom cargo build-dir, see instead `cargo::cargo_bin_cmd!` [INFO] [stdout] --> tests/cli_tests.rs:301:29 [INFO] [stdout] | [INFO] [stdout] 301 | let mut cmd2 = Command::cargo_bin("gittera-sast").unwrap(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `assert_cmd::Command::cargo_bin`: incompatible with a custom cargo build-dir, see instead `cargo::cargo_bin_cmd!` [INFO] [stdout] --> tests/cli_tests.rs:317:28 [INFO] [stdout] | [INFO] [stdout] 317 | let mut cmd = Command::cargo_bin("gittera-sast").unwrap(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `assert_cmd::Command::cargo_bin`: incompatible with a custom cargo build-dir, see instead `cargo::cargo_bin_cmd!` [INFO] [stdout] --> tests/cli_tests.rs:329:28 [INFO] [stdout] | [INFO] [stdout] 329 | let mut cmd = Command::cargo_bin("gittera-sast").unwrap(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `assert_cmd::Command::cargo_bin`: incompatible with a custom cargo build-dir, see instead `cargo::cargo_bin_cmd!` [INFO] [stdout] --> tests/cli_tests.rs:345:28 [INFO] [stdout] | [INFO] [stdout] 345 | let mut cmd = Command::cargo_bin("gittera-sast").unwrap(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `assert_cmd::Command::cargo_bin`: incompatible with a custom cargo build-dir, see instead `cargo::cargo_bin_cmd!` [INFO] [stdout] --> tests/cli_tests.rs:366:28 [INFO] [stdout] | [INFO] [stdout] 366 | let mut cmd = Command::cargo_bin("gittera-sast").unwrap(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `assert_cmd::Command::cargo_bin`: incompatible with a custom cargo build-dir, see instead `cargo::cargo_bin_cmd!` [INFO] [stdout] --> tests/cli_tests.rs:384:28 [INFO] [stdout] | [INFO] [stdout] 384 | let mut cmd = Command::cargo_bin("gittera-sast").unwrap(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `assert_cmd::Command::cargo_bin`: incompatible with a custom cargo build-dir, see instead `cargo::cargo_bin_cmd!` [INFO] [stdout] --> tests/cli_tests.rs:393:28 [INFO] [stdout] | [INFO] [stdout] 393 | let mut cmd = Command::cargo_bin("gittera-sast").unwrap(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `assert_cmd::Command::cargo_bin`: incompatible with a custom cargo build-dir, see instead `cargo::cargo_bin_cmd!` [INFO] [stdout] --> tests/cli_tests.rs:415:28 [INFO] [stdout] | [INFO] [stdout] 415 | let mut cmd = Command::cargo_bin("gittera-sast").unwrap(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `assert_cmd::Command::cargo_bin`: incompatible with a custom cargo build-dir, see instead `cargo::cargo_bin_cmd!` [INFO] [stdout] --> tests/cli_tests.rs:430:28 [INFO] [stdout] | [INFO] [stdout] 430 | let mut cmd = Command::cargo_bin("gittera-sast").unwrap(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> tests/parallel_analysis_test.rs:314:14 [INFO] [stdout] | [INFO] [stdout] 314 | for (i, path) in chunk.iter().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs` [INFO] [stdout] --> crates/cache/tests/baseline_tests.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::fs; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Parser` [INFO] [stdout] --> tests/test_arena_parser.rs:8:41 [INFO] [stdout] | [INFO] [stdout] 8 | AstArena, Language, LanguageConfig, Parser, ParserArena, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> tests/parallel_analysis_test.rs:284:13 [INFO] [stdout] | [INFO] [stdout] 284 | assert!(total >= 0); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `q` [INFO] [stdout] --> tests/test_parser.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | Ok(q) => println!("Simple query works!"), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_q` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `failed` is never read [INFO] [stdout] --> tests/integration_tests.rs:52:17 [INFO] [stdout] | [INFO] [stdout] 52 | failed += 1; [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: value assigned to `failed` is never read [INFO] [stdout] --> tests/integration_tests.rs:106:17 [INFO] [stdout] | [INFO] [stdout] 106 | failed += 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 `node_count` is never read [INFO] [stdout] --> tests/integration_tests.rs:331:26 [INFO] [stdout] | [INFO] [stdout] 331 | let mut node_count = 0; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Baseline` [INFO] [stdout] --> tests/cache_workflow_integration_test.rs:1:41 [INFO] [stdout] | [INFO] [stdout] 1 | use gittera_cache::{Cache, CacheConfig, Baseline, BaselineManager, BaselineConfig}; [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: `LanguageConfig`, `Language`, and `Parser` [INFO] [stdout] --> tests/cache_workflow_integration_test.rs:3:22 [INFO] [stdout] | [INFO] [stdout] 3 | use gittera_parser::{Language, LanguageConfig, Parser}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Path` [INFO] [stdout] --> tests/cache_workflow_integration_test.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::path::Path; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `include_patterns` is never read [INFO] [stdout] --> src/discovery.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct DiscoveryConfig { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 28 | pub include_patterns: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DiscoveryConfig` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `file_path` and `error` are never read [INFO] [stdout] --> src/parallel.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct FileAnalysisResult { [INFO] [stdout] | ------------------ fields in this struct [INFO] [stdout] 21 | pub file_path: PathBuf, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub error: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FileAnalysisResult` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `analyze_files` and `analyze_single_file` are never used [INFO] [stdout] --> src/parallel.rs:62:12 [INFO] [stdout] | [INFO] [stdout] 56 | impl ParallelAnalyzer { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 62 | pub fn analyze_files( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 136 | fn analyze_single_file( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `failed_files` is never read [INFO] [stdout] --> src/parallel.rs:392:9 [INFO] [stdout] | [INFO] [stdout] 389 | pub struct AnalysisStatistics { [INFO] [stdout] | ------------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 392 | pub failed_files: usize, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AnalysisStatistics` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `include_patterns` is never read [INFO] [stdout] --> src/discovery.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct DiscoveryConfig { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 28 | pub include_patterns: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DiscoveryConfig` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `file_path` and `error` are never read [INFO] [stdout] --> src/parallel.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct FileAnalysisResult { [INFO] [stdout] | ------------------ fields in this struct [INFO] [stdout] 21 | pub file_path: PathBuf, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub error: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FileAnalysisResult` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `analyze_files` and `analyze_single_file` are never used [INFO] [stdout] --> src/parallel.rs:62:12 [INFO] [stdout] | [INFO] [stdout] 56 | impl ParallelAnalyzer { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 62 | pub fn analyze_files( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 136 | fn analyze_single_file( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `failed_files` is never read [INFO] [stdout] --> src/parallel.rs:392:9 [INFO] [stdout] | [INFO] [stdout] 389 | pub struct AnalysisStatistics { [INFO] [stdout] | ------------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 392 | pub failed_files: usize, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AnalysisStatistics` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 08s [INFO] running `Command { std: "docker" "inspect" "735260a74d46fd07869c1c290813e1a3353c9a598b63267b77b03dc55b0914bf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "735260a74d46fd07869c1c290813e1a3353c9a598b63267b77b03dc55b0914bf", kill_on_drop: false }` [INFO] [stdout] 735260a74d46fd07869c1c290813e1a3353c9a598b63267b77b03dc55b0914bf