]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #49667 - Manishearth:preview-features, r=nikomatsakis
authorkennytm <kennytm@gmail.com>
Thu, 5 Apr 2018 08:51:26 +0000 (16:51 +0800)
committerkennytm <kennytm@gmail.com>
Thu, 5 Apr 2018 10:37:29 +0000 (18:37 +0800)
Add more features to rust_2018_preview

Doesn't handle lib features like never_type; we need to figure out a scheme for that.

src/libsyntax/feature_gate.rs

index e734a4e3735342ff5895290d14780c16a7e1885f..1f4ad2dc86391e3395bfd3d36914e84fe04b71df 100644 (file)
@@ -193,7 +193,7 @@ pub fn walk_feature_fields<F>(&self, mut f: F)
     (active, rustc_attrs, "1.0.0", Some(29642), None),
 
     // Allows the use of non lexical lifetimes; RFC 2094
-    (active, nll, "1.0.0", Some(43234), None),
+    (active, nll, "1.0.0", Some(43234), Some(Edition::Edition2018)),
 
     // Allows the use of #[allow_internal_unstable]. This is an
     // attribute on macro_rules! and can't use the attribute handling
@@ -391,7 +391,7 @@ pub fn walk_feature_fields<F>(&self, mut f: F)
     (active, dyn_trait, "1.22.0", Some(44662), Some(Edition::Edition2018)),
 
     // `crate` as visibility modifier, synonymous to `pub(crate)`
-    (active, crate_visibility_modifier, "1.23.0", Some(45388), None),
+    (active, crate_visibility_modifier, "1.23.0", Some(45388), Some(Edition::Edition2018)),
 
     // extern types
     (active, extern_types, "1.23.0", Some(43467), None),
@@ -400,10 +400,10 @@ pub fn walk_feature_fields<F>(&self, mut f: F)
     (active, arbitrary_self_types, "1.23.0", Some(44874), None),
 
     // `crate` in paths
-    (active, crate_in_paths, "1.23.0", Some(45477), None),
+    (active, crate_in_paths, "1.23.0", Some(45477), Some(Edition::Edition2018)),
 
     // In-band lifetime bindings (e.g. `fn foo(x: &'a u8) -> &'a u8`)
-    (active, in_band_lifetimes, "1.23.0", Some(44524), None),
+    (active, in_band_lifetimes, "1.23.0", Some(44524), Some(Edition::Edition2018)),
 
     // generic associated types (RFC 1598)
     (active, generic_associated_types, "1.23.0", Some(44265), None),
@@ -412,10 +412,10 @@ pub fn walk_feature_fields<F>(&self, mut f: F)
     (active, extern_absolute_paths, "1.24.0", Some(44660), None),
 
     // `foo.rs` as an alternative to `foo/mod.rs`
-    (active, non_modrs_mods, "1.24.0", Some(44660), None),
+    (active, non_modrs_mods, "1.24.0", Some(44660), Some(Edition::Edition2018)),
 
     // Termination trait in tests (RFC 1937)
-    (active, termination_trait_test, "1.24.0", Some(48854), None),
+    (active, termination_trait_test, "1.24.0", Some(48854), Some(Edition::Edition2018)),
 
     // Allows use of the :lifetime macro fragment specifier
     (active, macro_lifetime_matcher, "1.24.0", Some(46895), None),