]> git.lizzy.rs Git - rust.git/commitdiff
review comments
authorEsteban Küber <esteban@kuber.com.ar>
Tue, 19 Mar 2019 20:17:25 +0000 (13:17 -0700)
committerEsteban Küber <esteban@kuber.com.ar>
Tue, 19 Mar 2019 20:17:25 +0000 (13:17 -0700)
src/librustc/hir/mod.rs
src/libsyntax/ast.rs
src/libsyntax/parse/parser.rs

index 785d7745b297b7bc26feb5dddb7035cc6bc80b54..51d91cc562f6821d6cd8081e0b35d8e11fa0dfb2 100644 (file)
@@ -2173,7 +2173,7 @@ pub fn is_positional(&self) -> bool {
 /// Id of the whole struct lives in `Item`.
 #[derive(Clone, RustcEncodable, RustcDecodable, Debug, HashStable)]
 pub enum VariantData {
-    Struct(HirVec<StructField>, HirId, bool),
+    Struct(HirVec<StructField>, HirId, /* recovered */ bool),
     Tuple(HirVec<StructField>, HirId),
     Unit(HirId),
 }
index 5da00ef8ebee2706adfd782c25d2e919c3b52db8..2cbd2dfeb25d6372d9fb58b283f3055126736e45 100644 (file)
@@ -620,7 +620,7 @@ pub enum PatKind {
 
     /// A struct or struct variant pattern (e.g., `Variant {x, y, ..}`).
     /// The `bool` is `true` in the presence of a `..`.
-    Struct(Path, Vec<Spanned<FieldPat>>, bool),
+    Struct(Path, Vec<Spanned<FieldPat>>, /* recovered */ bool),
 
     /// A tuple struct/variant pattern (`Variant(x, y, .., z)`).
     /// If the `..` pattern fragment is present, then `Option<usize>` denotes its position.
index 360a101a64faff6132bc5d5c4f389ba8178f9cbf..361ecce5bc4388467b444fb27914525069eb39c2 100644 (file)
@@ -6902,7 +6902,9 @@ fn consume_block(&mut self, delim: token::DelimToken) {
         }
     }
 
-    fn parse_record_struct_body(&mut self) -> PResult<'a, (Vec<StructField>, bool)> {
+    fn parse_record_struct_body(
+        &mut self,
+    ) -> PResult<'a, (Vec<StructField>, /* recovered */ bool)> {
         let mut fields = Vec::new();
         let mut recovered = false;
         if self.eat(&token::OpenDelim(token::Brace)) {