File tree 2 files changed +6
-4
lines changed
compiler/rustc_hir_pretty/src
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -654,10 +654,11 @@ impl<'a> State<'a> {
654
654
self . bclose ( item. span , cb) ;
655
655
}
656
656
hir:: ItemKind :: GlobalAsm { asm, .. } => {
657
- // FIXME(nnethercote): `ib` is unclosed
658
- let ( cb, _ib) = self . head ( "global_asm!" ) ;
657
+ let ( cb, ib) = self . head ( "global_asm!" ) ;
659
658
self . print_inline_asm ( asm) ;
660
- self . end ( cb)
659
+ self . word ( ";" ) ;
660
+ self . end ( cb) ;
661
+ self . end ( ib) ;
661
662
}
662
663
hir:: ItemKind :: TyAlias ( ident, ty, generics) => {
663
664
let ( cb, ib) = self . head ( "type" ) ;
Original file line number Diff line number Diff line change @@ -27,5 +27,6 @@ mod expressions {
27
27
mod items {
28
28
/// ItemKind::GlobalAsm
29
29
mod item_global_asm {/// ItemKind::GlobalAsm
30
- global_asm! (".globl my_asm_func") }
30
+ global_asm! (".globl my_asm_func");
31
31
}
32
+ }
You can’t perform that action at this time.
0 commit comments