]> git.lizzy.rs Git - rust.git/commitdiff
Stabilize abi_sysv64
authorCensoredUsername <cens.username@gmail.com>
Wed, 6 Dec 2017 00:19:35 +0000 (01:19 +0100)
committerCensoredUsername <cens.username@gmail.com>
Wed, 6 Dec 2017 00:19:35 +0000 (01:19 +0100)
src/libsyntax/feature_gate.rs
src/test/codegen/abi-sysv64.rs
src/test/compile-fail/feature-gate-abi-sysv64.rs [deleted file]
src/test/run-pass/abi-sysv64-arg-passing.rs
src/test/run-pass/abi-sysv64-register-usage.rs

index d4b54e896abca182f34465b92cdb1caf4dd285b0..e5296e7d88cd6f457e253bce291f50ec054058a5 100644 (file)
@@ -284,10 +284,6 @@ pub fn new() -> Features {
     // Allows all literals in attribute lists and values of key-value pairs.
     (active, attr_literals, "1.13.0", Some(34981)),
 
-    // Allows the sysV64 ABI to be specified on all platforms
-    // instead of just the platforms on which it is the C ABI
-    (active, abi_sysv64, "1.13.0", Some(36167)),
-
     // Allows untagged unions `union U { ... }`
     (active, untagged_unions, "1.13.0", Some(32836)),
 
@@ -520,6 +516,9 @@ pub fn new() -> Features {
     (accepted, rvalue_static_promotion, "1.21.0", Some(38865)),
     // Allow Drop types in constants (RFC 1440)
     (accepted, drop_types_in_const, "1.22.0", Some(33156)),
+    // Allows the sysV64 ABI to be specified on all platforms
+    // instead of just the platforms on which it is the C ABI
+    (accepted, abi_sysv64, "1.24.0", Some(36167)),
 );
 
 // If you change this, please modify src/doc/unstable-book as well. You must
@@ -1246,10 +1245,6 @@ fn check_abi(&self, abi: Abi, span: Span) {
                 gate_feature_post!(&self, unboxed_closures, span,
                                    "rust-call ABI is subject to change");
             },
-            Abi::SysV64 => {
-                gate_feature_post!(&self, abi_sysv64, span,
-                                   "sysv64 ABI is experimental and subject to change");
-            },
             Abi::PtxKernel => {
                 gate_feature_post!(&self, abi_ptx, span,
                                    "PTX ABIs are experimental and subject to change");
@@ -1272,6 +1267,7 @@ fn check_abi(&self, abi: Abi, span: Span) {
             Abi::Fastcall |
             Abi::Aapcs |
             Abi::Win64 |
+            Abi::SysV64 |
             Abi::Rust |
             Abi::C |
             Abi::System => {}
index 4f6a50eab49154eea4aff0d898c06882cbd79ee4..920f5cbcca3f2b76463034e6ed8eb929935dee5e 100644 (file)
@@ -18,7 +18,6 @@
 // compile-flags: -C no-prepopulate-passes
 
 #![crate_type = "lib"]
-#![feature(abi_sysv64)]
 
 // CHECK: define x86_64_sysvcc i64 @has_sysv64_abi
 #[no_mangle]
diff --git a/src/test/compile-fail/feature-gate-abi-sysv64.rs b/src/test/compile-fail/feature-gate-abi-sysv64.rs
deleted file mode 100644 (file)
index 2a4aae8..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-// Copyright 2016 The Rust Project Developers. See the COPYRIGHT
-// file at the top-level directory of this distribution and at
-// http://rust-lang.org/COPYRIGHT.
-//
-// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
-// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
-// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
-// option. This file may not be copied, modified, or distributed
-// except according to those terms.
-
-// Test that the sysv64 ABI cannot be used when abi-sysv64 feature
-// gate is not used.
-
-extern "sysv64" fn foo() {}
-//~^ ERROR sysv64 ABI is experimental and subject to change
-
-fn main() {
-    foo();
-}
index 23dd060318484ab9a1cf7c4f7c34a4a90d1e6930..4ec3f16f7af6da6ee3f300f9bf0a4acd32d0a686 100644 (file)
@@ -39,7 +39,6 @@
 
 // note: windows is ignored as rust_test_helpers does not have the sysv64 abi on windows
 
-#![feature(abi_sysv64)]
 #[allow(dead_code)]
 #[allow(improper_ctypes)]
 
index 7e3b32122ac23a9d6db7366f08adb104d4629964..1cae86712668b114e38b5152912ea69f85903f5e 100644 (file)
@@ -15,7 +15,6 @@
 // ignore-arm
 // ignore-aarch64
 
-#![feature(abi_sysv64)]
 #![feature(asm)]
 
 #[cfg(target_arch = "x86_64")]