[INFO] fetching crate awsom 0.5.0... [INFO] checking awsom-0.5.0 against master#779e19d8baa3e3625bd4fc5c85cbb2ad47b43155 for pr-147589-1 [INFO] extracting crate awsom 0.5.0 into /workspace/builds/worker-2-tc1/source [INFO] started tweaking crates.io crate awsom 0.5.0 [INFO] finished tweaking crates.io crate awsom 0.5.0 [INFO] tweaked toml for crates.io crate awsom 0.5.0 written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate awsom 0.5.0 on toolchain 779e19d8baa3e3625bd4fc5c85cbb2ad47b43155 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+779e19d8baa3e3625bd4fc5c85cbb2ad47b43155" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate awsom 0.5.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" "+779e19d8baa3e3625bd4fc5c85cbb2ad47b43155" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded webbrowser v1.0.5 [INFO] [stderr] Downloaded catppuccin v2.5.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+779e19d8baa3e3625bd4fc5c85cbb2ad47b43155" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 32888c35b2b34c96a09ea9c8f3e8a8c4973341be4b16d207946711e2c2bbeca8 [INFO] running `Command { std: "docker" "start" "-a" "32888c35b2b34c96a09ea9c8f3e8a8c4973341be4b16d207946711e2c2bbeca8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "32888c35b2b34c96a09ea9c8f3e8a8c4973341be4b16d207946711e2c2bbeca8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "32888c35b2b34c96a09ea9c8f3e8a8c4973341be4b16d207946711e2c2bbeca8", kill_on_drop: false }` [INFO] [stdout] 32888c35b2b34c96a09ea9c8f3e8a8c4973341be4b16d207946711e2c2bbeca8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+779e19d8baa3e3625bd4fc5c85cbb2ad47b43155" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c9341fa914842dea39d8cafcdeaa8f0bf0106b149b98b322f8ecbd6bcd1c5940 [INFO] running `Command { std: "docker" "start" "-a" "c9341fa914842dea39d8cafcdeaa8f0bf0106b149b98b322f8ecbd6bcd1c5940", kill_on_drop: false }` [INFO] [stderr] Compiling jobserver v0.1.34 [INFO] [stderr] Compiling find-msvc-tools v0.1.3 [INFO] [stderr] Checking mio v1.0.4 [INFO] [stderr] Checking socket2 v0.6.0 [INFO] [stderr] Checking parking_lot_core v0.9.12 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking indexmap v2.11.4 [INFO] [stderr] Checking bytes-utils v0.1.4 [INFO] [stderr] Checking getrandom v0.2.16 [INFO] [stderr] Checking generic-array v0.14.7 [INFO] [stderr] Checking getrandom v0.3.3 [INFO] [stderr] Compiling rustix v1.1.2 [INFO] [stderr] Checking icu_normalizer v2.0.0 [INFO] [stderr] Compiling signal-hook v0.3.18 [INFO] [stderr] Compiling prettyplease v0.2.37 [INFO] [stderr] Checking anstream v0.6.21 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Checking uuid v1.18.1 [INFO] [stderr] Checking parking_lot v0.12.5 [INFO] [stderr] Checking regex-automata v0.4.11 [INFO] [stderr] Checking rustix v0.38.44 [INFO] [stderr] Compiling strum_macros v0.26.4 [INFO] [stderr] Checking castaway v0.2.4 [INFO] [stderr] Compiling clap_derive v4.5.47 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Checking toml_datetime v0.6.11 [INFO] [stderr] Checking serde_spanned v0.6.9 [INFO] [stderr] Checking idna v1.1.0 [INFO] [stderr] Compiling cc v1.2.40 [INFO] [stderr] Compiling mockall_derive v0.13.1 [INFO] [stderr] Checking tokio v1.47.1 [INFO] [stderr] Checking signal-hook-mio v0.2.4 [INFO] [stderr] Checking predicates-core v1.0.9 [INFO] [stderr] Checking unicode-truncate v1.1.0 [INFO] [stderr] Checking url v2.5.7 [INFO] [stderr] Checking dirs-sys v0.4.1 [INFO] [stderr] Checking toml_edit v0.22.27 [INFO] [stderr] Compiling instability v0.3.9 [INFO] [stderr] Checking compact_str v0.8.1 [INFO] [stderr] Checking lru v0.12.5 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Checking crossterm v0.28.1 [INFO] [stderr] Checking termtree v0.5.1 [INFO] [stderr] Checking chrono v0.4.42 [INFO] [stderr] Checking webbrowser v1.0.5 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking predicates-tree v1.0.12 [INFO] [stderr] Checking predicates v3.1.3 [INFO] [stderr] Checking dirs v5.0.1 [INFO] [stderr] Compiling cmake v0.1.54 [INFO] [stderr] Checking fragile v2.0.1 [INFO] [stderr] Checking downcast v0.11.0 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Checking sha2 v0.10.9 [INFO] [stderr] Compiling catppuccin v2.5.1 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Checking strum v0.26.3 [INFO] [stderr] Checking ratatui v0.29.0 [INFO] [stderr] Checking terminal_size v0.4.3 [INFO] [stderr] Checking tempfile v3.23.0 [INFO] [stderr] Compiling aws-lc-sys v0.32.2 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Checking clap_builder v4.5.48 [INFO] [stderr] Checking matchers v0.2.0 [INFO] [stderr] Checking tracing-subscriber v0.3.20 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Checking toml v0.8.23 [INFO] [stderr] Checking mockall v0.13.1 [INFO] [stderr] Compiling rustls v0.21.12 [INFO] [stderr] Checking clap v4.5.48 [INFO] [stderr] Checking clap_complete v4.5.58 [INFO] [stderr] Checking rustls-webpki v0.101.7 [INFO] [stderr] Checking sct v0.7.1 [INFO] [stderr] Checking tokio-util v0.7.16 [INFO] [stderr] Checking aws-smithy-async v1.2.6 [INFO] [stderr] Checking tower v0.5.2 [INFO] [stderr] Checking aws-smithy-types v1.3.3 [INFO] [stderr] Checking h2 v0.4.12 [INFO] [stderr] Checking h2 v0.3.27 [INFO] [stderr] Checking tower-http v0.6.6 [INFO] [stderr] Checking tokio-rustls v0.24.1 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking aws-smithy-runtime-api v1.9.1 [INFO] [stderr] Checking aws-smithy-json v0.61.6 [INFO] [stderr] Checking aws-smithy-query v0.60.8 [INFO] [stderr] Checking aws-credential-types v1.2.8 [INFO] [stderr] Checking aws-smithy-http v0.62.4 [INFO] [stderr] Checking aws-smithy-observability v0.1.4 [INFO] [stderr] Checking aws-types v1.3.9 [INFO] [stderr] Checking aws-sigv4 v1.3.5 [INFO] [stderr] Checking hyper v1.7.0 [INFO] [stderr] Checking hyper v0.14.32 [INFO] [stderr] Checking hyper-util v0.1.17 [INFO] [stderr] Checking hyper-tls v0.6.0 [INFO] [stderr] Checking reqwest v0.12.23 [INFO] [stderr] Checking hyper-rustls v0.24.2 [INFO] [stderr] Compiling aws-lc-rs v1.14.1 [INFO] [stderr] Compiling rustls v0.23.32 [INFO] [stderr] Checking rustls-webpki v0.103.7 [INFO] [stderr] Checking tokio-rustls v0.26.4 [INFO] [stderr] Checking hyper-rustls v0.27.7 [INFO] [stderr] Checking aws-smithy-http-client v1.1.3 [INFO] [stderr] Checking aws-smithy-runtime v1.9.3 [INFO] [stderr] Checking aws-runtime v1.5.12 [INFO] [stderr] Checking aws-sdk-sts v1.88.0 [INFO] [stderr] Checking aws-sdk-sso v1.86.0 [INFO] [stderr] Checking aws-sdk-ssooidc v1.88.0 [INFO] [stderr] Checking aws-config v1.8.8 [INFO] [stderr] Checking awsom v0.5.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: method `list_tokens` is never used [INFO] [stdout] --> src/auth/token_cache.rs:98:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl TokenCache { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 98 | pub fn list_tokens(&self) -> 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 `read_default_config` is never used [INFO] [stdout] --> src/aws_config.rs:648:8 [INFO] [stdout] | [INFO] [stdout] 648 | pub fn read_default_config() -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_default_config` is never used [INFO] [stdout] --> src/aws_config.rs:938:8 [INFO] [stdout] | [INFO] [stdout] 938 | pub fn write_default_config(config: &DefaultConfig) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `update_ini_section` is never used [INFO] [stdout] --> src/aws_config.rs:1631:4 [INFO] [stdout] | [INFO] [stdout] 1631 | fn update_ini_section(content: &str, section_name: &str, key_values: &[(&str, &str)]) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `list_profiles` is never used [INFO] [stdout] --> src/aws_config.rs:1636:8 [INFO] [stdout] | [INFO] [stdout] 1636 | pub fn list_profiles() -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_profile_for_role` is never used [INFO] [stdout] --> src/aws_config.rs:1881:8 [INFO] [stdout] | [INFO] [stdout] 1881 | pub fn get_profile_for_role(account: &AccountRole) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_profile_match` is never used [INFO] [stdout] --> src/aws_config.rs:1926:4 [INFO] [stdout] | [INFO] [stdout] 1926 | fn check_profile_match( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `cache` is never read [INFO] [stdout] --> src/credentials/mod.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct CredentialManager { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] 13 | cache: CredentialCache, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_credentials`, `clear_credentials`, and `clear_all` are never used [INFO] [stdout] --> src/credentials/mod.rs:24:18 [INFO] [stdout] | [INFO] [stdout] 16 | impl CredentialManager { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 24 | pub async fn get_credentials( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 85 | pub fn clear_credentials(&self, instance: &SsoInstance, role: &AccountRole) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | pub fn clear_all(&self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `cache_dir` is never read [INFO] [stdout] --> src/credentials/cache.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct CredentialCache { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] 10 | cache_dir: PathBuf, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `cache_key`, `cache_file_path`, `get_credentials`, `save_credentials`, `remove_credentials`, and `clear_all` are never used [INFO] [stdout] --> src/credentials/cache.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 13 | impl CredentialCache { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 30 | fn cache_key(&self, instance: &SsoInstance, role: &AccountRole) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | fn cache_file_path(&self, instance: &SsoInstance, role: &AccountRole) -> PathBuf { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn get_credentials( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | pub fn save_credentials( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | pub fn remove_credentials(&self, instance: &SsoInstance, role: &AccountRole) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | pub fn clear_all(&self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `AuthorizationPending` and `AccountRoleNotFound` are never constructed [INFO] [stdout] --> src/error.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum SsoError { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 12 | AuthorizationPending, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | AccountRoleNotFound, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SsoError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `format_time_remaining` is never used [INFO] [stdout] --> src/expiry/mod.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn format_time_remaining(expires_at: &DateTime) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_expiring_soon` is never used [INFO] [stdout] --> src/expiry/mod.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn is_expiring_soon(expires_at: &DateTime, threshold_minutes: i64) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AwsAccount` is never constructed [INFO] [stdout] --> src/models.rs:82:12 [INFO] [stdout] | [INFO] [stdout] 82 | pub struct AwsAccount { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `profile_name`, `account_role`, `is_default`, and `sso_instance` are never read [INFO] [stdout] --> src/models.rs:152:9 [INFO] [stdout] | [INFO] [stdout] 151 | pub struct ProfileSession { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 152 | pub profile_name: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 153 | pub account_role: AccountRole, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 154 | pub credentials: Option, [INFO] [stdout] 155 | pub is_default: bool, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 156 | pub sso_instance: SsoInstance, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ProfileSession` 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 `SessionManager` is never constructed [INFO] [stdout] --> src/session/mod.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct SessionManager { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `login`, and `activate_session` are never used [INFO] [stdout] --> src/session/mod.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl SessionManager { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 13 | pub fn new() -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | pub async fn login( [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub async fn activate_session( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `prompt_sso_config` is never used [INFO] [stdout] --> src/sso_config.rs:70:8 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn prompt_sso_config() -> Result<(String, String, String)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Cancelled` is never constructed [INFO] [stdout] --> src/ui/app.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 29 | enum LoginResult { [INFO] [stdout] | ----------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 39 | Cancelled, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ProfileInput` is never constructed [INFO] [stdout] --> src/ui/app.rs:152:5 [INFO] [stdout] | [INFO] [stdout] 142 | enum AppState { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 152 | ProfileInput, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AppState` 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 `account` is never read [INFO] [stdout] --> src/ui/app.rs:189:9 [INFO] [stdout] | [INFO] [stdout] 187 | MakeProfileDefault { [INFO] [stdout] | ------------------ field in this variant [INFO] [stdout] 188 | from_profile: String, [INFO] [stdout] 189 | account: AccountRole, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ConfirmAction` 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: methods `get_current_token`, `get_current_instance`, `login`, `logout`, `load_sso_session`, and `get_credentials_for_role` are never used [INFO] [stdout] --> src/ui/app.rs:259:8 [INFO] [stdout] | [INFO] [stdout] 204 | impl App { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 259 | fn get_current_token(&self) -> Option<&SsoToken> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 265 | fn get_current_instance(&self) -> Option<&SsoInstance> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2099 | async fn login(&mut self) -> Result<()> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2184 | async fn logout(&mut self) -> Result<()> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2277 | async fn load_sso_session(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2481 | async fn get_credentials_for_role(&mut self, account: &AccountRole) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `list_tokens` is never used [INFO] [stdout] --> src/auth/token_cache.rs:98:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl TokenCache { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 98 | pub fn list_tokens(&self) -> 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 `read_default_config` is never used [INFO] [stdout] --> src/aws_config.rs:648:8 [INFO] [stdout] | [INFO] [stdout] 648 | pub fn read_default_config() -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_default_config` is never used [INFO] [stdout] --> src/aws_config.rs:938:8 [INFO] [stdout] | [INFO] [stdout] 938 | pub fn write_default_config(config: &DefaultConfig) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `update_ini_section` is never used [INFO] [stdout] --> src/aws_config.rs:1631:4 [INFO] [stdout] | [INFO] [stdout] 1631 | fn update_ini_section(content: &str, section_name: &str, key_values: &[(&str, &str)]) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `list_profiles` is never used [INFO] [stdout] --> src/aws_config.rs:1636:8 [INFO] [stdout] | [INFO] [stdout] 1636 | pub fn list_profiles() -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_profile_for_role` is never used [INFO] [stdout] --> src/aws_config.rs:1881:8 [INFO] [stdout] | [INFO] [stdout] 1881 | pub fn get_profile_for_role(account: &AccountRole) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_profile_match` is never used [INFO] [stdout] --> src/aws_config.rs:1926:4 [INFO] [stdout] | [INFO] [stdout] 1926 | fn check_profile_match( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `cache` is never read [INFO] [stdout] --> src/credentials/mod.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct CredentialManager { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] 13 | cache: CredentialCache, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_credentials`, `clear_credentials`, and `clear_all` are never used [INFO] [stdout] --> src/credentials/mod.rs:24:18 [INFO] [stdout] | [INFO] [stdout] 16 | impl CredentialManager { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 24 | pub async fn get_credentials( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 85 | pub fn clear_credentials(&self, instance: &SsoInstance, role: &AccountRole) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | pub fn clear_all(&self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `cache_dir` is never read [INFO] [stdout] --> src/credentials/cache.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct CredentialCache { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] 10 | cache_dir: PathBuf, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `cache_key`, `cache_file_path`, `get_credentials`, `save_credentials`, `remove_credentials`, and `clear_all` are never used [INFO] [stdout] --> src/credentials/cache.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 13 | impl CredentialCache { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 30 | fn cache_key(&self, instance: &SsoInstance, role: &AccountRole) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | fn cache_file_path(&self, instance: &SsoInstance, role: &AccountRole) -> PathBuf { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn get_credentials( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | pub fn save_credentials( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | pub fn remove_credentials(&self, instance: &SsoInstance, role: &AccountRole) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | pub fn clear_all(&self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `AuthorizationPending` and `AccountRoleNotFound` are never constructed [INFO] [stdout] --> src/error.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum SsoError { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 12 | AuthorizationPending, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | AccountRoleNotFound, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SsoError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `format_time_remaining` is never used [INFO] [stdout] --> src/expiry/mod.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn format_time_remaining(expires_at: &DateTime) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_expiring_soon` is never used [INFO] [stdout] --> src/expiry/mod.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn is_expiring_soon(expires_at: &DateTime, threshold_minutes: i64) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AwsAccount` is never constructed [INFO] [stdout] --> src/models.rs:82:12 [INFO] [stdout] | [INFO] [stdout] 82 | pub struct AwsAccount { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `display_name` and `full_display` are never used [INFO] [stdout] --> src/models.rs:96:12 [INFO] [stdout] | [INFO] [stdout] 95 | impl AccountRole { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] 96 | pub fn display_name(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 100 | pub fn full_display(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_expired` is never used [INFO] [stdout] --> src/models.rs:118:12 [INFO] [stdout] | [INFO] [stdout] 117 | impl RoleCredentials { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] 118 | pub fn is_expired(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ProfileSession` is never constructed [INFO] [stdout] --> src/models.rs:151:12 [INFO] [stdout] | [INFO] [stdout] 151 | pub struct ProfileSession { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_active` and `status` are never used [INFO] [stdout] --> src/models.rs:160:12 [INFO] [stdout] | [INFO] [stdout] 159 | impl ProfileSession { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] 160 | pub fn is_active(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 167 | pub fn status(&self) -> SessionStatus { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `SessionStatus` is never used [INFO] [stdout] --> src/models.rs:178:10 [INFO] [stdout] | [INFO] [stdout] 178 | pub enum SessionStatus { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_str` is never used [INFO] [stdout] --> src/models.rs:186:12 [INFO] [stdout] | [INFO] [stdout] 185 | impl SessionStatus { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] 186 | pub fn as_str(&self) -> &str { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SessionManager` is never constructed [INFO] [stdout] --> src/session/mod.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct SessionManager { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `login`, and `activate_session` are never used [INFO] [stdout] --> src/session/mod.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl SessionManager { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 13 | pub fn new() -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | pub async fn login( [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub async fn activate_session( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `prompt_sso_config` is never used [INFO] [stdout] --> src/sso_config.rs:70:8 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn prompt_sso_config() -> Result<(String, String, String)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Cancelled` is never constructed [INFO] [stdout] --> src/ui/app.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 29 | enum LoginResult { [INFO] [stdout] | ----------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 39 | Cancelled, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ProfileInput` is never constructed [INFO] [stdout] --> src/ui/app.rs:152:5 [INFO] [stdout] | [INFO] [stdout] 142 | enum AppState { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 152 | ProfileInput, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AppState` 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 `account` is never read [INFO] [stdout] --> src/ui/app.rs:189:9 [INFO] [stdout] | [INFO] [stdout] 187 | MakeProfileDefault { [INFO] [stdout] | ------------------ field in this variant [INFO] [stdout] 188 | from_profile: String, [INFO] [stdout] 189 | account: AccountRole, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ConfirmAction` 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: methods `get_current_token`, `get_current_instance`, `login`, `logout`, `load_sso_session`, and `get_credentials_for_role` are never used [INFO] [stdout] --> src/ui/app.rs:259:8 [INFO] [stdout] | [INFO] [stdout] 204 | impl App { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 259 | fn get_current_token(&self) -> Option<&SsoToken> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 265 | fn get_current_instance(&self) -> Option<&SsoInstance> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2099 | async fn login(&mut self) -> Result<()> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2184 | async fn logout(&mut self) -> Result<()> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2277 | async fn load_sso_session(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2481 | async fn get_credentials_for_role(&mut self, account: &AccountRole) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 00s [INFO] running `Command { std: "docker" "inspect" "c9341fa914842dea39d8cafcdeaa8f0bf0106b149b98b322f8ecbd6bcd1c5940", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c9341fa914842dea39d8cafcdeaa8f0bf0106b149b98b322f8ecbd6bcd1c5940", kill_on_drop: false }` [INFO] [stdout] c9341fa914842dea39d8cafcdeaa8f0bf0106b149b98b322f8ecbd6bcd1c5940