[INFO] cloning repository https://github.com/xkillx/specter [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/xkillx/specter" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fxkillx%2Fspecter", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fxkillx%2Fspecter'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e337b2fe5a18591cec3a60238805e0db62da80b8 [INFO] checking xkillx/specter against try#54cf65b8d066c082e536455049b95943cf30378f for pr-151920 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fxkillx%2Fspecter" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/xkillx/specter [INFO] finished tweaking git repo https://github.com/xkillx/specter [INFO] tweaked toml for git repo https://github.com/xkillx/specter written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/xkillx/specter on toolchain 54cf65b8d066c082e536455049b95943cf30378f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+54cf65b8d066c082e536455049b95943cf30378f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/xkillx/specter 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" "+54cf65b8d066c082e536455049b95943cf30378f" "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 clap v4.5.56 [INFO] [stderr] Downloaded clap_builder v4.5.56 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:61361fe0aef631f17e9d025a70c5a647956f8c671dd02950a60ad3f5cc5526d7" "/opt/rustwide/cargo-home/bin/cargo" "+54cf65b8d066c082e536455049b95943cf30378f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] cf714b6129064ab4918f8c3042d8399935b7af3ec24ca2f19aee76c6a20cccf2 [INFO] running `Command { std: "docker" "start" "-a" "cf714b6129064ab4918f8c3042d8399935b7af3ec24ca2f19aee76c6a20cccf2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "cf714b6129064ab4918f8c3042d8399935b7af3ec24ca2f19aee76c6a20cccf2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cf714b6129064ab4918f8c3042d8399935b7af3ec24ca2f19aee76c6a20cccf2", kill_on_drop: false }` [INFO] [stdout] cf714b6129064ab4918f8c3042d8399935b7af3ec24ca2f19aee76c6a20cccf2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:61361fe0aef631f17e9d025a70c5a647956f8c671dd02950a60ad3f5cc5526d7" "/opt/rustwide/cargo-home/bin/cargo" "+54cf65b8d066c082e536455049b95943cf30378f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 74280bfb2c2fd697249f33fc1a88ca4a5b4aa1f47746e7725e5a736aeca3b168 [INFO] running `Command { std: "docker" "start" "-a" "74280bfb2c2fd697249f33fc1a88ca4a5b4aa1f47746e7725e5a736aeca3b168", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.106 [INFO] [stderr] Compiling libc v0.2.180 [INFO] [stderr] Compiling quote v1.0.44 [INFO] [stderr] Compiling find-msvc-tools v0.1.9 [INFO] [stderr] Compiling anstyle v1.0.13 [INFO] [stderr] Compiling clap_lex v0.7.7 [INFO] [stderr] Compiling zmij v1.0.19 [INFO] [stderr] Compiling portable-atomic v1.13.1 [INFO] [stderr] Checking regex-syntax v0.8.9 [INFO] [stderr] Compiling serde_json v1.0.149 [INFO] [stderr] Checking indexmap v2.13.0 [INFO] [stderr] Checking iana-time-zone v0.1.65 [INFO] [stderr] Checking unsafe-libyaml v0.2.11 [INFO] [stderr] Compiling cc v1.2.55 [INFO] [stderr] Checking clap_builder v4.5.56 [INFO] [stderr] Compiling syn v2.0.114 [INFO] [stderr] Compiling openssl-sys v0.9.111 [INFO] [stderr] Checking parking_lot_core v0.9.12 [INFO] [stderr] Checking errno v0.3.14 [INFO] [stderr] Checking mio v1.1.1 [INFO] [stderr] Checking socket2 v0.6.2 [INFO] [stderr] Checking console v0.15.11 [INFO] [stderr] Checking dirs-sys v0.4.1 [INFO] [stderr] Checking dirs v5.0.1 [INFO] [stderr] Checking signal-hook-registry v1.4.8 [INFO] [stderr] Checking parking_lot v0.12.5 [INFO] [stderr] Checking regex-automata v0.4.14 [INFO] [stderr] Compiling openssl v0.10.75 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Checking indicatif v0.17.11 [INFO] [stderr] Compiling clap v4.5.56 [INFO] [stderr] Compiling clap_complete v4.5.65 [INFO] [stderr] Compiling specter v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Checking regex v1.12.3 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling tokio-macros v2.6.0 [INFO] [stderr] Compiling clap_derive v4.5.55 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Checking tokio v1.49.0 [INFO] [stderr] Checking serde v1.0.228 [INFO] [stderr] Checking serde_yaml v0.9.34+deprecated [INFO] [stderr] Checking chrono v0.4.43 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stdout] warning: unused import: `Colorize` [INFO] [stdout] --> src/output.rs:5:25 [INFO] [stdout] | [INFO] [stdout] 5 | use colored::{Colorize, Colorize as _}; [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: `Colorize` [INFO] [stdout] --> src/output.rs:5:25 [INFO] [stdout] | [INFO] [stdout] 5 | use colored::{Colorize, Colorize as _}; [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 variable: `confidence_color` [INFO] [stdout] --> src/output.rs:285:9 [INFO] [stdout] | [INFO] [stdout] 285 | let confidence_color = if confidence_percent >= 90 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_confidence_color` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> src/output.rs:375:66 [INFO] [stdout] | [INFO] [stdout] 375 | pub fn print_summary(manager: &OutputManager, stats: &ScanStats, target: &str) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_target` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `confidence_color` [INFO] [stdout] --> src/output.rs:285:9 [INFO] [stdout] | [INFO] [stdout] 285 | let confidence_color = if confidence_percent >= 90 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_confidence_color` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> src/output.rs:375:66 [INFO] [stdout] | [INFO] [stdout] 375 | pub fn print_summary(manager: &OutputManager, stats: &ScanStats, target: &str) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_target` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `ports` is never used [INFO] [stdout] --> src/cli.rs:114:12 [INFO] [stdout] | [INFO] [stdout] 112 | impl ScanProfile { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] 113 | /// Get default ports for this profile [INFO] [stdout] 114 | pub fn ports(&self) -> &'static str { [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 items `create_default` and `save` are never used [INFO] [stdout] --> src/config.rs:239:12 [INFO] [stdout] | [INFO] [stdout] 183 | impl Config { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 239 | pub fn create_default() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 264 | pub fn save>(&self, path: P) -> Result<()> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_SUCCESS` is never used [INFO] [stdout] --> src/error.rs:10:11 [INFO] [stdout] | [INFO] [stdout] 10 | pub const EXIT_SUCCESS: i32 = 0; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Protocol` and `Fingerprint` are never constructed [INFO] [stdout] --> src/error.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 20 | pub enum SpecterError { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] ... [INFO] [stdout] 25 | Protocol(ProtocolError), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | Fingerprint(FingerprintError), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SpecterError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `DnsFailed`, `ConnectionRefused`, and `ConnectionTimeout` are never constructed [INFO] [stdout] --> src/error.rs:72:5 [INFO] [stdout] | [INFO] [stdout] 71 | pub enum NetworkError { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] 72 | DnsFailed { host: String }, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 73 | ConnectionRefused { host: String, port: u16 }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 74 | ConnectionTimeout { host: String, port: u16, timeout_ms: u64 }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `NetworkError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `MalformedResponse`, `UnexpectedBehavior`, and `ProbeFailed` are never constructed [INFO] [stdout] --> src/error.rs:170:5 [INFO] [stdout] | [INFO] [stdout] 169 | pub enum ProtocolError { [INFO] [stdout] | ------------- variants in this enum [INFO] [stdout] 170 | MalformedResponse { protocol: String, details: String }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 171 | UnexpectedBehavior { protocol: String, details: String }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 172 | ProbeFailed { protocol: String, reason: String }, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ProtocolError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `InvalidTimeout`, `InvalidConcurrency`, and `ParseError` are never constructed [INFO] [stdout] --> src/error.rs:229:5 [INFO] [stdout] | [INFO] [stdout] 227 | pub enum ConfigError { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] 228 | InvalidPortRange { range: String, reason: String }, [INFO] [stdout] 229 | InvalidTimeout { value: String, reason: String }, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 230 | InvalidConcurrency { value: String, reason: String }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 231 | MissingFile { path: String }, [INFO] [stdout] 232 | ParseError { file: String, error: String }, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ConfigError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `DatabaseLoadError`, `InvalidPattern`, and `InvalidRule` are never constructed [INFO] [stdout] --> src/error.rs:325:5 [INFO] [stdout] | [INFO] [stdout] 324 | pub enum FingerprintError { [INFO] [stdout] | ---------------- variants in this enum [INFO] [stdout] 325 | DatabaseLoadError { path: String, error: String }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 326 | InvalidPattern { pattern: String, error: String }, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 327 | InvalidRule { rule_id: String, reason: String }, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FingerprintError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `DiskSpace` is never constructed [INFO] [stdout] --> src/error.rs:391:5 [INFO] [stdout] | [INFO] [stdout] 389 | pub enum IoError { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] 390 | PermissionDenied { path: String, operation: String }, [INFO] [stdout] 391 | DiskSpace { path: String }, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `IoError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `ConnectionTimeout`, `InvalidTarget`, and `DnsResolutionFailed` are never constructed [INFO] [stdout] --> src/scanner/error.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum ScanError { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 6 | ConnectionTimeout, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 7 | InvalidTarget(String), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 8 | NetworkError(io::Error), [INFO] [stdout] 9 | DnsResolutionFailed(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ScanError` 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 `name`, `protocol`, and `should_probe` are never used [INFO] [stdout] --> src/probe/mod.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub trait Probe: Send + Sync { [INFO] [stdout] | ----- methods in this trait [INFO] [stdout] 26 | /// Get the name of this probe [INFO] [stdout] 27 | fn name(&self) -> &str; [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | fn protocol(&self) -> &str; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | fn should_probe(&self, port: u16) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `ProbeClone` is never used [INFO] [stdout] --> src/probe/mod.rs:50:11 [INFO] [stdout] | [INFO] [stdout] 50 | pub trait ProbeClone: Send + Sync { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ConnectionRefused` is never constructed [INFO] [stdout] --> src/probe/mod.rs:63:5 [INFO] [stdout] | [INFO] [stdout] 61 | pub enum ProbeError { [INFO] [stdout] | ---------- variant in this enum [INFO] [stdout] 62 | Timeout, [INFO] [stdout] 63 | ConnectionRefused, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ProbeError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `all_probes` is never used [INFO] [stdout] --> src/probe/registry.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl ProbeRegistry { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 49 | pub fn all_probes(&self) -> &[Arc] { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `MatchingError` is never constructed [INFO] [stdout] --> src/fingerprint/mod.rs:170:5 [INFO] [stdout] | [INFO] [stdout] 166 | pub enum FingerprintError { [INFO] [stdout] | ---------------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 170 | MatchingError(String), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FingerprintError` 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 `by_service` is never read [INFO] [stdout] --> src/fingerprint/database.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct FingerprintDatabase { [INFO] [stdout] | ------------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 14 | pub by_service: HashMap>, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FingerprintDatabase` 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 `get_rules_for_service` is never used [INFO] [stdout] --> src/fingerprint/database.rs:121:12 [INFO] [stdout] | [INFO] [stdout] 23 | impl FingerprintDatabase { [INFO] [stdout] | ------------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 121 | pub fn get_rules_for_service(&self, service: &str) -> Vec<&FingerprintRule> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `debug` is never used [INFO] [stdout] --> src/output.rs:107:12 [INFO] [stdout] | [INFO] [stdout] 39 | impl OutputManager { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 107 | pub fn debug(&self, msg: &str) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_scan_progress` is never used [INFO] [stdout] --> src/output.rs:220:8 [INFO] [stdout] | [INFO] [stdout] 220 | pub fn print_scan_progress(manager: &OutputManager, port: u16, status: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `ColorizeExt` is never used [INFO] [stdout] --> src/output.rs:433:11 [INFO] [stdout] | [INFO] [stdout] 433 | pub trait ColorizeExt { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Color` is never used [INFO] [stdout] --> src/output.rs:438:10 [INFO] [stdout] | [INFO] [stdout] 438 | pub enum Color { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_probe_results` is never used [INFO] [stdout] --> src/output.rs:471:8 [INFO] [stdout] | [INFO] [stdout] 471 | pub fn print_probe_results(port: u16, responses: &[Result]) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_fingerprint_legacy` is never used [INFO] [stdout] --> src/output.rs:533:8 [INFO] [stdout] | [INFO] [stdout] 533 | pub fn print_fingerprint_legacy(port: u16, match_result: &FingerprintMatch, features: &[Features]) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_ip` is never used [INFO] [stdout] --> src/json_output.rs:128:12 [INFO] [stdout] | [INFO] [stdout] 73 | impl JsonOutput { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 128 | pub fn set_ip(&mut self, ip: String) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `with_service_detection` is never used [INFO] [stdout] --> src/json_output.rs:157:12 [INFO] [stdout] | [INFO] [stdout] 143 | impl PortResult { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 157 | pub fn with_service_detection(mut self, detection: ServiceDetection) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_fingerprint` is never used [INFO] [stdout] --> src/json_output.rs:337:12 [INFO] [stdout] | [INFO] [stdout] 335 | impl ServiceDetection { [INFO] [stdout] | --------------------- associated function in this implementation [INFO] [stdout] 336 | /// Create service detection from fingerprint match [INFO] [stdout] 337 | pub fn from_fingerprint(match_result: &FingerprintMatch) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_json_file` is never used [INFO] [stdout] --> src/json_output.rs:352:8 [INFO] [stdout] | [INFO] [stdout] 352 | pub fn write_json_file( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `ports` is never used [INFO] [stdout] --> src/cli.rs:114:12 [INFO] [stdout] | [INFO] [stdout] 112 | impl ScanProfile { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] 113 | /// Get default ports for this profile [INFO] [stdout] 114 | pub fn ports(&self) -> &'static str { [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 items `create_default` and `save` are never used [INFO] [stdout] --> src/config.rs:239:12 [INFO] [stdout] | [INFO] [stdout] 183 | impl Config { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 239 | pub fn create_default() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 264 | pub fn save>(&self, path: P) -> Result<()> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_SUCCESS` is never used [INFO] [stdout] --> src/error.rs:10:11 [INFO] [stdout] | [INFO] [stdout] 10 | pub const EXIT_SUCCESS: i32 = 0; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Protocol` and `Fingerprint` are never constructed [INFO] [stdout] --> src/error.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 20 | pub enum SpecterError { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] ... [INFO] [stdout] 25 | Protocol(ProtocolError), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | Fingerprint(FingerprintError), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SpecterError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `DnsFailed`, `ConnectionRefused`, and `ConnectionTimeout` are never constructed [INFO] [stdout] --> src/error.rs:72:5 [INFO] [stdout] | [INFO] [stdout] 71 | pub enum NetworkError { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] 72 | DnsFailed { host: String }, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 73 | ConnectionRefused { host: String, port: u16 }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 74 | ConnectionTimeout { host: String, port: u16, timeout_ms: u64 }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `NetworkError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `MalformedResponse`, `UnexpectedBehavior`, and `ProbeFailed` are never constructed [INFO] [stdout] --> src/error.rs:170:5 [INFO] [stdout] | [INFO] [stdout] 169 | pub enum ProtocolError { [INFO] [stdout] | ------------- variants in this enum [INFO] [stdout] 170 | MalformedResponse { protocol: String, details: String }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 171 | UnexpectedBehavior { protocol: String, details: String }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 172 | ProbeFailed { protocol: String, reason: String }, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ProtocolError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `InvalidTimeout`, `InvalidConcurrency`, and `ParseError` are never constructed [INFO] [stdout] --> src/error.rs:229:5 [INFO] [stdout] | [INFO] [stdout] 227 | pub enum ConfigError { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] 228 | InvalidPortRange { range: String, reason: String }, [INFO] [stdout] 229 | InvalidTimeout { value: String, reason: String }, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 230 | InvalidConcurrency { value: String, reason: String }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 231 | MissingFile { path: String }, [INFO] [stdout] 232 | ParseError { file: String, error: String }, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ConfigError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `DatabaseLoadError`, `InvalidPattern`, and `InvalidRule` are never constructed [INFO] [stdout] --> src/error.rs:325:5 [INFO] [stdout] | [INFO] [stdout] 324 | pub enum FingerprintError { [INFO] [stdout] | ---------------- variants in this enum [INFO] [stdout] 325 | DatabaseLoadError { path: String, error: String }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 326 | InvalidPattern { pattern: String, error: String }, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 327 | InvalidRule { rule_id: String, reason: String }, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FingerprintError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `DiskSpace` is never constructed [INFO] [stdout] --> src/error.rs:391:5 [INFO] [stdout] | [INFO] [stdout] 389 | pub enum IoError { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] 390 | PermissionDenied { path: String, operation: String }, [INFO] [stdout] 391 | DiskSpace { path: String }, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `IoError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `ConnectionTimeout`, `InvalidTarget`, and `DnsResolutionFailed` are never constructed [INFO] [stdout] --> src/scanner/error.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum ScanError { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 6 | ConnectionTimeout, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 7 | InvalidTarget(String), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 8 | NetworkError(io::Error), [INFO] [stdout] 9 | DnsResolutionFailed(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ScanError` 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 `name`, `protocol`, and `should_probe` are never used [INFO] [stdout] --> src/probe/mod.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub trait Probe: Send + Sync { [INFO] [stdout] | ----- methods in this trait [INFO] [stdout] 26 | /// Get the name of this probe [INFO] [stdout] 27 | fn name(&self) -> &str; [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | fn protocol(&self) -> &str; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | fn should_probe(&self, port: u16) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `ProbeClone` is never used [INFO] [stdout] --> src/probe/mod.rs:50:11 [INFO] [stdout] | [INFO] [stdout] 50 | pub trait ProbeClone: Send + Sync { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ConnectionRefused` is never constructed [INFO] [stdout] --> src/probe/mod.rs:63:5 [INFO] [stdout] | [INFO] [stdout] 61 | pub enum ProbeError { [INFO] [stdout] | ---------- variant in this enum [INFO] [stdout] 62 | Timeout, [INFO] [stdout] 63 | ConnectionRefused, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ProbeError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `all_probes` is never used [INFO] [stdout] --> src/probe/registry.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl ProbeRegistry { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 49 | pub fn all_probes(&self) -> &[Arc] { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `MatchingError` is never constructed [INFO] [stdout] --> src/fingerprint/mod.rs:170:5 [INFO] [stdout] | [INFO] [stdout] 166 | pub enum FingerprintError { [INFO] [stdout] | ---------------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 170 | MatchingError(String), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FingerprintError` 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 `by_service` is never read [INFO] [stdout] --> src/fingerprint/database.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct FingerprintDatabase { [INFO] [stdout] | ------------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 14 | pub by_service: HashMap>, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FingerprintDatabase` 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 `get_rules_for_service` is never used [INFO] [stdout] --> src/fingerprint/database.rs:121:12 [INFO] [stdout] | [INFO] [stdout] 23 | impl FingerprintDatabase { [INFO] [stdout] | ------------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 121 | pub fn get_rules_for_service(&self, service: &str) -> Vec<&FingerprintRule> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `debug` is never used [INFO] [stdout] --> src/output.rs:107:12 [INFO] [stdout] | [INFO] [stdout] 39 | impl OutputManager { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 107 | pub fn debug(&self, msg: &str) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_scan_progress` is never used [INFO] [stdout] --> src/output.rs:220:8 [INFO] [stdout] | [INFO] [stdout] 220 | pub fn print_scan_progress(manager: &OutputManager, port: u16, status: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `ColorizeExt` is never used [INFO] [stdout] --> src/output.rs:433:11 [INFO] [stdout] | [INFO] [stdout] 433 | pub trait ColorizeExt { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Color` is never used [INFO] [stdout] --> src/output.rs:438:10 [INFO] [stdout] | [INFO] [stdout] 438 | pub enum Color { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_probe_results` is never used [INFO] [stdout] --> src/output.rs:471:8 [INFO] [stdout] | [INFO] [stdout] 471 | pub fn print_probe_results(port: u16, responses: &[Result]) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_fingerprint_legacy` is never used [INFO] [stdout] --> src/output.rs:533:8 [INFO] [stdout] | [INFO] [stdout] 533 | pub fn print_fingerprint_legacy(port: u16, match_result: &FingerprintMatch, features: &[Features]) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_ip` is never used [INFO] [stdout] --> src/json_output.rs:128:12 [INFO] [stdout] | [INFO] [stdout] 73 | impl JsonOutput { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 128 | pub fn set_ip(&mut self, ip: String) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `with_service_detection` is never used [INFO] [stdout] --> src/json_output.rs:157:12 [INFO] [stdout] | [INFO] [stdout] 143 | impl PortResult { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 157 | pub fn with_service_detection(mut self, detection: ServiceDetection) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_fingerprint` is never used [INFO] [stdout] --> src/json_output.rs:337:12 [INFO] [stdout] | [INFO] [stdout] 335 | impl ServiceDetection { [INFO] [stdout] | --------------------- associated function in this implementation [INFO] [stdout] 336 | /// Create service detection from fingerprint match [INFO] [stdout] 337 | pub fn from_fingerprint(match_result: &FingerprintMatch) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_json_file` is never used [INFO] [stdout] --> src/json_output.rs:352:8 [INFO] [stdout] | [INFO] [stdout] 352 | pub fn write_json_file( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 12.82s [INFO] running `Command { std: "docker" "inspect" "74280bfb2c2fd697249f33fc1a88ca4a5b4aa1f47746e7725e5a736aeca3b168", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "74280bfb2c2fd697249f33fc1a88ca4a5b4aa1f47746e7725e5a736aeca3b168", kill_on_drop: false }` [INFO] [stdout] 74280bfb2c2fd697249f33fc1a88ca4a5b4aa1f47746e7725e5a736aeca3b168