[INFO] fetching crate axum_sessions_auth 2.0.0...
[INFO] testing axum_sessions_auth-2.0.0 against 1.62.0 for beta-1.63-1
[INFO] extracting crate axum_sessions_auth 2.0.0 into /workspace/builds/worker-9/source
[INFO] validating manifest of crates.io crate axum_sessions_auth 2.0.0 on toolchain 1.62.0
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.62.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking crates.io crate axum_sessions_auth 2.0.0
[INFO] finished tweaking crates.io crate axum_sessions_auth 2.0.0
[INFO] tweaked toml for crates.io crate axum_sessions_auth 2.0.0 written to /workspace/builds/worker-9/source/Cargo.toml
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.62.0" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.62.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded async-recursion v1.0.0
[INFO] [stderr]   Downloaded axum_database_sessions v3.0.2
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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:ac0d0aa6ec8ed129e241004a6179c99fa0d2616f50ba759c5b60bd26d0fafa02" "/opt/rustwide/cargo-home/bin/cargo" "+1.62.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 3d618f15d6d97f937ba261cddf0a816443f9eaaac403a17aa8ac8f5152ea5193
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] running `Command { std: "docker" "start" "-a" "3d618f15d6d97f937ba261cddf0a816443f9eaaac403a17aa8ac8f5152ea5193", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "3d618f15d6d97f937ba261cddf0a816443f9eaaac403a17aa8ac8f5152ea5193", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "3d618f15d6d97f937ba261cddf0a816443f9eaaac403a17aa8ac8f5152ea5193", kill_on_drop: false }`
[INFO] [stdout] 3d618f15d6d97f937ba261cddf0a816443f9eaaac403a17aa8ac8f5152ea5193
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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=warn" "-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:ac0d0aa6ec8ed129e241004a6179c99fa0d2616f50ba759c5b60bd26d0fafa02" "/opt/rustwide/cargo-home/bin/cargo" "+1.62.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] [stdout] 9dc968c4eb7e154884e715e186734331bbd718159aa2dafc973c46eed8f24378
[INFO] running `Command { std: "docker" "start" "-a" "9dc968c4eb7e154884e715e186734331bbd718159aa2dafc973c46eed8f24378", kill_on_drop: false }`
[INFO] [stderr]    Compiling subtle v2.4.1
[INFO] [stderr]    Compiling rustls v0.20.6
[INFO] [stderr]    Compiling serde v1.0.138
[INFO] [stderr]    Compiling crossbeam-utils v0.8.10
[INFO] [stderr]    Compiling serde_json v1.0.82
[INFO] [stderr]    Compiling futures-util v0.3.21
[INFO] [stderr]    Compiling futures-sink v0.3.21
[INFO] [stderr]    Compiling unicode_categories v0.1.1
[INFO] [stderr]    Compiling byteorder v1.4.3
[INFO] [stderr]    Compiling event-listener v2.5.2
[INFO] [stderr]    Compiling bitflags v1.3.2
[INFO] [stderr]    Compiling whoami v1.2.1
[INFO] [stderr]    Compiling uuid v1.1.2
[INFO] [stderr]    Compiling async-trait v0.1.56
[INFO] [stderr]    Compiling dotenv v0.15.0
[INFO] [stderr]    Compiling time-macros v0.2.4
[INFO] [stderr]    Compiling indexmap v1.9.1
[INFO] [stderr]    Compiling cookie v0.16.0
[INFO] [stderr]    Compiling itertools v0.10.3
[INFO] [stderr]    Compiling rustls-pemfile v1.0.0
[INFO] [stderr]    Compiling heck v0.4.0
[INFO] [stderr]    Compiling parking_lot_core v0.8.5
[INFO] [stderr]    Compiling dirs-sys v0.3.7
[INFO] [stderr]    Compiling futures-channel v0.3.21
[INFO] [stderr]    Compiling stringprep v0.1.2
[INFO] [stderr]    Compiling crypto-common v0.1.5
[INFO] [stderr]    Compiling cipher v0.3.0
[INFO] [stderr]    Compiling universal-hash v0.4.1
[INFO] [stderr]    Compiling aead v0.4.3
[INFO] [stderr]    Compiling tokio v1.19.2
[INFO] [stderr]    Compiling webpki v0.22.0
[INFO] [stderr]    Compiling sct v0.7.0
[INFO] [stderr]    Compiling atoi v1.0.0
[INFO] [stderr]    Compiling hashbrown v0.12.2
[INFO] [stderr]    Compiling serde_derive v1.0.138
[INFO] [stderr]    Compiling tokio-macros v1.8.0
[INFO] [stderr]    Compiling thiserror-impl v1.0.31
[INFO] [stderr]    Compiling async-recursion v1.0.0
[INFO] [stderr]    Compiling dirs v4.0.0
[INFO] [stderr]    Compiling polyval v0.5.3
[INFO] [stderr]    Compiling digest v0.10.3
[INFO] [stderr]    Compiling parking_lot v0.11.2
[INFO] [stderr]    Compiling chrono v0.4.19
[INFO] [stderr]    Compiling aes v0.7.5
[INFO] [stderr]    Compiling ctr v0.8.0
[INFO] [stderr]    Compiling rand v0.8.5
[INFO] [stderr]    Compiling tracing v0.1.35
[INFO] [stderr]    Compiling webpki-roots v0.22.4
[INFO] [stderr]    Compiling crossbeam-queue v0.3.5
[INFO] [stderr]    Compiling ghash v0.4.4
[INFO] [stderr]    Compiling hmac v0.12.1
[INFO] [stderr]    Compiling md-5 v0.10.1
[INFO] [stderr]    Compiling sha-1 v0.10.0
[INFO] [stderr]    Compiling sha2 v0.10.2
[INFO] [stderr]    Compiling hashlink v0.8.0
[INFO] [stderr]    Compiling futures-intrusive v0.4.0
[INFO] [stderr]    Compiling sqlformat v0.1.8
[INFO] [stderr]    Compiling aes-gcm v0.9.4
[INFO] [stderr]    Compiling hkdf v0.12.3
[INFO] [stderr]    Compiling time v0.3.11
[INFO] [stderr]    Compiling thiserror v1.0.31
[INFO] [stderr]    Compiling futures-executor v0.3.21
[INFO] [stderr]    Compiling axum-core v0.2.7
[INFO] [stderr]    Compiling futures v0.3.21
[INFO] [stderr]    Compiling tokio-rustls v0.23.4
[INFO] [stderr]    Compiling tokio-stream v0.1.9
[INFO] [stderr]    Compiling sqlx-rt v0.6.0
[INFO] [stderr]    Compiling sqlx-core v0.6.0
[INFO] [stderr]    Compiling sqlx-macros v0.6.0
[INFO] [stderr]    Compiling sqlx v0.6.0
[INFO] [stderr]    Compiling axum_database_sessions v3.0.2
[INFO] [stderr]    Compiling axum_sessions_auth v2.0.0 (/opt/rustwide/workdir)
[INFO] [stderr]     Finished dev [unoptimized + debuginfo] target(s) in 2m 27s
[INFO] running `Command { std: "docker" "inspect" "9dc968c4eb7e154884e715e186734331bbd718159aa2dafc973c46eed8f24378", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "9dc968c4eb7e154884e715e186734331bbd718159aa2dafc973c46eed8f24378", kill_on_drop: false }`
[INFO] [stdout] 9dc968c4eb7e154884e715e186734331bbd718159aa2dafc973c46eed8f24378
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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=warn" "-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:ac0d0aa6ec8ed129e241004a6179c99fa0d2616f50ba759c5b60bd26d0fafa02" "/opt/rustwide/cargo-home/bin/cargo" "+1.62.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] [stdout] 718ee2ec64c9e19f7af0d4c446ecfa2fd57796e10054df9b3464700cb535261e
[INFO] running `Command { std: "docker" "start" "-a" "718ee2ec64c9e19f7af0d4c446ecfa2fd57796e10054df9b3464700cb535261e", kill_on_drop: false }`
[INFO] [stderr]    Compiling axum_sessions_auth v2.0.0 (/opt/rustwide/workdir)
[INFO] [stderr]     Finished test [unoptimized + debuginfo] target(s) in 1.96s
[INFO] [stderr]   Executable unittests src/lib.rs (/opt/rustwide/target/debug/deps/axum_sessions_auth-c8a6e844f0da43e2)
[INFO] running `Command { std: "docker" "inspect" "718ee2ec64c9e19f7af0d4c446ecfa2fd57796e10054df9b3464700cb535261e", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "718ee2ec64c9e19f7af0d4c446ecfa2fd57796e10054df9b3464700cb535261e", kill_on_drop: false }`
[INFO] [stdout] 718ee2ec64c9e19f7af0d4c446ecfa2fd57796e10054df9b3464700cb535261e
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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=warn" "-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:ac0d0aa6ec8ed129e241004a6179c99fa0d2616f50ba759c5b60bd26d0fafa02" "/opt/rustwide/cargo-home/bin/cargo" "+1.62.0" "test" "--frozen", kill_on_drop: false }`
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] [stdout] e21d20ac760b5c9f038141c80d9a22759135553ecfb38a7b3a7d5e4b2e479d4d
[INFO] running `Command { std: "docker" "start" "-a" "e21d20ac760b5c9f038141c80d9a22759135553ecfb38a7b3a7d5e4b2e479d4d", kill_on_drop: false }`
[INFO] [stderr]     Finished test [unoptimized + debuginfo] target(s) in 0.21s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/axum_sessions_auth-c8a6e844f0da43e2)
[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 axum_sessions_auth
[INFO] [stdout] 
[INFO] [stdout] running 12 tests
[INFO] [stdout] test src/auth.rs - auth::Auth<D>::validate (line 188) - compile ... FAILED
[INFO] [stdout] test src/session.rs - session::AuthSession<D>::is_anonymous (line 86) - compile ... FAILED
[INFO] [stdout] test src/session.rs - session::AuthSession<D>::is_active (line 72) - compile ... FAILED
[INFO] [stdout] test src/session.rs - session::AuthSession<D>::is_authenticated (line 58) - compile ... FAILED
[INFO] [stdout] test src/session.rs - session::AuthSession<D>::logout_user (line 126) - compile ... FAILED
[INFO] [stdout] test src/session.rs - session::AuthSession<D>::login_user (line 111) - compile ... FAILED
[INFO] [stdout] test src/layer.rs - layer::AuthSessionLayer<D>::new (line 24) - compile ... FAILED
[INFO] [stdout] test src/session.rs - session::AuthSession<D>::remember_user (line 100) - compile ... FAILED
[INFO] [stdout] test src/auth.rs - auth::Auth (line 110) - compile ... FAILED
[INFO] [stdout] test src/lib.rs - (line 39) ... FAILED
[INFO] [stdout] test src/auth.rs - auth::Auth<D>::requires (line 165) - compile ... FAILED
[INFO] [stdout] test src/auth.rs - auth::Auth<D>::build (line 140) - compile ... FAILED
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout] 
[INFO] [stdout] ---- src/auth.rs - auth::Auth<D>::validate (line 188) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Method`
[INFO] [stdout]  --> src/auth.rs:189:26
[INFO] [stdout]   |
[INFO] [stdout] 3 | if !Auth::<User>::build([Method::POST], true)
[INFO] [stdout]   |                          ^^^^^^ use of undeclared type `Method`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Auth`
[INFO] [stdout]  --> src/auth.rs:189:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | if !Auth::<User>::build([Method::POST], true)
[INFO] [stdout]   |     ^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 | use axum_sessions_auth::Auth;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `User` in this scope
[INFO] [stdout]  --> src/auth.rs:189:12
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_auth_rs_188_0() {
[INFO] [stdout]   |                                                                        - help: you might be missing a type parameter: `<User>`
[INFO] [stdout] 3 | if !Auth::<User>::build([Method::POST], true)
[INFO] [stdout]   |            ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rights`
[INFO] [stdout]  --> src/auth.rs:190:15
[INFO] [stdout]   |
[INFO] [stdout] 4 |     .requires(Rights::all([
[INFO] [stdout]   |               ^^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]   |
[INFO] [stdout] 2 | use axum_sessions_auth::Rights;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rights`
[INFO] [stdout]  --> src/auth.rs:191:9
[INFO] [stdout]   |
[INFO] [stdout] 5 |         Rights::permission("admin:view"),
[INFO] [stdout]   |         ^^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]   |
[INFO] [stdout] 2 | use axum_sessions_auth::Rights;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rights`
[INFO] [stdout]  --> src/auth.rs:192:9
[INFO] [stdout]   |
[INFO] [stdout] 6 |         Rights::permission("form:editreports"),
[INFO] [stdout]   |         ^^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]   |
[INFO] [stdout] 2 | use axum_sessions_auth::Rights;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `current_user` in this scope
[INFO] [stdout]  --> src/auth.rs:194:16
[INFO] [stdout]   |
[INFO] [stdout] 8 |     .validate(&current_user, &state.method, None)
[INFO] [stdout]   |                ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `state` in this scope
[INFO] [stdout]  --> src/auth.rs:194:31
[INFO] [stdout]   |
[INFO] [stdout] 8 |     .validate(&current_user, &state.method, None)
[INFO] [stdout]   |                               ^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `handler_404` in this scope
[INFO] [stdout]   --> src/auth.rs:197:12
[INFO] [stdout]    |
[INFO] [stdout] 11 |     return handler_404(state).await.into_response();
[INFO] [stdout]    |            ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `state` in this scope
[INFO] [stdout]   --> src/auth.rs:197:24
[INFO] [stdout]    |
[INFO] [stdout] 11 |     return handler_404(state).await.into_response();
[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.rs:194:50
[INFO] [stdout]   |
[INFO] [stdout] 2 |   fn main() { #[allow(non_snake_case)] fn _doctest_main_src_auth_rs_188_0() {
[INFO] [stdout]   |                                           ------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 8 |       .validate(&current_user, &state.method, None)
[INFO] [stdout]   |  __________________________________________________^
[INFO] [stdout] 9 | |     .await
[INFO] [stdout]   | |__________^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/auth.rs:197:30
[INFO] [stdout]    |
[INFO] [stdout] 2  | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_auth_rs_188_0() {
[INFO] [stdout]    |                                         ------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 11 |     return handler_404(state).await.into_response();
[INFO] [stdout]    |                              ^^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 12 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0412`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/session.rs - session::AuthSession<D>::is_anonymous (line 86) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `auth` in this scope
[INFO] [stdout]  --> src/session.rs:87:1
[INFO] [stdout]   |
[INFO] [stdout] 3 | auth.is_anonymous();
[INFO] [stdout]   | ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 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/session.rs - session::AuthSession<D>::is_active (line 72) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `auth` in this scope
[INFO] [stdout]  --> src/session.rs:73:1
[INFO] [stdout]   |
[INFO] [stdout] 3 | auth.is_active();
[INFO] [stdout]   | ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 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/session.rs - session::AuthSession<D>::is_authenticated (line 58) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `auth` in this scope
[INFO] [stdout]  --> src/session.rs:59:1
[INFO] [stdout]   |
[INFO] [stdout] 3 | auth.is_authenticated();
[INFO] [stdout]   | ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 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/session.rs - session::AuthSession<D>::logout_user (line 126) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `auth` in this scope
[INFO] [stdout]  --> src/session.rs:127:1
[INFO] [stdout]   |
[INFO] [stdout] 3 | auth.logout_user().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/session.rs:127:19
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_session_rs_126_0() {
[INFO] [stdout]   |                                         ---------------------------------- this is not `async`
[INFO] [stdout] 3 | auth.logout_user().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/session.rs - session::AuthSession<D>::login_user (line 111) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `auth` in this scope
[INFO] [stdout]  --> src/session.rs:112:1
[INFO] [stdout]   |
[INFO] [stdout] 3 | auth.login_user(user.id).await;
[INFO] [stdout]   | ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `user` in this scope
[INFO] [stdout]  --> src/session.rs:112:17
[INFO] [stdout]   |
[INFO] [stdout] 3 | auth.login_user(user.id).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/session.rs:112:25
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_session_rs_111_0() {
[INFO] [stdout]   |                                         ---------------------------------- this is not `async`
[INFO] [stdout] 3 | auth.login_user(user.id).await;
[INFO] [stdout]   |                         ^^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 3 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/layer.rs - layer::AuthSessionLayer<D>::new (line 24) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `AuthSessionLayer`
[INFO] [stdout]  --> src/layer.rs:25:13
[INFO] [stdout]   |
[INFO] [stdout] 3 | let layer = AuthSessionLayer::new(None, Some(1));
[INFO] [stdout]   |             ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 | use axum_sessions_auth::AuthSessionLayer;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 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/session.rs - session::AuthSession<D>::remember_user (line 100) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `auth` in this scope
[INFO] [stdout]  --> src/session.rs:101:1
[INFO] [stdout]   |
[INFO] [stdout] 3 | auth.remember_user(true).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/session.rs:101:25
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_session_rs_100_0() {
[INFO] [stdout]   |                                         ---------------------------------- this is not `async`
[INFO] [stdout] 3 | auth.remember_user(true).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/auth.rs - auth::Auth (line 110) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Method`
[INFO] [stdout]  --> src/auth.rs:111:26
[INFO] [stdout]   |
[INFO] [stdout] 3 | if !Auth::<User>::build([Method::POST], true)
[INFO] [stdout]   |                          ^^^^^^ use of undeclared type `Method`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Auth`
[INFO] [stdout]  --> src/auth.rs:111:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | if !Auth::<User>::build([Method::POST], true)
[INFO] [stdout]   |     ^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 | use axum_sessions_auth::Auth;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `User` in this scope
[INFO] [stdout]  --> src/auth.rs:111:12
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_auth_rs_110_0() {
[INFO] [stdout]   |                                                                        - help: you might be missing a type parameter: `<User>`
[INFO] [stdout] 3 | if !Auth::<User>::build([Method::POST], true)
[INFO] [stdout]   |            ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rights`
[INFO] [stdout]  --> src/auth.rs:112:15
[INFO] [stdout]   |
[INFO] [stdout] 4 |     .requires(Rights::all([
[INFO] [stdout]   |               ^^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]   |
[INFO] [stdout] 2 | use axum_sessions_auth::Rights;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rights`
[INFO] [stdout]  --> src/auth.rs:113:9
[INFO] [stdout]   |
[INFO] [stdout] 5 |         Rights::permission("admin:view"),
[INFO] [stdout]   |         ^^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]   |
[INFO] [stdout] 2 | use axum_sessions_auth::Rights;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rights`
[INFO] [stdout]  --> src/auth.rs:114:9
[INFO] [stdout]   |
[INFO] [stdout] 6 |         Rights::permission("form:editreports"),
[INFO] [stdout]   |         ^^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]   |
[INFO] [stdout] 2 | use axum_sessions_auth::Rights;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `current_user` in this scope
[INFO] [stdout]  --> src/auth.rs:116:16
[INFO] [stdout]   |
[INFO] [stdout] 8 |     .validate(&current_user, &state.method, None)
[INFO] [stdout]   |                ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `state` in this scope
[INFO] [stdout]  --> src/auth.rs:116:31
[INFO] [stdout]   |
[INFO] [stdout] 8 |     .validate(&current_user, &state.method, None)
[INFO] [stdout]   |                               ^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `handler_404` in this scope
[INFO] [stdout]   --> src/auth.rs:119:12
[INFO] [stdout]    |
[INFO] [stdout] 11 |     return handler_404(state).await.into_response();
[INFO] [stdout]    |            ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `state` in this scope
[INFO] [stdout]   --> src/auth.rs:119:24
[INFO] [stdout]    |
[INFO] [stdout] 11 |     return handler_404(state).await.into_response();
[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.rs:116:50
[INFO] [stdout]   |
[INFO] [stdout] 2 |   fn main() { #[allow(non_snake_case)] fn _doctest_main_src_auth_rs_110_0() {
[INFO] [stdout]   |                                           ------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 8 |       .validate(&current_user, &state.method, None)
[INFO] [stdout]   |  __________________________________________________^
[INFO] [stdout] 9 | |     .await
[INFO] [stdout]   | |__________^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/auth.rs:119:30
[INFO] [stdout]    |
[INFO] [stdout] 2  | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_auth_rs_110_0() {
[INFO] [stdout]    |                                         ------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 11 |     return handler_404(state).await.into_response();
[INFO] [stdout]    |                              ^^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 12 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0412`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - (line 39) stdout ----
[INFO] [stdout] error: expected expression, found `]`
[INFO] [stdout]   --> src/lib.rs:92:73
[INFO] [stdout]    |
[INFO] [stdout] 55 |             return format!("No Permissions! for {}", cur_user.username)[];
[INFO] [stdout]    |                                                                         ^ expected expression
[INFO] [stdout] 
[INFO] [stdout] error[E0706]: functions in traits cannot be declared `async`
[INFO] [stdout]    --> src/lib.rs:132:5
[INFO] [stdout]     |
[INFO] [stdout] 95  |       async fn has(&self, perm: &String, pool: &Option<&AxumDatabasePool>) -> bool {
[INFO] [stdout]     |       ^----
[INFO] [stdout]     |       |
[INFO] [stdout]     |  _____`async` because of this
[INFO] [stdout]     | |
[INFO] [stdout] 96  | |         match &perm[..] {
[INFO] [stdout] 97  | |             "Token::UseAdmin" => true,
[INFO] [stdout] 98  | |             "Token::ModifyUser" => true,
[INFO] [stdout] 99  | |             _ => false,
[INFO] [stdout] 100 | |         }
[INFO] [stdout] 101 | |     }
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `async` trait functions are not currently supported
[INFO] [stdout]     = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
[INFO] [stdout] 
[INFO] [stdout] error[E0706]: functions in traits cannot be declared `async`
[INFO] [stdout]    --> src/lib.rs:143:5
[INFO] [stdout]     |
[INFO] [stdout] 106 |       async fn load_user(userid: i64, _pool: Option<&AxumDatabasePool>) -> Result<User> {
[INFO] [stdout]     |       ^----
[INFO] [stdout]     |       |
[INFO] [stdout]     |  _____`async` because of this
[INFO] [stdout]     | |
[INFO] [stdout] 107 | |         Ok(User {
[INFO] [stdout] 108 | |             id: userid,
[INFO] [stdout] 109 | |             anonymous: true,
[INFO] [stdout] 110 | |             username: "Guest".to_string(),
[INFO] [stdout] 111 | |         })
[INFO] [stdout] 112 | |     }
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `async` trait functions are not currently supported
[INFO] [stdout]     = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `sqlx`
[INFO] [stdout]  --> src/lib.rs:40:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use sqlx::{ConnectOptions, postgres::{PgPoolOptions, PgConnectOptions}};
[INFO] [stdout]   |     ^^^^ use of undeclared crate or module `sqlx`
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `sqlx`
[INFO] [stdout]  --> src/lib.rs:40:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use sqlx::{ConnectOptions, postgres::{PgPoolOptions, PgConnectOptions}};
[INFO] [stdout]   |     ^^^^ use of undeclared crate or module `sqlx`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `axum`
[INFO] [stdout]  --> src/lib.rs:44:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | use axum::{
[INFO] [stdout]   |     ^^^^ use of undeclared crate or module `axum`
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `axum`
[INFO] [stdout]  --> src/lib.rs:44:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | use axum::{
[INFO] [stdout]   |     ^^^^ use of undeclared crate or module `axum`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `tokio`
[INFO] [stdout]   --> src/lib.rs:49:3
[INFO] [stdout]    |
[INFO] [stdout] 12 | #[tokio::main]
[INFO] [stdout]    |   ^^^^^ use of undeclared crate or module `tokio`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `tracing`
[INFO] [stdout]   --> src/lib.rs:68:5
[INFO] [stdout]    |
[INFO] [stdout] 31 |     tracing::debug!("listening on {}", addr);
[INFO] [stdout]    |     ^^^^^^^ use of undeclared crate or module `tracing`
[INFO] [stdout] 
[INFO] [stdout] error: cannot find attribute `async_trait` in this scope
[INFO] [stdout]   --> src/lib.rs:130:3
[INFO] [stdout]    |
[INFO] [stdout] 93 | #[async_trait]
[INFO] [stdout]    |   ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: consider importing this attribute macro:
[INFO] [stdout]            async_trait::async_trait
[INFO] [stdout]    = note: `async_trait` is in scope, but it is a crate, not an attribute
[INFO] [stdout] 
[INFO] [stdout] error: cannot find attribute `async_trait` in this scope
[INFO] [stdout]    --> src/lib.rs:141:3
[INFO] [stdout]     |
[INFO] [stdout] 104 | #[async_trait]
[INFO] [stdout]     |   ^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: consider importing this attribute macro:
[INFO] [stdout]             async_trait::async_trait
[INFO] [stdout]     = note: `async_trait` is in scope, but it is a crate, not an attribute
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `axum`
[INFO] [stdout]   --> src/lib.rs:69:5
[INFO] [stdout]    |
[INFO] [stdout] 32 |     axum::Server::bind(&addr)
[INFO] [stdout]    |     ^^^^ use of undeclared crate or module `axum`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Method`
[INFO] [stdout]   --> src/lib.rs:84:34
[INFO] [stdout]    |
[INFO] [stdout] 47 |         if !Auth::<User>::build([Method::Get], false)
[INFO] [stdout]    |                                  ^^^^^^ use of undeclared type `Method`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `sqlx`
[INFO] [stdout]    --> src/lib.rs:164:50
[INFO] [stdout]     |
[INFO] [stdout] 127 | async fn connect_to_database() -> anyhow::Result<sqlx::Pool<sqlx::Postgres>> {
[INFO] [stdout]     |                                                  ^^^^ use of undeclared crate or module `sqlx`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `sqlx`
[INFO] [stdout]    --> src/lib.rs:164:61
[INFO] [stdout]     |
[INFO] [stdout] 127 | async fn connect_to_database() -> anyhow::Result<sqlx::Pool<sqlx::Postgres>> {
[INFO] [stdout]     |                                                             ^^^^ use of undeclared crate or module `sqlx`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `AxumSessionStore`
[INFO] [stdout]   --> src/lib.rs:58:25
[INFO] [stdout]    |
[INFO] [stdout] 21 |     let session_store = AxumSessionStore::new(Some(poll.clone().into()), session_config);
[INFO] [stdout]    |                         ^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]   ::: /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/axum_database_sessions-3.0.2/src/session.rs:15:1
[INFO] [stdout]    |
[INFO] [stdout] 15 | pub struct AxumSession {
[INFO] [stdout]    | ---------------------- similarly named struct `AxumSession` defined here
[INFO] [stdout]    |
[INFO] [stdout] help: a struct with a similar name exists
[INFO] [stdout]    |
[INFO] [stdout] 21 |     let session_store = AxumSession::new(Some(poll.clone().into()), session_config);
[INFO] [stdout]    |                         ~~~~~~~~~~~
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]    |
[INFO] [stdout] 3  | use axum_database_sessions::AxumSessionStore;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Method` in this scope
[INFO] [stdout]   --> src/lib.rs:78:24
[INFO] [stdout]    |
[INFO] [stdout] 41 | async fn greet(method: Method, session: AxumSession, auth: AuthSession<User>) -> &'static str {
[INFO] [stdout]    |                        ^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]    |
[INFO] [stdout] 3  | use http::Method;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `current_user` in this scope
[INFO] [stdout]   --> src/lib.rs:83:29
[INFO] [stdout]    |
[INFO] [stdout] 46 |     if let Some(cur_user) = current_user {
[INFO] [stdout]    |                             ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Auth`
[INFO] [stdout]   --> src/lib.rs:84:13
[INFO] [stdout]    |
[INFO] [stdout] 47 |         if !Auth::<User>::build([Method::Get], false)
[INFO] [stdout]    |             ^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]    |
[INFO] [stdout] 3  | use axum_sessions_auth::Auth;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rights`
[INFO] [stdout]   --> src/lib.rs:85:23
[INFO] [stdout]    |
[INFO] [stdout] 48 |             .requires(Rights::none([
[INFO] [stdout]    |                       ^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]    |
[INFO] [stdout] 3  | use axum_sessions_auth::Rights;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rights`
[INFO] [stdout]   --> src/lib.rs:86:17
[INFO] [stdout]    |
[INFO] [stdout] 49 |                 Rights::permission("Token::UseAdmin"),
[INFO] [stdout]    |                 ^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]    |
[INFO] [stdout] 3  | use axum_sessions_auth::Rights;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rights`
[INFO] [stdout]   --> src/lib.rs:87:17
[INFO] [stdout]    |
[INFO] [stdout] 50 |                 Rights::permission("Token::ModifyPerms"),
[INFO] [stdout]    |                 ^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]    |
[INFO] [stdout] 3  | use axum_sessions_auth::Rights;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0405]: cannot find trait `HasPermission` in this scope
[INFO] [stdout]   --> src/lib.rs:131:6
[INFO] [stdout]    |
[INFO] [stdout] 94 | impl HasPermission for User {
[INFO] [stdout]    |      ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this trait
[INFO] [stdout]    |
[INFO] [stdout] 3  | use axum_sessions_auth::HasPermission;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 23 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0405, E0412, E0425, E0432, E0433, E0706.
[INFO] [stdout] For more information about an error, try `rustc --explain E0405`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/auth.rs - auth::Auth<D>::requires (line 165) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Method`
[INFO] [stdout]  --> src/auth.rs:166:26
[INFO] [stdout]   |
[INFO] [stdout] 3 | if !Auth::<User>::build([Method::POST], true)
[INFO] [stdout]   |                          ^^^^^^ use of undeclared type `Method`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Auth`
[INFO] [stdout]  --> src/auth.rs:166:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | if !Auth::<User>::build([Method::POST], true)
[INFO] [stdout]   |     ^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 | use axum_sessions_auth::Auth;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `User` in this scope
[INFO] [stdout]  --> src/auth.rs:166:12
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_auth_rs_165_0() {
[INFO] [stdout]   |                                                                        - help: you might be missing a type parameter: `<User>`
[INFO] [stdout] 3 | if !Auth::<User>::build([Method::POST], true)
[INFO] [stdout]   |            ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rights`
[INFO] [stdout]  --> src/auth.rs:167:15
[INFO] [stdout]   |
[INFO] [stdout] 4 |     .requires(Rights::all([
[INFO] [stdout]   |               ^^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]   |
[INFO] [stdout] 2 | use axum_sessions_auth::Rights;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rights`
[INFO] [stdout]  --> src/auth.rs:168:9
[INFO] [stdout]   |
[INFO] [stdout] 5 |         Rights::permission("admin:view"),
[INFO] [stdout]   |         ^^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]   |
[INFO] [stdout] 2 | use axum_sessions_auth::Rights;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rights`
[INFO] [stdout]  --> src/auth.rs:169:9
[INFO] [stdout]   |
[INFO] [stdout] 6 |         Rights::permission("form:editreports"),
[INFO] [stdout]   |         ^^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]   |
[INFO] [stdout] 2 | use axum_sessions_auth::Rights;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `current_user` in this scope
[INFO] [stdout]  --> src/auth.rs:171:16
[INFO] [stdout]   |
[INFO] [stdout] 8 |     .validate(&current_user, &state.method, None)
[INFO] [stdout]   |                ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `state` in this scope
[INFO] [stdout]  --> src/auth.rs:171:31
[INFO] [stdout]   |
[INFO] [stdout] 8 |     .validate(&current_user, &state.method, None)
[INFO] [stdout]   |                               ^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `handler_404` in this scope
[INFO] [stdout]   --> src/auth.rs:174:12
[INFO] [stdout]    |
[INFO] [stdout] 11 |     return handler_404(state).await.into_response();
[INFO] [stdout]    |            ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `state` in this scope
[INFO] [stdout]   --> src/auth.rs:174:24
[INFO] [stdout]    |
[INFO] [stdout] 11 |     return handler_404(state).await.into_response();
[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.rs:171:50
[INFO] [stdout]   |
[INFO] [stdout] 2 |   fn main() { #[allow(non_snake_case)] fn _doctest_main_src_auth_rs_165_0() {
[INFO] [stdout]   |                                           ------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 8 |       .validate(&current_user, &state.method, None)
[INFO] [stdout]   |  __________________________________________________^
[INFO] [stdout] 9 | |     .await
[INFO] [stdout]   | |__________^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/auth.rs:174:30
[INFO] [stdout]    |
[INFO] [stdout] 2  | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_auth_rs_165_0() {
[INFO] [stdout]    |                                         ------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 11 |     return handler_404(state).await.into_response();
[INFO] [stdout]    |                              ^^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 12 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0412`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/auth.rs - auth::Auth<D>::build (line 140) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Method`
[INFO] [stdout]  --> src/auth.rs:141:26
[INFO] [stdout]   |
[INFO] [stdout] 3 | if !Auth::<User>::build([Method::POST], true)
[INFO] [stdout]   |                          ^^^^^^ use of undeclared type `Method`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Auth`
[INFO] [stdout]  --> src/auth.rs:141:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | if !Auth::<User>::build([Method::POST], true)
[INFO] [stdout]   |     ^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 | use axum_sessions_auth::Auth;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `User` in this scope
[INFO] [stdout]  --> src/auth.rs:141:12
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_auth_rs_140_0() {
[INFO] [stdout]   |                                                                        - help: you might be missing a type parameter: `<User>`
[INFO] [stdout] 3 | if !Auth::<User>::build([Method::POST], true)
[INFO] [stdout]   |            ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rights`
[INFO] [stdout]  --> src/auth.rs:142:15
[INFO] [stdout]   |
[INFO] [stdout] 4 |     .requires(Rights::all([
[INFO] [stdout]   |               ^^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]   |
[INFO] [stdout] 2 | use axum_sessions_auth::Rights;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rights`
[INFO] [stdout]  --> src/auth.rs:143:9
[INFO] [stdout]   |
[INFO] [stdout] 5 |         Rights::permission("admin:view"),
[INFO] [stdout]   |         ^^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]   |
[INFO] [stdout] 2 | use axum_sessions_auth::Rights;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rights`
[INFO] [stdout]  --> src/auth.rs:144:9
[INFO] [stdout]   |
[INFO] [stdout] 6 |         Rights::permission("form:editreports"),
[INFO] [stdout]   |         ^^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]   |
[INFO] [stdout] 2 | use axum_sessions_auth::Rights;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `current_user` in this scope
[INFO] [stdout]  --> src/auth.rs:146:16
[INFO] [stdout]   |
[INFO] [stdout] 8 |     .validate(&current_user, &state.method, None)
[INFO] [stdout]   |                ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `state` in this scope
[INFO] [stdout]  --> src/auth.rs:146:31
[INFO] [stdout]   |
[INFO] [stdout] 8 |     .validate(&current_user, &state.method, None)
[INFO] [stdout]   |                               ^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `handler_404` in this scope
[INFO] [stdout]   --> src/auth.rs:149:12
[INFO] [stdout]    |
[INFO] [stdout] 11 |     return handler_404(state).await.into_response();
[INFO] [stdout]    |            ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `state` in this scope
[INFO] [stdout]   --> src/auth.rs:149:24
[INFO] [stdout]    |
[INFO] [stdout] 11 |     return handler_404(state).await.into_response();
[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.rs:146:50
[INFO] [stdout]   |
[INFO] [stdout] 2 |   fn main() { #[allow(non_snake_case)] fn _doctest_main_src_auth_rs_140_0() {
[INFO] [stdout]   |                                           ------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 8 |       .validate(&current_user, &state.method, None)
[INFO] [stdout]   |  __________________________________________________^
[INFO] [stdout] 9 | |     .await
[INFO] [stdout]   | |__________^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/auth.rs:149:30
[INFO] [stdout]    |
[INFO] [stdout] 2  | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_auth_rs_140_0() {
[INFO] [stdout]    |                                         ------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 11 |     return handler_404(state).await.into_response();
[INFO] [stdout]    |                              ^^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 12 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0412`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout]     src/auth.rs - auth::Auth (line 110)
[INFO] [stdout]     src/auth.rs - auth::Auth<D>::build (line 140)
[INFO] [stdout]     src/auth.rs - auth::Auth<D>::requires (line 165)
[INFO] [stdout]     src/auth.rs - auth::Auth<D>::validate (line 188)
[INFO] [stdout]     src/layer.rs - layer::AuthSessionLayer<D>::new (line 24)
[INFO] [stdout]     src/lib.rs - (line 39)
[INFO] [stdout]     src/session.rs - session::AuthSession<D>::is_active (line 72)
[INFO] [stdout]     src/session.rs - session::AuthSession<D>::is_anonymous (line 86)
[INFO] [stdout]     src/session.rs - session::AuthSession<D>::is_authenticated (line 58)
[INFO] [stdout]     src/session.rs - session::AuthSession<D>::login_user (line 111)
[INFO] [stdout]     src/session.rs - session::AuthSession<D>::logout_user (line 126)
[INFO] [stdout]     src/session.rs - session::AuthSession<D>::remember_user (line 100)
[INFO] [stdout] 
[INFO] [stdout] test result: FAILED. 0 passed; 12 failed; 0 ignored; 0 measured; 0 filtered out; finished in 2.31s
[INFO] [stdout] 
[INFO] [stderr] error: test failed, to rerun pass '--doc'
[INFO] running `Command { std: "docker" "inspect" "e21d20ac760b5c9f038141c80d9a22759135553ecfb38a7b3a7d5e4b2e479d4d", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "e21d20ac760b5c9f038141c80d9a22759135553ecfb38a7b3a7d5e4b2e479d4d", kill_on_drop: false }`
[INFO] [stdout] e21d20ac760b5c9f038141c80d9a22759135553ecfb38a7b3a7d5e4b2e479d4d
