2
2
3
3
use crate :: build:: expr:: category:: { Category , RvalueFunc } ;
4
4
use crate :: build:: { BlockAnd , BlockAndExtension , BlockFrame , Builder } ;
5
- use crate :: hair :: * ;
5
+ use crate :: thir :: * ;
6
6
use rustc_ast:: ast:: InlineAsmOptions ;
7
7
use rustc_data_structures:: fx:: FxHashMap ;
8
8
use rustc_data_structures:: stack:: ensure_sufficient_stack;
@@ -320,23 +320,23 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
320
320
block. unit ( )
321
321
}
322
322
ExprKind :: InlineAsm { template, operands, options, line_spans } => {
323
- use crate :: hair ;
323
+ use crate :: thir ;
324
324
use rustc_middle:: mir;
325
325
let operands = operands
326
326
. into_iter ( )
327
327
. map ( |op| match op {
328
- hair :: InlineAsmOperand :: In { reg, expr } => mir:: InlineAsmOperand :: In {
328
+ thir :: InlineAsmOperand :: In { reg, expr } => mir:: InlineAsmOperand :: In {
329
329
reg,
330
330
value : unpack ! ( block = this. as_local_operand( block, expr) ) ,
331
331
} ,
332
- hair :: InlineAsmOperand :: Out { reg, late, expr } => {
332
+ thir :: InlineAsmOperand :: Out { reg, late, expr } => {
333
333
mir:: InlineAsmOperand :: Out {
334
334
reg,
335
335
late,
336
336
place : expr. map ( |expr| unpack ! ( block = this. as_place( block, expr) ) ) ,
337
337
}
338
338
}
339
- hair :: InlineAsmOperand :: InOut { reg, late, expr } => {
339
+ thir :: InlineAsmOperand :: InOut { reg, late, expr } => {
340
340
let place = unpack ! ( block = this. as_place( block, expr) ) ;
341
341
mir:: InlineAsmOperand :: InOut {
342
342
reg,
@@ -346,7 +346,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
346
346
out_place : Some ( place) ,
347
347
}
348
348
}
349
- hair :: InlineAsmOperand :: SplitInOut { reg, late, in_expr, out_expr } => {
349
+ thir :: InlineAsmOperand :: SplitInOut { reg, late, in_expr, out_expr } => {
350
350
mir:: InlineAsmOperand :: InOut {
351
351
reg,
352
352
late,
@@ -356,13 +356,13 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
356
356
} ) ,
357
357
}
358
358
}
359
- hair :: InlineAsmOperand :: Const { expr } => mir:: InlineAsmOperand :: Const {
359
+ thir :: InlineAsmOperand :: Const { expr } => mir:: InlineAsmOperand :: Const {
360
360
value : unpack ! ( block = this. as_local_operand( block, expr) ) ,
361
361
} ,
362
- hair :: InlineAsmOperand :: SymFn { expr } => {
362
+ thir :: InlineAsmOperand :: SymFn { expr } => {
363
363
mir:: InlineAsmOperand :: SymFn { value : box this. as_constant ( expr) }
364
364
}
365
- hair :: InlineAsmOperand :: SymStatic { def_id } => {
365
+ thir :: InlineAsmOperand :: SymStatic { def_id } => {
366
366
mir:: InlineAsmOperand :: SymStatic { def_id }
367
367
}
368
368
} )
0 commit comments