Remove the HirId/NodeId from where clauses

Also give them a span in the HIR
This commit is contained in:
Matthew Jasper
2019-05-25 10:11:48 +01:00
parent 04a3dd8a87
commit 63edd2c358
13 changed files with 21 additions and 30 deletions

View File

@@ -5075,7 +5075,6 @@ impl<'a> Parser<'a> {
Ok(ast::Generics {
params,
where_clause: WhereClause {
id: ast::DUMMY_NODE_ID,
predicates: Vec::new(),
span: DUMMY_SP,
},
@@ -5334,7 +5333,6 @@ impl<'a> Parser<'a> {
/// ```
fn parse_where_clause(&mut self) -> PResult<'a, WhereClause> {
let mut where_clause = WhereClause {
id: ast::DUMMY_NODE_ID,
predicates: Vec::new(),
span: self.prev_span.to(self.prev_span),
};