[INFO] fetching crate oidc_agent_rs 0.2.12... [INFO] testing oidc_agent_rs-0.2.12 against master#c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 for pr-146098-8 [INFO] extracting crate oidc_agent_rs 0.2.12 into /workspace/builds/worker-1-tc1/source [INFO] started tweaking crates.io crate oidc_agent_rs 0.2.12 [INFO] finished tweaking crates.io crate oidc_agent_rs 0.2.12 [INFO] tweaked toml for crates.io crate oidc_agent_rs 0.2.12 written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate oidc_agent_rs 0.2.12 on toolchain c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate oidc_agent_rs 0.2.12 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" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded windows-result v0.3.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6c0f09615792d8051268aa6bc71dd8d913c1e2a90f4452e47da205151f663e72 [INFO] running `Command { std: "docker" "start" "-a" "6c0f09615792d8051268aa6bc71dd8d913c1e2a90f4452e47da205151f663e72", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6c0f09615792d8051268aa6bc71dd8d913c1e2a90f4452e47da205151f663e72", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6c0f09615792d8051268aa6bc71dd8d913c1e2a90f4452e47da205151f663e72", kill_on_drop: false }` [INFO] [stdout] 6c0f09615792d8051268aa6bc71dd8d913c1e2a90f4452e47da205151f663e72 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bca0242db8aa0bcf9221fdb644d6a9e7fdcccd9728fa05770792e3a9ab3d7d91 [INFO] running `Command { std: "docker" "start" "-a" "bca0242db8aa0bcf9221fdb644d6a9e7fdcccd9728fa05770792e3a9ab3d7d91", kill_on_drop: false }` [INFO] [stderr] Compiling percent-encoding v2.3.2 [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Compiling form_urlencoded v1.2.2 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [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 zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling zerovec v0.11.4 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.3 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling chrono v0.4.42 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling url v2.5.7 [INFO] [stderr] Compiling oidc_agent_rs v0.2.12 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 13.48s [INFO] running `Command { std: "docker" "inspect" "bca0242db8aa0bcf9221fdb644d6a9e7fdcccd9728fa05770792e3a9ab3d7d91", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bca0242db8aa0bcf9221fdb644d6a9e7fdcccd9728fa05770792e3a9ab3d7d91", kill_on_drop: false }` [INFO] [stdout] bca0242db8aa0bcf9221fdb644d6a9e7fdcccd9728fa05770792e3a9ab3d7d91 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a86ebf90a553b05b1a14159665b46d9838789cc46347069c8837a1530f5c4742 [INFO] running `Command { std: "docker" "start" "-a" "a86ebf90a553b05b1a14159665b46d9838789cc46347069c8837a1530f5c4742", kill_on_drop: false }` [INFO] [stderr] Compiling oidc_agent_rs v0.2.12 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.94s [INFO] running `Command { std: "docker" "inspect" "a86ebf90a553b05b1a14159665b46d9838789cc46347069c8837a1530f5c4742", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a86ebf90a553b05b1a14159665b46d9838789cc46347069c8837a1530f5c4742", kill_on_drop: false }` [INFO] [stdout] a86ebf90a553b05b1a14159665b46d9838789cc46347069c8837a1530f5c4742 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 5a21506eb253a3abe623e5313585507788d01d3923d33bd37fa4ad54a6ef1a01 [INFO] running `Command { std: "docker" "start" "-a" "5a21506eb253a3abe623e5313585507788d01d3923d33bd37fa4ad54a6ef1a01", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.08s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/oidc_agent_rs-324f57dc0466b650) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests oidc_agent_rs [INFO] [stdout] [INFO] [stdout] running 12 tests [INFO] [stdout] test src/lib.rs - Agent::get_access_token_full (line 237) ... FAILED [INFO] [stdout] test src/lib.rs - Agent::get_access_token (line 224) ... FAILED [INFO] [stdout] test src/lib.rs - Agent::send_request (line 309) ... FAILED [INFO] [stdout] test src/lib.rs - Agent::get_loaded_accounts (line 291) ... FAILED [INFO] [stdout] test src/lib.rs - (line 29) ... FAILED [INFO] [stdout] test src/lib.rs - Agent::get_mytoken (line 260) ... FAILED [INFO] [stdout] test src/lib.rs - Agent::get_socket_path (line 208) ... FAILED [INFO] [stdout] test src/lib.rs - Agent::get_mytoken_full (line 273) ... FAILED [INFO] [stdout] test src/lib.rs - (line 83) ... FAILED [INFO] [stdout] test src/lib.rs - (line 12) ... FAILED [INFO] [stdout] test src/lib.rs - (line 56) ... FAILED [INFO] [stdout] test src/lib.rs - (line 107) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - Agent::get_access_token_full (line 237) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `agent` in this scope [INFO] [stdout] --> src/lib.rs:238:10 [INFO] [stdout] | [INFO] [stdout] 238 | let at = agent.get_access_token_full("shortname")?; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `expiration_date` in this scope [INFO] [stdout] --> src/lib.rs:239:29 [INFO] [stdout] | [INFO] [stdout] 239 | assert_eq!(at.expires_at(), expiration_date); [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `issuer` in this scope [INFO] [stdout] --> src/lib.rs:240:25 [INFO] [stdout] | [INFO] [stdout] 240 | assert_eq!(at.issuer(), issuer); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `access_token` in this scope [INFO] [stdout] --> src/lib.rs:241:40 [INFO] [stdout] | [INFO] [stdout] 241 | assert_eq!(at.access_token().secret(), access_token); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Agent::get_access_token (line 224) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `agent` in this scope [INFO] [stdout] --> src/lib.rs:225:20 [INFO] [stdout] | [INFO] [stdout] 225 | let access_token = agent.get_access_token("shortname")?; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Agent::send_request (line 309) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `AccessTokenRequest` [INFO] [stdout] --> src/lib.rs:310:11 [INFO] [stdout] | [INFO] [stdout] 310 | let req = AccessTokenRequest::basic("mytoken"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ use of undeclared type `AccessTokenRequest` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 309 + use oidc_agent_rs::requests::AccessTokenRequest; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `agent` in this scope [INFO] [stdout] --> src/lib.rs:311:12 [INFO] [stdout] | [INFO] [stdout] 311 | let resp = agent.send_request(req)?; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `access_token` in this scope [INFO] [stdout] --> src/lib.rs:312:42 [INFO] [stdout] | [INFO] [stdout] 312 | assert_eq!(resp.access_token().secret(), access_token); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Agent::get_loaded_accounts (line 291) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `agent` in this scope [INFO] [stdout] --> src/lib.rs:292:16 [INFO] [stdout] | [INFO] [stdout] 292 | let accounts = agent.get_loaded_accounts()?; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 29) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `oidc_agent_rs::async_impl` [INFO] [stdout] --> src/lib.rs:31:20 [INFO] [stdout] | [INFO] [stdout] 31 | use oidc_agent_rs::async_impl::Agent; [INFO] [stdout] | ^^^^^^^^^^ could not find `async_impl` in `oidc_agent_rs` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:149:9 [INFO] [stdout] | [INFO] [stdout] 148 | #[cfg(feature = "async")] [INFO] [stdout] | ----------------- the item is gated behind the `r#async` feature [INFO] [stdout] 149 | pub mod async_impl; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> src/lib.rs:34:3 [INFO] [stdout] | [INFO] [stdout] 34 | #[tokio::main] [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | let agent = Agent::new().await?; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 37 | [INFO] [stdout] 38 | let at = agent.get_access_token("profile_shortname").await?; [INFO] [stdout] | ----- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `agent` an explicit type [INFO] [stdout] | [INFO] [stdout] 36 | let agent: /* Type */ = Agent::new().await?; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | let at = agent.get_access_token("profile_shortname").await?; [INFO] [stdout] | ^^ [INFO] [stdout] 39 | println!("{}", at.secret()); [INFO] [stdout] | -- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `at` an explicit type [INFO] [stdout] | [INFO] [stdout] 38 | let at: /* Type */ = agent.get_access_token("profile_shortname").await?; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/lib.rs:35:1 [INFO] [stdout] | [INFO] [stdout] 35 | async fn main() -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0432, E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Agent::get_mytoken (line 260) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `agent` in this scope [INFO] [stdout] --> src/lib.rs:261:15 [INFO] [stdout] | [INFO] [stdout] 261 | let mytoken = agent.get_mytoken("shortname")?; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Agent::get_socket_path (line 208) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Agent` [INFO] [stdout] --> src/lib.rs:209:13 [INFO] [stdout] | [INFO] [stdout] 209 | let agent = Agent::new()?; [INFO] [stdout] | ^^^^^ use of undeclared type `Agent` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 208 + use oidc_agent_rs::Agent; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Agent::get_mytoken_full (line 273) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `agent` in this scope [INFO] [stdout] --> src/lib.rs:274:10 [INFO] [stdout] | [INFO] [stdout] 274 | let mt = agent.get_mytoken_full("shortname")?; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `mt_issuer` in this scope [INFO] [stdout] --> src/lib.rs:275:33 [INFO] [stdout] | [INFO] [stdout] 275 | assert_eq!(mt.mytoken_issuer(), mt_issuer); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `issuer` in this scope [INFO] [stdout] --> src/lib.rs:276:30 [INFO] [stdout] | [INFO] [stdout] 276 | assert_eq!(mt.oidc_issuer(), issuer); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Capability` [INFO] [stdout] --> src/lib.rs:277:35 [INFO] [stdout] | [INFO] [stdout] 277 | assert_eq!(mt.capabilites(), vec![Capability::AT]); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Capability` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 273 + use oidc_agent_rs::mytoken::Capability; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `mytoken` in this scope [INFO] [stdout] --> src/lib.rs:278:35 [INFO] [stdout] | [INFO] [stdout] 278 | assert_eq!(mt.mytoken().secret(), mytoken) [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 83) stdout ---- [INFO] [stdout] Test executable failed (exit status: 1). [INFO] [stdout] [INFO] [stdout] stderr: [INFO] [stdout] Error: EnvVarError(NotPresent) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - (line 12) stdout ---- [INFO] [stdout] Test executable failed (exit status: 1). [INFO] [stdout] [INFO] [stdout] stderr: [INFO] [stdout] Error: EnvVarError(NotPresent) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - (line 56) stdout ---- [INFO] [stdout] Test executable failed (exit status: 1). [INFO] [stdout] [INFO] [stdout] stderr: [INFO] [stdout] Error: EnvVarError(NotPresent) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - (line 107) stdout ---- [INFO] [stdout] Test executable failed (exit status: 1). [INFO] [stdout] [INFO] [stdout] stderr: [INFO] [stdout] Error: EnvVarError(NotPresent) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - (line 107) [INFO] [stdout] src/lib.rs - (line 12) [INFO] [stdout] src/lib.rs - (line 29) [INFO] [stdout] src/lib.rs - (line 56) [INFO] [stdout] src/lib.rs - (line 83) [INFO] [stdout] src/lib.rs - Agent::get_access_token (line 224) [INFO] [stdout] src/lib.rs - Agent::get_access_token_full (line 237) [INFO] [stdout] src/lib.rs - Agent::get_loaded_accounts (line 291) [INFO] [stdout] src/lib.rs - Agent::get_mytoken (line 260) [INFO] [stdout] src/lib.rs - Agent::get_mytoken_full (line 273) [INFO] [stdout] src/lib.rs - Agent::get_socket_path (line 208) [INFO] [stdout] src/lib.rs - Agent::send_request (line 309) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 12 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.24s [INFO] [stdout] [INFO] [stdout] all doctests ran in 1.41s; merged doctests compilation took 0.17s [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "5a21506eb253a3abe623e5313585507788d01d3923d33bd37fa4ad54a6ef1a01", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5a21506eb253a3abe623e5313585507788d01d3923d33bd37fa4ad54a6ef1a01", kill_on_drop: false }` [INFO] [stdout] 5a21506eb253a3abe623e5313585507788d01d3923d33bd37fa4ad54a6ef1a01