Make a fake body to store typeck results for global_asm
This commit is contained in:
@@ -692,7 +692,7 @@ impl<'a> State<'a> {
|
||||
}
|
||||
self.bclose(item.span);
|
||||
}
|
||||
hir::ItemKind::GlobalAsm { asm } => {
|
||||
hir::ItemKind::GlobalAsm { asm, .. } => {
|
||||
self.head("global_asm!");
|
||||
self.print_inline_asm(asm);
|
||||
self.end()
|
||||
@@ -1431,10 +1431,10 @@ impl<'a> State<'a> {
|
||||
s.space();
|
||||
s.print_anon_const(anon_const);
|
||||
}
|
||||
hir::InlineAsmOperand::SymFn { ref anon_const } => {
|
||||
hir::InlineAsmOperand::SymFn { ref expr } => {
|
||||
s.word("sym_fn");
|
||||
s.space();
|
||||
s.print_anon_const(anon_const);
|
||||
s.print_expr(expr);
|
||||
}
|
||||
hir::InlineAsmOperand::SymStatic { ref path, def_id: _ } => {
|
||||
s.word("sym_static");
|
||||
|
||||
Reference in New Issue
Block a user