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
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)?;