[INFO] fetching crate axum_csrf 0.11.0...
[INFO] testing axum_csrf-0.11.0 against master#2fd6efc32704647e64d3d646d21c4c68eae100e4 for pr-149852-1
[INFO] extracting crate axum_csrf 0.11.0 into /workspace/builds/worker-5-tc1/source
[INFO] started tweaking crates.io crate axum_csrf 0.11.0
[INFO] finished tweaking crates.io crate axum_csrf 0.11.0
[INFO] tweaked toml for crates.io crate axum_csrf 0.11.0 written to /workspace/builds/worker-5-tc1/source/Cargo.toml
[INFO] validating manifest of crates.io crate axum_csrf 0.11.0 on toolchain 2fd6efc32704647e64d3d646d21c4c68eae100e4
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2fd6efc32704647e64d3d646d21c4c68eae100e4" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2fd6efc32704647e64d3d646d21c4c68eae100e4" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]      Locking 61 packages to latest compatible versions
[INFO] [stderr]       Adding generic-array v0.14.7 (available: v0.14.9)
[INFO] [stderr]       Adding rand v0.8.5 (available: v0.9.2)
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2fd6efc32704647e64d3d646d21c4c68eae100e4" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded axum-core v0.5.6
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+2fd6efc32704647e64d3d646d21c4c68eae100e4" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] b7cb1d07dea48adcb1636dce807d1c3f9b1d50b7e03b68a265f7d1d5f6958118
[INFO] running `Command { std: "docker" "start" "-a" "b7cb1d07dea48adcb1636dce807d1c3f9b1d50b7e03b68a265f7d1d5f6958118", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "b7cb1d07dea48adcb1636dce807d1c3f9b1d50b7e03b68a265f7d1d5f6958118", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "b7cb1d07dea48adcb1636dce807d1c3f9b1d50b7e03b68a265f7d1d5f6958118", kill_on_drop: false }`
[INFO] [stdout] b7cb1d07dea48adcb1636dce807d1c3f9b1d50b7e03b68a265f7d1d5f6958118
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+2fd6efc32704647e64d3d646d21c4c68eae100e4" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 31b27823895ee6b21e0c2b7554e20d7ae957dae648496c1b1c64de7e4f6d4e65
[INFO] running `Command { std: "docker" "start" "-a" "31b27823895ee6b21e0c2b7554e20d7ae957dae648496c1b1c64de7e4f6d4e65", kill_on_drop: false }`
[INFO] [stderr]    Compiling subtle v2.6.1
[INFO] [stderr]    Compiling time-core v0.1.7
[INFO] [stderr]    Compiling cookie v0.18.1
[INFO] [stderr]    Compiling base64ct v1.8.3
[INFO] [stderr]    Compiling getrandom v0.2.17
[INFO] [stderr]    Compiling inout v0.1.4
[INFO] [stderr]    Compiling syn v2.0.114
[INFO] [stderr]    Compiling axum-core v0.5.6
[INFO] [stderr]    Compiling time-macros v0.2.25
[INFO] [stderr]    Compiling rand_core v0.6.4
[INFO] [stderr]    Compiling crypto-common v0.1.7
[INFO] [stderr]    Compiling rand_chacha v0.3.1
[INFO] [stderr]    Compiling cipher v0.4.4
[INFO] [stderr]    Compiling universal-hash v0.5.1
[INFO] [stderr]    Compiling digest v0.10.7
[INFO] [stderr]    Compiling aead v0.5.2
[INFO] [stderr]    Compiling polyval v0.6.2
[INFO] [stderr]    Compiling aes v0.8.4
[INFO] [stderr]    Compiling ctr v0.9.2
[INFO] [stderr]    Compiling sha2 v0.10.9
[INFO] [stderr]    Compiling hmac v0.12.1
[INFO] [stderr]    Compiling ghash v0.5.1
[INFO] [stderr]    Compiling rand v0.8.5
[INFO] [stderr]    Compiling time v0.3.45
[INFO] [stderr]    Compiling aes-gcm v0.10.3
[INFO] [stderr]    Compiling thiserror-impl v2.0.17
[INFO] [stderr]    Compiling async-trait v0.1.89
[INFO] [stderr]    Compiling thiserror v2.0.17
[INFO] [stderr]    Compiling axum_csrf v0.11.0 (/opt/rustwide/workdir)
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 10.35s
[INFO] running `Command { std: "docker" "inspect" "31b27823895ee6b21e0c2b7554e20d7ae957dae648496c1b1c64de7e4f6d4e65", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "31b27823895ee6b21e0c2b7554e20d7ae957dae648496c1b1c64de7e4f6d4e65", kill_on_drop: false }`
[INFO] [stdout] 31b27823895ee6b21e0c2b7554e20d7ae957dae648496c1b1c64de7e4f6d4e65
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+2fd6efc32704647e64d3d646d21c4c68eae100e4" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] ae039d9e6a9460db557811464641d5cb09f347e82b4736dc46b7bc0713588fa9
[INFO] running `Command { std: "docker" "start" "-a" "ae039d9e6a9460db557811464641d5cb09f347e82b4736dc46b7bc0713588fa9", kill_on_drop: false }`
[INFO] [stderr]    Compiling axum_csrf v0.11.0 (/opt/rustwide/workdir)
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.58s
[INFO] running `Command { std: "docker" "inspect" "ae039d9e6a9460db557811464641d5cb09f347e82b4736dc46b7bc0713588fa9", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "ae039d9e6a9460db557811464641d5cb09f347e82b4736dc46b7bc0713588fa9", kill_on_drop: false }`
[INFO] [stdout] ae039d9e6a9460db557811464641d5cb09f347e82b4736dc46b7bc0713588fa9
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+2fd6efc32704647e64d3d646d21c4c68eae100e4" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] 6221657571a861130250730a1cb6ad697a47edc19f583407e7f91c736f70edc0
[INFO] running `Command { std: "docker" "start" "-a" "6221657571a861130250730a1cb6ad697a47edc19f583407e7f91c736f70edc0", kill_on_drop: false }`
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.10s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/axum_csrf-9bd4655071ee4d92)
[INFO] [stdout] 
[INFO] [stderr]    Doc-tests axum_csrf
[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] [stdout] 
[INFO] [stdout] running 16 tests
[INFO] [stdout] test src/config.rs - config::CsrfConfig::with_lifetime (line 82) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 33) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 199) ... FAILED
[INFO] [stdout] test src/config.rs - config::CsrfConfig::with_key (line 199) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 109) ... FAILED
[INFO] [stdout] test src/config.rs - config::CsrfConfig::with_cookie_same_site (line 133) ... ok
[INFO] [stdout] test src/config.rs - config::CsrfConfig::with_secure (line 164) ... ok
[INFO] [stdout] test src/config.rs - config::CsrfConfig::with_cookie_len (line 179) ... ok
[INFO] [stdout] test src/config.rs - config::CsrfConfig::with_salt (line 216) ... ok
[INFO] [stdout] test src/config.rs - config::CsrfConfig::with_prefix_with_host (line 234) ... ok
[INFO] [stdout] test src/lib.rs - (line 167) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 184) ... FAILED
[INFO] [stdout] test src/config.rs - config::CsrfConfig::with_cookie_name (line 98) ... ok
[INFO] [stdout] test src/config.rs - config::CsrfConfig::with_cookie_path (line 116) ... ok
[INFO] [stdout] test src/config.rs - config::CsrfConfig::with_http_only (line 149) ... ok
[INFO] [stdout] test src/config.rs - config::CsrfConfig::with_cookie_domain (line 64) ... ok
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout] 
[INFO] [stdout] ---- src/config.rs - config::CsrfConfig::with_lifetime (line 82) stdout ----
[INFO] [stdout] error[E0432]: unresolved import `chrono`
[INFO] [stdout]   --> src/config.rs:85:5
[INFO] [stdout]    |
[INFO] [stdout] 85 | use chrono::Duration;
[INFO] [stdout]    |     ^^^^^^ use of unresolved module or unlinked crate `chrono`
[INFO] [stdout]    |
[INFO] [stdout]    = help: if you wanted to use a crate named `chrono`, use `cargo add chrono` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 1 previous error
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0432`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - (line 33) stdout ----
[INFO] [stdout] error[E0432]: unresolved import `askama`
[INFO] [stdout]   --> src/lib.rs:35:5
[INFO] [stdout]    |
[INFO] [stdout] 35 | use askama::Template;
[INFO] [stdout]    |     ^^^^^^ use of unresolved module or unlinked crate `askama`
[INFO] [stdout]    |
[INFO] [stdout]    = help: if you wanted to use a crate named `askama`, use `cargo add askama` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `axum`
[INFO] [stdout]   --> src/lib.rs:36:5
[INFO] [stdout]    |
[INFO] [stdout] 36 | use axum::{Form, response::IntoResponse, routing::get, Router};
[INFO] [stdout]    |     ^^^^ use of unresolved module or unlinked crate `axum`
[INFO] [stdout]    |
[INFO] [stdout]    = help: if you wanted to use a crate named `axum`, use `cargo add axum` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `axum`
[INFO] [stdout]   --> src/lib.rs:36:5
[INFO] [stdout]    |
[INFO] [stdout] 36 | use axum::{Form, response::IntoResponse, routing::get, Router};
[INFO] [stdout]    |     ^^^^ use of unresolved module or unlinked crate `axum`
[INFO] [stdout]    |
[INFO] [stdout]    = help: if you wanted to use a crate named `axum`, use `cargo add axum` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `serde`
[INFO] [stdout]   --> src/lib.rs:38:5
[INFO] [stdout]    |
[INFO] [stdout] 38 | use serde::{Deserialize, Serialize};
[INFO] [stdout]    |     ^^^^^ use of unresolved module or unlinked crate `serde`
[INFO] [stdout]    |
[INFO] [stdout]    = help: if you wanted to use a crate named `serde`, use `cargo add serde` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio`
[INFO] [stdout]   --> src/lib.rs:48:3
[INFO] [stdout]    |
[INFO] [stdout] 48 | #[tokio::main]
[INFO] [stdout]    |   ^^^^^ use of unresolved module or unlinked crate `tokio`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tracing`
[INFO] [stdout]   --> src/lib.rs:63:5
[INFO] [stdout]    |
[INFO] [stdout] 63 |     tracing::debug!("listening on {}", addr);
[INFO] [stdout]    |     ^^^^^^^ use of unresolved module or unlinked crate `tracing`
[INFO] [stdout] 
[INFO] [stdout] error: cannot find attribute `template` in this scope
[INFO] [stdout]   --> src/lib.rs:42:3
[INFO] [stdout]    |
[INFO] [stdout] 42 | #[template(path = "template.html")]
[INFO] [stdout]    |   ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tracing_subscriber`
[INFO] [stdout]   --> src/lib.rs:51:5
[INFO] [stdout]    |
[INFO] [stdout] 51 |     tracing_subscriber::fmt::init();
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `tracing_subscriber`
[INFO] [stdout]    |
[INFO] [stdout]    = help: if you wanted to use a crate named `tracing_subscriber`, use `cargo add tracing_subscriber` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `axum`
[INFO] [stdout]   --> src/lib.rs:64:5
[INFO] [stdout]    |
[INFO] [stdout] 64 |     axum::Server::bind(&addr)
[INFO] [stdout]    |     ^^^^ use of unresolved module or unlinked crate `axum`
[INFO] [stdout]    |
[INFO] [stdout]    = help: if you wanted to use a crate named `axum`, use `cargo add axum` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]   --> src/lib.rs:64:5
[INFO] [stdout]    |
[INFO] [stdout] 64 | /     axum::Server::bind(&addr)
[INFO] [stdout] 65 | |         .serve(app.into_make_service())
[INFO] [stdout] 66 | |         .await
[INFO] [stdout]    | |______________^ cannot infer type
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 10 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0282, E0432, E0433.
[INFO] [stdout] For more information about an error, try `rustc --explain E0282`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - (line 199) stdout ----
[INFO] [stdout] error[E0531]: cannot find tuple struct or tuple variant `Form` in this scope
[INFO] [stdout]    --> src/lib.rs:200:71
[INFO] [stdout]     |
[INFO] [stdout] 200 | async fn check_key(token: CsrfToken, session: Session<SessionPgPool>, Form(payload): Form<Keys>,) -> &'static str {
[INFO] [stdout]     |                                                                       ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `CsrfToken` in this scope
[INFO] [stdout]    --> src/lib.rs:200:27
[INFO] [stdout]     |
[INFO] [stdout] 200 | async fn check_key(token: CsrfToken, session: Session<SessionPgPool>, Form(payload): Form<Keys>,) -> &'static str {
[INFO] [stdout]     |                           ^^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]     |
[INFO] [stdout] 199 + use axum_csrf::CsrfToken;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `Session` in this scope
[INFO] [stdout]    --> src/lib.rs:200:47
[INFO] [stdout]     |
[INFO] [stdout] 200 | async fn check_key(token: CsrfToken, session: Session<SessionPgPool>, Form(payload): Form<Keys>,) -> &'static str {
[INFO] [stdout]     |                                               ^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: there is an enum variant `cookie::Expiration::Session`; try using the variant's enum
[INFO] [stdout]     |
[INFO] [stdout] 200 - async fn check_key(token: CsrfToken, session: Session<SessionPgPool>, Form(payload): Form<Keys>,) -> &'static str {
[INFO] [stdout] 200 + async fn check_key(token: CsrfToken, session: cookie::Expiration, Form(payload): Form<Keys>,) -> &'static str {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `SessionPgPool` in this scope
[INFO] [stdout]    --> src/lib.rs:200:55
[INFO] [stdout]     |
[INFO] [stdout] 200 | async fn check_key(token: CsrfToken, session: Session<SessionPgPool>, Form(payload): Form<Keys>,) -> &'static str {
[INFO] [stdout]     |                                                       ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 200 | async fn check_key<SessionPgPool>(token: CsrfToken, session: Session<SessionPgPool>, Form(payload): Form<Keys>,) -> &'static str {
[INFO] [stdout]     |                   +++++++++++++++
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `Form` in this scope
[INFO] [stdout]    --> src/lib.rs:200:86
[INFO] [stdout]     |
[INFO] [stdout] 200 | async fn check_key(token: CsrfToken, session: Session<SessionPgPool>, Form(payload): Form<Keys>,) -> &'static str {
[INFO] [stdout]     |                                                                                      ^^^^
[INFO] [stdout]     |
[INFO] [stdout]    --> /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/core/src/convert/mod.rs:587:0
[INFO] [stdout]     |
[INFO] [stdout]     = note: similarly named trait `From` defined here
[INFO] [stdout] help: a trait with a similar name exists
[INFO] [stdout]     |
[INFO] [stdout] 200 - async fn check_key(token: CsrfToken, session: Session<SessionPgPool>, Form(payload): Form<Keys>,) -> &'static str {
[INFO] [stdout] 200 + async fn check_key(token: CsrfToken, session: Session<SessionPgPool>, Form(payload): From<Keys>,) -> &'static str {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `Keys` in this scope
[INFO] [stdout]    --> src/lib.rs:200:91
[INFO] [stdout]     |
[INFO] [stdout] 200 | async fn check_key(token: CsrfToken, session: Session<SessionPgPool>, Form(payload): Form<Keys>,) -> &'static str {
[INFO] [stdout]     |                                                                                           ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing one of these structs
[INFO] [stdout]     |
[INFO] [stdout] 199 + use std::collections::btree_map::Keys;
[INFO] [stdout]     |
[INFO] [stdout] 199 + use std::collections::hash_map::Keys;
[INFO] [stdout]     |
[INFO] [stdout] 199 + use http::header::Keys;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]    --> src/lib.rs:201:38
[INFO] [stdout]     |
[INFO] [stdout] 201 |     let authenticity_token: String = session.get("authenticity_token").await.unwrap_or_default();
[INFO] [stdout]     |                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 7 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0282, E0425, E0531.
[INFO] [stdout] For more information about an error, try `rustc --explain E0282`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/config.rs - config::CsrfConfig::with_key (line 199) stdout ----
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/config.rs:203:45
[INFO] [stdout]     |
[INFO] [stdout] 203 | let config = CsrfConfig::default().with_key(Key::generate());
[INFO] [stdout]     |                                    -------- ^^^^^^^^^^^^^^^ expected `Option<Key>`, found `Key`
[INFO] [stdout]     |                                    |
[INFO] [stdout]     |                                    arguments to this method are incorrect
[INFO] [stdout]     |
[INFO] [stdout]     = note: expected enum `Option<Key>`
[INFO] [stdout]              found struct `Key`
[INFO] [stdout] note: method defined here
[INFO] [stdout]    --> src/config.rs:206:12
[INFO] [stdout]     |
[INFO] [stdout] 206 |     pub fn with_key(mut self, key: Option<Key>) -> Self {
[INFO] [stdout]     |            ^^^^^^^^
[INFO] [stdout] help: try wrapping the expression in `Some`
[INFO] [stdout]     |
[INFO] [stdout] 203 | let config = CsrfConfig::default().with_key(Some(Key::generate()));
[INFO] [stdout]     |                                             +++++               +
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 1 previous error
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0308`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - (line 109) stdout ----
[INFO] [stdout] error[E0432]: unresolved import `axum_csrf::CsrfLayer`
[INFO] [stdout]    --> src/lib.rs:113:29
[INFO] [stdout]     |
[INFO] [stdout] 113 | use axum_csrf::{CsrfConfig, CsrfLayer, CsrfToken };
[INFO] [stdout]     |                             ^^^^^^^^^ no `CsrfLayer` in the root
[INFO] [stdout]     |
[INFO] [stdout] note: found an item that was configured out
[INFO] [stdout]    --> src/lib.rs:15:16
[INFO] [stdout]     |
[INFO] [stdout]  14 | #[cfg(feature = "layer")]
[INFO] [stdout]     |       ----------------- the item is gated behind the `layer` feature
[INFO] [stdout]  15 | pub use layer::CsrfLayer;
[INFO] [stdout]     |                ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `askama`
[INFO] [stdout]    --> src/lib.rs:111:5
[INFO] [stdout]     |
[INFO] [stdout] 111 | use askama::Template;
[INFO] [stdout]     |     ^^^^^^ use of unresolved module or unlinked crate `askama`
[INFO] [stdout]     |
[INFO] [stdout]     = help: if you wanted to use a crate named `askama`, use `cargo add askama` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `axum`
[INFO] [stdout]    --> src/lib.rs:112:5
[INFO] [stdout]     |
[INFO] [stdout] 112 | use axum::{Form, response::IntoResponse, routing::get, Router};
[INFO] [stdout]     |     ^^^^ use of unresolved module or unlinked crate `axum`
[INFO] [stdout]     |
[INFO] [stdout]     = help: if you wanted to use a crate named `axum`, use `cargo add axum` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `axum`
[INFO] [stdout]    --> src/lib.rs:112:5
[INFO] [stdout]     |
[INFO] [stdout] 112 | use axum::{Form, response::IntoResponse, routing::get, Router};
[INFO] [stdout]     |     ^^^^ use of unresolved module or unlinked crate `axum`
[INFO] [stdout]     |
[INFO] [stdout]     = help: if you wanted to use a crate named `axum`, use `cargo add axum` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `serde`
[INFO] [stdout]    --> src/lib.rs:114:5
[INFO] [stdout]     |
[INFO] [stdout] 114 | use serde::{Deserialize, Serialize};
[INFO] [stdout]     |     ^^^^^ use of unresolved module or unlinked crate `serde`
[INFO] [stdout]     |
[INFO] [stdout]     = help: if you wanted to use a crate named `serde`, use `cargo add serde` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio`
[INFO] [stdout]    --> src/lib.rs:124:3
[INFO] [stdout]     |
[INFO] [stdout] 124 | #[tokio::main]
[INFO] [stdout]     |   ^^^^^ use of unresolved module or unlinked crate `tokio`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tracing`
[INFO] [stdout]    --> src/lib.rs:139:5
[INFO] [stdout]     |
[INFO] [stdout] 139 |     tracing::debug!("listening on {}", addr);
[INFO] [stdout]     |     ^^^^^^^ use of unresolved module or unlinked crate `tracing`
[INFO] [stdout] 
[INFO] [stdout] error: cannot find attribute `template` in this scope
[INFO] [stdout]    --> src/lib.rs:118:3
[INFO] [stdout]     |
[INFO] [stdout] 118 | #[template(path = "template.html")]
[INFO] [stdout]     |   ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tracing_subscriber`
[INFO] [stdout]    --> src/lib.rs:127:5
[INFO] [stdout]     |
[INFO] [stdout] 127 |     tracing_subscriber::fmt::init();
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `tracing_subscriber`
[INFO] [stdout]     |
[INFO] [stdout]     = help: if you wanted to use a crate named `tracing_subscriber`, use `cargo add tracing_subscriber` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `axum`
[INFO] [stdout]    --> src/lib.rs:140:5
[INFO] [stdout]     |
[INFO] [stdout] 140 |     axum::Server::bind(&addr)
[INFO] [stdout]     |     ^^^^ use of unresolved module or unlinked crate `axum`
[INFO] [stdout]     |
[INFO] [stdout]     = help: if you wanted to use a crate named `axum`, use `cargo add axum` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]    --> src/lib.rs:140:5
[INFO] [stdout]     |
[INFO] [stdout] 140 | /     axum::Server::bind(&addr)
[INFO] [stdout] 141 | |         .serve(app.into_make_service())
[INFO] [stdout] 142 | |         .await
[INFO] [stdout]     | |______________^ cannot infer type
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 11 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0282, E0432, E0433.
[INFO] [stdout] For more information about an error, try `rustc --explain E0282`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - (line 167) stdout ----
[INFO] [stdout] error: expected `;`, found `}`
[INFO] [stdout]    --> src/lib.rs:171:43
[INFO] [stdout]     |
[INFO] [stdout] 171 | let app = Router::new().with_state(config)
[INFO] [stdout]     |                                           ^ help: add `;` here
[INFO] [stdout] 172 | } _doctest_main_src_lib_rs_167_0() }
[INFO] [stdout]     | - unexpected token
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CsrfConfig`
[INFO] [stdout]    --> src/lib.rs:169:14
[INFO] [stdout]     |
[INFO] [stdout] 169 | let config = CsrfConfig::default().with_key(Some(cookie_key));
[INFO] [stdout]     |              ^^^^^^^^^^ use of undeclared type `CsrfConfig`
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]     |
[INFO] [stdout] 167 + use axum_csrf::CsrfConfig;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Router`
[INFO] [stdout]    --> src/lib.rs:171:11
[INFO] [stdout]     |
[INFO] [stdout] 171 | let app = Router::new().with_state(config)
[INFO] [stdout]     |           ^^^^^^ use of undeclared type `Router`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 3 previous errors
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0433`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - (line 184) stdout ----
[INFO] [stdout] error: expected `;`, found `}`
[INFO] [stdout]    --> src/lib.rs:194:34
[INFO] [stdout]     |
[INFO] [stdout] 194 |     (token, keys).into_response()
[INFO] [stdout]     |                                  ^ help: add `;` here
[INFO] [stdout] 195 | }
[INFO] [stdout]     | - unexpected token
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `CsrfToken` in this scope
[INFO] [stdout]    --> src/lib.rs:185:23
[INFO] [stdout]     |
[INFO] [stdout] 185 | async fn greet(token: CsrfToken, session: Session<SessionPgPool>) -> impl IntoResponse {
[INFO] [stdout]     |                       ^^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]     |
[INFO] [stdout] 184 + use axum_csrf::CsrfToken;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `Session` in this scope
[INFO] [stdout]    --> src/lib.rs:185:43
[INFO] [stdout]     |
[INFO] [stdout] 185 | async fn greet(token: CsrfToken, session: Session<SessionPgPool>) -> impl IntoResponse {
[INFO] [stdout]     |                                           ^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: there is an enum variant `cookie::Expiration::Session`; try using the variant's enum
[INFO] [stdout]     |
[INFO] [stdout] 185 - async fn greet(token: CsrfToken, session: Session<SessionPgPool>) -> impl IntoResponse {
[INFO] [stdout] 185 + async fn greet(token: CsrfToken, session: cookie::Expiration) -> impl IntoResponse {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `SessionPgPool` in this scope
[INFO] [stdout]    --> src/lib.rs:185:51
[INFO] [stdout]     |
[INFO] [stdout] 185 | async fn greet(token: CsrfToken, session: Session<SessionPgPool>) -> impl IntoResponse {
[INFO] [stdout]     |                                                   ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 185 | async fn greet<SessionPgPool>(token: CsrfToken, session: Session<SessionPgPool>) -> impl IntoResponse {
[INFO] [stdout]     |               +++++++++++++++
[INFO] [stdout] 
[INFO] [stdout] error[E0405]: cannot find trait `IntoResponse` in this scope
[INFO] [stdout]    --> src/lib.rs:185:75
[INFO] [stdout]     |
[INFO] [stdout] 185 | async fn greet(token: CsrfToken, session: Session<SessionPgPool>) -> impl IntoResponse {
[INFO] [stdout]     |                                                                           ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this trait
[INFO] [stdout]     |
[INFO] [stdout] 184 + use axum_core::response::IntoResponse;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Keys` in this scope
[INFO] [stdout]    --> src/lib.rs:189:16
[INFO] [stdout]     |
[INFO] [stdout] 189 |     let keys = Keys {
[INFO] [stdout]     |                ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing one of these structs
[INFO] [stdout]     |
[INFO] [stdout] 184 + use std::collections::btree_map::Keys;
[INFO] [stdout]     |
[INFO] [stdout] 184 + use std::collections::hash_map::Keys;
[INFO] [stdout]     |
[INFO] [stdout] 184 + use http::header::Keys;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `keys` in this scope
[INFO] [stdout]    --> src/lib.rs:194:13
[INFO] [stdout]     |
[INFO] [stdout] 194 |     (token, keys).into_response()
[INFO] [stdout]     |             ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 7 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0405, E0422, E0425.
[INFO] [stdout] For more information about an error, try `rustc --explain E0405`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout]     src/config.rs - config::CsrfConfig::with_key (line 199)
[INFO] [stdout]     src/config.rs - config::CsrfConfig::with_lifetime (line 82)
[INFO] [stdout]     src/lib.rs - (line 109)
[INFO] [stdout]     src/lib.rs - (line 167)
[INFO] [stdout]     src/lib.rs - (line 184)
[INFO] [stdout]     src/lib.rs - (line 199)
[INFO] [stdout]     src/lib.rs - (line 33)
[INFO] [stdout] 
[INFO] [stdout] test result: FAILED. 9 passed; 7 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.02s
[INFO] [stdout] 
[INFO] [stderr] error: doctest failed, to rerun pass `--doc`
[INFO] running `Command { std: "docker" "inspect" "6221657571a861130250730a1cb6ad697a47edc19f583407e7f91c736f70edc0", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "6221657571a861130250730a1cb6ad697a47edc19f583407e7f91c736f70edc0", kill_on_drop: false }`
[INFO] [stdout] 6221657571a861130250730a1cb6ad697a47edc19f583407e7f91c736f70edc0
