diff options
| author | Caio <c410.f3r@gmail.com> | 2019-08-13 21:40:21 -0300 |
|---|---|---|
| committer | Caio <c410.f3r@gmail.com> | 2019-08-14 14:47:01 -0300 |
| commit | 6a42b0b28db4c18fd9e0c0e6e69ecbe0c5d9b107 (patch) | |
| tree | ecc513a7d0c98db565915308eb60f2e5c5e8fbc8 /src/libsyntax/parse/parser | |
| parent | 60960a260f7b5c695fd0717311d72ce62dd4eb43 (diff) | |
| download | rust-6a42b0b28db4c18fd9e0c0e6e69ecbe0c5d9b107.tar.gz rust-6a42b0b28db4c18fd9e0c0e6e69ecbe0c5d9b107.zip | |
Merge Variant and Variant_
Diffstat (limited to 'src/libsyntax/parse/parser')
| -rw-r--r-- | src/libsyntax/parse/parser/item.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libsyntax/parse/parser/item.rs b/src/libsyntax/parse/parser/item.rs index e85ef9cc974..60873ecb134 100644 --- a/src/libsyntax/parse/parser/item.rs +++ b/src/libsyntax/parse/parser/item.rs @@ -1564,14 +1564,15 @@ impl<'a> Parser<'a> { None }; - let vr = ast::Variant_ { + let vr = ast::Variant { ident, id: ast::DUMMY_NODE_ID, attrs: variant_attrs, data: struct_def, disr_expr, + span: vlo.to(self.prev_span), }; - variants.push(respan(vlo.to(self.prev_span), vr)); + variants.push(vr); if !self.eat(&token::Comma) { if self.token.is_ident() && !self.token.is_reserved_ident() { |
