diff options
| author | Oliver Schneider <github35764891676564198441@oli-obk.de> | 2018-06-18 16:23:13 +0200 |
|---|---|---|
| committer | Oliver Schneider <github35764891676564198441@oli-obk.de> | 2018-06-27 11:17:25 +0200 |
| commit | b2e2c321053a1bed9dd3ebf02e440072d797f3e3 (patch) | |
| tree | e75d20c373ff25c531e4dc9dabbbb54d3b9c686c /src/libsyntax/parse/parser.rs | |
| parent | bdcace0eb4a8e80044d582e5f44d5f00fe9468da (diff) | |
| download | rust-b2e2c321053a1bed9dd3ebf02e440072d797f3e3.tar.gz rust-b2e2c321053a1bed9dd3ebf02e440072d797f3e3.zip | |
Generate the `NodeId` for `existential type` in the AST
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 21bd6c08324..8690918c805 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -1537,7 +1537,7 @@ impl<'a> Parser<'a> { // Always parse bounds greedily for better error recovery. let bounds = self.parse_generic_bounds()?; impl_dyn_multi = bounds.len() > 1 || self.prev_token_kind == PrevTokenKind::Plus; - TyKind::ImplTrait(bounds) + TyKind::ImplTrait(ast::DUMMY_NODE_ID, bounds) } else if self.check_keyword(keywords::Dyn) && self.look_ahead(1, |t| t.can_begin_bound() && !can_continue_type_after_non_fn_ident(t)) { |
