22
33use crate :: build:: expr:: category:: { Category , RvalueFunc } ;
44use crate :: build:: { BlockAnd , BlockAndExtension , BlockFrame , Builder } ;
5- use crate :: hair :: * ;
5+ use crate :: thir :: * ;
66use rustc_ast:: ast:: InlineAsmOptions ;
77use rustc_data_structures:: fx:: FxHashMap ;
88use rustc_data_structures:: stack:: ensure_sufficient_stack;
@@ -320,23 +320,23 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
320320 block. unit ( )
321321 }
322322 ExprKind :: InlineAsm { template, operands, options, line_spans } => {
323- use crate :: hair ;
323+ use crate :: thir ;
324324 use rustc_middle:: mir;
325325 let operands = operands
326326 . into_iter ( )
327327 . map ( |op| match op {
328- hair :: InlineAsmOperand :: In { reg, expr } => mir:: InlineAsmOperand :: In {
328+ thir :: InlineAsmOperand :: In { reg, expr } => mir:: InlineAsmOperand :: In {
329329 reg,
330330 value : unpack ! ( block = this. as_local_operand( block, expr) ) ,
331331 } ,
332- hair :: InlineAsmOperand :: Out { reg, late, expr } => {
332+ thir :: InlineAsmOperand :: Out { reg, late, expr } => {
333333 mir:: InlineAsmOperand :: Out {
334334 reg,
335335 late,
336336 place : expr. map ( |expr| unpack ! ( block = this. as_place( block, expr) ) ) ,
337337 }
338338 }
339- hair :: InlineAsmOperand :: InOut { reg, late, expr } => {
339+ thir :: InlineAsmOperand :: InOut { reg, late, expr } => {
340340 let place = unpack ! ( block = this. as_place( block, expr) ) ;
341341 mir:: InlineAsmOperand :: InOut {
342342 reg,
@@ -346,7 +346,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
346346 out_place : Some ( place) ,
347347 }
348348 }
349- hair :: InlineAsmOperand :: SplitInOut { reg, late, in_expr, out_expr } => {
349+ thir :: InlineAsmOperand :: SplitInOut { reg, late, in_expr, out_expr } => {
350350 mir:: InlineAsmOperand :: InOut {
351351 reg,
352352 late,
@@ -356,13 +356,13 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
356356 } ) ,
357357 }
358358 }
359- hair :: InlineAsmOperand :: Const { expr } => mir:: InlineAsmOperand :: Const {
359+ thir :: InlineAsmOperand :: Const { expr } => mir:: InlineAsmOperand :: Const {
360360 value : unpack ! ( block = this. as_local_operand( block, expr) ) ,
361361 } ,
362- hair :: InlineAsmOperand :: SymFn { expr } => {
362+ thir :: InlineAsmOperand :: SymFn { expr } => {
363363 mir:: InlineAsmOperand :: SymFn { value : box this. as_constant ( expr) }
364364 }
365- hair :: InlineAsmOperand :: SymStatic { def_id } => {
365+ thir :: InlineAsmOperand :: SymStatic { def_id } => {
366366 mir:: InlineAsmOperand :: SymStatic { def_id }
367367 }
368368 } )
0 commit comments