@@ -429,7 +429,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
429429 self . codegen_consume ( bx, mir:: PlaceRef { local, projection : proj_base } )
430430 . deref ( bx. cx ( ) )
431431 }
432- mir:: PlaceRef { local, projection : [ proj_base @ .., elem] } => {
432+ mir:: PlaceRef { local, projection : & [ ref proj_base @ .., elem] } => {
433433 // FIXME turn this recursion into iteration
434434 let cg_base =
435435 self . codegen_place ( bx, mir:: PlaceRef { local, projection : proj_base } ) ;
@@ -440,7 +440,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
440440 cg_base. project_field ( bx, field. index ( ) )
441441 }
442442 mir:: ProjectionElem :: Index ( index) => {
443- let index = & mir:: Operand :: Copy ( mir:: Place :: from ( * index) ) ;
443+ let index = & mir:: Operand :: Copy ( mir:: Place :: from ( index) ) ;
444444 let index = self . codegen_operand ( bx, index) ;
445445 let llindex = index. immediate ( ) ;
446446 cg_base. project_index ( bx, llindex)
@@ -450,22 +450,22 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
450450 from_end : false ,
451451 min_length : _,
452452 } => {
453- let lloffset = bx. cx ( ) . const_usize ( * offset as u64 ) ;
453+ let lloffset = bx. cx ( ) . const_usize ( offset as u64 ) ;
454454 cg_base. project_index ( bx, lloffset)
455455 }
456456 mir:: ProjectionElem :: ConstantIndex {
457457 offset,
458458 from_end : true ,
459459 min_length : _,
460460 } => {
461- let lloffset = bx. cx ( ) . const_usize ( * offset as u64 ) ;
461+ let lloffset = bx. cx ( ) . const_usize ( offset as u64 ) ;
462462 let lllen = cg_base. len ( bx. cx ( ) ) ;
463463 let llindex = bx. sub ( lllen, lloffset) ;
464464 cg_base. project_index ( bx, llindex)
465465 }
466466 mir:: ProjectionElem :: Subslice { from, to, from_end } => {
467467 let mut subslice =
468- cg_base. project_index ( bx, bx. cx ( ) . const_usize ( * from as u64 ) ) ;
468+ cg_base. project_index ( bx, bx. cx ( ) . const_usize ( from as u64 ) ) ;
469469 let projected_ty =
470470 PlaceTy :: from_ty ( cg_base. layout . ty ) . projection_ty ( tcx, elem) . ty ;
471471 subslice. layout = bx. cx ( ) . layout_of ( self . monomorphize ( & projected_ty) ) ;
@@ -474,7 +474,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
474474 assert ! ( from_end, "slice subslices should be `from_end`" ) ;
475475 subslice. llextra = Some ( bx. sub (
476476 cg_base. llextra . unwrap ( ) ,
477- bx. cx ( ) . const_usize ( ( * from as u64 ) + ( * to as u64 ) ) ,
477+ bx. cx ( ) . const_usize ( ( from as u64 ) + ( to as u64 ) ) ,
478478 ) ) ;
479479 }
480480
@@ -487,7 +487,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
487487
488488 subslice
489489 }
490- mir:: ProjectionElem :: Downcast ( _, v) => cg_base. project_downcast ( bx, * v) ,
490+ mir:: ProjectionElem :: Downcast ( _, v) => cg_base. project_downcast ( bx, v) ,
491491 }
492492 }
493493 } ;
0 commit comments