[INFO] cloning repository https://github.com/cryptexctl/rustcan [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/cryptexctl/rustcan" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcryptexctl%2Frustcan", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcryptexctl%2Frustcan'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d770b492303ee322807a9f4462a2889e5dc59a3b [INFO] testing cryptexctl/rustcan against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcryptexctl%2Frustcan" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/cryptexctl/rustcan [INFO] finished tweaking git repo https://github.com/cryptexctl/rustcan [INFO] tweaked toml for git repo https://github.com/cryptexctl/rustcan written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/cryptexctl/rustcan on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/cryptexctl/rustcan 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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded ipnetwork v0.20.0 [INFO] [stderr] Downloaded data-encoding v2.8.0 [INFO] [stderr] Downloaded hostname v0.4.0 [INFO] [stderr] Downloaded widestring v1.2.0 [INFO] [stderr] Downloaded iana-time-zone v0.1.62 [INFO] [stderr] Downloaded resolv-conf v0.7.1 [INFO] [stderr] Downloaded crossbeam-channel v0.5.14 [INFO] [stderr] Downloaded cc v1.2.17 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d7854f31aa1c61f3e18c431c1243c8a75931d3f7d37124c2dafea99ac57f7a70 [INFO] running `Command { std: "docker" "start" "-a" "d7854f31aa1c61f3e18c431c1243c8a75931d3f7d37124c2dafea99ac57f7a70", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d7854f31aa1c61f3e18c431c1243c8a75931d3f7d37124c2dafea99ac57f7a70", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d7854f31aa1c61f3e18c431c1243c8a75931d3f7d37124c2dafea99ac57f7a70", kill_on_drop: false }` [INFO] [stdout] d7854f31aa1c61f3e18c431c1243c8a75931d3f7d37124c2dafea99ac57f7a70 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 592d90e3a0e32d048c5e6023b45926aec69f4a496423e30a811732bac76ece11 [INFO] running `Command { std: "docker" "start" "-a" "592d90e3a0e32d048c5e6023b45926aec69f4a496423e30a811732bac76ece11", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.94 [INFO] [stderr] Compiling libc v0.2.171 [INFO] [stderr] Compiling writeable v0.5.5 [INFO] [stderr] Compiling icu_locid_transform_data v1.5.1 [INFO] [stderr] Compiling smallvec v1.14.0 [INFO] [stderr] Compiling litemap v0.7.5 [INFO] [stderr] Compiling icu_properties_data v1.5.1 [INFO] [stderr] Compiling icu_normalizer_data v1.5.1 [INFO] [stderr] Compiling zerocopy v0.8.24 [INFO] [stderr] Compiling write16 v1.0.0 [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Compiling futures-core v0.3.31 [INFO] [stderr] Compiling utf16_iter v1.0.5 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling utf8parse v0.2.2 [INFO] [stderr] Compiling percent-encoding v2.3.1 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling anstyle-parse v0.2.6 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling colorchoice v1.0.3 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling portable-atomic v1.11.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling is_terminal_polyfill v1.70.1 [INFO] [stderr] Compiling anstyle v1.0.10 [INFO] [stderr] Compiling anstyle-query v1.1.2 [INFO] [stderr] Compiling unicode-bidi v0.3.18 [INFO] [stderr] Compiling anyhow v1.0.97 [INFO] [stderr] Compiling data-encoding v2.8.0 [INFO] [stderr] Compiling overload v0.1.1 [INFO] [stderr] Compiling clap_lex v0.7.4 [INFO] [stderr] Compiling strsim v0.11.1 [INFO] [stderr] Compiling unicode-width v0.2.0 [INFO] [stderr] Compiling nu-ansi-term v0.46.0 [INFO] [stderr] Compiling tracing-log v0.2.0 [INFO] [stderr] Compiling sharded-slab v0.1.7 [INFO] [stderr] Compiling thread_local v1.1.8 [INFO] [stderr] Compiling idna v0.2.3 [INFO] [stderr] Compiling number_prefix v0.4.0 [INFO] [stderr] Compiling iana-time-zone v0.1.62 [INFO] [stderr] Compiling anstream v0.6.18 [INFO] [stderr] Compiling tracing-subscriber v0.3.19 [INFO] [stderr] Compiling chrono v0.4.40 [INFO] [stderr] Compiling crossbeam-channel v0.5.14 [INFO] [stderr] Compiling clap_builder v4.5.34 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling socket2 v0.5.8 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling mio v1.0.3 [INFO] [stderr] Compiling hostname v0.4.0 [INFO] [stderr] Compiling console v0.15.11 [INFO] [stderr] Compiling syn v2.0.100 [INFO] [stderr] Compiling resolv-conf v0.7.1 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling indicatif v0.17.11 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling enum-as-inner v0.5.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Compiling zerovec-derive v0.10.3 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling icu_provider_macros v1.5.0 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.7.5 [INFO] [stderr] Compiling tracing-attributes v0.1.28 [INFO] [stderr] Compiling async-trait v0.1.88 [INFO] [stderr] Compiling clap_derive v4.5.32 [INFO] [stderr] Compiling tokio v1.44.1 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling yoke v0.7.5 [INFO] [stderr] Compiling zerovec v0.10.4 [INFO] [stderr] Compiling clap v4.5.34 [INFO] [stderr] Compiling tinystr v0.7.6 [INFO] [stderr] Compiling icu_collections v1.5.0 [INFO] [stderr] Compiling icu_locid v1.5.0 [INFO] [stderr] Compiling icu_provider v1.5.0 [INFO] [stderr] Compiling icu_locid_transform v1.5.0 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling icu_properties v1.5.1 [INFO] [stderr] Compiling ipnetwork v0.20.0 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling icu_normalizer v1.5.0 [INFO] [stderr] Compiling idna_adapter v1.2.0 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling trust-dns-proto v0.22.0 [INFO] [stderr] Compiling trust-dns-resolver v0.22.0 [INFO] [stderr] Compiling rustcan v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: constant `MAX_RETRIES` is never used [INFO] [stdout] --> src/scanner.rs:14:7 [INFO] [stdout] | [INFO] [stdout] 14 | const MAX_RETRIES: u32 = 2; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RETRY_DELAY` is never used [INFO] [stdout] --> src/scanner.rs:15:7 [INFO] [stdout] | [INFO] [stdout] 15 | const RETRY_DELAY: u64 = 100; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Context` [INFO] [stdout] --> src/main.rs:10:22 [INFO] [stdout] | [INFO] [stdout] 10 | use anyhow::{Result, Context}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `resolve_target` is never used [INFO] [stdout] --> src/main.rs:53:4 [INFO] [stdout] | [INFO] [stdout] 53 | fn resolve_target(target: &str, subnet: bool) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_issue_template` is never used [INFO] [stdout] --> src/main.rs:89:4 [INFO] [stdout] | [INFO] [stdout] 89 | fn generate_issue_template(result: &ScanResult) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_RETRIES` is never used [INFO] [stdout] --> src/scanner.rs:14:7 [INFO] [stdout] | [INFO] [stdout] 14 | const MAX_RETRIES: u32 = 2; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RETRY_DELAY` is never used [INFO] [stdout] --> src/scanner.rs:15:7 [INFO] [stdout] | [INFO] [stdout] 15 | const RETRY_DELAY: u64 = 100; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `format_scan_result` is never used [INFO] [stdout] --> src/utils.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn format_scan_result(result: &ScanResult) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `vulnerability_patterns`, `total_wait_ms`, and `tcp_wrapped_ms` are never read [INFO] [stdout] --> src/types.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct ServicePattern { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 24 | pub vulnerability_patterns: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 25 | pub total_wait_ms: u64, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 26 | pub tcp_wrapped_ms: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ServicePattern` 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: field `raw_response` is never read [INFO] [stdout] --> src/types.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct ScanResult { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 34 | pub raw_response: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ScanResult` 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: struct `NmapService` is never constructed [INFO] [stdout] --> src/types.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub struct NmapService { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name` and `protocol` are never read [INFO] [stdout] --> src/types.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 46 | pub struct NmapProbe { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 47 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 48 | pub protocol: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `NmapProbe` 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: struct `Protocol` is never constructed [INFO] [stdout] --> src/types.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 67 | pub struct Protocol { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MacPrefix` is never constructed [INFO] [stdout] --> src/types.rs:74:12 [INFO] [stdout] | [INFO] [stdout] 74 | pub struct MacPrefix { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RpcInfo` is never constructed [INFO] [stdout] --> src/types.rs:80:12 [INFO] [stdout] | [INFO] [stdout] 80 | pub struct RpcInfo { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_protocol` is never used [INFO] [stdout] --> src/patterns.rs:92:8 [INFO] [stdout] | [INFO] [stdout] 92 | pub fn get_protocol(name: &str) -> Option<&Protocol> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_mac_vendor` is never used [INFO] [stdout] --> src/patterns.rs:96:8 [INFO] [stdout] | [INFO] [stdout] 96 | pub fn get_mac_vendor(prefix: &str) -> Option<&String> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_rpc_info` is never used [INFO] [stdout] --> src/patterns.rs:100:8 [INFO] [stdout] | [INFO] [stdout] 100 | pub fn get_rpc_info<'a>(program: &'a str, version: &'a str) -> Option<&'static RpcInfo> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_services_by_port` is never used [INFO] [stdout] --> src/patterns.rs:104:8 [INFO] [stdout] | [INFO] [stdout] 104 | pub fn get_services_by_port(port: u16) -> Option<&'static Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `load_nmap_services` is never used [INFO] [stdout] --> src/patterns.rs:198:8 [INFO] [stdout] | [INFO] [stdout] 198 | pub fn load_nmap_services(file_path: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `load_protocols` is never used [INFO] [stdout] --> src/patterns.rs:334:8 [INFO] [stdout] | [INFO] [stdout] 334 | pub fn load_protocols(file_path: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `load_mac_prefixes` is never used [INFO] [stdout] --> src/patterns.rs:370:8 [INFO] [stdout] | [INFO] [stdout] 370 | pub fn load_mac_prefixes(file_path: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `load_rpc_info` is never used [INFO] [stdout] --> src/patterns.rs:399:8 [INFO] [stdout] | [INFO] [stdout] 399 | pub fn load_rpc_info(file_path: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 52.68s [INFO] running `Command { std: "docker" "inspect" "592d90e3a0e32d048c5e6023b45926aec69f4a496423e30a811732bac76ece11", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "592d90e3a0e32d048c5e6023b45926aec69f4a496423e30a811732bac76ece11", kill_on_drop: false }` [INFO] [stdout] 592d90e3a0e32d048c5e6023b45926aec69f4a496423e30a811732bac76ece11 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ebd188d8ed5fad03b1b410a993db459dd08c3a5754107039e0da0c610992c393 [INFO] running `Command { std: "docker" "start" "-a" "ebd188d8ed5fad03b1b410a993db459dd08c3a5754107039e0da0c610992c393", kill_on_drop: false }` [INFO] [stdout] warning: constant `MAX_RETRIES` is never used [INFO] [stdout] --> src/scanner.rs:14:7 [INFO] [stdout] | [INFO] [stdout] 14 | const MAX_RETRIES: u32 = 2; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RETRY_DELAY` is never used [INFO] [stdout] --> src/scanner.rs:15:7 [INFO] [stdout] | [INFO] [stdout] 15 | const RETRY_DELAY: u64 = 100; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling rustcan v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Context` [INFO] [stdout] --> src/main.rs:10:22 [INFO] [stdout] | [INFO] [stdout] 10 | use anyhow::{Result, Context}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `resolve_target` is never used [INFO] [stdout] --> src/main.rs:53:4 [INFO] [stdout] | [INFO] [stdout] 53 | fn resolve_target(target: &str, subnet: bool) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_issue_template` is never used [INFO] [stdout] --> src/main.rs:89:4 [INFO] [stdout] | [INFO] [stdout] 89 | fn generate_issue_template(result: &ScanResult) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_RETRIES` is never used [INFO] [stdout] --> src/scanner.rs:14:7 [INFO] [stdout] | [INFO] [stdout] 14 | const MAX_RETRIES: u32 = 2; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RETRY_DELAY` is never used [INFO] [stdout] --> src/scanner.rs:15:7 [INFO] [stdout] | [INFO] [stdout] 15 | const RETRY_DELAY: u64 = 100; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `format_scan_result` is never used [INFO] [stdout] --> src/utils.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn format_scan_result(result: &ScanResult) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `vulnerability_patterns`, `total_wait_ms`, and `tcp_wrapped_ms` are never read [INFO] [stdout] --> src/types.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct ServicePattern { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 24 | pub vulnerability_patterns: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 25 | pub total_wait_ms: u64, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 26 | pub tcp_wrapped_ms: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ServicePattern` 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: field `raw_response` is never read [INFO] [stdout] --> src/types.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct ScanResult { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 34 | pub raw_response: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ScanResult` 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: struct `NmapService` is never constructed [INFO] [stdout] --> src/types.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub struct NmapService { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name` and `protocol` are never read [INFO] [stdout] --> src/types.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 46 | pub struct NmapProbe { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 47 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 48 | pub protocol: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `NmapProbe` 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: struct `Protocol` is never constructed [INFO] [stdout] --> src/types.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 67 | pub struct Protocol { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MacPrefix` is never constructed [INFO] [stdout] --> src/types.rs:74:12 [INFO] [stdout] | [INFO] [stdout] 74 | pub struct MacPrefix { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RpcInfo` is never constructed [INFO] [stdout] --> src/types.rs:80:12 [INFO] [stdout] | [INFO] [stdout] 80 | pub struct RpcInfo { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_protocol` is never used [INFO] [stdout] --> src/patterns.rs:92:8 [INFO] [stdout] | [INFO] [stdout] 92 | pub fn get_protocol(name: &str) -> Option<&Protocol> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_mac_vendor` is never used [INFO] [stdout] --> src/patterns.rs:96:8 [INFO] [stdout] | [INFO] [stdout] 96 | pub fn get_mac_vendor(prefix: &str) -> Option<&String> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_rpc_info` is never used [INFO] [stdout] --> src/patterns.rs:100:8 [INFO] [stdout] | [INFO] [stdout] 100 | pub fn get_rpc_info<'a>(program: &'a str, version: &'a str) -> Option<&'static RpcInfo> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_services_by_port` is never used [INFO] [stdout] --> src/patterns.rs:104:8 [INFO] [stdout] | [INFO] [stdout] 104 | pub fn get_services_by_port(port: u16) -> Option<&'static Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `load_nmap_services` is never used [INFO] [stdout] --> src/patterns.rs:198:8 [INFO] [stdout] | [INFO] [stdout] 198 | pub fn load_nmap_services(file_path: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `load_protocols` is never used [INFO] [stdout] --> src/patterns.rs:334:8 [INFO] [stdout] | [INFO] [stdout] 334 | pub fn load_protocols(file_path: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `load_mac_prefixes` is never used [INFO] [stdout] --> src/patterns.rs:370:8 [INFO] [stdout] | [INFO] [stdout] 370 | pub fn load_mac_prefixes(file_path: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `load_rpc_info` is never used [INFO] [stdout] --> src/patterns.rs:399:8 [INFO] [stdout] | [INFO] [stdout] 399 | pub fn load_rpc_info(file_path: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_RETRIES` is never used [INFO] [stdout] --> src/scanner.rs:14:7 [INFO] [stdout] | [INFO] [stdout] 14 | const MAX_RETRIES: u32 = 2; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RETRY_DELAY` is never used [INFO] [stdout] --> src/scanner.rs:15:7 [INFO] [stdout] | [INFO] [stdout] 15 | const RETRY_DELAY: u64 = 100; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.00s [INFO] running `Command { std: "docker" "inspect" "ebd188d8ed5fad03b1b410a993db459dd08c3a5754107039e0da0c610992c393", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ebd188d8ed5fad03b1b410a993db459dd08c3a5754107039e0da0c610992c393", kill_on_drop: false }` [INFO] [stdout] ebd188d8ed5fad03b1b410a993db459dd08c3a5754107039e0da0c610992c393 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 32b0b75c4ba522141a56a0eee57266194e3631819170ef0e1806e5b9ffd1af66 [INFO] running `Command { std: "docker" "start" "-a" "32b0b75c4ba522141a56a0eee57266194e3631819170ef0e1806e5b9ffd1af66", kill_on_drop: false }` [INFO] [stderr] warning: constant `MAX_RETRIES` is never used [INFO] [stderr] --> src/scanner.rs:14:7 [INFO] [stderr] | [INFO] [stderr] 14 | const MAX_RETRIES: u32 = 2; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: constant `RETRY_DELAY` is never used [INFO] [stderr] --> src/scanner.rs:15:7 [INFO] [stderr] | [INFO] [stderr] 15 | const RETRY_DELAY: u64 = 100; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `rustcan` (lib) generated 2 warnings [INFO] [stderr] warning: `rustcan` (lib test) generated 2 warnings (2 duplicates) [INFO] [stderr] warning: unused import: `Context` [INFO] [stderr] --> src/main.rs:10:22 [INFO] [stderr] | [INFO] [stderr] 10 | use anyhow::{Result, Context}; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: function `resolve_target` is never used [INFO] [stderr] --> src/main.rs:53:4 [INFO] [stderr] | [INFO] [stderr] 53 | fn resolve_target(target: &str, subnet: bool) -> Result> { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: function `generate_issue_template` is never used [INFO] [stderr] --> src/main.rs:89:4 [INFO] [stderr] | [INFO] [stderr] 89 | fn generate_issue_template(result: &ScanResult) -> String { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `MAX_RETRIES` is never used [INFO] [stderr] --> src/scanner.rs:14:7 [INFO] [stderr] | [INFO] [stderr] 14 | const MAX_RETRIES: u32 = 2; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `format_scan_result` is never used [INFO] [stderr] --> src/utils.rs:3:8 [INFO] [stderr] | [INFO] [stderr] 3 | pub fn format_scan_result(result: &ScanResult) -> String { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `vulnerability_patterns`, `total_wait_ms`, and `tcp_wrapped_ms` are never read [INFO] [stderr] --> src/types.rs:24:9 [INFO] [stderr] | [INFO] [stderr] 15 | pub struct ServicePattern { [INFO] [stderr] | -------------- fields in this struct [INFO] [stderr] ... [INFO] [stderr] 24 | pub vulnerability_patterns: Vec, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 25 | pub total_wait_ms: u64, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] 26 | pub tcp_wrapped_ms: u64, [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `ServicePattern` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: field `raw_response` is never read [INFO] [stderr] --> src/types.rs:34:9 [INFO] [stderr] | [INFO] [stderr] 30 | pub struct ScanResult { [INFO] [stderr] | ---------- field in this struct [INFO] [stderr] ... [INFO] [stderr] 34 | pub raw_response: String, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `ScanResult` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: struct `NmapService` is never constructed [INFO] [stderr] --> src/types.rs:38:12 [INFO] [stderr] | [INFO] [stderr] 38 | pub struct NmapService { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `name` and `protocol` are never read [INFO] [stderr] --> src/types.rs:47:9 [INFO] [stderr] | [INFO] [stderr] 46 | pub struct NmapProbe { [INFO] [stderr] | --------- fields in this struct [INFO] [stderr] 47 | pub name: String, [INFO] [stderr] | ^^^^ [INFO] [stderr] 48 | pub protocol: String, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `NmapProbe` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: struct `Protocol` is never constructed [INFO] [stderr] --> src/types.rs:67:12 [INFO] [stderr] | [INFO] [stderr] 67 | pub struct Protocol { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `MacPrefix` is never constructed [INFO] [stderr] --> src/types.rs:74:12 [INFO] [stderr] | [INFO] [stderr] 74 | pub struct MacPrefix { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `RpcInfo` is never constructed [INFO] [stderr] --> src/types.rs:80:12 [INFO] [stderr] | [INFO] [stderr] 80 | pub struct RpcInfo { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `get_protocol` is never used [INFO] [stderr] --> src/patterns.rs:92:8 [INFO] [stderr] | [INFO] [stderr] 92 | pub fn get_protocol(name: &str) -> Option<&Protocol> { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `get_mac_vendor` is never used [INFO] [stderr] --> src/patterns.rs:96:8 [INFO] [stderr] | [INFO] [stderr] 96 | pub fn get_mac_vendor(prefix: &str) -> Option<&String> { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `get_rpc_info` is never used [INFO] [stderr] --> src/patterns.rs:100:8 [INFO] [stderr] | [INFO] [stderr] 100 | pub fn get_rpc_info<'a>(program: &'a str, version: &'a str) -> Option<&'static RpcInfo> { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `get_services_by_port` is never used [INFO] [stderr] --> src/patterns.rs:104:8 [INFO] [stderr] | [INFO] [stderr] 104 | pub fn get_services_by_port(port: u16) -> Option<&'static Vec> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `load_nmap_services` is never used [INFO] [stderr] --> src/patterns.rs:198:8 [INFO] [stderr] | [INFO] [stderr] 198 | pub fn load_nmap_services(file_path: &str) -> Result> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `load_protocols` is never used [INFO] [stderr] --> src/patterns.rs:334:8 [INFO] [stderr] | [INFO] [stderr] 334 | pub fn load_protocols(file_path: &str) -> Result> { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `load_mac_prefixes` is never used [INFO] [stderr] --> src/patterns.rs:370:8 [INFO] [stderr] | [INFO] [stderr] 370 | pub fn load_mac_prefixes(file_path: &str) -> Result> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `load_rpc_info` is never used [INFO] [stderr] --> src/patterns.rs:399:8 [INFO] [stderr] | [INFO] [stderr] 399 | pub fn load_rpc_info(file_path: &str) -> Result> { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `rustcan` (bin "rustcan" test) generated 21 warnings (1 duplicate) (run `cargo fix --bin "rustcan" --tests` to apply 1 suggestion) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.22s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/rustcan-548ba47fd046dd00) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/rustcan-a81f68cf9708c41d) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests rustcan [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "32b0b75c4ba522141a56a0eee57266194e3631819170ef0e1806e5b9ffd1af66", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "32b0b75c4ba522141a56a0eee57266194e3631819170ef0e1806e5b9ffd1af66", kill_on_drop: false }` [INFO] [stdout] 32b0b75c4ba522141a56a0eee57266194e3631819170ef0e1806e5b9ffd1af66