]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_expand/src/build.rs
Rollup merge of #87633 - Amanieu:fix-86063, r=Mark-Simulacrum
[rust.git] / compiler / rustc_expand / src / build.rs
index ef5b97a946909707e20767b6be5921525451e85a..824df2757ea90eb2bc231a4483db31d5b695881a 100644 (file)
@@ -432,7 +432,7 @@ pub fn pat_some(&self, span: Span, pat: P<ast::Pat>) -> P<ast::Pat> {
 
     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,