diff options
| author | bors <bors@rust-lang.org> | 2024-08-01 10:40:45 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-08-01 10:40:45 +0000 |
| commit | c0e32983f5b06a6f7d8cc776ccac71de6512ed6d (patch) | |
| tree | 17ac1f5467de5a238885792e929b0e6500b38dfc /compiler/rustc_builtin_macros/src/errors.rs | |
| parent | 97ac52f579fe1003a162324d448dad43a942b5f5 (diff) | |
| parent | 49db8a5a999f0908b5bf74b88a2d72a4f4dddf48 (diff) | |
Auto merge of #127543 - carbotaniuman:more_unsafe_attr_verification, r=estebank,traviscross
More unsafe attr verification This code denies unsafe on attributes such as `#[test]` and `#[ignore]`, while also changing the `MetaItem` parsing so `unsafe` in args like `#[allow(unsafe(dead_code))]` is not accidentally allowed. Tracking: - https://github.com/rust-lang/rust/issues/123757
Diffstat (limited to 'compiler/rustc_builtin_macros/src/errors.rs')
| -rw-r--r-- | compiler/rustc_builtin_macros/src/errors.rs | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/compiler/rustc_builtin_macros/src/errors.rs b/compiler/rustc_builtin_macros/src/errors.rs index 0a4f07709c7..93fc9bcb9d2 100644 --- a/compiler/rustc_builtin_macros/src/errors.rs +++ b/compiler/rustc_builtin_macros/src/errors.rs @@ -298,13 +298,6 @@ pub(crate) struct DerivePathArgsValue { } #[derive(Diagnostic)] -#[diag(builtin_macros_derive_unsafe_path)] -pub(crate) struct DeriveUnsafePath { - #[primary_span] - pub(crate) span: Span, -} - -#[derive(Diagnostic)] #[diag(builtin_macros_no_default_variant)] #[help] pub(crate) struct NoDefaultVariant { |
