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> {
218
218
ast:: ItemKind :: GlobalAsm ( ref asm) => {
219
219
self . head ( visibility_qualified ( & item. vis , "global_asm!" ) ) ;
220
220
self . print_inline_asm ( asm) ;
221
+ self . word ( ";" ) ;
222
+ self . end ( ) ;
221
223
self . end ( ) ;
222
224
}
223
225
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