Retain assembly operands span when lowering AST to HIR
This commit is contained in:
parent
0f6f2d681b
commit
91fe548825
13 changed files with 18 additions and 20 deletions
|
@ -408,7 +408,7 @@ fn make_mirror_unadjusted<'a, 'tcx>(
|
|||
operands: asm
|
||||
.operands
|
||||
.iter()
|
||||
.map(|op| {
|
||||
.map(|(op, _op_sp)| {
|
||||
match *op {
|
||||
hir::InlineAsmOperand::In { reg, ref expr } => {
|
||||
InlineAsmOperand::In { reg, expr: expr.to_ref() }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue