@@ -73,19 +73,34 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
7373 }
7474 ExprKind :: Binary { op, lhs, rhs } => {
7575 let lhs = unpack ! (
76- block =
77- this. as_operand( block, scope, & this. thir[ lhs] , LocalInfo :: Boring , NeedsTemporary :: Maybe )
76+ block = this. as_operand(
77+ block,
78+ scope,
79+ & this. thir[ lhs] ,
80+ LocalInfo :: Boring ,
81+ NeedsTemporary :: Maybe
82+ )
7883 ) ;
7984 let rhs = unpack ! (
80- block =
81- this. as_operand( block, scope, & this. thir[ rhs] , LocalInfo :: Boring , NeedsTemporary :: No )
85+ block = this. as_operand(
86+ block,
87+ scope,
88+ & this. thir[ rhs] ,
89+ LocalInfo :: Boring ,
90+ NeedsTemporary :: No
91+ )
8292 ) ;
8393 this. build_binary_op ( block, op, expr_span, expr. ty , lhs, rhs)
8494 }
8595 ExprKind :: Unary { op, arg } => {
8696 let arg = unpack ! (
87- block =
88- this. as_operand( block, scope, & this. thir[ arg] , LocalInfo :: Boring , NeedsTemporary :: No )
97+ block = this. as_operand(
98+ block,
99+ scope,
100+ & this. thir[ arg] ,
101+ LocalInfo :: Boring ,
102+ NeedsTemporary :: No
103+ )
89104 ) ;
90105 // Check for -MIN on signed integers
91106 if this. check_overflow && op == UnOp :: Neg && expr. ty . is_signed ( ) {
@@ -272,8 +287,13 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
272287 }
273288 ExprKind :: Pointer { cast, source } => {
274289 let source = unpack ! (
275- block =
276- this. as_operand( block, scope, & this. thir[ source] , LocalInfo :: Boring , NeedsTemporary :: No )
290+ block = this. as_operand(
291+ block,
292+ scope,
293+ & this. thir[ source] ,
294+ LocalInfo :: Boring ,
295+ NeedsTemporary :: No
296+ )
277297 ) ;
278298 block. and ( Rvalue :: Cast ( CastKind :: Pointer ( cast) , source, expr. ty ) )
279299 }
@@ -502,8 +522,10 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
502522 Category :: of( & expr. kind) ,
503523 Some ( Category :: Rvalue ( RvalueFunc :: AsRvalue ) | Category :: Constant )
504524 ) ) ;
505- let operand =
506- unpack ! ( block = this. as_operand( block, scope, expr, LocalInfo :: Boring , NeedsTemporary :: No ) ) ;
525+ let operand = unpack ! (
526+ block =
527+ this. as_operand( block, scope, expr, LocalInfo :: Boring , NeedsTemporary :: No )
528+ ) ;
507529 block. and ( Rvalue :: Use ( operand) )
508530 }
509531 }
@@ -662,8 +684,9 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
662684 // Repeating a const does nothing
663685 } else {
664686 // For a non-const, we may need to generate an appropriate `Drop`
665- let value_operand =
666- unpack ! ( block = this. as_operand( block, scope, value, LocalInfo :: Boring , NeedsTemporary :: No ) ) ;
687+ let value_operand = unpack ! (
688+ block = this. as_operand( block, scope, value, LocalInfo :: Boring , NeedsTemporary :: No )
689+ ) ;
667690 if let Operand :: Move ( to_drop) = value_operand {
668691 let success = this. cfg . start_new_block ( ) ;
669692 this. cfg . terminate (
0 commit comments