diff options
| author | varkor <github@varkor.com> | 2019-09-26 17:07:54 +0100 |
|---|---|---|
| committer | varkor <github@varkor.com> | 2019-09-26 18:21:09 +0100 |
| commit | d4573c9c1e8118be5ffc662c6a64db329db0a245 (patch) | |
| tree | 70898abfa17c25b8fad22b298764db0bd38ab022 /src/libsyntax/parse/parser | |
| parent | 17726f6b52b68279384cfb13209f015ab491c1c0 (diff) | |
| download | rust-d4573c9c1e8118be5ffc662c6a64db329db0a245.tar.gz rust-d4573c9c1e8118be5ffc662c6a64db329db0a245.zip | |
Rename `TraitItem.node` to `TraitItem.kind`
Diffstat (limited to 'src/libsyntax/parse/parser')
| -rw-r--r-- | src/libsyntax/parse/parser/item.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/parse/parser/item.rs b/src/libsyntax/parse/parser/item.rs index c56bb65f69f..e96d35e1999 100644 --- a/src/libsyntax/parse/parser/item.rs +++ b/src/libsyntax/parse/parser/item.rs @@ -1009,7 +1009,7 @@ impl<'a> Parser<'a> { mut attrs: Vec<Attribute>) -> PResult<'a, TraitItem> { let lo = self.token.span; self.eat_bad_pub(); - let (name, node, generics) = if self.eat_keyword(kw::Type) { + let (name, kind, generics) = if self.eat_keyword(kw::Type) { self.parse_trait_item_assoc_ty()? } else if self.is_const_item() { self.expect_keyword(kw::Const)?; @@ -1094,7 +1094,7 @@ impl<'a> Parser<'a> { ident: name, attrs, generics, - node, + kind, span: lo.to(self.prev_span), tokens: None, }) |
