@@ -368,7 +368,7 @@ fn collect_items_rec<'tcx>(
368
368
/// If the type name is longer than before+after, it will be written to a file.
369
369
fn shrunk_instance_name < ' tcx > (
370
370
tcx : TyCtxt < ' tcx > ,
371
- instance : & Instance < ' tcx > ,
371
+ instance : Instance < ' tcx > ,
372
372
) -> ( String , Option < PathBuf > ) {
373
373
let s = instance. to_string ( ) ;
374
374
@@ -416,7 +416,7 @@ fn check_recursion_limit<'tcx>(
416
416
if !recursion_limit. value_within_limit ( adjusted_recursion_depth) {
417
417
let def_span = tcx. def_span ( def_id) ;
418
418
let def_path_str = tcx. def_path_str ( def_id) ;
419
- let ( shrunk, written_to_path) = shrunk_instance_name ( tcx, & instance) ;
419
+ let ( shrunk, written_to_path) = shrunk_instance_name ( tcx, instance) ;
420
420
let error = format ! (
421
421
"reached the recursion limit while instantiating `{}`" ,
422
422
shrunk
@@ -456,7 +456,7 @@ fn check_type_length_limit<'tcx>(tcx: TyCtxt<'tcx>, instance: Instance<'tcx>) {
456
456
//
457
457
// Bail out in these cases to avoid that bad user experience.
458
458
if !tcx. type_length_limit ( ) . value_within_limit ( type_length) {
459
- let ( shrunk, written_to_path) = shrunk_instance_name ( tcx, & instance) ;
459
+ let ( shrunk, written_to_path) = shrunk_instance_name ( tcx, instance) ;
460
460
let msg = format ! (
461
461
"reached the type-length limit while instantiating `{}`" ,
462
462
shrunk
0 commit comments