about summary refs log tree commit diff
path: root/compiler/rustc_expand
diff options
context:
space:
mode:
authorOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>2023-03-29 12:34:05 +0000
committerOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>2023-04-04 13:58:50 +0000
commit4bebdd7104c41fb1a32e2d9588f64874dd5a484f (patch)
tree43b073ff2c1f7b28ffc0233b2e052d5e0243c6c7 /compiler/rustc_expand
parentec74653652e59fc209506c084357ccee922a2d73 (diff)
downloadrust-4bebdd7104c41fb1a32e2d9588f64874dd5a484f.tar.gz
rust-4bebdd7104c41fb1a32e2d9588f64874dd5a484f.zip
box a bunch of large types
Diffstat (limited to 'compiler/rustc_expand')
-rw-r--r--compiler/rustc_expand/src/build.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_expand/src/build.rs b/compiler/rustc_expand/src/build.rs
index 39fed9fdd0d..59c588b3955 100644
--- a/compiler/rustc_expand/src/build.rs
+++ b/compiler/rustc_expand/src/build.rs
@@ -627,7 +627,7 @@ impl<'a> ExtCtxt<'a> {
             span,
             name,
             AttrVec::new(),
-            ast::ItemKind::Static(ast::Static { ty, mutability, expr: Some(expr) }),
+            ast::ItemKind::Static(ast::Static { ty, mutability, expr: Some(expr) }.into()),
         )
     }
 
@@ -643,7 +643,7 @@ impl<'a> ExtCtxt<'a> {
             span,
             name,
             AttrVec::new(),
-            ast::ItemKind::Const(ast::ConstItem { defaultness, ty, expr: Some(expr) }),
+            ast::ItemKind::Const(ast::ConstItem { defaultness, ty, expr: Some(expr) }.into()),
         )
     }