Rollup merge of #82321 - bugadani:ast3, r=varkor

AST: Remove some unnecessary boxes
This commit is contained in:
Dylan DPC 2021-02-25 14:34:03 +01:00 committed by GitHub
commit 20928e0cbf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 7 deletions

View file

@ -225,7 +225,7 @@ impl<'a> Parser<'a> {
return Err(e);
}
(Ident::invalid(), ItemKind::Use(P(tree)))
(Ident::invalid(), ItemKind::Use(tree))
} else if self.check_fn_front_matter() {
// FUNCTION ITEM
let (ident, sig, generics, body) = self.parse_fn(attrs, req_name, lo)?;