Skip to content

Commit 09dd913

Browse files
committed
stabilize extern_system_varargs
1 parent 54278ca commit 09dd913

File tree

6 files changed

+5
-28
lines changed

6 files changed

+5
-28
lines changed

compiler/rustc_abi/src/extern_abi.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use std::hash::{Hash, Hasher};
66
use rustc_data_structures::stable_hasher::{HashStable, StableHasher, StableOrd};
77
#[cfg(feature = "nightly")]
88
use rustc_macros::{Decodable, Encodable};
9-
use rustc_span::{Symbol, sym};
9+
use rustc_span::Symbol;
1010

1111
use crate::AbiFromStrErr;
1212

@@ -266,10 +266,8 @@ impl ExternAbi {
266266
| Self::Aapcs { .. }
267267
| Self::Win64 { .. }
268268
| Self::SysV64 { .. }
269-
| Self::EfiApi => CVariadicStatus::Stable,
270-
Self::System { .. } => {
271-
CVariadicStatus::Unstable { feature: sym::extern_system_varargs }
272-
}
269+
| Self::EfiApi
270+
| Self::System { .. } => CVariadicStatus::Stable,
273271
_ => CVariadicStatus::NotSupported,
274272
}
275273
}

compiler/rustc_feature/src/accepted.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,8 @@ declare_features! (
215215
(accepted, extern_crate_self, "1.34.0", Some(56409)),
216216
/// Allows access to crate names passed via `--extern` through prelude.
217217
(accepted, extern_prelude, "1.30.0", Some(44660)),
218+
/// Allows using `system` as a calling convention with varargs.
219+
(accepted, extern_system_varargs, "CURRENT_RUSTC_VERSION", Some(136946)),
218220
/// Allows using F16C intrinsics from `core::arch::{x86, x86_64}`.
219221
(accepted, f16c_target_feature, "1.68.0", Some(44839)),
220222
/// Allows field shorthands (`x` meaning `x: x`) in struct literal expressions.

compiler/rustc_feature/src/unstable.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -492,8 +492,6 @@ declare_features! (
492492
(incomplete, explicit_tail_calls, "1.72.0", Some(112788)),
493493
/// Allows using `#[export_stable]` which indicates that an item is exportable.
494494
(incomplete, export_stable, "1.88.0", Some(139939)),
495-
/// Allows using `system` as a calling convention with varargs.
496-
(unstable, extern_system_varargs, "1.86.0", Some(136946)),
497495
/// Allows defining `extern type`s.
498496
(unstable, extern_types, "1.23.0", Some(43467)),
499497
/// Allow using 128-bit (quad precision) floating point numbers.

tests/codegen-llvm/cffi/c-variadic-ffi.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
//@[arm32] needs-llvm-components: arm
1515
#![crate_type = "lib"]
1616
#![feature(no_core)]
17-
#![feature(extern_system_varargs)]
1817
#![no_core]
1918

2019
extern crate minicore;

tests/ui/feature-gates/feature-gate-extern_system_varargs.rs

Lines changed: 0 additions & 7 deletions
This file was deleted.

tests/ui/feature-gates/feature-gate-extern_system_varargs.stderr

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)