[INFO] fetching crate ssh-manager 0.1.0... [INFO] testing ssh-manager-0.1.0 against try#dec9417b8611e34e787a3e4c37686b5131f9e5c5 for pr-154210-2 [INFO] extracting crate ssh-manager 0.1.0 into /workspace/builds/worker-6-tc2/source [INFO] started tweaking crates.io crate ssh-manager 0.1.0 [INFO] finished tweaking crates.io crate ssh-manager 0.1.0 [INFO] tweaked toml for crates.io crate ssh-manager 0.1.0 written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate ssh-manager 0.1.0 on toolchain dec9417b8611e34e787a3e4c37686b5131f9e5c5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate ssh-manager 0.1.0 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" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1bcc7841448868562f68c9023f6af446fc1752b2ed5a413ff827468d35c5b59a [INFO] running `Command { std: "docker" "start" "-a" "1bcc7841448868562f68c9023f6af446fc1752b2ed5a413ff827468d35c5b59a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1bcc7841448868562f68c9023f6af446fc1752b2ed5a413ff827468d35c5b59a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1bcc7841448868562f68c9023f6af446fc1752b2ed5a413ff827468d35c5b59a", kill_on_drop: false }` [INFO] [stdout] 1bcc7841448868562f68c9023f6af446fc1752b2ed5a413ff827468d35c5b59a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 863fe09dfb4b4903b3a07f77f5779609285bbe17d74ae6c9e2ad7409dd19715c [INFO] running `Command { std: "docker" "start" "-a" "863fe09dfb4b4903b3a07f77f5779609285bbe17d74ae6c9e2ad7409dd19715c", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.180 [INFO] [stderr] Compiling proc-macro2 v1.0.105 [INFO] [stderr] Compiling quote v1.0.43 [INFO] [stderr] Compiling log v0.4.29 [INFO] [stderr] Compiling rustversion v1.0.22 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling equivalent v1.0.2 [INFO] [stderr] Compiling signal-hook v0.3.18 [INFO] [stderr] Compiling bitflags v2.10.0 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling memchr v2.7.6 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling rustix v0.38.44 [INFO] [stderr] Compiling itoa v1.0.17 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling zmij v1.0.13 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Compiling foldhash v0.1.5 [INFO] [stderr] Compiling hashbrown v0.16.1 [INFO] [stderr] Compiling itertools v0.13.0 [INFO] [stderr] Compiling os_str_bytes v6.6.1 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Compiling termcolor v1.4.1 [INFO] [stderr] Compiling ryu v1.0.22 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling toml_write v0.1.2 [INFO] [stderr] Compiling unicode-segmentation v1.12.0 [INFO] [stderr] Compiling hashbrown v0.15.5 [INFO] [stderr] Compiling static_assertions v1.1.0 [INFO] [stderr] Compiling option-ext v0.2.0 [INFO] [stderr] Compiling hashbrown v0.12.3 [INFO] [stderr] Compiling linux-raw-sys v0.4.15 [INFO] [stderr] Compiling serde_json v1.0.149 [INFO] [stderr] Compiling aho-corasick v1.1.4 [INFO] [stderr] Compiling unicode-width v0.1.14 [INFO] [stderr] Compiling winnow v0.7.14 [INFO] [stderr] Compiling clap_lex v0.2.4 [INFO] [stderr] Compiling crossbeam-channel v0.5.15 [INFO] [stderr] Compiling walkdir v2.5.0 [INFO] [stderr] Compiling indexmap v2.13.0 [INFO] [stderr] Compiling humantime v2.3.0 [INFO] [stderr] Compiling syn v2.0.114 [INFO] [stderr] Compiling castaway v0.2.4 [INFO] [stderr] Compiling lru v0.12.5 [INFO] [stderr] Compiling compact_str v0.7.1 [INFO] [stderr] Compiling textwrap v0.16.2 [INFO] [stderr] Compiling cassowary v0.3.0 [INFO] [stderr] Compiling bytes v1.11.0 [INFO] [stderr] Compiling regex-automata v0.4.13 [INFO] [stderr] Compiling unicode-truncate v1.1.0 [INFO] [stderr] Compiling errno v0.3.14 [INFO] [stderr] Compiling mio v1.1.1 [INFO] [stderr] Compiling parking_lot_core v0.9.12 [INFO] [stderr] Compiling mio v0.8.11 [INFO] [stderr] Compiling inotify-sys v0.1.5 [INFO] [stderr] Compiling filetime v0.2.26 [INFO] [stderr] Compiling dirs-sys v0.4.1 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling is-terminal v0.4.17 [INFO] [stderr] Compiling socket2 v0.6.1 [INFO] [stderr] Compiling inotify v0.9.6 [INFO] [stderr] Compiling nix v0.27.1 [INFO] [stderr] Compiling dirs v5.0.1 [INFO] [stderr] Compiling signal-hook-registry v1.4.8 [INFO] [stderr] Compiling notify v6.1.1 [INFO] [stderr] Compiling parking_lot v0.12.5 [INFO] [stderr] Compiling signal-hook-mio v0.2.5 [INFO] [stderr] Compiling crossterm v0.27.0 [INFO] [stderr] Compiling crossterm v0.28.1 [INFO] [stderr] Compiling clap_derive v3.2.25 [INFO] [stderr] Compiling regex v1.12.2 [INFO] [stderr] Compiling env_logger v0.10.2 [INFO] [stderr] Compiling clap v3.2.25 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling strum_macros v0.26.4 [INFO] [stderr] Compiling stability v0.2.1 [INFO] [stderr] Compiling tokio-macros v2.6.0 [INFO] [stderr] Compiling tokio v1.49.0 [INFO] [stderr] Compiling strum v0.26.3 [INFO] [stderr] Compiling ratatui v0.27.0 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling toml_datetime v0.6.11 [INFO] [stderr] Compiling serde_spanned v0.6.9 [INFO] [stderr] Compiling toml_edit v0.22.27 [INFO] [stderr] Compiling toml v0.8.23 [INFO] [stderr] Compiling ssh-manager v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tui.rs:162:13 [INFO] [stdout] | [INFO] [stdout] 162 | let mut in_host_section = false; [INFO] [stdout] | ----^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `in_host_section` [INFO] [stdout] --> src/tui.rs:162:13 [INFO] [stdout] | [INFO] [stdout] 162 | let mut in_host_section = false; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_in_host_section` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `host_config` [INFO] [stdout] --> src/tui.rs:788:13 [INFO] [stdout] | [INFO] [stdout] 788 | let host_config = Self::extract_host_config(&self.current_config_content, host_name); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_host_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `in_target_host` is assigned to, but never used [INFO] [stdout] --> src/tui.rs:793:13 [INFO] [stdout] | [INFO] [stdout] 793 | let mut in_target_host = false; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_in_target_host` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `in_target_host` is never read [INFO] [stdout] --> src/tui.rs:800:21 [INFO] [stdout] | [INFO] [stdout] 800 | in_target_host = true; [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: unreachable pattern [INFO] [stdout] --> src/tui.rs:867:13 [INFO] [stdout] | [INFO] [stdout] 834 | KeyCode::Char(c) => { [INFO] [stdout] | ---------------- matches all the relevant values [INFO] [stdout] ... [INFO] [stdout] 867 | KeyCode::Char('s') if key.modifiers.contains(event::KeyModifiers::CONTROL) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] | [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] --> src/tui.rs:162:13 [INFO] [stdout] | [INFO] [stdout] 162 | let mut in_host_section = false; [INFO] [stdout] | ----^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `in_host_section` [INFO] [stdout] --> src/tui.rs:162:13 [INFO] [stdout] | [INFO] [stdout] 162 | let mut in_host_section = false; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_in_host_section` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `host_config` [INFO] [stdout] --> src/tui.rs:788:13 [INFO] [stdout] | [INFO] [stdout] 788 | let host_config = Self::extract_host_config(&self.current_config_content, host_name); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_host_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `in_target_host` is assigned to, but never used [INFO] [stdout] --> src/tui.rs:793:13 [INFO] [stdout] | [INFO] [stdout] 793 | let mut in_target_host = false; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_in_target_host` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `in_target_host` is never read [INFO] [stdout] --> src/tui.rs:800:21 [INFO] [stdout] | [INFO] [stdout] 800 | in_target_host = true; [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: unreachable pattern [INFO] [stdout] --> src/tui.rs:867:13 [INFO] [stdout] | [INFO] [stdout] 834 | KeyCode::Char(c) => { [INFO] [stdout] | ---------------- matches all the relevant values [INFO] [stdout] ... [INFO] [stdout] 867 | KeyCode::Char('s') if key.modifiers.contains(event::KeyModifiers::CONTROL) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `current_ip` is never read [INFO] [stdout] --> src/network.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct NetworkInfo { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 21 | pub network_type: NetworkType, [INFO] [stdout] 22 | pub current_ip: Ipv4Addr, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `NetworkInfo` 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 `backup_path` and `graph` are never read [INFO] [stdout] --> src/config.rs:125:5 [INFO] [stdout] | [INFO] [stdout] 122 | pub struct ConfigManager { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 125 | backup_path: PathBuf, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 126 | graph: NetworkGraph, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `is_proxy_node`, `apply_network_config`, `generate_ssh_config`, `should_use_proxy`, `check_interval`, and `restore_backup` are never used [INFO] [stdout] --> src/config.rs:321:8 [INFO] [stdout] | [INFO] [stdout] 129 | impl ConfigManager { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 321 | fn is_proxy_node(host_name: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 326 | pub async fn apply_network_config(&self, network_info: &NetworkInfo) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 351 | fn generate_ssh_config(&self, network_info: &NetworkInfo) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 372 | fn should_use_proxy(&self, host_name: &str, host_config: &SshHostConfig, network_info: &NetworkInfo) -> Option<&SshHostConfig> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 437 | pub fn check_interval(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 447 | pub fn restore_backup(&self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SshConfigGenerator` is never constructed [INFO] [stdout] --> src/ssh.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct SshConfigGenerator { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add_global_config`, `add_host`, `generate`, and `format_proxy_jump` are never used [INFO] [stdout] --> src/ssh.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl SshConfigGenerator { [INFO] [stdout] | ----------------------- associated items in this implementation [INFO] [stdout] 15 | /// 创建新的生成器 [INFO] [stdout] 16 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn add_global_config(&mut self, config: &HashMap) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn add_host(&mut self, host_name: &str, host_config: &SshHostConfig, proxy: Option<&SshHostConfig>) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn generate(&self) -> String { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | fn format_proxy_jump(proxy_config: &SshHostConfig) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Proxy` is never constructed [INFO] [stdout] --> src/graph.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub enum NodeType { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 15 | Proxy(String), [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `NodeType` 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 `name` is never used [INFO] [stdout] --> src/graph.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 20 | impl NodeType { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 21 | /// 获取节点名称 [INFO] [stdout] 22 | pub fn name(&self) -> &str { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `add_bidirectional_edge`, `find_path`, `is_directly_connected`, and `get_neighbors` are never used [INFO] [stdout] --> src/graph.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 37 | impl NetworkGraph { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn add_bidirectional_edge(&mut self, from: NodeType, to: NodeType) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn find_path(&self, from: &NodeType, to: &NodeType) -> Option> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 113 | pub fn is_directly_connected(&self, from: &NodeType, to: &NodeType) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 122 | pub fn get_neighbors(&self, node: &NodeType) -> Vec<&NodeType> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `config_manager` is never read [INFO] [stdout] --> src/tui.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 36 | pub struct App { [INFO] [stdout] | --- field in this struct [INFO] [stdout] ... [INFO] [stdout] 40 | pub config_manager: ConfigManager, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_selected_config_name`, `load_config`, and `apply_config_for_network` are never used [INFO] [stdout] --> src/tui.rs:241:12 [INFO] [stdout] | [INFO] [stdout] 65 | impl App { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 241 | pub fn get_selected_config_name(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 676 | pub fn load_config(&mut self, network_name: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 705 | pub fn apply_config_for_network(&mut self, network_name: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 29.96s [INFO] running `Command { std: "docker" "inspect" "863fe09dfb4b4903b3a07f77f5779609285bbe17d74ae6c9e2ad7409dd19715c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "863fe09dfb4b4903b3a07f77f5779609285bbe17d74ae6c9e2ad7409dd19715c", kill_on_drop: false }` [INFO] [stdout] 863fe09dfb4b4903b3a07f77f5779609285bbe17d74ae6c9e2ad7409dd19715c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bbcf32e518388f1c39e1959d2174b8044ebdf46a95ad3061fab462ad642d136b [INFO] running `Command { std: "docker" "start" "-a" "bbcf32e518388f1c39e1959d2174b8044ebdf46a95ad3061fab462ad642d136b", kill_on_drop: false }` [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tui.rs:162:13 [INFO] [stdout] | [INFO] [stdout] 162 | let mut in_host_section = false; [INFO] [stdout] | ----^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `in_host_section` [INFO] [stdout] --> src/tui.rs:162:13 [INFO] [stdout] | [INFO] [stdout] 162 | let mut in_host_section = false; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_in_host_section` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `host_config` [INFO] [stdout] --> src/tui.rs:788:13 [INFO] [stdout] | [INFO] [stdout] 788 | let host_config = Self::extract_host_config(&self.current_config_content, host_name); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_host_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `in_target_host` is assigned to, but never used [INFO] [stdout] --> src/tui.rs:793:13 [INFO] [stdout] | [INFO] [stdout] 793 | let mut in_target_host = false; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_in_target_host` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `in_target_host` is never read [INFO] [stdout] --> src/tui.rs:800:21 [INFO] [stdout] | [INFO] [stdout] 800 | in_target_host = true; [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: unreachable pattern [INFO] [stdout] --> src/tui.rs:867:13 [INFO] [stdout] | [INFO] [stdout] 834 | KeyCode::Char(c) => { [INFO] [stdout] | ---------------- matches all the relevant values [INFO] [stdout] ... [INFO] [stdout] 867 | KeyCode::Char('s') if key.modifiers.contains(event::KeyModifiers::CONTROL) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling ssh-manager v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tui.rs:162:13 [INFO] [stdout] | [INFO] [stdout] 162 | let mut in_host_section = false; [INFO] [stdout] | ----^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `in_host_section` [INFO] [stdout] --> src/tui.rs:162:13 [INFO] [stdout] | [INFO] [stdout] 162 | let mut in_host_section = false; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_in_host_section` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `host_config` [INFO] [stdout] --> src/tui.rs:788:13 [INFO] [stdout] | [INFO] [stdout] 788 | let host_config = Self::extract_host_config(&self.current_config_content, host_name); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_host_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `in_target_host` is assigned to, but never used [INFO] [stdout] --> src/tui.rs:793:13 [INFO] [stdout] | [INFO] [stdout] 793 | let mut in_target_host = false; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_in_target_host` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `in_target_host` is never read [INFO] [stdout] --> src/tui.rs:800:21 [INFO] [stdout] | [INFO] [stdout] 800 | in_target_host = true; [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: unreachable pattern [INFO] [stdout] --> src/tui.rs:867:13 [INFO] [stdout] | [INFO] [stdout] 834 | KeyCode::Char(c) => { [INFO] [stdout] | ---------------- matches all the relevant values [INFO] [stdout] ... [INFO] [stdout] 867 | KeyCode::Char('s') if key.modifiers.contains(event::KeyModifiers::CONTROL) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] | [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] --> src/tui.rs:162:13 [INFO] [stdout] | [INFO] [stdout] 162 | let mut in_host_section = false; [INFO] [stdout] | ----^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `in_host_section` [INFO] [stdout] --> src/tui.rs:162:13 [INFO] [stdout] | [INFO] [stdout] 162 | let mut in_host_section = false; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_in_host_section` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `host_config` [INFO] [stdout] --> src/tui.rs:788:13 [INFO] [stdout] | [INFO] [stdout] 788 | let host_config = Self::extract_host_config(&self.current_config_content, host_name); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_host_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `in_target_host` is assigned to, but never used [INFO] [stdout] --> src/tui.rs:793:13 [INFO] [stdout] | [INFO] [stdout] 793 | let mut in_target_host = false; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_in_target_host` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `in_target_host` is never read [INFO] [stdout] --> src/tui.rs:800:21 [INFO] [stdout] | [INFO] [stdout] 800 | in_target_host = true; [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: unreachable pattern [INFO] [stdout] --> src/tui.rs:867:13 [INFO] [stdout] | [INFO] [stdout] 834 | KeyCode::Char(c) => { [INFO] [stdout] | ---------------- matches all the relevant values [INFO] [stdout] ... [INFO] [stdout] 867 | KeyCode::Char('s') if key.modifiers.contains(event::KeyModifiers::CONTROL) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `current_ip` is never read [INFO] [stdout] --> src/network.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct NetworkInfo { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 21 | pub network_type: NetworkType, [INFO] [stdout] 22 | pub current_ip: Ipv4Addr, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `NetworkInfo` 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 `backup_path` and `graph` are never read [INFO] [stdout] --> src/config.rs:125:5 [INFO] [stdout] | [INFO] [stdout] 122 | pub struct ConfigManager { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 125 | backup_path: PathBuf, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 126 | graph: NetworkGraph, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `is_proxy_node`, `apply_network_config`, `generate_ssh_config`, `should_use_proxy`, `check_interval`, and `restore_backup` are never used [INFO] [stdout] --> src/config.rs:321:8 [INFO] [stdout] | [INFO] [stdout] 129 | impl ConfigManager { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 321 | fn is_proxy_node(host_name: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 326 | pub async fn apply_network_config(&self, network_info: &NetworkInfo) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 351 | fn generate_ssh_config(&self, network_info: &NetworkInfo) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 372 | fn should_use_proxy(&self, host_name: &str, host_config: &SshHostConfig, network_info: &NetworkInfo) -> Option<&SshHostConfig> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 437 | pub fn check_interval(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 447 | pub fn restore_backup(&self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SshConfigGenerator` is never constructed [INFO] [stdout] --> src/ssh.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct SshConfigGenerator { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add_global_config`, `add_host`, `generate`, and `format_proxy_jump` are never used [INFO] [stdout] --> src/ssh.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl SshConfigGenerator { [INFO] [stdout] | ----------------------- associated items in this implementation [INFO] [stdout] 15 | /// 创建新的生成器 [INFO] [stdout] 16 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn add_global_config(&mut self, config: &HashMap) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn add_host(&mut self, host_name: &str, host_config: &SshHostConfig, proxy: Option<&SshHostConfig>) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn generate(&self) -> String { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | fn format_proxy_jump(proxy_config: &SshHostConfig) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Proxy` is never constructed [INFO] [stdout] --> src/graph.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub enum NodeType { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 15 | Proxy(String), [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `NodeType` 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 `name` is never used [INFO] [stdout] --> src/graph.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 20 | impl NodeType { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 21 | /// 获取节点名称 [INFO] [stdout] 22 | pub fn name(&self) -> &str { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `add_bidirectional_edge`, `is_directly_connected`, and `get_neighbors` are never used [INFO] [stdout] --> src/graph.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 37 | impl NetworkGraph { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn add_bidirectional_edge(&mut self, from: NodeType, to: NodeType) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 113 | pub fn is_directly_connected(&self, from: &NodeType, to: &NodeType) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 122 | pub fn get_neighbors(&self, node: &NodeType) -> Vec<&NodeType> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `config_manager` is never read [INFO] [stdout] --> src/tui.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 36 | pub struct App { [INFO] [stdout] | --- field in this struct [INFO] [stdout] ... [INFO] [stdout] 40 | pub config_manager: ConfigManager, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_selected_config_name`, `load_config`, and `apply_config_for_network` are never used [INFO] [stdout] --> src/tui.rs:241:12 [INFO] [stdout] | [INFO] [stdout] 65 | impl App { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 241 | pub fn get_selected_config_name(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 676 | pub fn load_config(&mut self, network_name: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 705 | pub fn apply_config_for_network(&mut self, network_name: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.58s [INFO] running `Command { std: "docker" "inspect" "bbcf32e518388f1c39e1959d2174b8044ebdf46a95ad3061fab462ad642d136b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bbcf32e518388f1c39e1959d2174b8044ebdf46a95ad3061fab462ad642d136b", kill_on_drop: false }` [INFO] [stdout] bbcf32e518388f1c39e1959d2174b8044ebdf46a95ad3061fab462ad642d136b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] cbb4fd3b0b88a30de52ce53b5dba77611aa5e42263eaa80df9cc9a330d469208 [INFO] running `Command { std: "docker" "start" "-a" "cbb4fd3b0b88a30de52ce53b5dba77611aa5e42263eaa80df9cc9a330d469208", kill_on_drop: false }` [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/tui.rs:162:13 [INFO] [stderr] | [INFO] [stderr] 162 | let mut in_host_section = false; [INFO] [stderr] | ----^^^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `in_host_section` [INFO] [stderr] --> src/tui.rs:162:13 [INFO] [stderr] | [INFO] [stderr] 162 | let mut in_host_section = false; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_in_host_section` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `host_config` [INFO] [stderr] --> src/tui.rs:788:13 [INFO] [stderr] | [INFO] [stderr] 788 | let host_config = Self::extract_host_config(&self.current_config_content, host_name); [INFO] [stderr] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_host_config` [INFO] [stderr] [INFO] [stderr] warning: variable `in_target_host` is assigned to, but never used [INFO] [stderr] --> src/tui.rs:793:13 [INFO] [stderr] | [INFO] [stderr] 793 | let mut in_target_host = false; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: consider using `_in_target_host` instead [INFO] [stderr] [INFO] [stderr] warning: value assigned to `in_target_host` is never read [INFO] [stderr] --> src/tui.rs:800:21 [INFO] [stderr] | [INFO] [stderr] 800 | in_target_host = true; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unreachable pattern [INFO] [stderr] --> src/tui.rs:867:13 [INFO] [stderr] | [INFO] [stderr] 834 | KeyCode::Char(c) => { [INFO] [stderr] | ---------------- matches all the relevant values [INFO] [stderr] ... [INFO] [stderr] 867 | KeyCode::Char('s') if key.modifiers.contains(event::KeyModifiers::CONTROL) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: `ssh-manager` (lib) generated 6 warnings (run `cargo fix --lib -p ssh-manager` to apply 3 suggestions) [INFO] [stderr] warning: `ssh-manager` (lib test) generated 6 warnings (6 duplicates) [INFO] [stderr] warning: field `current_ip` is never read [INFO] [stderr] --> src/network.rs:22:9 [INFO] [stderr] | [INFO] [stderr] 20 | pub struct NetworkInfo { [INFO] [stderr] | ----------- field in this struct [INFO] [stderr] 21 | pub network_type: NetworkType, [INFO] [stderr] 22 | pub current_ip: Ipv4Addr, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `NetworkInfo` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: fields `backup_path` and `graph` are never read [INFO] [stderr] --> src/config.rs:125:5 [INFO] [stderr] | [INFO] [stderr] 122 | pub struct ConfigManager { [INFO] [stderr] | ------------- fields in this struct [INFO] [stderr] ... [INFO] [stderr] 125 | backup_path: PathBuf, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] 126 | graph: NetworkGraph, [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated items `is_proxy_node`, `apply_network_config`, `generate_ssh_config`, `should_use_proxy`, `check_interval`, and `restore_backup` are never used [INFO] [stderr] --> src/config.rs:321:8 [INFO] [stderr] | [INFO] [stderr] 129 | impl ConfigManager { [INFO] [stderr] | ------------------ associated items in this implementation [INFO] [stderr] ... [INFO] [stderr] 321 | fn is_proxy_node(host_name: &str) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 326 | pub async fn apply_network_config(&self, network_info: &NetworkInfo) -> Result<()> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 351 | fn generate_ssh_config(&self, network_info: &NetworkInfo) -> String { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 372 | fn should_use_proxy(&self, host_name: &str, host_config: &SshHostConfig, network_info: &NetworkInfo) -> Option<&SshHostConfig> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 437 | pub fn check_interval(&self) -> u64 { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 447 | pub fn restore_backup(&self) -> Result<()> { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `SshConfigGenerator` is never constructed [INFO] [stderr] --> src/ssh.rs:9:12 [INFO] [stderr] | [INFO] [stderr] 9 | pub struct SshConfigGenerator { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated items `new`, `add_global_config`, `add_host`, `generate`, and `format_proxy_jump` are never used [INFO] [stderr] --> src/ssh.rs:16:12 [INFO] [stderr] | [INFO] [stderr] 14 | impl SshConfigGenerator { [INFO] [stderr] | ----------------------- associated items in this implementation [INFO] [stderr] 15 | /// 创建新的生成器 [INFO] [stderr] 16 | pub fn new() -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 24 | pub fn add_global_config(&mut self, config: &HashMap) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 30 | pub fn add_host(&mut self, host_name: &str, host_config: &SshHostConfig, proxy: Option<&SshHostConfig>) { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 36 | pub fn generate(&self) -> String { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 90 | fn format_proxy_jump(proxy_config: &SshHostConfig) -> String { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant `Proxy` is never constructed [INFO] [stderr] --> src/graph.rs:15:5 [INFO] [stderr] | [INFO] [stderr] 11 | pub enum NodeType { [INFO] [stderr] | -------- variant in this enum [INFO] [stderr] ... [INFO] [stderr] 15 | Proxy(String), [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `NodeType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: method `name` is never used [INFO] [stderr] --> src/graph.rs:22:12 [INFO] [stderr] | [INFO] [stderr] 20 | impl NodeType { [INFO] [stderr] | ------------- method in this implementation [INFO] [stderr] 21 | /// 获取节点名称 [INFO] [stderr] 22 | pub fn name(&self) -> &str { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `add_bidirectional_edge`, `is_directly_connected`, and `get_neighbors` are never used [INFO] [stderr] --> src/graph.rs:51:12 [INFO] [stderr] | [INFO] [stderr] 37 | impl NetworkGraph { [INFO] [stderr] | ----------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 51 | pub fn add_bidirectional_edge(&mut self, from: NodeType, to: NodeType) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 113 | pub fn is_directly_connected(&self, from: &NodeType, to: &NodeType) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 122 | pub fn get_neighbors(&self, node: &NodeType) -> Vec<&NodeType> { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `config_manager` is never read [INFO] [stderr] --> src/tui.rs:40:9 [INFO] [stderr] | [INFO] [stderr] 36 | pub struct App { [INFO] [stderr] | --- field in this struct [INFO] [stderr] ... [INFO] [stderr] 40 | pub config_manager: ConfigManager, [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `get_selected_config_name`, `load_config`, and `apply_config_for_network` are never used [INFO] [stderr] --> src/tui.rs:241:12 [INFO] [stderr] | [INFO] [stderr] 65 | impl App { [INFO] [stderr] | -------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 241 | pub fn get_selected_config_name(&self) -> Option { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 676 | pub fn load_config(&mut self, network_name: &str) -> Result<()> { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 705 | pub fn apply_config_for_network(&mut self, network_name: &str) -> Result<()> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `ssh-manager` (bin "ssh-manager" test) generated 16 warnings (6 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.16s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/ssh_manager-e325777c9f0e2b54) [INFO] [stdout] [INFO] [stdout] running 2 tests [INFO] [stdout] test graph::tests::test_direct_connection ... ok [INFO] [stdout] test graph::tests::test_path_through_proxy ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 2 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/ssh_manager-195aec02535a1af8) [INFO] [stdout] [INFO] [stdout] running 2 tests [INFO] [stdout] test graph::tests::test_direct_connection ... ok [INFO] [stdout] test graph::tests::test_path_through_proxy ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests ssh_manager [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" "cbb4fd3b0b88a30de52ce53b5dba77611aa5e42263eaa80df9cc9a330d469208", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cbb4fd3b0b88a30de52ce53b5dba77611aa5e42263eaa80df9cc9a330d469208", kill_on_drop: false }` [INFO] [stdout] cbb4fd3b0b88a30de52ce53b5dba77611aa5e42263eaa80df9cc9a330d469208