[INFO] fetching crate sa-token-macro 0.1.12... [INFO] testing sa-token-macro-0.1.12 against master#562dee4820c458d823175268e41601d4c060588a for pr-154210-2 [INFO] extracting crate sa-token-macro 0.1.12 into /workspace/builds/worker-1-tc1/source [INFO] started tweaking crates.io crate sa-token-macro 0.1.12 [INFO] removed 0 missing examples [INFO] finished tweaking crates.io crate sa-token-macro 0.1.12 [INFO] tweaked toml for crates.io crate sa-token-macro 0.1.12 written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate sa-token-macro 0.1.12 on toolchain 562dee4820c458d823175268e41601d4c060588a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate sa-token-macro 0.1.12 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3affc4affb1746407f744bdf2354e8453dcccaadd9a43ce40518e24db5f9e489 [INFO] running `Command { std: "docker" "start" "-a" "3affc4affb1746407f744bdf2354e8453dcccaadd9a43ce40518e24db5f9e489", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3affc4affb1746407f744bdf2354e8453dcccaadd9a43ce40518e24db5f9e489", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3affc4affb1746407f744bdf2354e8453dcccaadd9a43ce40518e24db5f9e489", kill_on_drop: false }` [INFO] [stdout] 3affc4affb1746407f744bdf2354e8453dcccaadd9a43ce40518e24db5f9e489 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9249fb9eb1ede9c85a6f3303db674d660cc784d09d525d1c864784593b3a8d68 [INFO] running `Command { std: "docker" "start" "-a" "9249fb9eb1ede9c85a6f3303db674d660cc784d09d525d1c864784593b3a8d68", kill_on_drop: false }` [INFO] [stderr] Compiling syn v2.0.110 [INFO] [stderr] Compiling sa-token-macro v0.1.12 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.44s [INFO] running `Command { std: "docker" "inspect" "9249fb9eb1ede9c85a6f3303db674d660cc784d09d525d1c864784593b3a8d68", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9249fb9eb1ede9c85a6f3303db674d660cc784d09d525d1c864784593b3a8d68", kill_on_drop: false }` [INFO] [stdout] 9249fb9eb1ede9c85a6f3303db674d660cc784d09d525d1c864784593b3a8d68 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 68eb6ca00937c156d2e05ad32e07081d197eca79ce4bd08f157be0bd54029e55 [INFO] running `Command { std: "docker" "start" "-a" "68eb6ca00937c156d2e05ad32e07081d197eca79ce4bd08f157be0bd54029e55", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.177 [INFO] [stderr] Compiling proc-macro2 v1.0.103 [INFO] [stderr] Compiling unicode-ident v1.0.22 [INFO] [stderr] Compiling quote v1.0.42 [INFO] [stderr] Compiling syn v2.0.110 [INFO] [stderr] Compiling parking_lot_core v0.9.12 [INFO] [stderr] Compiling mio v1.1.0 [INFO] [stderr] Compiling signal-hook-registry v1.4.6 [INFO] [stderr] Compiling socket2 v0.6.1 [INFO] [stderr] Compiling parking_lot v0.12.5 [INFO] [stderr] Compiling tokio-macros v2.6.0 [INFO] [stderr] Compiling sa-token-macro v0.1.12 (/opt/rustwide/workdir) [INFO] [stderr] Compiling tokio v1.48.0 [INFO] [stdout] error[E0433]: cannot find module or crate `sa_token_core` in this scope [INFO] [stdout] --> examples/basic_usage.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[sa_check_login] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `sa_token_core` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the attribute macro `sa_check_login` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: there is a crate or module with a similar name [INFO] [stdout] | [INFO] [stdout] 9 - #[sa_check_login] [INFO] [stdout] 9 + sa_token_macro [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find module or crate `sa_token_core` in this scope [INFO] [stdout] --> examples/basic_usage.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | #[sa_check_permission("user:read")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `sa_token_core` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the attribute macro `sa_check_permission` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: there is a crate or module with a similar name [INFO] [stdout] | [INFO] [stdout] 16 - #[sa_check_permission("user:read")] [INFO] [stdout] 16 + sa_token_macro [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find module or crate `sa_token_core` in this scope [INFO] [stdout] --> examples/basic_usage.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | #[sa_check_permission("user:write")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `sa_token_core` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the attribute macro `sa_check_permission` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: there is a crate or module with a similar name [INFO] [stdout] | [INFO] [stdout] 21 - #[sa_check_permission("user:write")] [INFO] [stdout] 21 + sa_token_macro [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find module or crate `sa_token_core` in this scope [INFO] [stdout] --> examples/basic_usage.rs:26:1 [INFO] [stdout] | [INFO] [stdout] 26 | #[sa_check_permission("user:delete")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `sa_token_core` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the attribute macro `sa_check_permission` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: there is a crate or module with a similar name [INFO] [stdout] | [INFO] [stdout] 26 - #[sa_check_permission("user:delete")] [INFO] [stdout] 26 + sa_token_macro [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find module or crate `sa_token_core` in this scope [INFO] [stdout] --> examples/basic_usage.rs:33:1 [INFO] [stdout] | [INFO] [stdout] 33 | #[sa_check_role("admin")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `sa_token_core` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the attribute macro `sa_check_role` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: there is a crate or module with a similar name [INFO] [stdout] | [INFO] [stdout] 33 - #[sa_check_role("admin")] [INFO] [stdout] 33 + sa_token_macro [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find module or crate `sa_token_core` in this scope [INFO] [stdout] --> examples/basic_usage.rs:38:1 [INFO] [stdout] | [INFO] [stdout] 38 | #[sa_check_role("moderator")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `sa_token_core` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the attribute macro `sa_check_role` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: there is a crate or module with a similar name [INFO] [stdout] | [INFO] [stdout] 38 - #[sa_check_role("moderator")] [INFO] [stdout] 38 + sa_token_macro [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find module or crate `sa_token_core` in this scope [INFO] [stdout] --> examples/basic_usage.rs:45:1 [INFO] [stdout] | [INFO] [stdout] 45 | #[sa_check_permissions_and("user:read", "user:write")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `sa_token_core` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the attribute macro `sa_check_permissions_and` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: there is a crate or module with a similar name [INFO] [stdout] | [INFO] [stdout] 45 - #[sa_check_permissions_and("user:read", "user:write")] [INFO] [stdout] 45 + sa_token_macro [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find module or crate `sa_token_core` in this scope [INFO] [stdout] --> examples/basic_usage.rs:50:1 [INFO] [stdout] | [INFO] [stdout] 50 | #[sa_check_permissions_or("admin:all", "super:all")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `sa_token_core` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the attribute macro `sa_check_permissions_or` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: there is a crate or module with a similar name [INFO] [stdout] | [INFO] [stdout] 50 - #[sa_check_permissions_or("admin:all", "super:all")] [INFO] [stdout] 50 + sa_token_macro [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find module or crate `sa_token_core` in this scope [INFO] [stdout] --> examples/basic_usage.rs:57:1 [INFO] [stdout] | [INFO] [stdout] 57 | #[sa_check_roles_and("admin", "super")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `sa_token_core` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the attribute macro `sa_check_roles_and` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: there is a crate or module with a similar name [INFO] [stdout] | [INFO] [stdout] 57 - #[sa_check_roles_and("admin", "super")] [INFO] [stdout] 57 + sa_token_macro [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find module or crate `sa_token_core` in this scope [INFO] [stdout] --> examples/basic_usage.rs:62:1 [INFO] [stdout] | [INFO] [stdout] 62 | #[sa_check_roles_or("admin", "moderator")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `sa_token_core` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the attribute macro `sa_check_roles_or` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: there is a crate or module with a similar name [INFO] [stdout] | [INFO] [stdout] 62 - #[sa_check_roles_or("admin", "moderator")] [INFO] [stdout] 62 + sa_token_macro [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find module or crate `sa_token_core` in this scope [INFO] [stdout] --> examples/basic_usage.rs:121:5 [INFO] [stdout] | [INFO] [stdout] 121 | #[sa_check_login] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `sa_token_core` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the attribute macro `sa_check_login` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: there is a crate or module with a similar name [INFO] [stdout] | [INFO] [stdout] 121 - #[sa_check_login] [INFO] [stdout] 121 + sa_token_macro [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find module or crate `sa_token_core` in this scope [INFO] [stdout] --> examples/basic_usage.rs:127:5 [INFO] [stdout] | [INFO] [stdout] 127 | #[sa_check_permission("user:update_profile")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `sa_token_core` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the attribute macro `sa_check_permission` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: there is a crate or module with a similar name [INFO] [stdout] | [INFO] [stdout] 127 - #[sa_check_permission("user:update_profile")] [INFO] [stdout] 127 + sa_token_macro [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find module or crate `sa_token_core` in this scope [INFO] [stdout] --> examples/basic_usage.rs:133:5 [INFO] [stdout] | [INFO] [stdout] 133 | #[sa_check_role("admin")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `sa_token_core` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the attribute macro `sa_check_role` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: there is a crate or module with a similar name [INFO] [stdout] | [INFO] [stdout] 133 - #[sa_check_role("admin")] [INFO] [stdout] 133 + sa_token_macro [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in an async function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> examples/basic_usage.rs:16:35 [INFO] [stdout] | [INFO] [stdout] 16 | #[sa_check_permission("user:read")] [INFO] [stdout] | ----------------------------------^ [INFO] [stdout] | | | [INFO] [stdout] | | cannot use the `?` operator in an async function that returns `String` [INFO] [stdout] | this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the attribute macro `sa_check_permission` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in an async function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> examples/basic_usage.rs:21:36 [INFO] [stdout] | [INFO] [stdout] 21 | #[sa_check_permission("user:write")] [INFO] [stdout] | -----------------------------------^ [INFO] [stdout] | | | [INFO] [stdout] | | cannot use the `?` operator in an async function that returns `String` [INFO] [stdout] | this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the attribute macro `sa_check_permission` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in an async function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> examples/basic_usage.rs:26:37 [INFO] [stdout] | [INFO] [stdout] 26 | #[sa_check_permission("user:delete")] [INFO] [stdout] | ------------------------------------^ [INFO] [stdout] | | | [INFO] [stdout] | | cannot use the `?` operator in an async function that returns `String` [INFO] [stdout] | this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the attribute macro `sa_check_permission` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in an async function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> examples/basic_usage.rs:33:25 [INFO] [stdout] | [INFO] [stdout] 33 | #[sa_check_role("admin")] [INFO] [stdout] | ------------------------^ [INFO] [stdout] | | | [INFO] [stdout] | | cannot use the `?` operator in an async function that returns `String` [INFO] [stdout] | this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the attribute macro `sa_check_role` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in an async function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> examples/basic_usage.rs:38:29 [INFO] [stdout] | [INFO] [stdout] 38 | #[sa_check_role("moderator")] [INFO] [stdout] | ----------------------------^ [INFO] [stdout] | | | [INFO] [stdout] | | cannot use the `?` operator in an async function that returns `String` [INFO] [stdout] | this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the attribute macro `sa_check_role` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in an async function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> examples/basic_usage.rs:45:54 [INFO] [stdout] | [INFO] [stdout] 45 | #[sa_check_permissions_and("user:read", "user:write")] [INFO] [stdout] | -----------------------------------------------------^ [INFO] [stdout] | | | [INFO] [stdout] | | cannot use the `?` operator in an async function that returns `String` [INFO] [stdout] | this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the attribute macro `sa_check_permissions_and` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in an async function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> examples/basic_usage.rs:50:52 [INFO] [stdout] | [INFO] [stdout] 50 | #[sa_check_permissions_or("admin:all", "super:all")] [INFO] [stdout] | ---------------------------------------------------^ [INFO] [stdout] | | | [INFO] [stdout] | | cannot use the `?` operator in an async function that returns `String` [INFO] [stdout] | this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the attribute macro `sa_check_permissions_or` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in an async function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> examples/basic_usage.rs:57:39 [INFO] [stdout] | [INFO] [stdout] 57 | #[sa_check_roles_and("admin", "super")] [INFO] [stdout] | --------------------------------------^ [INFO] [stdout] | | | [INFO] [stdout] | | cannot use the `?` operator in an async function that returns `String` [INFO] [stdout] | this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the attribute macro `sa_check_roles_and` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in an async function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> examples/basic_usage.rs:62:42 [INFO] [stdout] | [INFO] [stdout] 62 | #[sa_check_roles_or("admin", "moderator")] [INFO] [stdout] | -----------------------------------------^ [INFO] [stdout] | | | [INFO] [stdout] | | cannot use the `?` operator in an async function that returns `String` [INFO] [stdout] | this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the attribute macro `sa_check_roles_or` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in an async function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> examples/basic_usage.rs:127:49 [INFO] [stdout] | [INFO] [stdout] 127 | #[sa_check_permission("user:update_profile")] [INFO] [stdout] | --------------------------------------------^ [INFO] [stdout] | | | [INFO] [stdout] | | cannot use the `?` operator in an async function that returns `String` [INFO] [stdout] | this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the attribute macro `sa_check_permission` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in an async function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> examples/basic_usage.rs:133:29 [INFO] [stdout] | [INFO] [stdout] 133 | #[sa_check_role("admin")] [INFO] [stdout] | ------------------------^ [INFO] [stdout] | | | [INFO] [stdout] | | cannot use the `?` operator in an async function that returns `String` [INFO] [stdout] | this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the attribute macro `sa_check_role` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `sa-token-macro` (example "basic_usage") due to 24 previous errors [INFO] running `Command { std: "docker" "inspect" "68eb6ca00937c156d2e05ad32e07081d197eca79ce4bd08f157be0bd54029e55", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "68eb6ca00937c156d2e05ad32e07081d197eca79ce4bd08f157be0bd54029e55", kill_on_drop: false }` [INFO] [stdout] 68eb6ca00937c156d2e05ad32e07081d197eca79ce4bd08f157be0bd54029e55