[INFO] fetching crate actix-grants-proc-macro 2.0.0-beta.4... [INFO] testing actix-grants-proc-macro-2.0.0-beta.4 against try#722e1797249a965b6335aebd65d777f917e498f1 for pr-91031 [INFO] extracting crate actix-grants-proc-macro 2.0.0-beta.4 into /workspace/builds/worker-8/source [INFO] validating manifest of crates.io crate actix-grants-proc-macro 2.0.0-beta.4 on toolchain 722e1797249a965b6335aebd65d777f917e498f1 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+722e1797249a965b6335aebd65d777f917e498f1" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate actix-grants-proc-macro 2.0.0-beta.4 [INFO] finished tweaking crates.io crate actix-grants-proc-macro 2.0.0-beta.4 [INFO] tweaked toml for crates.io crate actix-grants-proc-macro 2.0.0-beta.4 written to /workspace/builds/worker-8/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+722e1797249a965b6335aebd65d777f917e498f1" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+722e1797249a965b6335aebd65d777f917e498f1" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+722e1797249a965b6335aebd65d777f917e498f1" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a5aa9f658a72dc40ec09e4821061345ddbf55bbe22202e1e76544ff1d4415ec5 [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" "a5aa9f658a72dc40ec09e4821061345ddbf55bbe22202e1e76544ff1d4415ec5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a5aa9f658a72dc40ec09e4821061345ddbf55bbe22202e1e76544ff1d4415ec5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a5aa9f658a72dc40ec09e4821061345ddbf55bbe22202e1e76544ff1d4415ec5", kill_on_drop: false }` [INFO] [stdout] a5aa9f658a72dc40ec09e4821061345ddbf55bbe22202e1e76544ff1d4415ec5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+722e1797249a965b6335aebd65d777f917e498f1" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8415caf3d31cbe321a64eb6a1cffc17aba59b5b2dfe57d756d88c87b0e487e9c [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" "8415caf3d31cbe321a64eb6a1cffc17aba59b5b2dfe57d756d88c87b0e487e9c", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.81 [INFO] [stderr] Compiling actix-grants-proc-macro v2.0.0-beta.4 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 14.85s [INFO] running `Command { std: "docker" "inspect" "8415caf3d31cbe321a64eb6a1cffc17aba59b5b2dfe57d756d88c87b0e487e9c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8415caf3d31cbe321a64eb6a1cffc17aba59b5b2dfe57d756d88c87b0e487e9c", kill_on_drop: false }` [INFO] [stdout] 8415caf3d31cbe321a64eb6a1cffc17aba59b5b2dfe57d756d88c87b0e487e9c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+722e1797249a965b6335aebd65d777f917e498f1" "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] 3d100cb2b48dd8c7d67efb2a7189b6156828b8cc3d93632d65e3bc8524cf4973 [INFO] running `Command { std: "docker" "start" "-a" "3d100cb2b48dd8c7d67efb2a7189b6156828b8cc3d93632d65e3bc8524cf4973", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.107 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling futures-task v0.3.17 [INFO] [stderr] Compiling local-waker v0.1.1 [INFO] [stderr] Compiling paste v1.0.6 [INFO] [stderr] Compiling firestorm v0.4.6 [INFO] [stderr] Compiling httpdate v1.0.2 [INFO] [stderr] Compiling language-tags v0.3.2 [INFO] [stderr] Compiling tokio v1.14.0 [INFO] [stderr] Compiling futures-util v0.3.17 [INFO] [stderr] Compiling indexmap v1.7.0 [INFO] [stderr] Compiling ahash v0.7.6 [INFO] [stderr] Compiling tracing-core v0.1.21 [INFO] [stderr] Compiling serde_derive v1.0.130 [INFO] [stderr] Compiling actix-macros v0.2.3 [INFO] [stderr] Compiling pin-project-internal v1.0.8 [INFO] [stderr] Compiling derive_more v0.99.16 [INFO] [stderr] Compiling actix-utils v3.0.0 [INFO] [stderr] Compiling tracing v0.1.29 [INFO] [stderr] Compiling actix-service v2.0.1 [INFO] [stderr] Compiling parking_lot_core v0.8.5 [INFO] [stderr] Compiling mio v0.7.14 [INFO] [stderr] Compiling signal-hook-registry v1.4.0 [INFO] [stderr] Compiling getrandom v0.2.3 [INFO] [stderr] Compiling socket2 v0.4.2 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling time v0.3.5 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.4 [INFO] [stderr] Compiling pin-project v1.0.8 [INFO] [stderr] Compiling local-channel v0.1.2 [INFO] [stderr] Compiling serde v1.0.130 [INFO] [stderr] Compiling tokio-util v0.6.9 [INFO] [stderr] Compiling actix-rt v2.4.0 [INFO] [stderr] Compiling actix-server v2.0.0-beta.9 [INFO] [stderr] Compiling actix-codec v0.4.1 [INFO] [stderr] Compiling h2 v0.3.7 [INFO] [stderr] Compiling actix-router v0.5.0-beta.2 [INFO] [stderr] Compiling serde_urlencoded v0.7.0 [INFO] [stderr] Compiling serde_json v1.0.71 [INFO] [stderr] Compiling actix-web-codegen v0.5.0-beta.5 [INFO] [stderr] Compiling actix-http v3.0.0-beta.12 [INFO] [stderr] Compiling actix-web v4.0.0-beta.11 [INFO] [stderr] Compiling actix-grants-proc-macro v2.0.0-beta.4 (/opt/rustwide/workdir) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1m 11s [INFO] running `Command { std: "docker" "inspect" "3d100cb2b48dd8c7d67efb2a7189b6156828b8cc3d93632d65e3bc8524cf4973", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3d100cb2b48dd8c7d67efb2a7189b6156828b8cc3d93632d65e3bc8524cf4973", kill_on_drop: false }` [INFO] [stdout] 3d100cb2b48dd8c7d67efb2a7189b6156828b8cc3d93632d65e3bc8524cf4973 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+722e1797249a965b6335aebd65d777f917e498f1" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 6d1acc81bdf525c221880ceb12c975915e183bf2c5d385f87e7c9677d85d9a61 [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" "6d1acc81bdf525c221880ceb12c975915e183bf2c5d385f87e7c9677d85d9a61", kill_on_drop: false }` [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.16s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/actix_grants_proc_macro-f5178a63c780660f) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stderr] Doc-tests actix-grants-proc-macro [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 4 tests [INFO] [stdout] test src/lib.rs - has_any_permission (line 46) ... FAILED [INFO] [stdout] test src/lib.rs - has_permissions (line 20) ... FAILED [INFO] [stdout] test src/lib.rs - has_any_role (line 84) ... FAILED [INFO] [stdout] test src/lib.rs - has_roles (line 65) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - has_any_permission (line 46) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `actix_web_grants` [INFO] [stdout] --> src/lib.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 3 | use actix_web_grants::proc_macro::has_any_permission; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ use of undeclared crate or module `actix_web_grants` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `has_any_permission` in this scope [INFO] [stdout] --> src/lib.rs:51:3 [INFO] [stdout] | [INFO] [stdout] 7 | #[has_any_permission["ROLE_ADMIN", "ROLE_MANAGER"]] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this attribute macro: [INFO] [stdout] actix_grants_proc_macro::has_any_permission [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 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 - has_permissions (line 20) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `actix_web_grants` [INFO] [stdout] --> src/lib.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 3 | use actix_web_grants::proc_macro::has_permissions; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ use of undeclared crate or module `actix_web_grants` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `has_permissions` in this scope [INFO] [stdout] --> src/lib.rs:33:3 [INFO] [stdout] | [INFO] [stdout] 15 | #[has_permissions["ROLE_ADMIN", "OP_GET_SECRET", secure="user_id.into_inner() == user.id"]] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this attribute macro: [INFO] [stdout] actix_grants_proc_macro::has_permissions [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `has_permissions` in this scope [INFO] [stdout] --> src/lib.rs:25:3 [INFO] [stdout] | [INFO] [stdout] 7 | #[has_permissions["ROLE_ADMIN", "OP_GET_SECRET"]] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this attribute macro: [INFO] [stdout] actix_grants_proc_macro::has_permissions [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `web` [INFO] [stdout] --> src/lib.rs:34:40 [INFO] [stdout] | [INFO] [stdout] 16 | async fn macro_secured_params(user_id: web::Path, user: web::Data) -> HttpResponse { [INFO] [stdout] | ^^^ use of undeclared crate or module `web` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `web` [INFO] [stdout] --> src/lib.rs:34:62 [INFO] [stdout] | [INFO] [stdout] 16 | async fn macro_secured_params(user_id: web::Path, user: web::Data) -> HttpResponse { [INFO] [stdout] | ^^^ use of undeclared crate or module `web` [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 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 - has_any_role (line 84) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `actix_web_grants` [INFO] [stdout] --> src/lib.rs:85:5 [INFO] [stdout] | [INFO] [stdout] 3 | use actix_web_grants::proc_macro::has_any_role; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ use of undeclared crate or module `actix_web_grants` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `has_any_role` in this scope [INFO] [stdout] --> src/lib.rs:89:3 [INFO] [stdout] | [INFO] [stdout] 7 | #[has_any_role["ADMIN", "MANAGER"]] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this attribute macro: [INFO] [stdout] actix_grants_proc_macro::has_any_role [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 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 - has_roles (line 65) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `actix_web_grants` [INFO] [stdout] --> src/lib.rs:66:5 [INFO] [stdout] | [INFO] [stdout] 3 | use actix_web_grants::proc_macro::has_roles; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ use of undeclared crate or module `actix_web_grants` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `has_roles` in this scope [INFO] [stdout] --> src/lib.rs:70:3 [INFO] [stdout] | [INFO] [stdout] 7 | #[has_roles["ADMIN", "MANAGER"]] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this attribute macro: [INFO] [stdout] actix_grants_proc_macro::has_roles [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 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] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - has_any_permission (line 46) [INFO] [stdout] src/lib.rs - has_any_role (line 84) [INFO] [stdout] src/lib.rs - has_permissions (line 20) [INFO] [stdout] src/lib.rs - has_roles (line 65) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 4 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.76s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "6d1acc81bdf525c221880ceb12c975915e183bf2c5d385f87e7c9677d85d9a61", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6d1acc81bdf525c221880ceb12c975915e183bf2c5d385f87e7c9677d85d9a61", kill_on_drop: false }` [INFO] [stdout] 6d1acc81bdf525c221880ceb12c975915e183bf2c5d385f87e7c9677d85d9a61