]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_feature/accepted.rs
lowering: cleanup some hofs
[rust.git] / src / librustc_feature / accepted.rs
index 3f294dc02ed6f6cbcac0fddd729dac8f61c5f49d..007cee4c7642443c1e74220c0fb784479e825698 100644 (file)
@@ -1,7 +1,7 @@
 //! List of the accepted feature gates.
 
-use super::{State, Feature};
-use syntax_pos::symbol::sym;
+use super::{Feature, State};
+use rustc_span::symbol::sym;
 
 macro_rules! declare_features {
     ($(
@@ -23,6 +23,7 @@ macro_rules! declare_features {
     }
 }
 
+#[rustfmt::skip]
 declare_features! (
     // -------------------------------------------------------------------------
     // feature-group-start: for testing purposes
@@ -256,6 +257,8 @@ macro_rules! declare_features {
     /// Allows relaxing the coherence rules such that
     /// `impl<T> ForeignTrait<LocalType> for ForeignType<T>` is permitted.
     (accepted, re_rebalance_coherence, "1.41.0", Some(55437), None),
+    /// Allows using subslice patterns, `[a, .., b]` and `[a, xs @ .., b]`.
+    (accepted, slice_patterns, "1.42.0", Some(62254), None),
 
     // -------------------------------------------------------------------------
     // feature-group-end: accepted features