about summary refs log tree commit diff
path: root/src/libsyntax/feature_gate.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2017-05-26 07:36:25 +0000
committerbors <bors@rust-lang.org>2017-05-26 07:36:25 +0000
commit2db17c86e33ab89f8003960de08e3f1a3d23df8a (patch)
treee308b525803d05b01eff0cf57265b40b33bea65a /src/libsyntax/feature_gate.rs
parent4f9c9ed1a53d176fb0650042f226222f401c21eb (diff)
parent9a2e2450f968f60877f595d0609c15ad5ee821fa (diff)
downloadrust-2db17c86e33ab89f8003960de08e3f1a3d23df8a.tar.gz
rust-2db17c86e33ab89f8003960de08e3f1a3d23df8a.zip
Auto merge of #42058 - froydnj:thiscall-support, r=nikomatsakis
add thiscall calling convention support

This support is needed for bindgen to work well on 32-bit Windows, and also enables people to begin experimenting with C++ FFI support on that platform.

Fixes #42044.
Diffstat (limited to 'src/libsyntax/feature_gate.rs')
-rw-r--r--src/libsyntax/feature_gate.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libsyntax/feature_gate.rs b/src/libsyntax/feature_gate.rs
index 6ea8fab98aa..ca579409be4 100644
--- a/src/libsyntax/feature_gate.rs
+++ b/src/libsyntax/feature_gate.rs
@@ -352,6 +352,9 @@ declare_features! (
 
     // Allows use of the :vis macro fragment specifier
     (active, macro_vis_matcher, "1.18.0", Some(41022)),
+
+    // rustc internal
+    (active, abi_thiscall, "1.19.0", None),
 );
 
 declare_features! (
@@ -1054,6 +1057,10 @@ impl<'a> PostExpansionVisitor<'a> {
                 gate_feature_post!(&self, abi_vectorcall, span,
                                    "vectorcall is experimental and subject to change");
             },
+            Abi::Thiscall => {
+                gate_feature_post!(&self, abi_thiscall, span,
+                                   "thiscall is experimental and subject to change");
+            },
             Abi::RustCall => {
                 gate_feature_post!(&self, unboxed_closures, span,
                                    "rust-call ABI is subject to change");