about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorMatthew Jasper <mjjasper1@gmail.com>2019-05-25 10:11:48 +0100
committerMatthew Jasper <mjjasper1@gmail.com>2019-06-18 22:54:51 +0100
commit63edd2c35892c81fe3f071e7e259437de9557845 (patch)
tree2a16eeabd1bd81be950d602b3726029940284d12 /src/libsyntax/parse
parent04a3dd8a872633ca1e4c217d11f741cc35cb19a5 (diff)
downloadrust-63edd2c35892c81fe3f071e7e259437de9557845.tar.gz
rust-63edd2c35892c81fe3f071e7e259437de9557845.zip
Remove the HirId/NodeId from where clauses
Also give them a span in the HIR
Diffstat (limited to 'src/libsyntax/parse')
-rw-r--r--src/libsyntax/parse/parser.rs2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs
index 78eeb512206..fa697e06d26 100644
--- a/src/libsyntax/parse/parser.rs
+++ b/src/libsyntax/parse/parser.rs
@@ -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),
         };