@@ -311,7 +311,7 @@ impl<'a, 'tcx> TranslationContext<'a, 'tcx> {
311
311
debug ! ( "translating type param: {:?}" , param) ;
312
312
let type_param = self . id_mapping . get_type_param ( & target_def_id) ;
313
313
debug ! ( "translated type param: {:?}" , type_param) ;
314
- match self . tcx . mk_param_from_def ( & type_param) . unpack ( ) {
314
+ match self . tcx . mk_param_from_def ( type_param) . unpack ( ) {
315
315
GenericArgKind :: Type ( param_t) => param_t,
316
316
_ => unreachable ! ( ) ,
317
317
}
@@ -366,7 +366,7 @@ impl<'a, 'tcx> TranslationContext<'a, 'tcx> {
366
366
367
367
/// Translate an item's type.
368
368
pub fn translate_item_type ( & self , orig_def_id : DefId , orig : Ty < ' tcx > ) -> Ty < ' tcx > {
369
- self . translate ( & self . construct_index_map ( orig_def_id) , & orig)
369
+ self . translate ( & self . construct_index_map ( orig_def_id) , orig)
370
370
}
371
371
372
372
/// Translate a predicate using a type parameter index map.
@@ -420,7 +420,7 @@ impl<'a, 'tcx> TranslationContext<'a, 'tcx> {
420
420
substs : target_substs,
421
421
item_def_id : target_def_id,
422
422
} ,
423
- ty : self . translate ( index_map, & pred. ty ) ,
423
+ ty : self . translate ( index_map, pred. ty ) ,
424
424
}
425
425
} else {
426
426
return None ;
@@ -434,7 +434,7 @@ impl<'a, 'tcx> TranslationContext<'a, 'tcx> {
434
434
}
435
435
PredicateKind :: ClosureKind ( did, substs, kind) => PredicateKind :: ClosureKind (
436
436
self . translate_orig ( did) ,
437
- self . translate ( index_map, & substs) ,
437
+ self . translate ( index_map, substs) ,
438
438
kind,
439
439
) ,
440
440
PredicateKind :: Subtype ( pred) => PredicateKind :: Subtype ( {
@@ -459,8 +459,8 @@ impl<'a, 'tcx> TranslationContext<'a, 'tcx> {
459
459
}
460
460
}
461
461
PredicateKind :: ConstEquate ( c1, c2) => PredicateKind :: ConstEquate (
462
- self . translate ( index_map, & c1) ,
463
- self . translate ( index_map, & c2) ,
462
+ self . translate ( index_map, c1) ,
463
+ self . translate ( index_map, c2) ,
464
464
) ,
465
465
// NOTE: Only used for Chalk trait solver
466
466
PredicateKind :: TypeWellFormedFromEnv ( _) => unimplemented ! ( ) ,
@@ -513,7 +513,7 @@ impl<'a, 'tcx> TranslationContext<'a, 'tcx> {
513
513
let index_map = self . construct_index_map ( orig_def_id) ;
514
514
TraitRef {
515
515
def_id : self . translate_orig ( orig_trait_ref. def_id ) ,
516
- substs : self . translate ( & index_map, & orig_trait_ref. substs ) ,
516
+ substs : self . translate ( & index_map, orig_trait_ref. substs ) ,
517
517
}
518
518
}
519
519
0 commit comments