[INFO] fetching crate sa-token-macro 0.1.5... [INFO] testing sa-token-macro-0.1.5 against try#c2e32f1c9652b13ed99608599c1e855462f421f3 for pr-146098-8 [INFO] extracting crate sa-token-macro 0.1.5 into /workspace/builds/worker-6-tc2/source [INFO] started tweaking crates.io crate sa-token-macro 0.1.5 [INFO] removed 0 missing examples [INFO] finished tweaking crates.io crate sa-token-macro 0.1.5 [INFO] tweaked toml for crates.io crate sa-token-macro 0.1.5 written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate sa-token-macro 0.1.5 on toolchain c2e32f1c9652b13ed99608599c1e855462f421f3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate sa-token-macro 0.1.5 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" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 86a31876197d0d05dc19a4622989bd569227b1f47cd3eeb8d8ff2432284edd1e [INFO] running `Command { std: "docker" "start" "-a" "86a31876197d0d05dc19a4622989bd569227b1f47cd3eeb8d8ff2432284edd1e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "86a31876197d0d05dc19a4622989bd569227b1f47cd3eeb8d8ff2432284edd1e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "86a31876197d0d05dc19a4622989bd569227b1f47cd3eeb8d8ff2432284edd1e", kill_on_drop: false }` [INFO] [stdout] 86a31876197d0d05dc19a4622989bd569227b1f47cd3eeb8d8ff2432284edd1e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bc87c412010c4e6d6378d8b2cf43dd34f0421420b07e05dc99ccaa35ebe417ff [INFO] running `Command { std: "docker" "start" "-a" "bc87c412010c4e6d6378d8b2cf43dd34f0421420b07e05dc99ccaa35ebe417ff", kill_on_drop: false }` [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling sa-token-macro v0.1.5 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `perm_str` [INFO] [stdout] --> src/macros/check_permissions_and.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | let perm_str = perm_values.join(","); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_perm_str` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `perm_str` [INFO] [stdout] --> src/macros/check_permissions_or.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | let perm_str = perm_values.join(","); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_perm_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `role_str` [INFO] [stdout] --> src/macros/check_roles_and.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | let role_str = role_values.join(","); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_role_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `role_str` [INFO] [stdout] --> src/macros/check_roles_or.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | let role_str = role_values.join(","); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_role_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.28s [INFO] running `Command { std: "docker" "inspect" "bc87c412010c4e6d6378d8b2cf43dd34f0421420b07e05dc99ccaa35ebe417ff", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bc87c412010c4e6d6378d8b2cf43dd34f0421420b07e05dc99ccaa35ebe417ff", kill_on_drop: false }` [INFO] [stdout] bc87c412010c4e6d6378d8b2cf43dd34f0421420b07e05dc99ccaa35ebe417ff [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 178da855380e39bd9ce6da93e8057b1fa0cc57dce7a05b4378cfdefc77ed057d [INFO] running `Command { std: "docker" "start" "-a" "178da855380e39bd9ce6da93e8057b1fa0cc57dce7a05b4378cfdefc77ed057d", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Compiling unicode-ident v1.0.19 [INFO] [stderr] Compiling quote v1.0.41 [INFO] [stderr] Compiling signal-hook-registry v1.4.6 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling socket2 v0.6.0 [INFO] [stderr] Compiling parking_lot_core v0.9.12 [INFO] [stderr] Compiling parking_lot v0.12.5 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling sa-token-macro v0.1.5 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `perm_str` [INFO] [stdout] --> src/macros/check_permissions_and.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | let perm_str = perm_values.join(","); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_perm_str` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `perm_str` [INFO] [stdout] --> src/macros/check_permissions_or.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | let perm_str = perm_values.join(","); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_perm_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `role_str` [INFO] [stdout] --> src/macros/check_roles_and.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | let role_str = role_values.join(","); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_role_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `role_str` [INFO] [stdout] --> src/macros/check_roles_or.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | let role_str = role_values.join(","); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_role_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `sa_token_core` [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]: failed to resolve: use of unresolved module or unlinked crate `sa_token_core` [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]: failed to resolve: use of unresolved module or unlinked crate `sa_token_core` [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]: failed to resolve: use of unresolved module or unlinked crate `sa_token_core` [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]: failed to resolve: use of unresolved module or unlinked crate `sa_token_core` [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]: failed to resolve: use of unresolved module or unlinked crate `sa_token_core` [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]: failed to resolve: use of unresolved module or unlinked crate `sa_token_core` [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] warning: unused variable: `perm_str` [INFO] [stdout] --> src/macros/check_permissions_and.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | let perm_str = perm_values.join(","); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_perm_str` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `sa_token_core` [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] warning: unused variable: `perm_str` [INFO] [stdout] --> src/macros/check_permissions_or.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | let perm_str = perm_values.join(","); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_perm_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `role_str` [INFO] [stdout] --> src/macros/check_roles_and.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | let role_str = role_values.join(","); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_role_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `sa_token_core` [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] warning: unused variable: `role_str` [INFO] [stdout] --> src/macros/check_roles_or.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | let role_str = role_values.join(","); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_role_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `sa_token_core` [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]: failed to resolve: use of unresolved module or unlinked crate `sa_token_core` [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]: failed to resolve: use of unresolved module or unlinked crate `sa_token_core` [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]: failed to resolve: use of unresolved module or unlinked crate `sa_token_core` [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: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: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 21 previous errors [INFO] running `Command { std: "docker" "inspect" "178da855380e39bd9ce6da93e8057b1fa0cc57dce7a05b4378cfdefc77ed057d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "178da855380e39bd9ce6da93e8057b1fa0cc57dce7a05b4378cfdefc77ed057d", kill_on_drop: false }` [INFO] [stdout] 178da855380e39bd9ce6da93e8057b1fa0cc57dce7a05b4378cfdefc77ed057d