diff options
| author | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2023-03-29 12:34:05 +0000 |
|---|---|---|
| committer | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2023-04-04 13:58:50 +0000 |
| commit | 4bebdd7104c41fb1a32e2d9588f64874dd5a484f (patch) | |
| tree | 43b073ff2c1f7b28ffc0233b2e052d5e0243c6c7 /compiler/rustc_builtin_macros/src/global_allocator.rs | |
| parent | ec74653652e59fc209506c084357ccee922a2d73 (diff) | |
| download | rust-4bebdd7104c41fb1a32e2d9588f64874dd5a484f.tar.gz rust-4bebdd7104c41fb1a32e2d9588f64874dd5a484f.zip | |
box a bunch of large types
Diffstat (limited to 'compiler/rustc_builtin_macros/src/global_allocator.rs')
| -rw-r--r-- | compiler/rustc_builtin_macros/src/global_allocator.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_builtin_macros/src/global_allocator.rs b/compiler/rustc_builtin_macros/src/global_allocator.rs index f26e2572088..34361a6d868 100644 --- a/compiler/rustc_builtin_macros/src/global_allocator.rs +++ b/compiler/rustc_builtin_macros/src/global_allocator.rs @@ -25,12 +25,12 @@ pub fn expand( // FIXME - if we get deref patterns, use them to reduce duplication here let (item, is_stmt, ty_span) = if let Annotatable::Item(item) = &item - && let ItemKind::Static(ast::Static { ty, ..}) = &item.kind + && let ItemKind::Static(box ast::Static { ty, ..}) = &item.kind { (item, false, ecx.with_def_site_ctxt(ty.span)) } else if let Annotatable::Stmt(stmt) = &item && let StmtKind::Item(item) = &stmt.kind - && let ItemKind::Static(ast::Static { ty, ..}) = &item.kind + && let ItemKind::Static(box ast::Static { ty, ..}) = &item.kind { (item, true, ecx.with_def_site_ctxt(ty.span)) } else { |
