Add NodeId for Arm, Field and FieldPat

This commit is contained in:
Caio 2019-08-13 22:22:51 -03:00
parent 60960a260f
commit 9348af8396
6 changed files with 19 additions and 3 deletions

View file

@ -1444,6 +1444,7 @@ impl<'a> Parser<'a> {
guard,
body: expr,
span: lo.to(hi),
id: ast::DUMMY_NODE_ID,
})
}
@ -1599,6 +1600,7 @@ impl<'a> Parser<'a> {
expr: self.mk_expr(self.token.span, ExprKind::Err, ThinVec::new()),
is_shorthand: false,
attrs: ThinVec::new(),
id: ast::DUMMY_NODE_ID,
});
}
}
@ -1684,6 +1686,7 @@ impl<'a> Parser<'a> {
expr,
is_shorthand,
attrs: attrs.into(),
id: ast::DUMMY_NODE_ID,
})
}