[INFO] cloning repository https://github.com/Erio-Harrison/pingora_learn
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Erio-Harrison/pingora_learn" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FErio-Harrison%2Fpingora_learn", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FErio-Harrison%2Fpingora_learn'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 7dfdc53f45d4a2f398126d954a89dbaaa7b913d6
[INFO] testing Erio-Harrison/pingora_learn against try#db823df02fd0c2cf67b43025ac3fef3f2d743245 for pr-150681
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FErio-Harrison%2Fpingora_learn" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/Erio-Harrison/pingora_learn
[INFO] finished tweaking git repo https://github.com/Erio-Harrison/pingora_learn
[INFO] tweaked toml for git repo https://github.com/Erio-Harrison/pingora_learn written to /workspace/builds/worker-5-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/Erio-Harrison/pingora_learn on toolchain db823df02fd0c2cf67b43025ac3fef3f2d743245
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/Erio-Harrison/pingora_learn 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" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 4cc75bb6a31ae7b5e7a1d35aafb9504dc54c366c81cb7e0ba715fb773d1f71a2
[INFO] running `Command { std: "docker" "start" "-a" "4cc75bb6a31ae7b5e7a1d35aafb9504dc54c366c81cb7e0ba715fb773d1f71a2", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "4cc75bb6a31ae7b5e7a1d35aafb9504dc54c366c81cb7e0ba715fb773d1f71a2", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "4cc75bb6a31ae7b5e7a1d35aafb9504dc54c366c81cb7e0ba715fb773d1f71a2", kill_on_drop: false }`
[INFO] [stdout] 4cc75bb6a31ae7b5e7a1d35aafb9504dc54c366c81cb7e0ba715fb773d1f71a2
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 49faabb42770303922b696f682b77b99a7643fdbe07b64b8dcfc7cd7c62faa66
[INFO] running `Command { std: "docker" "start" "-a" "49faabb42770303922b696f682b77b99a7643fdbe07b64b8dcfc7cd7c62faa66", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.174
[INFO] [stderr]    Compiling serde v1.0.219
[INFO] [stderr]    Compiling parking_lot_core v0.9.11
[INFO] [stderr]    Compiling memchr v2.7.5
[INFO] [stderr]    Compiling lock_api v0.4.13
[INFO] [stderr]    Compiling syn v2.0.104
[INFO] [stderr]    Compiling zerocopy v0.8.26
[INFO] [stderr]    Compiling num-traits v0.2.19
[INFO] [stderr]    Compiling hashbrown v0.15.4
[INFO] [stderr]    Compiling slab v0.4.10
[INFO] [stderr]    Compiling subtle v2.6.1
[INFO] [stderr]    Compiling syn v1.0.109
[INFO] [stderr]    Compiling digest v0.10.7
[INFO] [stderr]    Compiling jobserver v0.1.33
[INFO] [stderr]    Compiling litemap v0.8.0
[INFO] [stderr]    Compiling writeable v0.6.1
[INFO] [stderr]    Compiling cc v1.2.29
[INFO] [stderr]    Compiling indexmap v2.10.0
[INFO] [stderr]    Compiling icu_normalizer_data v2.0.0
[INFO] [stderr]    Compiling icu_properties_data v2.0.1
[INFO] [stderr]    Compiling crossbeam-queue v0.3.12
[INFO] [stderr]    Compiling futures-channel v0.3.31
[INFO] [stderr]    Compiling serde_json v1.0.143
[INFO] [stderr]    Compiling form_urlencoded v1.2.2
[INFO] [stderr]    Compiling mio v1.0.4
[INFO] [stderr]    Compiling signal-hook-registry v1.4.5
[INFO] [stderr]    Compiling socket2 v0.5.10
[INFO] [stderr]    Compiling ppv-lite86 v0.2.21
[INFO] [stderr]    Compiling getrandom v0.2.16
[INFO] [stderr]    Compiling rand_core v0.6.4
[INFO] [stderr]    Compiling getrandom v0.3.3
[INFO] [stderr]    Compiling rand_chacha v0.3.1
[INFO] [stderr]    Compiling cmake v0.1.54
[INFO] [stderr]    Compiling aho-corasick v1.1.3
[INFO] [stderr]    Compiling thread_local v1.1.9
[INFO] [stderr]    Compiling indexmap v1.9.3
[INFO] [stderr]    Compiling rustversion v1.0.21
[INFO] [stderr]    Compiling zstd-safe v7.2.4
[INFO] [stderr]    Compiling rand v0.8.5
[INFO] [stderr]    Compiling event-listener v5.4.1
[INFO] [stderr]    Compiling tinyvec v1.10.0
[INFO] [stderr]    Compiling zstd-sys v2.0.15+zstd.1.5.7
[INFO] [stderr]    Compiling libz-ng-sys v1.1.22
[INFO] [stderr]    Compiling proc-macro-error-attr v1.0.4
[INFO] [stderr]    Compiling hashlink v0.10.0
[INFO] [stderr]    Compiling regex-automata v0.4.9
[INFO] [stderr]    Compiling synstructure v0.13.2
[INFO] [stderr]    Compiling ahash v0.8.12
[INFO] [stderr]    Compiling memoffset v0.6.5
[INFO] [stderr]    Compiling futures-sink v0.3.31
[INFO] [stderr]    Compiling alloc-no-stdlib v2.0.4
[INFO] [stderr]    Compiling protobuf v2.28.0
[INFO] [stderr]    Compiling object v0.36.7
[INFO] [stderr]    Compiling rust_decimal v1.37.2
[INFO] [stderr]    Compiling alloc-stdlib v0.2.2
[INFO] [stderr]    Compiling tokio v1.46.1
[INFO] [stderr]    Compiling proc-macro-error v1.0.4
[INFO] [stderr]    Compiling regex v1.11.1
[INFO] [stderr]    Compiling unicode-normalization v0.1.24
[INFO] [stderr]    Compiling serde_derive v1.0.219
[INFO] [stderr]    Compiling zerofrom-derive v0.1.6
[INFO] [stderr]    Compiling yoke-derive v0.8.0
[INFO] [stderr]    Compiling tokio-macros v2.5.0
[INFO] [stderr]    Compiling zerovec-derive v0.11.1
[INFO] [stderr]    Compiling displaydoc v0.2.5
[INFO] [stderr]    Compiling zerofrom v0.1.6
[INFO] [stderr]    Compiling yoke v0.8.0
[INFO] [stderr]    Compiling tracing-attributes v0.1.30
[INFO] [stderr]    Compiling zerotrie v0.2.2
[INFO] [stderr]    Compiling zerovec v0.11.4
[INFO] [stderr]    Compiling futures-macro v0.3.31
[INFO] [stderr]    Compiling thiserror-impl v2.0.17
[INFO] [stderr]    Compiling futures-util v0.3.31
[INFO] [stderr]    Compiling tinystr v0.8.1
[INFO] [stderr]    Compiling potential_utf v0.1.3
[INFO] [stderr]    Compiling icu_locale_core v2.0.0
[INFO] [stderr]    Compiling icu_collections v2.0.0
[INFO] [stderr]    Compiling thiserror v2.0.17
[INFO] [stderr]    Compiling tracing v0.1.41
[INFO] [stderr]    Compiling thiserror-impl v1.0.69
[INFO] [stderr]    Compiling trackable_derive v1.0.0
[INFO] [stderr]    Compiling icu_provider v2.0.0
[INFO] [stderr]    Compiling icu_properties v2.0.1
[INFO] [stderr]    Compiling async-stream-impl v0.3.6
[INFO] [stderr]    Compiling crc32fast v1.5.0
[INFO] [stderr]    Compiling hmac v0.12.1
[INFO] [stderr]    Compiling gimli v0.31.1
[INFO] [stderr]    Compiling thiserror v1.0.69
[INFO] [stderr]    Compiling unicode-bidi v0.3.18
[INFO] [stderr]    Compiling os_str_bytes v6.6.1
[INFO] [stderr]    Compiling prometheus v0.13.4
[INFO] [stderr]    Compiling linked-hash-map v0.5.6
[INFO] [stderr]    Compiling pingora-error v0.5.0 (https://github.com/cloudflare/pingora.git#b941d91b)
[INFO] [stderr]    Compiling unicode-properties v0.1.3
[INFO] [stderr]    Compiling pingora-http v0.5.0 (https://github.com/cloudflare/pingora.git#b941d91b)
[INFO] [stderr]    Compiling stringprep v0.1.5
[INFO] [stderr]    Compiling futures-executor v0.3.31
[INFO] [stderr]    Compiling yaml-rust v0.4.5
[INFO] [stderr]    Compiling smallvec v1.15.1
[INFO] [stderr]    Compiling either v1.15.0
[INFO] [stderr]    Compiling icu_normalizer v2.0.0
[INFO] [stderr]    Compiling parking_lot v0.12.4
[INFO] [stderr]    Compiling chrono v0.4.41
[INFO] [stderr]    Compiling idna_adapter v1.2.1
[INFO] [stderr]    Compiling idna v1.1.0
[INFO] [stderr]    Compiling addr2line v0.24.2
[INFO] [stderr]    Compiling url v2.5.4
[INFO] [stderr]    Compiling futures-intrusive v0.5.0
[INFO] [stderr]    Compiling neli-proc-macros v0.1.4
[INFO] [stderr]    Compiling futures v0.3.31
[INFO] [stderr]    Compiling clap_lex v0.2.4
[INFO] [stderr]    Compiling async-stream v0.3.6
[INFO] [stderr]    Compiling clap_derive v3.2.25
[INFO] [stderr]    Compiling miniz_oxide v0.8.9
[INFO] [stderr]    Compiling hkdf v0.12.4
[INFO] [stderr]    Compiling trackable v1.3.0
[INFO] [stderr]    Compiling tokio-stream v0.1.17
[INFO] [stderr]    Compiling strum_macros v0.26.4
[INFO] [stderr]    Compiling async-trait v0.1.88
[INFO] [stderr]    Compiling brotli-decompressor v2.5.1
[INFO] [stderr]    Compiling sha2 v0.10.9
[INFO] [stderr]    Compiling atty v0.2.14
[INFO] [stderr]    Compiling md-5 v0.10.6
[INFO] [stderr]    Compiling lru v0.14.0
[INFO] [stderr]    Compiling uuid v1.17.0
[INFO] [stderr]    Compiling atomic-waker v1.1.2
[INFO] [stderr]    Compiling dotenvy v0.15.7
[INFO] [stderr]    Compiling textwrap v0.16.2
[INFO] [stderr]    Compiling bitflags v2.9.1
[INFO] [stderr]    Compiling zstd v0.13.3
[INFO] [stderr]    Compiling base64 v0.22.1
[INFO] [stderr]    Compiling whoami v1.6.1
[INFO] [stderr]    Compiling rustc-demangle v0.1.25
[INFO] [stderr]    Compiling tokio-util v0.7.15
[INFO] [stderr]    Compiling pingora-timeout v0.5.0 (https://github.com/cloudflare/pingora.git#b941d91b)
[INFO] [stderr]    Compiling tokio-test v0.4.4
[INFO] [stderr]    Compiling pingora-pool v0.5.0 (https://github.com/cloudflare/pingora.git#b941d91b)
[INFO] [stderr]    Compiling h2 v0.4.11
[INFO] [stderr]    Compiling pingora-runtime v0.5.0 (https://github.com/cloudflare/pingora.git#b941d91b)
[INFO] [stderr]    Compiling sqlx-core v0.8.6
[INFO] [stderr]    Compiling backtrace v0.3.75
[INFO] [stderr]    Compiling anstyle-parse v0.2.7
[INFO] [stderr]    Compiling clap v3.2.25
[INFO] [stderr]    Compiling flate2 v1.1.2
[INFO] [stderr]    Compiling strum v0.26.3
[INFO] [stderr]    Compiling sfv v0.10.4
[INFO] [stderr]    Compiling brotli v3.5.0
[INFO] [stderr]    Compiling nix v0.24.3
[INFO] [stderr]    Compiling neli v0.6.5
[INFO] [stderr]    Compiling serde_yaml v0.8.26
[INFO] [stderr]    Compiling derivative v2.2.0
[INFO] [stderr]    Compiling atoi v2.0.0
[INFO] [stderr]    Compiling daemonize v0.5.0
[INFO] [stderr]    Compiling num-integer v0.1.46
[INFO] [stderr]    Compiling anstyle v1.0.11
[INFO] [stderr]    Compiling colorchoice v1.0.4
[INFO] [stderr]    Compiling byteorder v1.5.0
[INFO] [stderr]    Compiling anstyle-query v1.1.3
[INFO] [stderr]    Compiling openssl-probe v0.1.6
[INFO] [stderr]    Compiling match_cfg v0.1.0
[INFO] [stderr]    Compiling anstream v0.6.19
[INFO] [stderr]    Compiling hostname v0.3.1
[INFO] [stderr]    Compiling sqlx-postgres v0.8.6
[INFO] [stderr]    Compiling deranged v0.5.4
[INFO] [stderr]    Compiling num-bigint v0.4.6
[INFO] [stderr]    Compiling local-ip-address v0.5.7
[INFO] [stderr]    Compiling pingora-core v0.5.0 (https://github.com/cloudflare/pingora.git#b941d91b)
[INFO] [stderr]    Compiling rmp v0.8.14
[INFO] [stderr]    Compiling cf-rustracing v1.1.0
[INFO] [stderr]    Compiling thrift_codec v0.2.0
[INFO] [stderr]    Compiling pin-project-internal v1.1.10
[INFO] [stderr]    Compiling ring v0.17.14
[INFO] [stderr]    Compiling inout v0.1.4
[INFO] [stderr]    Compiling cipher v0.4.4
[INFO] [stderr]    Compiling cf-rustracing-jaeger v1.2.0
[INFO] [stderr]    Compiling time v0.3.44
[INFO] [stderr]    Compiling rmp-serde v1.3.0
[INFO] [stderr]    Compiling pin-project v1.1.10
[INFO] [stderr]    Compiling pingora-header-serde v0.5.0 (https://github.com/cloudflare/pingora.git#b941d91b)
[INFO] [stderr]    Compiling pingora-lru v0.5.0 (https://github.com/cloudflare/pingora.git#b941d91b)
[INFO] [stderr]    Compiling blake2 v0.10.6
[INFO] [stderr]    Compiling arc-swap v1.7.1
[INFO] [stderr]    Compiling clap_lex v0.7.5
[INFO] [stderr]    Compiling tokio-retry v0.3.0
[INFO] [stderr]    Compiling clap_builder v4.5.41
[INFO] [stderr]    Compiling blowfish v0.9.1
[INFO] [stderr]    Compiling combine v4.6.7
[INFO] [stderr]    Compiling pingora-ketama v0.5.0 (https://github.com/cloudflare/pingora.git#b941d91b)
[INFO] [stderr]    Compiling clap_derive v4.5.41
[INFO] [stderr]    Compiling sqlx-macros-core v0.8.6
[INFO] [stderr]    Compiling simple_asn1 v0.6.3
[INFO] [stderr]    Compiling sqlx-macros v0.8.6
[INFO] [stderr]    Compiling pingora-cache v0.5.0 (https://github.com/cloudflare/pingora.git#b941d91b)
[INFO] [stderr]    Compiling env_filter v0.1.3
[INFO] [stderr]    Compiling pem v3.0.5
[INFO] [stderr]    Compiling unsafe-libyaml v0.2.11
[INFO] [stderr]    Compiling zeroize v1.8.2
[INFO] [stderr]    Compiling sha1_smol v1.0.1
[INFO] [stderr]    Compiling jiff v0.2.15
[INFO] [stderr]    Compiling bcrypt v0.15.1
[INFO] [stderr]    Compiling redis v0.26.1
[INFO] [stderr]    Compiling jsonwebtoken v9.3.1
[INFO] [stderr]    Compiling clap v4.5.41
[INFO] [stderr]    Compiling pingora-load-balancing v0.5.0 (https://github.com/cloudflare/pingora.git#b941d91b)
[INFO] [stderr]    Compiling serde_yaml v0.9.34+deprecated
[INFO] [stderr]    Compiling pingora-limits v0.5.0 (https://github.com/cloudflare/pingora.git#b941d91b)
[INFO] [stderr]    Compiling pingora-proxy v0.5.0 (https://github.com/cloudflare/pingora.git#b941d91b)
[INFO] [stderr]    Compiling dotenv v0.15.0
[INFO] [stderr]    Compiling sqlx v0.8.6
[INFO] [stderr]    Compiling env_logger v0.11.8
[INFO] [stderr]    Compiling pingora_learn v0.2.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: function `logout_all_devices` is never used
[INFO] [stdout]    --> src/auth/logout.rs:118:14
[INFO] [stdout]     |
[INFO] [stdout] 118 | pub async fn logout_all_devices(
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `del`, `expire`, `incr`, `incr_with_expiry`, and `check_rate_limit` are never used
[INFO] [stdout]    --> src/cache/client.rs:51:18
[INFO] [stdout]     |
[INFO] [stdout]  11 | impl RedisClient {
[INFO] [stdout]     | ---------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout]  51 |     pub async fn del(&self, key: &str) -> Result<(), redis::RedisError> {
[INFO] [stdout]     |                  ^^^
[INFO] [stdout] ...
[INFO] [stdout]  63 |     pub async fn expire(&self, key: &str, seconds: u64) -> Result<bool, redis::RedisError> {
[INFO] [stdout]     |                  ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  69 |     pub async fn incr(&self, key: &str) -> Result<i64, redis::RedisError> {
[INFO] [stdout]     |                  ^^^^
[INFO] [stdout] ...
[INFO] [stdout]  75 |     pub async fn incr_with_expiry(
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 111 |     pub async fn check_rate_limit(
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `close` is never used
[INFO] [stdout]   --> src/db/pool.rs:51:18
[INFO] [stdout]    |
[INFO] [stdout] 10 | impl DbPool {
[INFO] [stdout]    | ----------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 51 |     pub async fn close(&self) {
[INFO] [stdout]    |                  ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `token_hash` is never read
[INFO] [stdout]   --> src/db/token.rs:11:9
[INFO] [stdout]    |
[INFO] [stdout]  8 | pub struct RefreshToken {
[INFO] [stdout]    |            ------------ field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 11 |     pub token_hash: String,
[INFO] [stdout]    |         ^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `RefreshToken` 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 `revoke_all_user_tokens`, `get_user_tokens`, `cleanup_expired_tokens`, `count_user_active_tokens`, and `get_token_expiration` are never used
[INFO] [stdout]    --> src/db/token.rs:201:18
[INFO] [stdout]     |
[INFO] [stdout]  33 | impl<'a> TokenRepository<'a> {
[INFO] [stdout]     | ---------------------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 201 |     pub async fn revoke_all_user_tokens(&self, user_id: &Uuid) -> Result<u64, TokenError> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 225 |     pub async fn get_user_tokens(&self, user_id: &Uuid) -> Result<Vec<RefreshToken>, TokenError> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 246 |     pub async fn cleanup_expired_tokens(&self) -> Result<u64, TokenError> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 271 |     pub async fn count_user_active_tokens(&self, user_id: &Uuid) -> Result<i64, TokenError> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 294 |     pub async fn get_token_expiration(
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `find_by_id`, `update_password`, `delete`, `list`, `count`, and `verify_credentials` are never used
[INFO] [stdout]    --> src/db/user.rs:90:18
[INFO] [stdout]     |
[INFO] [stdout]  38 | impl<'a> UserRepository<'a> {
[INFO] [stdout]     | --------------------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout]  90 |     pub async fn find_by_id(&self, user_id: &Uuid) -> Result<User, UserError> {
[INFO] [stdout]     |                  ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 162 |     pub async fn update_password(
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 193 |     pub async fn delete(&self, user_id: &Uuid) -> Result<(), UserError> {
[INFO] [stdout]     |                  ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 221 |     pub async fn list(&self, limit: i64, offset: i64) -> Result<Vec<User>, UserError> {
[INFO] [stdout]     |                  ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 242 |     pub async fn count(&self) -> Result<i64, UserError> {
[INFO] [stdout]     |                  ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 270 |     pub async fn verify_credentials(
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated functions `unauthorized_response` and `requires_auth` are never used
[INFO] [stdout]   --> src/middleware/jwt.rs:40:12
[INFO] [stdout]    |
[INFO] [stdout]  8 | impl JwtMiddleware {
[INFO] [stdout]    | ------------------ associated functions in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 40 |     pub fn unauthorized_response() -> ResponseHeader {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 49 |     pub fn requires_auth(path: &str) -> bool {
[INFO] [stdout]    |            ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `too_many_requests_response` and `get_burst_size` are never used
[INFO] [stdout]    --> src/middleware/rate_limit.rs:104:12
[INFO] [stdout]     |
[INFO] [stdout]  11 | impl RateLimitMiddleware {
[INFO] [stdout]     | ------------------------ associated items in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 104 |     pub fn too_many_requests_response() -> ResponseHeader {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 118 |     pub fn get_burst_size(&self) -> u32 {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 5m 07s
[INFO] running `Command { std: "docker" "inspect" "49faabb42770303922b696f682b77b99a7643fdbe07b64b8dcfc7cd7c62faa66", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "49faabb42770303922b696f682b77b99a7643fdbe07b64b8dcfc7cd7c62faa66", kill_on_drop: false }`
[INFO] [stdout] 49faabb42770303922b696f682b77b99a7643fdbe07b64b8dcfc7cd7c62faa66
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] b3235370fecdfa51bf068b935a73611887050345b87ae5b7d88f746637256b40
[INFO] running `Command { std: "docker" "start" "-a" "b3235370fecdfa51bf068b935a73611887050345b87ae5b7d88f746637256b40", kill_on_drop: false }`
[INFO] [stderr]    Compiling pingora_learn v0.2.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: function `logout_all_devices` is never used
[INFO] [stdout]    --> src/auth/logout.rs:118:14
[INFO] [stdout]     |
[INFO] [stdout] 118 | pub async fn logout_all_devices(
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `del`, `expire`, `incr`, `incr_with_expiry`, and `check_rate_limit` are never used
[INFO] [stdout]    --> src/cache/client.rs:51:18
[INFO] [stdout]     |
[INFO] [stdout]  11 | impl RedisClient {
[INFO] [stdout]     | ---------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout]  51 |     pub async fn del(&self, key: &str) -> Result<(), redis::RedisError> {
[INFO] [stdout]     |                  ^^^
[INFO] [stdout] ...
[INFO] [stdout]  63 |     pub async fn expire(&self, key: &str, seconds: u64) -> Result<bool, redis::RedisError> {
[INFO] [stdout]     |                  ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  69 |     pub async fn incr(&self, key: &str) -> Result<i64, redis::RedisError> {
[INFO] [stdout]     |                  ^^^^
[INFO] [stdout] ...
[INFO] [stdout]  75 |     pub async fn incr_with_expiry(
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 111 |     pub async fn check_rate_limit(
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `close` is never used
[INFO] [stdout]   --> src/db/pool.rs:51:18
[INFO] [stdout]    |
[INFO] [stdout] 10 | impl DbPool {
[INFO] [stdout]    | ----------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 51 |     pub async fn close(&self) {
[INFO] [stdout]    |                  ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `token_hash` is never read
[INFO] [stdout]   --> src/db/token.rs:11:9
[INFO] [stdout]    |
[INFO] [stdout]  8 | pub struct RefreshToken {
[INFO] [stdout]    |            ------------ field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 11 |     pub token_hash: String,
[INFO] [stdout]    |         ^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `RefreshToken` 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 `revoke_all_user_tokens`, `get_user_tokens`, `cleanup_expired_tokens`, `count_user_active_tokens`, and `get_token_expiration` are never used
[INFO] [stdout]    --> src/db/token.rs:201:18
[INFO] [stdout]     |
[INFO] [stdout]  33 | impl<'a> TokenRepository<'a> {
[INFO] [stdout]     | ---------------------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 201 |     pub async fn revoke_all_user_tokens(&self, user_id: &Uuid) -> Result<u64, TokenError> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 225 |     pub async fn get_user_tokens(&self, user_id: &Uuid) -> Result<Vec<RefreshToken>, TokenError> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 246 |     pub async fn cleanup_expired_tokens(&self) -> Result<u64, TokenError> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 271 |     pub async fn count_user_active_tokens(&self, user_id: &Uuid) -> Result<i64, TokenError> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 294 |     pub async fn get_token_expiration(
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `update_password`, `list`, `count`, and `verify_credentials` are never used
[INFO] [stdout]    --> src/db/user.rs:162:18
[INFO] [stdout]     |
[INFO] [stdout]  38 | impl<'a> UserRepository<'a> {
[INFO] [stdout]     | --------------------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 162 |     pub async fn update_password(
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 221 |     pub async fn list(&self, limit: i64, offset: i64) -> Result<Vec<User>, UserError> {
[INFO] [stdout]     |                  ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 242 |     pub async fn count(&self) -> Result<i64, UserError> {
[INFO] [stdout]     |                  ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 270 |     pub async fn verify_credentials(
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `unauthorized_response` is never used
[INFO] [stdout]   --> src/middleware/jwt.rs:40:12
[INFO] [stdout]    |
[INFO] [stdout]  8 | impl JwtMiddleware {
[INFO] [stdout]    | ------------------ associated function in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 40 |     pub fn unauthorized_response() -> ResponseHeader {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `too_many_requests_response` and `get_burst_size` are never used
[INFO] [stdout]    --> src/middleware/rate_limit.rs:104:12
[INFO] [stdout]     |
[INFO] [stdout]  11 | impl RateLimitMiddleware {
[INFO] [stdout]     | ------------------------ associated items in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 104 |     pub fn too_many_requests_response() -> ResponseHeader {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 118 |     pub fn get_burst_size(&self) -> u32 {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 10.62s
[INFO] running `Command { std: "docker" "inspect" "b3235370fecdfa51bf068b935a73611887050345b87ae5b7d88f746637256b40", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "b3235370fecdfa51bf068b935a73611887050345b87ae5b7d88f746637256b40", kill_on_drop: false }`
[INFO] [stdout] b3235370fecdfa51bf068b935a73611887050345b87ae5b7d88f746637256b40
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] d97a98694d8689421a118cd73229504e86999ab3f7996b8c010d2536f94de378
[INFO] running `Command { std: "docker" "start" "-a" "d97a98694d8689421a118cd73229504e86999ab3f7996b8c010d2536f94de378", kill_on_drop: false }`
[INFO] [stderr] warning: function `logout_all_devices` is never used
[INFO] [stderr]    --> src/auth/logout.rs:118:14
[INFO] [stderr]     |
[INFO] [stderr] 118 | pub async fn logout_all_devices(
[INFO] [stderr]     |              ^^^^^^^^^^^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: methods `del`, `expire`, `incr`, `incr_with_expiry`, and `check_rate_limit` are never used
[INFO] [stderr]    --> src/cache/client.rs:51:18
[INFO] [stderr]     |
[INFO] [stderr]  11 | impl RedisClient {
[INFO] [stderr]     | ---------------- methods in this implementation
[INFO] [stderr] ...
[INFO] [stderr]  51 |     pub async fn del(&self, key: &str) -> Result<(), redis::RedisError> {
[INFO] [stderr]     |                  ^^^
[INFO] [stderr] ...
[INFO] [stderr]  63 |     pub async fn expire(&self, key: &str, seconds: u64) -> Result<bool, redis::RedisError> {
[INFO] [stderr]     |                  ^^^^^^
[INFO] [stderr] ...
[INFO] [stderr]  69 |     pub async fn incr(&self, key: &str) -> Result<i64, redis::RedisError> {
[INFO] [stderr]     |                  ^^^^
[INFO] [stderr] ...
[INFO] [stderr]  75 |     pub async fn incr_with_expiry(
[INFO] [stderr]     |                  ^^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 111 |     pub async fn check_rate_limit(
[INFO] [stderr]     |                  ^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: method `close` is never used
[INFO] [stderr]   --> src/db/pool.rs:51:18
[INFO] [stderr]    |
[INFO] [stderr] 10 | impl DbPool {
[INFO] [stderr]    | ----------- method in this implementation
[INFO] [stderr] ...
[INFO] [stderr] 51 |     pub async fn close(&self) {
[INFO] [stderr]    |                  ^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: field `token_hash` is never read
[INFO] [stderr]   --> src/db/token.rs:11:9
[INFO] [stderr]    |
[INFO] [stderr]  8 | pub struct RefreshToken {
[INFO] [stderr]    |            ------------ field in this struct
[INFO] [stderr] ...
[INFO] [stderr] 11 |     pub token_hash: String,
[INFO] [stderr]    |         ^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `RefreshToken` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stderr] 
[INFO] [stderr] warning: methods `revoke_all_user_tokens`, `get_user_tokens`, `cleanup_expired_tokens`, `count_user_active_tokens`, and `get_token_expiration` are never used
[INFO] [stderr]    --> src/db/token.rs:201:18
[INFO] [stderr]     |
[INFO] [stderr]  33 | impl<'a> TokenRepository<'a> {
[INFO] [stderr]     | ---------------------------- methods in this implementation
[INFO] [stderr] ...
[INFO] [stderr] 201 |     pub async fn revoke_all_user_tokens(&self, user_id: &Uuid) -> Result<u64, TokenError> {
[INFO] [stderr]     |                  ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 225 |     pub async fn get_user_tokens(&self, user_id: &Uuid) -> Result<Vec<RefreshToken>, TokenError> {
[INFO] [stderr]     |                  ^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 246 |     pub async fn cleanup_expired_tokens(&self) -> Result<u64, TokenError> {
[INFO] [stderr]     |                  ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 271 |     pub async fn count_user_active_tokens(&self, user_id: &Uuid) -> Result<i64, TokenError> {
[INFO] [stderr]     |                  ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 294 |     pub async fn get_token_expiration(
[INFO] [stderr]     |                  ^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: methods `update_password`, `list`, `count`, and `verify_credentials` are never used
[INFO] [stderr]    --> src/db/user.rs:162:18
[INFO] [stderr]     |
[INFO] [stderr]  38 | impl<'a> UserRepository<'a> {
[INFO] [stderr]     | --------------------------- methods in this implementation
[INFO] [stderr] ...
[INFO] [stderr] 162 |     pub async fn update_password(
[INFO] [stderr]     |                  ^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 221 |     pub async fn list(&self, limit: i64, offset: i64) -> Result<Vec<User>, UserError> {
[INFO] [stderr]     |                  ^^^^
[INFO] [stderr] ...
[INFO] [stderr] 242 |     pub async fn count(&self) -> Result<i64, UserError> {
[INFO] [stderr]     |                  ^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 270 |     pub async fn verify_credentials(
[INFO] [stderr]     |                  ^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: associated function `unauthorized_response` is never used
[INFO] [stderr]   --> src/middleware/jwt.rs:40:12
[INFO] [stderr]    |
[INFO] [stderr]  8 | impl JwtMiddleware {
[INFO] [stderr]    | ------------------ associated function in this implementation
[INFO] [stderr] ...
[INFO] [stderr] 40 |     pub fn unauthorized_response() -> ResponseHeader {
[INFO] [stderr]    |            ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: associated items `too_many_requests_response` and `get_burst_size` are never used
[INFO] [stderr]    --> src/middleware/rate_limit.rs:104:12
[INFO] [stderr]     |
[INFO] [stderr]  11 | impl RateLimitMiddleware {
[INFO] [stderr]     | ------------------------ associated items in this implementation
[INFO] [stderr] ...
[INFO] [stderr] 104 |     pub fn too_many_requests_response() -> ResponseHeader {
[INFO] [stderr]     |            ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 118 |     pub fn get_burst_size(&self) -> u32 {
[INFO] [stderr]     |            ^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: `pingora_learn` (bin "pingora_learn" test) generated 8 warnings
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.56s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/pingora_learn-140f799229ce623f)
[INFO] [stdout] 
[INFO] [stdout] running 16 tests
[INFO] [stdout] test auth::login::tests::test_login_user ... ignored
[INFO] [stdout] test auth::logout::tests::test_logout_user ... ignored
[INFO] [stdout] test auth::jwt::tests::test_invalid_token ... ok
[INFO] [stdout] test auth::jwt::tests::test_different_secrets_produce_different_tokens ... ok
[INFO] [stdout] test auth::jwt::tests::test_generate_and_decode_access_token ... ok
[INFO] [stdout] test auth::refresh::tests::test_refresh_token ... ignored
[INFO] [stdout] test auth::register::tests::test_register_user ... ignored
[INFO] [stdout] test auth::jwt::tests::test_validate_token ... ok
[INFO] [stdout] test auth::jwt::tests::test_generate_refresh_token ... ok
[INFO] [stdout] test db::token::tests::test_token_crud ... ignored
[INFO] [stdout] test db::user::tests::test_user_crud ... ignored
[INFO] [stdout] test middleware::jwt::tests::test_requires_auth ... ok
[INFO] [stdout] test middleware::rate_limit::tests::test_refill_calculation ... ok
[INFO] [stdout] test middleware::rate_limit::tests::test_token_bucket_format ... ok
[INFO] [stdout] test auth::password::tests::test_password_validation ... ok
[INFO] [stderr]      Running unittests src/main.rs (/opt/rustwide/target/debug/deps/pingora_learn-86909e1827afaf77)
[INFO] [stdout] test auth::password::tests::test_hash_and_verify ... ok
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 10 passed; 0 failed; 6 ignored; 0 measured; 0 filtered out; finished in 5.59s
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] running 16 tests
[INFO] [stdout] test auth::login::tests::test_login_user ... ignored
[INFO] [stdout] test auth::logout::tests::test_logout_user ... ignored
[INFO] [stdout] test auth::jwt::tests::test_different_secrets_produce_different_tokens ... ok
[INFO] [stdout] test auth::jwt::tests::test_generate_and_decode_access_token ... ok
[INFO] [stdout] test auth::jwt::tests::test_invalid_token ... ok
[INFO] [stdout] test auth::jwt::tests::test_validate_token ... ok
[INFO] [stdout] test auth::jwt::tests::test_generate_refresh_token ... ok
[INFO] [stdout] test auth::refresh::tests::test_refresh_token ... ignored
[INFO] [stdout] test auth::register::tests::test_register_user ... ignored
[INFO] [stdout] test db::token::tests::test_token_crud ... ignored
[INFO] [stdout] test db::user::tests::test_user_crud ... ignored
[INFO] [stdout] test middleware::jwt::tests::test_requires_auth ... ok
[INFO] [stdout] test middleware::rate_limit::tests::test_refill_calculation ... ok
[INFO] [stdout] test middleware::rate_limit::tests::test_token_bucket_format ... ok
[INFO] [stdout] test auth::password::tests::test_password_validation ... ok
[INFO] [stdout] test auth::password::tests::test_hash_and_verify ... ok
[INFO] [stderr]    Doc-tests pingora_learn
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 10 passed; 0 failed; 6 ignored; 0 measured; 0 filtered out; finished in 5.11s
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] running 12 tests
[INFO] [stdout] test src/auth/jwt.rs - auth::jwt::JwtManager::decode_token (line 115) ... FAILED
[INFO] [stdout] test src/auth/refresh.rs - auth::refresh::refresh_token (line 60) ... FAILED
[INFO] [stdout] test src/auth/jwt.rs - auth::jwt::JwtManager::generate_access_token (line 52) ... FAILED
[INFO] [stdout] test src/db/token.rs - db::token::TokenRepository<'a>::save_refresh_token (line 50) ... FAILED
[INFO] [stdout] test src/auth/logout.rs - auth::logout::logout_all_devices (line 108) ... FAILED
[INFO] [stdout] test src/auth/register.rs - auth::register::register_user (line 58) ... FAILED
[INFO] [stdout] test src/auth/logout.rs - auth::logout::logout_user (line 41) ... FAILED
[INFO] [stdout] test src/auth/login.rs - auth::login::login_user (line 54) ... FAILED
[INFO] [stdout] test src/db/token.rs - db::token::TokenRepository<'a>::verify_refresh_token (line 119) ... FAILED
[INFO] [stdout] test src/db/user.rs - db::user::UserRepository<'a>::verify_credentials (line 264) ... FAILED
[INFO] [stdout] test src/db/user.rs - db::user::UserRepository<'a>::create (line 53) ... FAILED
[INFO] [stdout] test src/db/user.rs - db::user::UserRepository<'a>::find_by_email (line 115) ... FAILED
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout] 
[INFO] [stdout] ---- src/auth/jwt.rs - auth::jwt::JwtManager::decode_token (line 115) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `jwt_manager` in this scope
[INFO] [stdout]    --> src/auth/jwt.rs:116:14
[INFO] [stdout]     |
[INFO] [stdout] 116 | let claims = jwt_manager.decode_token(&token)?;
[INFO] [stdout]     |              ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `token` in this scope
[INFO] [stdout]    --> src/auth/jwt.rs:116:40
[INFO] [stdout]     |
[INFO] [stdout] 116 | let claims = jwt_manager.decode_token(&token)?;
[INFO] [stdout]     |                                        ^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 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/auth/refresh.rs - auth::refresh::refresh_token (line 60) stdout ----
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `RefreshRequest` in this scope
[INFO] [stdout]   --> src/auth/refresh.rs:61:15
[INFO] [stdout]    |
[INFO] [stdout] 61 | let request = RefreshRequest {
[INFO] [stdout]    |               ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]    |
[INFO] [stdout] 60 + use pingora_learn::auth::RefreshRequest;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `refresh_token` in this scope
[INFO] [stdout]   --> src/auth/refresh.rs:65:16
[INFO] [stdout]    |
[INFO] [stdout] 65 | let response = refresh_token(
[INFO] [stdout]    |                ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this function
[INFO] [stdout]    |
[INFO] [stdout] 60 + use pingora_learn::auth::refresh_token;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `pool` in this scope
[INFO] [stdout]   --> src/auth/refresh.rs:66:6
[INFO] [stdout]    |
[INFO] [stdout] 66 |     &pool,
[INFO] [stdout]    |      ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `redis_client` in this scope
[INFO] [stdout]   --> src/auth/refresh.rs:67:6
[INFO] [stdout]    |
[INFO] [stdout] 67 |     &redis_client,
[INFO] [stdout]    |      ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `jwt_manager` in this scope
[INFO] [stdout]   --> src/auth/refresh.rs:68:6
[INFO] [stdout]    |
[INFO] [stdout] 68 |     &jwt_manager,
[INFO] [stdout]    |      ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/auth/refresh.rs:70:3
[INFO] [stdout]    |
[INFO] [stdout] 60 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_auth_refresh_rs_60_0() {
[INFO] [stdout]    |                                      ------------------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 70 | ).await?;
[INFO] [stdout]    |   ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 6 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0422, E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0422`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/auth/jwt.rs - auth::jwt::JwtManager::generate_access_token (line 52) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `jwt_manager` in this scope
[INFO] [stdout]   --> src/auth/jwt.rs:53:13
[INFO] [stdout]    |
[INFO] [stdout] 53 | let token = jwt_manager.generate_access_token(&user_id)?;
[INFO] [stdout]    |             ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `user_id` in this scope
[INFO] [stdout]   --> src/auth/jwt.rs:53:48
[INFO] [stdout]    |
[INFO] [stdout] 53 | let token = jwt_manager.generate_access_token(&user_id)?;
[INFO] [stdout]    |                                                ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 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/db/token.rs - db::token::TokenRepository<'a>::save_refresh_token (line 50) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `token_repo` in this scope
[INFO] [stdout]   --> src/db/token.rs:51:13
[INFO] [stdout]    |
[INFO] [stdout] 51 | let token = token_repo.save_refresh_token(
[INFO] [stdout]    |             ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `user_id` in this scope
[INFO] [stdout]   --> src/db/token.rs:52:6
[INFO] [stdout]    |
[INFO] [stdout] 52 |     &user_id,
[INFO] [stdout]    |      ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `token_hash` in this scope
[INFO] [stdout]   --> src/db/token.rs:53:6
[INFO] [stdout]    |
[INFO] [stdout] 53 |     &token_hash,
[INFO] [stdout]    |      ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/db/token.rs:55:3
[INFO] [stdout]    |
[INFO] [stdout] 50 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_db_token_rs_50_0() {
[INFO] [stdout]    |                                      --------------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 55 | ).await?;
[INFO] [stdout]    |   ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 4 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/auth/logout.rs - auth::logout::logout_all_devices (line 108) stdout ----
[INFO] [stdout] error[E0425]: cannot find function `logout_all_devices` in this scope
[INFO] [stdout]    --> src/auth/logout.rs:109:21
[INFO] [stdout]     |
[INFO] [stdout] 109 | let revoked_count = logout_all_devices(
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this function
[INFO] [stdout]     |
[INFO] [stdout] 108 + use pingora_learn::auth::logout::logout_all_devices;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `pool` in this scope
[INFO] [stdout]    --> src/auth/logout.rs:110:6
[INFO] [stdout]     |
[INFO] [stdout] 110 |     &pool,
[INFO] [stdout]     |      ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `redis_client` in this scope
[INFO] [stdout]    --> src/auth/logout.rs:111:6
[INFO] [stdout]     |
[INFO] [stdout] 111 |     &redis_client,
[INFO] [stdout]     |      ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `jwt_manager` in this scope
[INFO] [stdout]    --> src/auth/logout.rs:112:6
[INFO] [stdout]     |
[INFO] [stdout] 112 |     &jwt_manager,
[INFO] [stdout]     |      ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `access_token` in this scope
[INFO] [stdout]    --> src/auth/logout.rs:113:6
[INFO] [stdout]     |
[INFO] [stdout] 113 |     &access_token
[INFO] [stdout]     |      ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]    --> src/auth/logout.rs:114:3
[INFO] [stdout]     |
[INFO] [stdout] 108 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_auth_logout_rs_108_0() {
[INFO] [stdout]     |                                      ------------------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 114 | ).await?;
[INFO] [stdout]     |   ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 6 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/auth/register.rs - auth::register::register_user (line 58) stdout ----
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `RegisterRequest` in this scope
[INFO] [stdout]   --> src/auth/register.rs:59:15
[INFO] [stdout]    |
[INFO] [stdout] 59 | let request = RegisterRequest {
[INFO] [stdout]    |               ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]    |
[INFO] [stdout] 58 + use pingora_learn::auth::RegisterRequest;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `register_user` in this scope
[INFO] [stdout]   --> src/auth/register.rs:64:16
[INFO] [stdout]    |
[INFO] [stdout] 64 | let response = register_user(
[INFO] [stdout]    |                ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this function
[INFO] [stdout]    |
[INFO] [stdout] 58 + use pingora_learn::auth::register_user;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `pool` in this scope
[INFO] [stdout]   --> src/auth/register.rs:65:6
[INFO] [stdout]    |
[INFO] [stdout] 65 |     &pool,
[INFO] [stdout]    |      ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `jwt_manager` in this scope
[INFO] [stdout]   --> src/auth/register.rs:66:6
[INFO] [stdout]    |
[INFO] [stdout] 66 |     &jwt_manager,
[INFO] [stdout]    |      ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/auth/register.rs:69:3
[INFO] [stdout]    |
[INFO] [stdout] 58 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_auth_register_rs_58_0() {
[INFO] [stdout]    |                                      -------------------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 69 | ).await?;
[INFO] [stdout]    |   ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 5 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0422, E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0422`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/auth/logout.rs - auth::logout::logout_user (line 41) stdout ----
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `LogoutRequest` in this scope
[INFO] [stdout]   --> src/auth/logout.rs:42:15
[INFO] [stdout]    |
[INFO] [stdout] 42 | let request = LogoutRequest {
[INFO] [stdout]    |               ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]    |
[INFO] [stdout] 41 + use pingora_learn::auth::LogoutRequest;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `logout_user` in this scope
[INFO] [stdout]   --> src/auth/logout.rs:46:1
[INFO] [stdout]    |
[INFO] [stdout] 46 | logout_user(
[INFO] [stdout]    | ^^^^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this function
[INFO] [stdout]    |
[INFO] [stdout] 41 + use pingora_learn::auth::logout_user;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `pool` in this scope
[INFO] [stdout]   --> src/auth/logout.rs:47:6
[INFO] [stdout]    |
[INFO] [stdout] 47 |     &pool,
[INFO] [stdout]    |      ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `redis_client` in this scope
[INFO] [stdout]   --> src/auth/logout.rs:48:6
[INFO] [stdout]    |
[INFO] [stdout] 48 |     &redis_client,
[INFO] [stdout]    |      ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `jwt_manager` in this scope
[INFO] [stdout]   --> src/auth/logout.rs:49:6
[INFO] [stdout]    |
[INFO] [stdout] 49 |     &jwt_manager,
[INFO] [stdout]    |      ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `access_token` in this scope
[INFO] [stdout]   --> src/auth/logout.rs:50:6
[INFO] [stdout]    |
[INFO] [stdout] 50 |     &access_token,
[INFO] [stdout]    |      ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/auth/logout.rs:52:3
[INFO] [stdout]    |
[INFO] [stdout] 41 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_auth_logout_rs_41_0() {
[INFO] [stdout]    |                                      ------------------------------------------ this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 52 | ).await?;
[INFO] [stdout]    |   ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 7 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0422, E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0422`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/auth/login.rs - auth::login::login_user (line 54) stdout ----
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `LoginRequest` in this scope
[INFO] [stdout]   --> src/auth/login.rs:55:15
[INFO] [stdout]    |
[INFO] [stdout] 55 | let request = LoginRequest {
[INFO] [stdout]    |               ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]    |
[INFO] [stdout] 54 + use pingora_learn::auth::LoginRequest;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `login_user` in this scope
[INFO] [stdout]   --> src/auth/login.rs:60:16
[INFO] [stdout]    |
[INFO] [stdout] 60 | let response = login_user(
[INFO] [stdout]    |                ^^^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this function
[INFO] [stdout]    |
[INFO] [stdout] 54 + use pingora_learn::auth::login_user;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `pool` in this scope
[INFO] [stdout]   --> src/auth/login.rs:61:6
[INFO] [stdout]    |
[INFO] [stdout] 61 |     &pool,
[INFO] [stdout]    |      ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `jwt_manager` in this scope
[INFO] [stdout]   --> src/auth/login.rs:62:6
[INFO] [stdout]    |
[INFO] [stdout] 62 |     &jwt_manager,
[INFO] [stdout]    |      ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/auth/login.rs:65:3
[INFO] [stdout]    |
[INFO] [stdout] 54 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_auth_login_rs_54_0() {
[INFO] [stdout]    |                                      ----------------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 65 | ).await?;
[INFO] [stdout]    |   ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 5 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0422, E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0422`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/db/token.rs - db::token::TokenRepository<'a>::verify_refresh_token (line 119) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `token_repo` in this scope
[INFO] [stdout]    --> src/db/token.rs:120:7
[INFO] [stdout]     |
[INFO] [stdout] 120 | match token_repo.verify_refresh_token(&token_hash).await {
[INFO] [stdout]     |       ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `token_hash` in this scope
[INFO] [stdout]    --> src/db/token.rs:120:40
[INFO] [stdout]     |
[INFO] [stdout] 120 | match token_repo.verify_refresh_token(&token_hash).await {
[INFO] [stdout]     |                                        ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TokenError`
[INFO] [stdout]    --> src/db/token.rs:122:9
[INFO] [stdout]     |
[INFO] [stdout] 122 |     Err(TokenError::Expired) => println!("Token expired"),
[INFO] [stdout]     |         ^^^^^^^^^^ use of undeclared type `TokenError`
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]     |
[INFO] [stdout] 119 + use pingora_learn::db::token::TokenError;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TokenError`
[INFO] [stdout]    --> src/db/token.rs:123:9
[INFO] [stdout]     |
[INFO] [stdout] 123 |     Err(TokenError::NotFound) => println!("Invalid token"),
[INFO] [stdout]     |         ^^^^^^^^^^ use of undeclared type `TokenError`
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]     |
[INFO] [stdout] 119 + use pingora_learn::db::token::TokenError;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]    --> src/db/token.rs:120:52
[INFO] [stdout]     |
[INFO] [stdout] 119 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_db_token_rs_119_0() {
[INFO] [stdout]     |                                      ---------------------------------------- this is not `async`
[INFO] [stdout] 120 | match token_repo.verify_refresh_token(&token_hash).await {
[INFO] [stdout]     |                                                    ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 5 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0433, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/db/user.rs - db::user::UserRepository<'a>::verify_credentials (line 264) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `user_repo` in this scope
[INFO] [stdout]    --> src/db/user.rs:265:7
[INFO] [stdout]     |
[INFO] [stdout] 265 | match user_repo.verify_credentials("user@example.com", "password").await? {
[INFO] [stdout]     |       ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]    --> src/db/user.rs:265:68
[INFO] [stdout]     |
[INFO] [stdout] 264 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_db_user_rs_264_0() {
[INFO] [stdout]     |                                      --------------------------------------- this is not `async`
[INFO] [stdout] 265 | match user_repo.verify_credentials("user@example.com", "password").await? {
[INFO] [stdout]     |                                                                    ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/db/user.rs - db::user::UserRepository<'a>::create (line 53) stdout ----
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `CreateUser` in this scope
[INFO] [stdout]   --> src/db/user.rs:54:17
[INFO] [stdout]    |
[INFO] [stdout] 54 | let user_data = CreateUser {
[INFO] [stdout]    |                 ^^^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]    |
[INFO] [stdout] 53 + use pingora_learn::db::user::CreateUser;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `hashed_password` in this scope
[INFO] [stdout]   --> src/db/user.rs:56:20
[INFO] [stdout]    |
[INFO] [stdout] 56 |     password_hash: hashed_password,
[INFO] [stdout]    |                    ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `user_repo` in this scope
[INFO] [stdout]   --> src/db/user.rs:58:12
[INFO] [stdout]    |
[INFO] [stdout] 58 | let user = user_repo.create(user_data).await?;
[INFO] [stdout]    |            ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/db/user.rs:58:40
[INFO] [stdout]    |
[INFO] [stdout] 53 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_db_user_rs_53_0() {
[INFO] [stdout]    |                                      -------------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 58 | let user = user_repo.create(user_data).await?;
[INFO] [stdout]    |                                        ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 4 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0422, E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0422`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/db/user.rs - db::user::UserRepository<'a>::find_by_email (line 115) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `user_repo` in this scope
[INFO] [stdout]    --> src/db/user.rs:116:12
[INFO] [stdout]     |
[INFO] [stdout] 116 | let user = user_repo.find_by_email("user@example.com").await?;
[INFO] [stdout]     |            ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]    --> src/db/user.rs:116:56
[INFO] [stdout]     |
[INFO] [stdout] 115 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_db_user_rs_115_0() {
[INFO] [stdout]     |                                      --------------------------------------- this is not `async`
[INFO] [stdout] 116 | let user = user_repo.find_by_email("user@example.com").await?;
[INFO] [stdout]     |                                                        ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout]     src/auth/jwt.rs - auth::jwt::JwtManager::decode_token (line 115)
[INFO] [stdout]     src/auth/jwt.rs - auth::jwt::JwtManager::generate_access_token (line 52)
[INFO] [stdout]     src/auth/login.rs - auth::login::login_user (line 54)
[INFO] [stdout]     src/auth/logout.rs - auth::logout::logout_all_devices (line 108)
[INFO] [stdout]     src/auth/logout.rs - auth::logout::logout_user (line 41)
[INFO] [stdout]     src/auth/refresh.rs - auth::refresh::refresh_token (line 60)
[INFO] [stdout]     src/auth/register.rs - auth::register::register_user (line 58)
[INFO] [stdout]     src/db/token.rs - db::token::TokenRepository<'a>::save_refresh_token (line 50)
[INFO] [stdout]     src/db/token.rs - db::token::TokenRepository<'a>::verify_refresh_token (line 119)
[INFO] [stdout]     src/db/user.rs - db::user::UserRepository<'a>::create (line 53)
[INFO] [stdout]     src/db/user.rs - db::user::UserRepository<'a>::find_by_email (line 115)
[INFO] [stdout]     src/db/user.rs - db::user::UserRepository<'a>::verify_credentials (line 264)
[INFO] [stdout] 
[INFO] [stdout] test result: FAILED. 0 passed; 12 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.90s
[INFO] [stdout] 
[INFO] [stderr] error: doctest failed, to rerun pass `--doc`
[INFO] running `Command { std: "docker" "inspect" "d97a98694d8689421a118cd73229504e86999ab3f7996b8c010d2536f94de378", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "d97a98694d8689421a118cd73229504e86999ab3f7996b8c010d2536f94de378", kill_on_drop: false }`
[INFO] [stdout] d97a98694d8689421a118cd73229504e86999ab3f7996b8c010d2536f94de378
