about summary refs log tree commit diff
path: root/src/libsyntax_ext
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2016-11-08 02:06:45 -0800
committerGitHub <noreply@github.com>2016-11-08 02:06:45 -0800
commit38a959a543dfc70a67e64f7d369ed6c9e12fc806 (patch)
tree711c672b069b6753631e2bf8e809991a88028bce /src/libsyntax_ext
parent57f971bc1610ef57c57616822c60aadc7e477904 (diff)
parent74bb5945635b5aaacd238632932baaa294694ce3 (diff)
downloadrust-38a959a543dfc70a67e64f7d369ed6c9e12fc806.tar.gz
rust-38a959a543dfc70a67e64f7d369ed6c9e12fc806.zip
Auto merge of #36843 - petrochenkov:dotstab, r=nikomatsakis
Stabilize `..` in tuple (struct) patterns

I'd like to nominate `..` in tuple and tuple struct patterns for stabilization.
This feature is a relatively small extension to existing stable functionality and doesn't have known blockers.
The feature first appeared in Rust 1.10 6 months ago.
An example of use: https://github.com/rust-lang/rust/pull/36203

Closes https://github.com/rust-lang/rust/issues/33627
r? @nikomatsakis
Diffstat (limited to 'src/libsyntax_ext')
-rw-r--r--src/libsyntax_ext/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax_ext/lib.rs b/src/libsyntax_ext/lib.rs
index f336b26ae41..e1542c9e466 100644
--- a/src/libsyntax_ext/lib.rs
+++ b/src/libsyntax_ext/lib.rs
@@ -19,7 +19,7 @@
        html_root_url = "https://doc.rust-lang.org/nightly/")]
 #![cfg_attr(not(stage0), deny(warnings))]
 
-#![feature(dotdot_in_tuple_patterns)]
+#![cfg_attr(stage0, feature(dotdot_in_tuple_patterns))]
 #![feature(proc_macro_lib)]
 #![feature(proc_macro_internals)]
 #![feature(rustc_private)]