diff options
| author | Matthias Krüger <476013+matthiaskrgr@users.noreply.github.com> | 2025-07-08 19:29:37 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-08 19:29:37 +0200 |
| commit | bc9b313cb5d784e88c5e7d272b46ac385970bd51 (patch) | |
| tree | e6adef22143cfe8df31b208967f119ecc40dfa87 /compiler/rustc_parse/src | |
| parent | f838cbc06de60819faff3413f374706b74824ca2 (diff) | |
| parent | 4f0b0b0f01ef3e5a2445993faf8367a4e17b8df0 (diff) | |
| download | rust-bc9b313cb5d784e88c5e7d272b46ac385970bd51.tar.gz rust-bc9b313cb5d784e88c5e7d272b46ac385970bd51.zip | |
Rollup merge of #143402 - GrigorenkoPV:attributes/link_attrs, r=jdonszelmann
Port several linking (linkage?) related attributes the new attribute system This ports: - `#[export_stable]` - `#[ffi_const]` - `#[ffi_pure]` - `#[rustc_std_internal_symbol]` Part of rust-lang/rust#131229 r? ``@oli-obk``
Diffstat (limited to 'compiler/rustc_parse/src')
| -rw-r--r-- | compiler/rustc_parse/src/validate_attr.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/rustc_parse/src/validate_attr.rs b/compiler/rustc_parse/src/validate_attr.rs index 67b68e77d2b..11424ec3724 100644 --- a/compiler/rustc_parse/src/validate_attr.rs +++ b/compiler/rustc_parse/src/validate_attr.rs @@ -271,6 +271,10 @@ pub fn check_builtin_meta_item( if matches!( name, sym::inline + | sym::export_stable + | sym::ffi_const + | sym::ffi_pure + | sym::rustc_std_internal_symbol | sym::may_dangle | sym::rustc_as_ptr | sym::rustc_pub_transparent |
