diff options
| author | Yuki Okushi <yuki.okushi@huawei.com> | 2021-06-17 07:11:13 +0900 |
|---|---|---|
| committer | Yuki Okushi <yuki.okushi@huawei.com> | 2021-06-17 08:04:54 +0900 |
| commit | 4f8e0ebcc58613b1095a9f47753547698b0b34fa (patch) | |
| tree | d9cc3c28cd8e13f037a0cb06c21ece5468be0188 /compiler/rustc_expand | |
| parent | 9fef8d91b4a6c5bfe07c025c434f2d623ad83337 (diff) | |
| download | rust-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.rs | 2 |
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, |
