diff options
| author | Folkert de Vries <folkert@folkertdev.nl> | 2024-12-18 22:05:27 +0100 |
|---|---|---|
| committer | Folkert de Vries <folkert@folkertdev.nl> | 2025-04-20 11:18:38 +0200 |
| commit | df8a3d5f1d363c19e2fc82060aabb80a9cd94015 (patch) | |
| tree | 7da3f224f99a98fed9cb5f179be3e8f7f7d3fbac /compiler/rustc_passes/src | |
| parent | 49e5e4e3a5610c240a717cb99003a5d5d3356679 (diff) | |
| download | rust-df8a3d5f1d363c19e2fc82060aabb80a9cd94015.tar.gz rust-df8a3d5f1d363c19e2fc82060aabb80a9cd94015.zip | |
stabilize `naked_functions`
Diffstat (limited to 'compiler/rustc_passes/src')
| -rw-r--r-- | compiler/rustc_passes/src/check_attr.rs | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/compiler/rustc_passes/src/check_attr.rs b/compiler/rustc_passes/src/check_attr.rs index cbe5058b551..cfc71a412be 100644 --- a/compiler/rustc_passes/src/check_attr.rs +++ b/compiler/rustc_passes/src/check_attr.rs @@ -690,13 +690,6 @@ impl<'tcx> CheckAttrVisitor<'tcx> { } } } - // FIXME(#80564): We permit struct fields, match arms and macro defs to have an - // `#[naked]` attribute with just a lint, because we previously - // erroneously allowed it and some crates used it accidentally, to be compatible - // with crates depending on them, we can't throw an error here. - Target::Field | Target::Arm | Target::MacroDef => { - self.inline_attr_str_error_with_macro_def(hir_id, attr, "naked") - } _ => { self.dcx().emit_err(errors::AttrShouldBeAppliedToFn { attr_span: attr.span(), |
