about summary refs log tree commit diff
path: root/compiler/rustc_feature/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-05-17 12:15:26 +0000
committerbors <bors@rust-lang.org>2021-05-17 12:15:26 +0000
commit9964284fed181676300aad693449f5b751e35ff2 (patch)
tree03eb105fdadb767ef2ab06ddb5c834afb80aa2ff /compiler/rustc_feature/src
parent44ec846f4ea68ffa6d06e7d68f078bd3cc59d4ec (diff)
parent64acb7d92135ae722dfce89f0ca9d7cf6576de66 (diff)
downloadrust-9964284fed181676300aad693449f5b751e35ff2.tar.gz
rust-9964284fed181676300aad693449f5b751e35ff2.zip
Auto merge of #84571 - jedel1043:issue-49804-impl, r=petrochenkov
Parse unnamed fields of struct and union type

Added the `unnamed_fields` feature gate.

This is a prototype of [RFC 2102](https://github.com/rust-lang/rust/issues/49804), so any suggestions are greatly appreciated.

r? `@petrochenkov`
Diffstat (limited to 'compiler/rustc_feature/src')
-rw-r--r--compiler/rustc_feature/src/active.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/rustc_feature/src/active.rs b/compiler/rustc_feature/src/active.rs
index f3f9f0cd763..80fe5bafc6e 100644
--- a/compiler/rustc_feature/src/active.rs
+++ b/compiler/rustc_feature/src/active.rs
@@ -671,6 +671,9 @@ declare_features! (
     /// Allows specifying the as-needed link modifier
     (active, native_link_modifiers_as_needed, "1.53.0", Some(81490), None),
 
+    /// Allows unnamed fields of struct and union type
+    (active, unnamed_fields, "1.53.0", Some(49804), None),
+
     // -------------------------------------------------------------------------
     // feature-group-end: actual feature gates
     // -------------------------------------------------------------------------
@@ -704,6 +707,7 @@ pub const INCOMPLETE_FEATURES: &[Symbol] = &[
     sym::native_link_modifiers_whole_archive,
     sym::native_link_modifiers_as_needed,
     sym::rustc_insignificant_dtor,
+    sym::unnamed_fields,
 ];
 
 /// Some features are not allowed to be used together at the same time, if