Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Turn on rust-2024-compatibility lints in a test
error: unsafe attribute used without unsafe --> tests/distributed_slice.rs:8:1 | 8 | #[distributed_slice] | ^^^^^^^^^^^^^^^^^^^^ usage of unsafe attribute ... 11 | #[distributed_slice(SHENANIGANS)] | --------------------------------- in this procedural macro expansion | = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! = note: for more information, see issue #123757 <rust-lang/rust#123757> note: the lint level is defined here --> tests/distributed_slice.rs:2:9 | 2 | #![deny(rust_2024_compatibility, unsafe_op_in_unsafe_fn)] | ^^^^^^^^^^^^^^^^^^^^^^^ = note: `#[deny(unsafe_attr_outside_unsafe)]` implied by `#[deny(rust_2024_compatibility)]` = note: this error originates in the macro `SHENANIGANS` which comes from the expansion of the attribute macro `distributed_slice` (in Nightly builds, run with -Z macro-backtrace for more info) help: wrap the attribute in `unsafe(...)` | 8 | #[unsafe(distributed_slice)] | +++++++ + error: unsafe attribute used without unsafe --> tests/distributed_slice.rs:8:1 | 8 | #[distributed_slice] | ^^^^^^^^^^^^^^^^^^^^ usage of unsafe attribute ... 14 | #[distributed_slice(SHENANIGANS)] | --------------------------------- in this procedural macro expansion | = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! = note: for more information, see issue #123757 <rust-lang/rust#123757> = note: this error originates in the macro `SHENANIGANS` which comes from the expansion of the attribute macro `distributed_slice` (in Nightly builds, run with -Z macro-backtrace for more info) help: wrap the attribute in `unsafe(...)` | 8 | #[unsafe(distributed_slice)] | +++++++ + error: unsafe attribute used without unsafe --> tests/distributed_slice.rs:8:1 | 8 | #[distributed_slice] | ^^^^^^^^^^^^^^^^^^^^ usage of unsafe attribute ... 17 | #[distributed_slice(SHENANIGANS)] | --------------------------------- in this procedural macro expansion | = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! = note: for more information, see issue #123757 <rust-lang/rust#123757> = note: this error originates in the macro `SHENANIGANS` which comes from the expansion of the attribute macro `distributed_slice` (in Nightly builds, run with -Z macro-backtrace for more info) help: wrap the attribute in `unsafe(...)` | 8 | #[unsafe(distributed_slice)] | +++++++ + error: unsafe attribute used without unsafe --> tests/distributed_slice.rs:44:5 | 44 | #[distributed_slice] | ^^^^^^^^^^^^^^^^^^^^ usage of unsafe attribute ... 47 | #[distributed_slice(NONCOPY)] | ----------------------------- in this procedural macro expansion | = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! = note: for more information, see issue #123757 <rust-lang/rust#123757> = note: this error originates in the macro `NONCOPY` which comes from the expansion of the attribute macro `distributed_slice` (in Nightly builds, run with -Z macro-backtrace for more info) help: wrap the attribute in `unsafe(...)` | 44 | #[unsafe(distributed_slice)] | +++++++ + error: unsafe attribute used without unsafe --> tests/distributed_slice.rs:55:5 | 55 | #[distributed_slice] | ^^^^^^^^^^^^^^^^^^^^ usage of unsafe attribute ... 58 | #[distributed_slice(MUTABLE)] | ----------------------------- in this procedural macro expansion | = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! = note: for more information, see issue #123757 <rust-lang/rust#123757> = note: this error originates in the macro `MUTABLE` which comes from the expansion of the attribute macro `distributed_slice` (in Nightly builds, run with -Z macro-backtrace for more info) help: wrap the attribute in `unsafe(...)` | 55 | #[unsafe(distributed_slice)] | +++++++ + error: unsafe attribute used without unsafe --> tests/distributed_slice.rs:67:5 | 67 | #[distributed_slice] | ^^^^^^^^^^^^^^^^^^^^ usage of unsafe attribute ... 70 | #[distributed_slice(MYSLICE)] | ----------------------------- in this procedural macro expansion | = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! = note: for more information, see issue #123757 <rust-lang/rust#123757> = note: this error originates in the macro `MYSLICE` which comes from the expansion of the attribute macro `distributed_slice` (in Nightly builds, run with -Z macro-backtrace for more info) help: wrap the attribute in `unsafe(...)` | 67 | #[unsafe(distributed_slice)] | +++++++ +
- Loading branch information