File tree Expand file tree Collapse file tree 3 files changed +14
-0
lines changed
compiler/rustc_ast_pretty/src/pprust/state Expand file tree Collapse file tree 3 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -218,6 +218,8 @@ impl<'a> State<'a> {
218218 ast:: ItemKind :: GlobalAsm ( ref asm) => {
219219 self . head ( visibility_qualified ( & item. vis , "global_asm!" ) ) ;
220220 self . print_inline_asm ( asm) ;
221+ self . word ( ";" ) ;
222+ self . end ( ) ;
221223 self . end ( ) ;
222224 }
223225 ast:: ItemKind :: TyAlias ( box ast:: TyAlias {
Original file line number Diff line number Diff line change 1+ // check-pass
2+ // compile-flags: -Zunpretty=expanded
3+ core:: arch:: global_asm!( "x: .byte 42" ) ;
Original file line number Diff line number Diff line change 1+ #![feature(prelude_import)]
2+ #![no_std]
3+ #[prelude_import]
4+ use ::std::prelude::rust_2015::*;
5+ #[macro_use]
6+ extern crate std;
7+ // check-pass
8+ // compile-flags: -Zunpretty=expanded
9+ global_asm! ("x: .byte 42");
You can’t perform that action at this time.
0 commit comments