@@ -382,7 +382,7 @@ fn codegen_fn_body(fx: &mut FunctionCx<'_, '_, '_>, start_block: Block) {
382382 fx. bcx . ins ( ) . nop ( ) ;
383383
384384 match & * * msg {
385- AssertKind :: BoundsCheck { ref len, ref index } => {
385+ AssertKind :: BoundsCheck { len, index } => {
386386 let len = codegen_operand ( fx, len) . load_scalar ( fx) ;
387387 let index = codegen_operand ( fx, index) . load_scalar ( fx) ;
388388 let location = fx. get_caller_location ( source_info) . load_scalar ( fx) ;
@@ -395,7 +395,7 @@ fn codegen_fn_body(fx: &mut FunctionCx<'_, '_, '_>, start_block: Block) {
395395 source_info. span ,
396396 ) ;
397397 }
398- AssertKind :: MisalignedPointerDereference { ref required, ref found } => {
398+ AssertKind :: MisalignedPointerDereference { required, found } => {
399399 let required = codegen_operand ( fx, required) . load_scalar ( fx) ;
400400 let found = codegen_operand ( fx, found) . load_scalar ( fx) ;
401401 let location = fx. get_caller_location ( source_info) . load_scalar ( fx) ;
@@ -977,7 +977,7 @@ fn codegen_stmt<'tcx>(fx: &mut FunctionCx<'_, '_, 'tcx>, cur_block: Block, stmt:
977977 | StatementKind :: AscribeUserType ( ..) => { }
978978
979979 StatementKind :: Coverage { .. } => unreachable ! ( ) ,
980- StatementKind :: Intrinsic ( ref intrinsic) => match & * * intrinsic {
980+ StatementKind :: Intrinsic ( intrinsic) => match & * * intrinsic {
981981 // We ignore `assume` intrinsics, they are only useful for optimizations
982982 NonDivergingIntrinsic :: Assume ( _) => { }
983983 NonDivergingIntrinsic :: CopyNonOverlapping ( mir:: CopyNonOverlapping {
0 commit comments