1
Fork 0

Use AttrVec for Arm, FieldDef, and Variant

This commit is contained in:
Yuki Okushi 2021-06-17 07:11:13 +09:00
parent 9fef8d91b4
commit 4f8e0ebcc5
No known key found for this signature in database
GPG key ID: DABA5B072961C18A
7 changed files with 16 additions and 16 deletions

View file

@ -432,7 +432,7 @@ impl<'a> ExtCtxt<'a> {
pub fn arm(&self, span: Span, pat: P<ast::Pat>, expr: P<ast::Expr>) -> ast::Arm {
ast::Arm {
attrs: vec![],
attrs: AttrVec::new(),
pat,
guard: None,
body: expr,