diff options
| author | bors <bors@rust-lang.org> | 2025-04-20 02:08:02 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2025-04-20 02:08:02 +0000 |
| commit | 49e5e4e3a5610c240a717cb99003a5d5d3356679 (patch) | |
| tree | f7d71ca252f47aa55dedab1ee31180dea2334d98 /compiler/rustc_parse/src | |
| parent | 90fd16eb5be9255006c95e8af12a0d43854dc1a9 (diff) | |
| parent | f0a0efdcdc326cf94d232b8f6f93c8e7ad2809c2 (diff) | |
| download | rust-49e5e4e3a5610c240a717cb99003a5d5d3356679.tar.gz rust-49e5e4e3a5610c240a717cb99003a5d5d3356679.zip | |
Auto merge of #140043 - ChrisDenton:rollup-vwf0s9j, r=ChrisDenton
Rollup of 8 pull requests Successful merges: - #138934 (support config extensions) - #139091 (Rewrite on_unimplemented format string parser.) - #139753 (Make `#[naked]` an unsafe attribute) - #139762 (Don't assemble non-env/bound candidates if projection is rigid) - #139834 (Don't canonicalize crate paths) - #139868 (Move `pal::env` to `std::sys::env_consts`) - #139978 (Add citool command for generating a test dashboard) - #139995 (Clean UI tests 4 of n) r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'compiler/rustc_parse/src')
| -rw-r--r-- | compiler/rustc_parse/src/validate_attr.rs | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/compiler/rustc_parse/src/validate_attr.rs b/compiler/rustc_parse/src/validate_attr.rs index b518fca7a65..6a1c2af48ed 100644 --- a/compiler/rustc_parse/src/validate_attr.rs +++ b/compiler/rustc_parse/src/validate_attr.rs @@ -194,12 +194,6 @@ pub fn check_attribute_safety(psess: &ParseSess, safety: AttributeSafety, attr: } } } else if let Safety::Unsafe(unsafe_span) = attr_item.unsafety { - // Allow (but don't require) `#[unsafe(naked)]` so that compiler-builtins can upgrade to it. - // FIXME(#139797): remove this special case when compiler-builtins has upgraded. - if attr.has_name(sym::naked) { - return; - } - psess.dcx().emit_err(errors::InvalidAttrUnsafe { span: unsafe_span, name: attr_item.path.clone(), |
