@@ -164,13 +164,13 @@ impl<'a, 'tcx> ConstAnalysis<'a, 'tcx> {
164164
165165 fn handle_statement ( & self , statement : & Statement < ' tcx > , state : & mut State < FlatSet < Scalar > > ) {
166166 match & statement. kind {
167- StatementKind :: Assign ( box ( place, rvalue) ) => {
167+ StatementKind :: Assign ( ( place, rvalue) ) => {
168168 self . handle_assign ( * place, rvalue, state) ;
169169 }
170- StatementKind :: SetDiscriminant { box place, variant_index } => {
171- self . handle_set_discriminant ( * place, * variant_index, state) ;
170+ StatementKind :: SetDiscriminant { place, variant_index } => {
171+ self . handle_set_discriminant ( * * place, * variant_index, state) ;
172172 }
173- StatementKind :: Intrinsic ( box intrinsic) => {
173+ StatementKind :: Intrinsic ( intrinsic) => {
174174 self . handle_intrinsic ( intrinsic) ;
175175 }
176176 StatementKind :: StorageLive ( local) | StatementKind :: StorageDead ( local) => {
@@ -214,7 +214,7 @@ impl<'a, 'tcx> ConstAnalysis<'a, 'tcx> {
214214 ) -> ValueOrPlace < FlatSet < Scalar > > {
215215 match operand {
216216 Operand :: RuntimeChecks ( _) => ValueOrPlace :: TOP ,
217- Operand :: Constant ( box constant) => {
217+ Operand :: Constant ( constant) => {
218218 ValueOrPlace :: Value ( self . handle_constant ( constant, state) )
219219 }
220220 Operand :: Copy ( place) | Operand :: Move ( place) => {
@@ -352,7 +352,7 @@ impl<'a, 'tcx> ConstAnalysis<'a, 'tcx> {
352352 }
353353 }
354354 }
355- Rvalue :: BinaryOp ( op, box ( left, right) ) if op. is_overflowing ( ) => {
355+ Rvalue :: BinaryOp ( op, ( left, right) ) if op. is_overflowing ( ) => {
356356 // Flood everything now, so we can use `insert_value_idx` directly later.
357357 state. flood ( target. as_ref ( ) , & self . map ) ;
358358
@@ -442,7 +442,7 @@ impl<'a, 'tcx> ConstAnalysis<'a, 'tcx> {
442442 FlatSet :: Top => FlatSet :: Top ,
443443 }
444444 }
445- Rvalue :: BinaryOp ( op, box ( left, right) ) if !op. is_overflowing ( ) => {
445+ Rvalue :: BinaryOp ( op, ( left, right) ) if !op. is_overflowing ( ) => {
446446 // Overflows must be ignored here.
447447 // The overflowing operators are handled in `handle_assign`.
448448 let ( val, _overflow) = self . binary_op ( state, * op, left, right) ;
@@ -546,7 +546,7 @@ impl<'a, 'tcx> ConstAnalysis<'a, 'tcx> {
546546 self . assign_constant ( state, place, op, rhs. projection ) ;
547547 }
548548 }
549- Operand :: Constant ( box constant) => {
549+ Operand :: Constant ( constant) => {
550550 if let Some ( constant) = self
551551 . ecx
552552 . borrow ( )
@@ -956,7 +956,7 @@ impl<'tcx> ResultsVisitor<'tcx, ConstAnalysis<'_, 'tcx>> for Collector<'_, 'tcx>
956956 location : Location ,
957957 ) {
958958 match & statement. kind {
959- StatementKind :: Assign ( box ( _, rvalue) ) => {
959+ StatementKind :: Assign ( ( _, rvalue) ) => {
960960 OperandCollector {
961961 state,
962962 visitor : self ,
@@ -978,10 +978,10 @@ impl<'tcx> ResultsVisitor<'tcx, ConstAnalysis<'_, 'tcx>> for Collector<'_, 'tcx>
978978 location : Location ,
979979 ) {
980980 match statement. kind {
981- StatementKind :: Assign ( box ( _, Rvalue :: Use ( Operand :: Constant ( _) , _) ) ) => {
981+ StatementKind :: Assign ( ( _, Rvalue :: Use ( Operand :: Constant ( _) , _) ) ) => {
982982 // Don't overwrite the assignment if it already uses a constant (to keep the span).
983983 }
984- StatementKind :: Assign ( box ( place, _) ) => {
984+ StatementKind :: Assign ( ( place, _) ) => {
985985 if let Some ( value) = self . try_make_constant (
986986 & mut analysis. ecx . borrow_mut ( ) ,
987987 place,
@@ -1020,7 +1020,7 @@ impl<'tcx> MutVisitor<'tcx> for Patch<'tcx> {
10201020 fn visit_statement ( & mut self , statement : & mut Statement < ' tcx > , location : Location ) {
10211021 if let Some ( value) = self . assignments . get ( & location) {
10221022 match & mut statement. kind {
1023- StatementKind :: Assign ( box ( _, rvalue) ) => {
1023+ StatementKind :: Assign ( ( _, rvalue) ) => {
10241024 let old_retag = match rvalue {
10251025 Rvalue :: Use ( _, retag) => * retag,
10261026 _ => WithRetag :: Yes ,
0 commit comments