about summary refs log tree commit diff
path: root/compiler/rustc_expand
diff options
context:
space:
mode:
authorYuki Okushi <yuki.okushi@huawei.com>2021-06-17 07:11:13 +0900
committerYuki Okushi <yuki.okushi@huawei.com>2021-06-17 08:04:54 +0900
commit4f8e0ebcc58613b1095a9f47753547698b0b34fa (patch)
treed9cc3c28cd8e13f037a0cb06c21ece5468be0188 /compiler/rustc_expand
parent9fef8d91b4a6c5bfe07c025c434f2d623ad83337 (diff)
downloadrust-4f8e0ebcc58613b1095a9f47753547698b0b34fa.tar.gz
rust-4f8e0ebcc58613b1095a9f47753547698b0b34fa.zip
Use `AttrVec` for `Arm`, `FieldDef`, and `Variant`
Diffstat (limited to 'compiler/rustc_expand')
-rw-r--r--compiler/rustc_expand/src/build.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_expand/src/build.rs b/compiler/rustc_expand/src/build.rs
index ef5b97a9469..824df2757ea 100644
--- a/compiler/rustc_expand/src/build.rs
+++ b/compiler/rustc_expand/src/build.rs
@@ -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,