diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-06-24 06:27:12 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-24 06:27:12 +0200 |
| commit | 9a591ea1ce7d901f77a640a363cc13929fc61fcd (patch) | |
| tree | 5f25b41daf5c29f7fbfe29e4fbf9f08a4f98846b /compiler/rustc_passes/src/errors.rs | |
| parent | d49994b060684af423339b55769439b2f444a7b9 (diff) | |
| parent | a23917cfd07b309f32603c6acb81b63aad8504e7 (diff) | |
Rollup merge of #126177 - carbotaniuman:unsafe_attr_errors, r=jieyouxu
Add hard error and migration lint for unsafe attrs More implementation work for https://github.com/rust-lang/rust/issues/123757 This adds the migration lint for unsafe attributes, as well as making it a hard error in Rust 2024.
Diffstat (limited to 'compiler/rustc_passes/src/errors.rs')
| -rw-r--r-- | compiler/rustc_passes/src/errors.rs | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/compiler/rustc_passes/src/errors.rs b/compiler/rustc_passes/src/errors.rs index d27b94ebd22..f0596568092 100644 --- a/compiler/rustc_passes/src/errors.rs +++ b/compiler/rustc_passes/src/errors.rs @@ -4,7 +4,7 @@ use std::{ }; use crate::fluent_generated as fluent; -use rustc_ast::{ast, Label}; +use rustc_ast::Label; use rustc_errors::{ codes::*, Applicability, Diag, DiagCtxtHandle, DiagSymbolList, Diagnostic, EmissionGuarantee, Level, MultiSpan, SubdiagMessageOp, Subdiagnostic, @@ -863,15 +863,6 @@ pub struct InvalidAttrAtCrateLevel { pub item: Option<ItemFollowingInnerAttr>, } -#[derive(Diagnostic)] -#[diag(passes_invalid_attr_unsafe)] -#[note] -pub struct InvalidAttrUnsafe { - #[primary_span] - pub span: Span, - pub name: ast::Path, -} - #[derive(Clone, Copy)] pub struct ItemFollowingInnerAttr { pub span: Span, |
