From 4bebdd7104c41fb1a32e2d9588f64874dd5a484f Mon Sep 17 00:00:00 2001 From: Oli Scherer Date: Wed, 29 Mar 2023 12:34:05 +0000 Subject: box a bunch of large types --- compiler/rustc_expand/src/build.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'compiler/rustc_expand/src') 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()), ) } -- cgit 1.4.1-3-g733a5