[INFO] fetching crate actix-jwt-auth-middleware 0.1.1... [INFO] testing actix-jwt-auth-middleware-0.1.1 against master#0e21a27075a8c508f00d1a4430497f17ce93d5c9 for pr-98839 [INFO] extracting crate actix-jwt-auth-middleware 0.1.1 into /workspace/builds/worker-5/source [INFO] validating manifest of crates.io crate actix-jwt-auth-middleware 0.1.1 on toolchain 0e21a27075a8c508f00d1a4430497f17ce93d5c9 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+0e21a27075a8c508f00d1a4430497f17ce93d5c9" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate actix-jwt-auth-middleware 0.1.1 [INFO] finished tweaking crates.io crate actix-jwt-auth-middleware 0.1.1 [INFO] tweaked toml for crates.io crate actix-jwt-auth-middleware 0.1.1 written to /workspace/builds/worker-5/source/Cargo.toml [INFO] crate crates.io crate actix-jwt-auth-middleware 0.1.1 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+0e21a27075a8c508f00d1a4430497f17ce93d5c9" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded actix-jwt-auth-middleware-derive v0.1.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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" "+0e21a27075a8c508f00d1a4430497f17ce93d5c9" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fdc866bd2b41683de115944b84e300bd939db343f510c8d388950525e2fedbc1 [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" "fdc866bd2b41683de115944b84e300bd939db343f510c8d388950525e2fedbc1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fdc866bd2b41683de115944b84e300bd939db343f510c8d388950525e2fedbc1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fdc866bd2b41683de115944b84e300bd939db343f510c8d388950525e2fedbc1", kill_on_drop: false }` [INFO] [stdout] fdc866bd2b41683de115944b84e300bd939db343f510c8d388950525e2fedbc1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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" "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" "+0e21a27075a8c508f00d1a4430497f17ce93d5c9" "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] c3c766418305dfb26c97430dc2adbd6273df0159c52e60ac6ca37493dc2685d2 [INFO] running `Command { std: "docker" "start" "-a" "c3c766418305dfb26c97430dc2adbd6273df0159c52e60ac6ca37493dc2685d2", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.126 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling proc-macro2 v1.0.39 [INFO] [stderr] Compiling unicode-ident v1.0.0 [INFO] [stderr] Compiling syn v1.0.95 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling typenum v1.15.0 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling bytes v1.1.0 [INFO] [stderr] Compiling pin-project-lite v0.2.9 [INFO] [stderr] Compiling futures-core v0.3.21 [INFO] [stderr] Compiling itoa v1.0.2 [INFO] [stderr] Compiling parking_lot_core v0.9.3 [INFO] [stderr] Compiling serde_derive v1.0.137 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling serde v1.0.137 [INFO] [stderr] Compiling subtle v2.4.1 [INFO] [stderr] Compiling once_cell v1.12.0 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling futures-task v0.3.21 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.16 [INFO] [stderr] Compiling futures-util v0.3.21 [INFO] [stderr] Compiling cpufeatures v0.2.2 [INFO] [stderr] Compiling unicode-xid v0.2.3 [INFO] [stderr] Compiling futures-sink v0.3.21 [INFO] [stderr] Compiling slab v0.4.6 [INFO] [stderr] Compiling zstd-safe v4.1.6+zstd.1.5.2 [INFO] [stderr] Compiling local-waker v0.1.3 [INFO] [stderr] Compiling regex-syntax v0.6.26 [INFO] [stderr] Compiling alloc-no-stdlib v2.0.3 [INFO] [stderr] Compiling crc32fast v1.3.2 [INFO] [stderr] Compiling httparse v1.7.1 [INFO] [stderr] Compiling paste v1.0.7 [INFO] [stderr] Compiling adler v1.0.2 [INFO] [stderr] Compiling hashbrown v0.11.2 [INFO] [stderr] Compiling serde_json v1.0.81 [INFO] [stderr] Compiling encoding_rs v0.8.31 [INFO] [stderr] Compiling firestorm v0.5.1 [INFO] [stderr] Compiling ryu v1.0.10 [INFO] [stderr] Compiling num_threads v0.1.6 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling signature v1.5.0 [INFO] [stderr] Compiling unicode-bidi v0.3.8 [INFO] [stderr] Compiling anyhow v1.0.57 [INFO] [stderr] Compiling opaque-debug v0.3.0 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling time-macros v0.2.4 [INFO] [stderr] Compiling convert_case v0.4.0 [INFO] [stderr] Compiling half v1.8.2 [INFO] [stderr] Compiling base64 v0.13.0 [INFO] [stderr] Compiling language-tags v0.3.2 [INFO] [stderr] Compiling httpdate v1.0.2 [INFO] [stderr] Compiling mime v0.3.16 [INFO] [stderr] Compiling base64ct v1.1.1 [INFO] [stderr] Compiling generic-array v0.14.5 [INFO] [stderr] Compiling ahash v0.7.6 [INFO] [stderr] Compiling cookie v0.16.0 [INFO] [stderr] Compiling tracing-core v0.1.26 [INFO] [stderr] Compiling tinyvec v1.6.0 [INFO] [stderr] Compiling actix-utils v3.0.0 [INFO] [stderr] Compiling alloc-stdlib v0.2.1 [INFO] [stderr] Compiling lock_api v0.4.7 [INFO] [stderr] Compiling indexmap v1.8.2 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling http v0.2.7 [INFO] [stderr] Compiling bytestring v1.0.0 [INFO] [stderr] Compiling miniz_oxide v0.5.1 [INFO] [stderr] Compiling ed25519 v1.5.2 [INFO] [stderr] Compiling brotli-decompressor v2.3.2 [INFO] [stderr] Compiling actix-service v2.0.2 [INFO] [stderr] Compiling flate2 v1.0.24 [INFO] [stderr] Compiling quote v1.0.18 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling unicode-normalization v0.1.19 [INFO] [stderr] Compiling jobserver v0.1.24 [INFO] [stderr] Compiling mio v0.8.3 [INFO] [stderr] Compiling signal-hook-registry v1.4.0 [INFO] [stderr] Compiling socket2 v0.4.4 [INFO] [stderr] Compiling getrandom v0.2.6 [INFO] [stderr] Compiling num_cpus v1.13.1 [INFO] [stderr] Compiling cc v1.0.73 [INFO] [stderr] Compiling parking_lot v0.12.0 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling brotli v3.3.4 [INFO] [stderr] Compiling time v0.3.9 [INFO] [stderr] Compiling regex v1.5.6 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling tokio v1.18.2 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling idna v0.2.3 [INFO] [stderr] Compiling crypto-common v0.1.3 [INFO] [stderr] Compiling block-buffer v0.10.2 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling digest v0.10.3 [INFO] [stderr] Compiling sha2 v0.9.9 [INFO] [stderr] Compiling chrono v0.4.19 [INFO] [stderr] Compiling url v2.2.2 [INFO] [stderr] Compiling sha-1 v0.10.0 [INFO] [stderr] Compiling sha2 v0.10.2 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling zstd-sys v1.6.3+zstd.1.5.2 [INFO] [stderr] Compiling actix-router v0.5.0 [INFO] [stderr] Compiling synstructure v0.12.6 [INFO] [stderr] Compiling actix-rt v2.7.0 [INFO] [stderr] Compiling tracing-attributes v0.1.21 [INFO] [stderr] Compiling futures-macro v0.3.21 [INFO] [stderr] Compiling zeroize_derive v1.3.2 [INFO] [stderr] Compiling derive_more v0.99.17 [INFO] [stderr] Compiling actix-web-codegen v4.0.0 [INFO] [stderr] Compiling actix-macros v0.2.3 [INFO] [stderr] Compiling actix-jwt-auth-middleware-derive v0.1.0 [INFO] [stderr] Compiling zeroize v1.3.0 [INFO] [stderr] Compiling curve25519-dalek v3.2.1 [INFO] [stderr] Compiling tracing v0.1.34 [INFO] [stderr] Compiling tokio-util v0.7.2 [INFO] [stderr] Compiling actix-codec v0.5.0 [INFO] [stderr] Compiling h2 v0.3.13 [INFO] [stderr] Compiling local-channel v0.1.3 [INFO] [stderr] Compiling actix-server v2.1.1 [INFO] [stderr] Compiling ed25519-dalek v1.0.1 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling serde_cbor v0.11.2 [INFO] [stderr] Compiling jwt-compact v0.5.0 [INFO] [stderr] Compiling zstd v0.10.2+zstd.1.5.2 [INFO] [stderr] Compiling actix-http v3.0.4 [INFO] [stderr] Compiling actix-web v4.0.1 [INFO] [stderr] Compiling actix-jwt-auth-middleware v0.1.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 4m 47s [INFO] running `Command { std: "docker" "inspect" "c3c766418305dfb26c97430dc2adbd6273df0159c52e60ac6ca37493dc2685d2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c3c766418305dfb26c97430dc2adbd6273df0159c52e60ac6ca37493dc2685d2", kill_on_drop: false }` [INFO] [stdout] c3c766418305dfb26c97430dc2adbd6273df0159c52e60ac6ca37493dc2685d2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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" "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" "+0e21a27075a8c508f00d1a4430497f17ce93d5c9" "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] 5f592019a155cdb61e9c23e823793090e467e2c7161a61efb8983c95ab57e00c [INFO] running `Command { std: "docker" "start" "-a" "5f592019a155cdb61e9c23e823793090e467e2c7161a61efb8983c95ab57e00c", kill_on_drop: false }` [INFO] [stderr] Compiling actix-jwt-auth-middleware v0.1.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 12.80s [INFO] running `Command { std: "docker" "inspect" "5f592019a155cdb61e9c23e823793090e467e2c7161a61efb8983c95ab57e00c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5f592019a155cdb61e9c23e823793090e467e2c7161a61efb8983c95ab57e00c", kill_on_drop: false }` [INFO] [stdout] 5f592019a155cdb61e9c23e823793090e467e2c7161a61efb8983c95ab57e00c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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" "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" "+0e21a27075a8c508f00d1a4430497f17ce93d5c9" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 17cbc107fd59767ca74a0827f3fbc9273ed26bea44b567086b4a4579110e5b5c [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" "17cbc107fd59767ca74a0827f3fbc9273ed26bea44b567086b4a4579110e5b5c", kill_on_drop: false }` [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.25s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/actix_jwt_auth_middleware-1e40846b68cc0cdf) [INFO] [stdout] [INFO] [stderr] Doc-tests actix-jwt-auth-middleware [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 3 tests [INFO] [stdout] test src/lib.rs - (line 33) ... FAILED [INFO] [stdout] test src/lib.rs - (line 11) ... FAILED [INFO] [stdout] test src/lib.rs - (line 44) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - (line 33) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Role` [INFO] [stdout] --> src/lib.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 5 | Role::Admin => true, [INFO] [stdout] | ^^^^ use of undeclared type `Role` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Role` [INFO] [stdout] --> src/lib.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 6 | Role::BaseUser => false, [INFO] [stdout] | ^^^^ use of undeclared type `Role` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Authority` [INFO] [stdout] --> src/lib.rs:34:1 [INFO] [stdout] | [INFO] [stdout] 3 | Authority::::default_with_guard_fn( [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 | use actix_jwt_auth_middleware::Authority; [INFO] [stdout] | [INFO] [stdout] 2 | use actix_web::http::uri::Authority; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `UserClaims` in this scope [INFO] [stdout] --> src/lib.rs:34:13 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_33_0() { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 3 | Authority::::default_with_guard_fn( [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0433. [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 11) stdout ---- [INFO] [stdout] error: cannot find attribute `get` in this scope [INFO] [stdout] --> src/lib.rs:25:3 [INFO] [stdout] | [INFO] [stdout] 16 | #[get("/hello")] [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this attribute macro: [INFO] [stdout] actix_web::get [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Serialize` in this scope [INFO] [stdout] --> src/lib.rs:18:10 [INFO] [stdout] | [INFO] [stdout] 9 | #[derive(Serialize, Deserialize, Clone)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this derive macro: [INFO] [stdout] serde::Serialize [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Deserialize` in this scope [INFO] [stdout] --> src/lib.rs:18:21 [INFO] [stdout] | [INFO] [stdout] 9 | #[derive(Serialize, Deserialize, Clone)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this derive macro: [INFO] [stdout] serde::Deserialize [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Serialize` in this scope [INFO] [stdout] --> src/lib.rs:12:10 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(Serialize, Deserialize, Clone, FromRequest)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this derive macro: [INFO] [stdout] serde::Serialize [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Deserialize` in this scope [INFO] [stdout] --> src/lib.rs:12:21 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(Serialize, Deserialize, Clone, FromRequest)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this derive macro: [INFO] [stdout] serde::Deserialize [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `FromRequest` in this scope [INFO] [stdout] --> src/lib.rs:12:41 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(Serialize, Deserialize, Clone, FromRequest)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing one of these items: [INFO] [stdout] actix_jwt_auth_middleware::FromRequest [INFO] [stdout] actix_jwt_auth_middleware_derive::FromRequest [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `Responder` in this scope [INFO] [stdout] --> src/lib.rs:26:49 [INFO] [stdout] | [INFO] [stdout] 17 | async fn hello(user_claims: UserClaims) -> impl Responder { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 2 | use actix_web::Responder; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0405`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 44) stdout ---- [INFO] [stdout] error[E0599]: the method `create_signed_cookie` exists for struct `Data>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/lib.rs:97:33 [INFO] [stdout] | [INFO] [stdout] 12 | struct UserClaims { [INFO] [stdout] | ----------------- doesn't satisfy `UserClaims: Clone` [INFO] [stdout] ... [INFO] [stdout] 55 | let cookie = auth_authority.create_signed_cookie(UserClaims { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ method cannot be called on `Data>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `UserClaims: Clone` [INFO] [stdout] help: consider annotating `UserClaims` with `#[derive(Clone)]` [INFO] [stdout] | [INFO] [stdout] 12 | #[derive(Clone)] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `create_signed_cookie` exists for struct `Data>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/lib.rs:112:33 [INFO] [stdout] | [INFO] [stdout] 12 | struct UserClaims { [INFO] [stdout] | ----------------- doesn't satisfy `UserClaims: Clone` [INFO] [stdout] ... [INFO] [stdout] 70 | let cookie = auth_authority.create_signed_cookie(UserClaims { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ method cannot be called on `Data>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `UserClaims: Clone` [INFO] [stdout] help: consider annotating `UserClaims` with `#[derive(Clone)]` [INFO] [stdout] | [INFO] [stdout] 12 | #[derive(Clone)] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0599]: the function or associated item `default_with_guard_fn` exists for struct `actix_jwt_auth_middleware::Authority`, but its trait bounds were not satisfied [INFO] [stdout] --> src/lib.rs:69:34 [INFO] [stdout] | [INFO] [stdout] 12 | struct UserClaims { [INFO] [stdout] | ----------------- doesn't satisfy `UserClaims: Clone` [INFO] [stdout] ... [INFO] [stdout] 27 | Authority::::default_with_guard_fn(|user_claims| match user_claims.role { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ function or associated item cannot be called on `actix_jwt_auth_middleware::Authority` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `UserClaims: Clone` [INFO] [stdout] help: consider annotating `UserClaims` with `#[derive(Clone)]` [INFO] [stdout] | [INFO] [stdout] 12 | #[derive(Clone)] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - (line 11) [INFO] [stdout] src/lib.rs - (line 33) [INFO] [stdout] src/lib.rs - (line 44) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 3 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.54s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "17cbc107fd59767ca74a0827f3fbc9273ed26bea44b567086b4a4579110e5b5c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "17cbc107fd59767ca74a0827f3fbc9273ed26bea44b567086b4a4579110e5b5c", kill_on_drop: false }` [INFO] [stdout] 17cbc107fd59767ca74a0827f3fbc9273ed26bea44b567086b4a4579110e5b5c