diff options
| author | Jacob Pratt <jacob@jhpratt.dev> | 2025-04-13 17:37:52 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-13 17:37:52 -0400 |
| commit | 7f691d28f16222fe978ceccde4d1c8c7f54efdfa (patch) | |
| tree | e77a60f40bc660c81d317fb600ff73117149bce5 /compiler/rustc_feature | |
| parent | 60c76b9dfd6e52f6605e0a63b7a33ad09dab96d3 (diff) | |
| parent | 8866af388497e9ed3254147c015379d5d6cdb054 (diff) | |
| download | rust-7f691d28f16222fe978ceccde4d1c8c7f54efdfa.tar.gz rust-7f691d28f16222fe978ceccde4d1c8c7f54efdfa.zip | |
Rollup merge of #139001 - folkertdev:naked-function-rustic-abi, r=traviscross,compiler-errors
add `naked_functions_rustic_abi` feature gate
tracking issue: https://github.com/rust-lang/rust/issues/138997
Because the details of the rust abi are unstable, and a naked function must match its stated ABI, this feature gate keeps naked functions with a rustic abi ("Rust", "rust-cold", "rust-call" and "rust-intrinsic") unstable.
r? ````@traviscross````
Diffstat (limited to 'compiler/rustc_feature')
| -rw-r--r-- | compiler/rustc_feature/src/unstable.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_feature/src/unstable.rs b/compiler/rustc_feature/src/unstable.rs index 98213affc5b..36e375c778d 100644 --- a/compiler/rustc_feature/src/unstable.rs +++ b/compiler/rustc_feature/src/unstable.rs @@ -565,6 +565,8 @@ declare_features! ( (incomplete, mut_ref, "1.79.0", Some(123076)), /// Allows using `#[naked]` on functions. (unstable, naked_functions, "1.9.0", Some(90957)), + /// Allows using `#[naked]` on `extern "Rust"` functions. + (unstable, naked_functions_rustic_abi, "CURRENT_RUSTC_VERSION", Some(138997)), /// Allows using `#[target_feature(enable = "...")]` on `#[naked]` on functions. (unstable, naked_functions_target_feature, "1.86.0", Some(138568)), /// Allows specifying the as-needed link modifier |
