]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_middle/arena.rs
Add missing ASM arena declaration to librustc_middle
[rust.git] / src / librustc_middle / arena.rs
index a97db3134dc9e97fcd7be67da34bb7a563448649..2df878c3fb2201df961339ca06848d88cc74a10a 100644 (file)
@@ -76,6 +76,12 @@ macro_rules! arena_types {
             [few] hir_definitions: rustc_hir::definitions::Definitions,
             [] hir_owner: rustc_middle::hir::Owner<$tcx>,
             [] hir_owner_nodes: rustc_middle::hir::OwnerNodes<$tcx>,
+
+            // Note that this deliberately duplicates items in the `rustc_hir::arena`,
+            // since we need to allocate this type on both the `rustc_hir` arena
+            // (during lowering) and the `librustc_middle` arena (for decoding MIR)
+            [decode] asm_template: rustc_ast::ast::InlineAsmTemplatePiece,
+
         ], $tcx);
     )
 }