Skip to content

Commit 757eb67

Browse files
committed
review comments
1 parent 6007e6f commit 757eb67

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

src/librustc/hir/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2173,7 +2173,7 @@ impl StructField {
21732173
/// Id of the whole struct lives in `Item`.
21742174
#[derive(Clone, RustcEncodable, RustcDecodable, Debug, HashStable)]
21752175
pub enum VariantData {
2176-
Struct(HirVec<StructField>, HirId, bool),
2176+
Struct(HirVec<StructField>, HirId, /* recovered */ bool),
21772177
Tuple(HirVec<StructField>, HirId),
21782178
Unit(HirId),
21792179
}

src/libsyntax/ast.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,7 @@ pub enum PatKind {
620620

621621
/// A struct or struct variant pattern (e.g., `Variant {x, y, ..}`).
622622
/// The `bool` is `true` in the presence of a `..`.
623-
Struct(Path, Vec<Spanned<FieldPat>>, bool),
623+
Struct(Path, Vec<Spanned<FieldPat>>, /* recovered */ bool),
624624

625625
/// A tuple struct/variant pattern (`Variant(x, y, .., z)`).
626626
/// If the `..` pattern fragment is present, then `Option<usize>` denotes its position.

src/libsyntax/parse/parser.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -6902,7 +6902,9 @@ impl<'a> Parser<'a> {
69026902
}
69036903
}
69046904

6905-
fn parse_record_struct_body(&mut self) -> PResult<'a, (Vec<StructField>, bool)> {
6905+
fn parse_record_struct_body(
6906+
&mut self,
6907+
) -> PResult<'a, (Vec<StructField>, /* recovered */ bool)> {
69066908
let mut fields = Vec::new();
69076909
let mut recovered = false;
69086910
if self.eat(&token::OpenDelim(token::Brace)) {

0 commit comments

Comments
 (0)