[INFO] cloning repository https://github.com/oleksiimorozenko/awsom [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/oleksiimorozenko/awsom" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Foleksiimorozenko%2Fawsom", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Foleksiimorozenko%2Fawsom'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1af2a4563d2f95b7a513e9464f3761f528be2fce [INFO] testing oleksiimorozenko/awsom against try#c2e32f1c9652b13ed99608599c1e855462f421f3 for pr-146098-7 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Foleksiimorozenko%2Fawsom" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/oleksiimorozenko/awsom [INFO] finished tweaking git repo https://github.com/oleksiimorozenko/awsom [INFO] tweaked toml for git repo https://github.com/oleksiimorozenko/awsom written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/oleksiimorozenko/awsom on toolchain c2e32f1c9652b13ed99608599c1e855462f421f3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/oleksiimorozenko/awsom 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" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8a6c8d57ee71e0e928a2377a59149f70b22e3ba0214de7a866ee9b2634d4a4d1 [INFO] running `Command { std: "docker" "start" "-a" "8a6c8d57ee71e0e928a2377a59149f70b22e3ba0214de7a866ee9b2634d4a4d1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8a6c8d57ee71e0e928a2377a59149f70b22e3ba0214de7a866ee9b2634d4a4d1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8a6c8d57ee71e0e928a2377a59149f70b22e3ba0214de7a866ee9b2634d4a4d1", kill_on_drop: false }` [INFO] [stdout] 8a6c8d57ee71e0e928a2377a59149f70b22e3ba0214de7a866ee9b2634d4a4d1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ac3f3ab60708a8123572d55f3ab00312b8e40f31ed7cec01f2b0c2052bb2f1c0 [INFO] running `Command { std: "docker" "start" "-a" "ac3f3ab60708a8123572d55f3ab00312b8e40f31ed7cec01f2b0c2052bb2f1c0", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Compiling unicode-ident v1.0.19 [INFO] [stderr] Compiling quote v1.0.41 [INFO] [stderr] Compiling libc v0.2.177 [INFO] [stderr] Compiling cfg-if v1.0.3 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling log v0.4.28 [INFO] [stderr] Compiling find-msvc-tools v0.1.3 [INFO] [stderr] Compiling parking_lot_core v0.9.12 [INFO] [stderr] Compiling lock_api v0.4.14 [INFO] [stderr] Compiling slab v0.4.11 [INFO] [stderr] Compiling http v1.3.1 [INFO] [stderr] Compiling memchr v2.7.6 [INFO] [stderr] Compiling tracing-core v0.1.34 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling futures-io v0.3.31 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling allocator-api2 v0.2.21 [INFO] [stderr] Compiling foldhash v0.1.5 [INFO] [stderr] Compiling zeroize v1.8.2 [INFO] [stderr] Compiling autocfg v1.5.0 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling deranged v0.5.4 [INFO] [stderr] Compiling libloading v0.8.8 [INFO] [stderr] Compiling percent-encoding v2.3.2 [INFO] [stderr] Compiling dunce v1.0.5 [INFO] [stderr] Compiling outref v0.5.2 [INFO] [stderr] Compiling vsimd v0.8.0 [INFO] [stderr] Compiling time-core v0.1.6 [INFO] [stderr] Compiling fs_extra v1.3.0 [INFO] [stderr] Compiling num-conv v0.1.0 [INFO] [stderr] Compiling bytes-utils v0.1.4 [INFO] [stderr] Compiling stable_deref_trait v1.2.1 [INFO] [stderr] Compiling subtle v2.6.1 [INFO] [stderr] Compiling typenum v1.19.0 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling bitflags v2.9.4 [INFO] [stderr] Compiling hashbrown v0.15.5 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling base64-simd v0.8.0 [INFO] [stderr] Compiling aws-lc-rs v1.14.1 [INFO] [stderr] Compiling jobserver v0.1.34 [INFO] [stderr] Compiling signal-hook-registry v1.4.6 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling socket2 v0.6.0 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling cc v1.2.40 [INFO] [stderr] Compiling parking_lot v0.12.5 [INFO] [stderr] Compiling http-body-util v0.1.3 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling rustls-pki-types v1.12.0 [INFO] [stderr] Compiling rustls v0.21.12 [INFO] [stderr] Compiling base64 v0.22.1 [INFO] [stderr] Compiling rustls v0.23.32 [INFO] [stderr] Compiling form_urlencoded v1.2.2 [INFO] [stderr] Compiling indexmap v2.11.4 [INFO] [stderr] Compiling sync_wrapper v1.0.2 [INFO] [stderr] Compiling tower-layer v0.3.3 [INFO] [stderr] Compiling socket2 v0.5.10 [INFO] [stderr] Compiling semver v1.0.27 [INFO] [stderr] Compiling rustls-native-certs v0.6.3 [INFO] [stderr] Compiling rustls-native-certs v0.8.1 [INFO] [stderr] Compiling cpufeatures v0.2.17 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling strsim v0.11.1 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Compiling rustversion v1.0.22 [INFO] [stderr] Compiling rustc_version v0.4.1 [INFO] [stderr] Compiling rustix v1.1.2 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling fastrand v2.3.0 [INFO] [stderr] Compiling utf8parse v0.2.2 [INFO] [stderr] Compiling aws-types v1.3.9 [INFO] [stderr] Compiling ident_case v1.0.1 [INFO] [stderr] Compiling prettyplease v0.2.37 [INFO] [stderr] Compiling linux-raw-sys v0.11.0 [INFO] [stderr] Compiling signal-hook v0.3.18 [INFO] [stderr] Compiling anstyle-parse v0.2.7 [INFO] [stderr] Compiling regex-lite v0.1.7 [INFO] [stderr] Compiling is_terminal_polyfill v1.70.1 [INFO] [stderr] Compiling anstyle v1.0.13 [INFO] [stderr] Compiling anstyle-query v1.1.4 [INFO] [stderr] Compiling rustix v0.38.44 [INFO] [stderr] Compiling colorchoice v1.0.4 [INFO] [stderr] Compiling time v0.3.44 [INFO] [stderr] Compiling anstream v0.6.21 [INFO] [stderr] Compiling cmake v0.1.54 [INFO] [stderr] Compiling itertools v0.14.0 [INFO] [stderr] Compiling xmlparser v0.13.6 [INFO] [stderr] Compiling clap_lex v0.7.5 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling linux-raw-sys v0.4.15 [INFO] [stderr] Compiling regex-syntax v0.8.6 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Compiling instability v0.3.9 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling aws-smithy-xml v0.60.11 [INFO] [stderr] Compiling castaway v0.2.4 [INFO] [stderr] Compiling signal-hook-mio v0.2.4 [INFO] [stderr] Compiling itertools v0.13.0 [INFO] [stderr] Compiling unicode-width v0.1.14 [INFO] [stderr] Compiling indoc v2.0.6 [INFO] [stderr] Compiling iri-string v0.7.8 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Compiling unicode-segmentation v1.12.0 [INFO] [stderr] Compiling toml_write v0.1.2 [INFO] [stderr] Compiling thiserror v2.0.17 [INFO] [stderr] Compiling anyhow v1.0.100 [INFO] [stderr] Compiling winnow v0.7.13 [INFO] [stderr] Compiling compact_str v0.8.1 [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] Compiling terminal_size v0.4.3 [INFO] [stderr] Compiling clap_builder v4.5.48 [INFO] [stderr] Compiling dirs-sys v0.4.1 [INFO] [stderr] Compiling sharded-slab v0.1.7 [INFO] [stderr] Compiling unicode-truncate v1.1.0 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling crossterm v0.28.1 [INFO] [stderr] Compiling lru v0.12.5 [INFO] [stderr] Compiling tracing-log v0.2.0 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling darling_core v0.20.11 [INFO] [stderr] Compiling regex-automata v0.4.11 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling thread_local v1.1.9 [INFO] [stderr] Compiling cassowary v0.3.0 [INFO] [stderr] Compiling nu-ansi-term v0.50.1 [INFO] [stderr] Compiling iana-time-zone v0.1.64 [INFO] [stderr] Compiling unicode-width v0.2.0 [INFO] [stderr] Compiling dirs v5.0.1 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling darling_macro v0.20.11 [INFO] [stderr] Compiling clap_derive v4.5.47 [INFO] [stderr] Compiling strum_macros v0.26.4 [INFO] [stderr] Compiling thiserror-impl v2.0.17 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling darling v0.20.11 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling matchers v0.2.0 [INFO] [stderr] Compiling zerovec v0.11.4 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling tracing-subscriber v0.3.20 [INFO] [stderr] Compiling clap v4.5.48 [INFO] [stderr] Compiling clap_complete v4.5.58 [INFO] [stderr] Compiling sct v0.7.1 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling rustls-webpki v0.101.7 [INFO] [stderr] Compiling potential_utf v0.1.3 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling strum v0.26.3 [INFO] [stderr] Compiling ratatui v0.29.0 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling uuid v1.18.1 [INFO] [stderr] Compiling serde_spanned v0.6.9 [INFO] [stderr] Compiling toml_datetime v0.6.11 [INFO] [stderr] Compiling catppuccin v2.5.1 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling chrono v0.4.42 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling toml_edit v0.22.27 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling tokio-util v0.7.16 [INFO] [stderr] Compiling aws-smithy-async v1.2.6 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling tokio-rustls v0.24.1 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling url v2.5.7 [INFO] [stderr] Compiling toml v0.8.23 [INFO] [stderr] Compiling aws-smithy-types v1.3.3 [INFO] [stderr] Compiling h2 v0.4.12 [INFO] [stderr] Compiling h2 v0.3.27 [INFO] [stderr] Compiling tower-http v0.6.6 [INFO] [stderr] Compiling webbrowser v1.0.5 [INFO] [stderr] Compiling aws-smithy-runtime-api v1.9.1 [INFO] [stderr] Compiling aws-smithy-json v0.61.6 [INFO] [stderr] Compiling aws-smithy-query v0.60.8 [INFO] [stderr] Compiling aws-credential-types v1.2.8 [INFO] [stderr] Compiling aws-smithy-http v0.62.4 [INFO] [stderr] Compiling aws-smithy-observability v0.1.4 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling aws-sigv4 v1.3.5 [INFO] [stderr] Compiling hyper v1.7.0 [INFO] [stderr] Compiling hyper-util v0.1.17 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling reqwest v0.12.23 [INFO] [stderr] Compiling hyper-rustls v0.24.2 [INFO] [stderr] Compiling rustls-webpki v0.103.7 [INFO] [stderr] Compiling tokio-rustls v0.26.4 [INFO] [stderr] Compiling hyper-rustls v0.27.7 [INFO] [stderr] Compiling aws-smithy-http-client v1.1.3 [INFO] [stderr] Compiling aws-smithy-runtime v1.9.3 [INFO] [stderr] Compiling aws-runtime v1.5.12 [INFO] [stderr] Compiling aws-sdk-ssooidc v1.88.0 [INFO] [stderr] Compiling aws-sdk-sts v1.88.0 [INFO] [stderr] Compiling aws-sdk-sso v1.86.0 [INFO] [stderr] Compiling aws-config v1.8.8 [INFO] [stderr] Compiling 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: 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 2m 17s [INFO] running `Command { std: "docker" "inspect" "ac3f3ab60708a8123572d55f3ab00312b8e40f31ed7cec01f2b0c2052bb2f1c0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ac3f3ab60708a8123572d55f3ab00312b8e40f31ed7cec01f2b0c2052bb2f1c0", kill_on_drop: false }` [INFO] [stdout] ac3f3ab60708a8123572d55f3ab00312b8e40f31ed7cec01f2b0c2052bb2f1c0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 83affc29b398611f693262c08add1e025f0859b2386f5add97e479442936e922 [INFO] running `Command { std: "docker" "start" "-a" "83affc29b398611f693262c08add1e025f0859b2386f5add97e479442936e922", kill_on_drop: false }` [INFO] [stderr] Compiling rustix v1.1.2 [INFO] [stderr] Compiling predicates-core v1.0.9 [INFO] [stderr] Compiling mockall_derive v0.13.1 [INFO] [stderr] Compiling termtree v0.5.1 [INFO] [stderr] Compiling fragile v2.0.1 [INFO] [stderr] Compiling downcast v0.11.0 [INFO] [stderr] Compiling predicates v3.1.3 [INFO] [stderr] Compiling predicates-tree v1.0.12 [INFO] [stderr] Compiling terminal_size v0.4.3 [INFO] [stderr] Compiling tempfile v3.23.0 [INFO] [stderr] Compiling clap_builder v4.5.48 [INFO] [stderr] Compiling mockall v0.13.1 [INFO] [stderr] Compiling clap v4.5.48 [INFO] [stderr] Compiling clap_complete v4.5.58 [INFO] [stderr] Compiling 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] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 19.95s [INFO] running `Command { std: "docker" "inspect" "83affc29b398611f693262c08add1e025f0859b2386f5add97e479442936e922", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "83affc29b398611f693262c08add1e025f0859b2386f5add97e479442936e922", kill_on_drop: false }` [INFO] [stdout] 83affc29b398611f693262c08add1e025f0859b2386f5add97e479442936e922 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 56af043945098f4fb3db0be4f0c0e57dfe970b26e38a2b36a346313d86998538 [INFO] running `Command { std: "docker" "start" "-a" "56af043945098f4fb3db0be4f0c0e57dfe970b26e38a2b36a346313d86998538", kill_on_drop: false }` [INFO] [stderr] warning: method `list_tokens` is never used [INFO] [stderr] --> src/auth/token_cache.rs:98:12 [INFO] [stderr] | [INFO] [stderr] 13 | impl TokenCache { [INFO] [stderr] | --------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 98 | pub fn list_tokens(&self) -> Result> { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: function `read_default_config` is never used [INFO] [stderr] --> src/aws_config.rs:648:8 [INFO] [stderr] | [INFO] [stderr] 648 | pub fn read_default_config() -> Result> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `write_default_config` is never used [INFO] [stderr] --> src/aws_config.rs:938:8 [INFO] [stderr] | [INFO] [stderr] 938 | pub fn write_default_config(config: &DefaultConfig) -> Result<()> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `update_ini_section` is never used [INFO] [stderr] --> src/aws_config.rs:1631:4 [INFO] [stderr] | [INFO] [stderr] 1631 | fn update_ini_section(content: &str, section_name: &str, key_values: &[(&str, &str)]) -> String { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `list_profiles` is never used [INFO] [stderr] --> src/aws_config.rs:1636:8 [INFO] [stderr] | [INFO] [stderr] 1636 | pub fn list_profiles() -> Result> { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `get_profile_for_role` is never used [INFO] [stderr] --> src/aws_config.rs:1881:8 [INFO] [stderr] | [INFO] [stderr] 1881 | pub fn get_profile_for_role(account: &AccountRole) -> Result> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `check_profile_match` is never used [INFO] [stderr] --> src/aws_config.rs:1926:4 [INFO] [stderr] | [INFO] [stderr] 1926 | fn check_profile_match( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `cache` is never read [INFO] [stderr] --> src/credentials/mod.rs:13:5 [INFO] [stderr] | [INFO] [stderr] 12 | pub struct CredentialManager { [INFO] [stderr] | ----------------- field in this struct [INFO] [stderr] 13 | cache: CredentialCache, [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `get_credentials`, `clear_credentials`, and `clear_all` are never used [INFO] [stderr] --> src/credentials/mod.rs:24:18 [INFO] [stderr] | [INFO] [stderr] 16 | impl CredentialManager { [INFO] [stderr] | ---------------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 24 | pub async fn get_credentials( [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 85 | pub fn clear_credentials(&self, instance: &SsoInstance, role: &AccountRole) -> Result<()> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 90 | pub fn clear_all(&self) -> Result<()> { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `cache_dir` is never read [INFO] [stderr] --> src/credentials/cache.rs:10:5 [INFO] [stderr] | [INFO] [stderr] 9 | pub struct CredentialCache { [INFO] [stderr] | --------------- field in this struct [INFO] [stderr] 10 | cache_dir: PathBuf, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `cache_key`, `cache_file_path`, `get_credentials`, `save_credentials`, `remove_credentials`, and `clear_all` are never used [INFO] [stderr] --> src/credentials/cache.rs:30:8 [INFO] [stderr] | [INFO] [stderr] 13 | impl CredentialCache { [INFO] [stderr] | -------------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 30 | fn cache_key(&self, instance: &SsoInstance, role: &AccountRole) -> String { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 41 | fn cache_file_path(&self, instance: &SsoInstance, role: &AccountRole) -> PathBuf { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 47 | pub fn get_credentials( [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 72 | pub fn save_credentials( [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 89 | pub fn remove_credentials(&self, instance: &SsoInstance, role: &AccountRole) -> Result<()> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 101 | pub fn clear_all(&self) -> Result<()> { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variants `AuthorizationPending` and `AccountRoleNotFound` are never constructed [INFO] [stderr] --> src/error.rs:12:5 [INFO] [stderr] | [INFO] [stderr] 4 | pub enum SsoError { [INFO] [stderr] | -------- variants in this enum [INFO] [stderr] ... [INFO] [stderr] 12 | AuthorizationPending, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 42 | AccountRoleNotFound, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `SsoError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: function `format_time_remaining` is never used [INFO] [stderr] --> src/expiry/mod.rs:4:8 [INFO] [stderr] | [INFO] [stderr] 4 | pub fn format_time_remaining(expires_at: &DateTime) -> String { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `is_expiring_soon` is never used [INFO] [stderr] --> src/expiry/mod.rs:24:8 [INFO] [stderr] | [INFO] [stderr] 24 | pub fn is_expiring_soon(expires_at: &DateTime, threshold_minutes: i64) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `AwsAccount` is never constructed [INFO] [stderr] --> src/models.rs:82:12 [INFO] [stderr] | [INFO] [stderr] 82 | pub struct AwsAccount { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `profile_name`, `account_role`, `is_default`, and `sso_instance` are never read [INFO] [stderr] --> src/models.rs:152:9 [INFO] [stderr] | [INFO] [stderr] 151 | pub struct ProfileSession { [INFO] [stderr] | -------------- fields in this struct [INFO] [stderr] 152 | pub profile_name: String, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] 153 | pub account_role: AccountRole, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] 154 | pub credentials: Option, [INFO] [stderr] 155 | pub is_default: bool, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] 156 | pub sso_instance: SsoInstance, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `ProfileSession` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: struct `SessionManager` is never constructed [INFO] [stderr] --> src/session/mod.rs:7:12 [INFO] [stderr] | [INFO] [stderr] 7 | pub struct SessionManager { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated items `new`, `login`, and `activate_session` are never used [INFO] [stderr] --> src/session/mod.rs:13:12 [INFO] [stderr] | [INFO] [stderr] 12 | impl SessionManager { [INFO] [stderr] | ------------------- associated items in this implementation [INFO] [stderr] 13 | pub fn new() -> Result { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 20 | pub async fn login( [INFO] [stderr] | ^^^^^ [INFO] [stderr] ... [INFO] [stderr] 29 | pub async fn activate_session( [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `prompt_sso_config` is never used [INFO] [stderr] --> src/sso_config.rs:70:8 [INFO] [stderr] | [INFO] [stderr] 70 | pub fn prompt_sso_config() -> Result<(String, String, String)> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant `Cancelled` is never constructed [INFO] [stderr] --> src/ui/app.rs:39:5 [INFO] [stderr] | [INFO] [stderr] 29 | enum LoginResult { [INFO] [stderr] | ----------- variant in this enum [INFO] [stderr] ... [INFO] [stderr] 39 | Cancelled, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant `ProfileInput` is never constructed [INFO] [stderr] --> src/ui/app.rs:152:5 [INFO] [stderr] | [INFO] [stderr] 142 | enum AppState { [INFO] [stderr] | -------- variant in this enum [INFO] [stderr] ... [INFO] [stderr] 152 | ProfileInput, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `AppState` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: field `account` is never read [INFO] [stderr] --> src/ui/app.rs:189:9 [INFO] [stderr] | [INFO] [stderr] 187 | MakeProfileDefault { [INFO] [stderr] | ------------------ field in this variant [INFO] [stderr] 188 | from_profile: String, [INFO] [stderr] 189 | account: AccountRole, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `ConfirmAction` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: methods `get_current_token`, `get_current_instance`, `login`, `logout`, `load_sso_session`, and `get_credentials_for_role` are never used [INFO] [stderr] --> src/ui/app.rs:259:8 [INFO] [stderr] | [INFO] [stderr] 204 | impl App { [INFO] [stderr] | -------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 259 | fn get_current_token(&self) -> Option<&SsoToken> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 265 | fn get_current_instance(&self) -> Option<&SsoInstance> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 2099 | async fn login(&mut self) -> Result<()> { [INFO] [stderr] | ^^^^^ [INFO] [stderr] ... [INFO] [stderr] 2184 | async fn logout(&mut self) -> Result<()> { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 2277 | async fn load_sso_session(&mut self) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 2481 | async fn get_credentials_for_role(&mut self, account: &AccountRole) -> Result<()> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `awsom` (bin "awsom" test) generated 23 warnings [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.41s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/awsom-52c2e3ad067440fc) [INFO] [stdout] [INFO] [stdout] running 7 tests [INFO] [stdout] test models::tests::test_role_credentials_expiration ... ok [INFO] [stdout] test models::tests::test_session_status ... ok [INFO] [stdout] test models::tests::test_profile_session_status ... ok [INFO] [stdout] test models::tests::test_sso_instance_equality ... ok [INFO] [stdout] test models::tests::test_sso_token_expiration_display ... ok [INFO] [stdout] test models::tests::test_account_role_display ... ok [INFO] [stdout] test models::tests::test_sso_token_is_expired ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 7 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "56af043945098f4fb3db0be4f0c0e57dfe970b26e38a2b36a346313d86998538", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "56af043945098f4fb3db0be4f0c0e57dfe970b26e38a2b36a346313d86998538", kill_on_drop: false }` [INFO] [stdout] 56af043945098f4fb3db0be4f0c0e57dfe970b26e38a2b36a346313d86998538