Skip to content

Commit d68d127

Browse files
Stabilize abi_sysv64
1 parent cfba0d4 commit d68d127

File tree

5 files changed

+4
-30
lines changed

5 files changed

+4
-30
lines changed

src/libsyntax/feature_gate.rs

+4-8
Original file line numberDiff line numberDiff line change
@@ -284,10 +284,6 @@ declare_features! (
284284
// Allows all literals in attribute lists and values of key-value pairs.
285285
(active, attr_literals, "1.13.0", Some(34981)),
286286

287-
// Allows the sysV64 ABI to be specified on all platforms
288-
// instead of just the platforms on which it is the C ABI
289-
(active, abi_sysv64, "1.13.0", Some(36167)),
290-
291287
// Allows untagged unions `union U { ... }`
292288
(active, untagged_unions, "1.13.0", Some(32836)),
293289

@@ -520,6 +516,9 @@ declare_features! (
520516
(accepted, rvalue_static_promotion, "1.21.0", Some(38865)),
521517
// Allow Drop types in constants (RFC 1440)
522518
(accepted, drop_types_in_const, "1.22.0", Some(33156)),
519+
// Allows the sysV64 ABI to be specified on all platforms
520+
// instead of just the platforms on which it is the C ABI
521+
(accepted, abi_sysv64, "1.24.0", Some(36167)),
523522
);
524523

525524
// If you change this, please modify src/doc/unstable-book as well. You must
@@ -1246,10 +1245,6 @@ impl<'a> PostExpansionVisitor<'a> {
12461245
gate_feature_post!(&self, unboxed_closures, span,
12471246
"rust-call ABI is subject to change");
12481247
},
1249-
Abi::SysV64 => {
1250-
gate_feature_post!(&self, abi_sysv64, span,
1251-
"sysv64 ABI is experimental and subject to change");
1252-
},
12531248
Abi::PtxKernel => {
12541249
gate_feature_post!(&self, abi_ptx, span,
12551250
"PTX ABIs are experimental and subject to change");
@@ -1272,6 +1267,7 @@ impl<'a> PostExpansionVisitor<'a> {
12721267
Abi::Fastcall |
12731268
Abi::Aapcs |
12741269
Abi::Win64 |
1270+
Abi::SysV64 |
12751271
Abi::Rust |
12761272
Abi::C |
12771273
Abi::System => {}

src/test/codegen/abi-sysv64.rs

-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
// compile-flags: -C no-prepopulate-passes
1919

2020
#![crate_type = "lib"]
21-
#![feature(abi_sysv64)]
2221

2322
// CHECK: define x86_64_sysvcc i64 @has_sysv64_abi
2423
#[no_mangle]

src/test/compile-fail/feature-gate-abi-sysv64.rs

-19
This file was deleted.

src/test/run-pass/abi-sysv64-arg-passing.rs

-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939

4040
// note: windows is ignored as rust_test_helpers does not have the sysv64 abi on windows
4141

42-
#![feature(abi_sysv64)]
4342
#[allow(dead_code)]
4443
#[allow(improper_ctypes)]
4544

src/test/run-pass/abi-sysv64-register-usage.rs

-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
// ignore-arm
1616
// ignore-aarch64
1717

18-
#![feature(abi_sysv64)]
1918
#![feature(asm)]
2019

2120
#[cfg(target_arch = "x86_64")]

0 commit comments

Comments
 (0)