@@ -341,7 +341,7 @@ impl<'tcx> UniversalRegions<'tcx> {
341
341
. collect:: <Vec <_>>( )
342
342
) ;
343
343
err. subdiagnostic ( DefiningTypeNote :: Closure {
344
- type_name : & tcx. def_path_str_with_args ( def_id, args) ,
344
+ type_name : & tcx. def_path_str_with_args ( def_id, args) ,
345
345
subsets : & v. join ( ",\n " ) ,
346
346
} ) ;
347
347
@@ -354,15 +354,15 @@ impl<'tcx> UniversalRegions<'tcx> {
354
354
err. note ( format ! ( "late-bound region is {:?}" , self . to_region_vid( r) ) ) ;
355
355
} ) ;
356
356
}
357
- DefiningTy :: Generator ( def_id, args, _) => {
357
+ DefiningTy :: Generator ( def_id, args, _) => {
358
358
let v = with_no_trimmed_paths ! (
359
359
args[ tcx. generics_of( def_id) . parent_count..]
360
360
. iter( )
361
361
. map( |arg| arg. to_string( ) )
362
362
. collect:: <Vec <_>>( )
363
363
) ;
364
364
err. subdiagnostic ( DefiningTypeNote :: Generator {
365
- type_name : & tcx. def_path_str_with_args ( def_id, & args) ,
365
+ type_name : & tcx. def_path_str_with_args ( def_id, & args) ,
366
366
subsets : & v. join ( ",\n " ) ,
367
367
} ) ;
368
368
@@ -373,19 +373,19 @@ impl<'tcx> UniversalRegions<'tcx> {
373
373
err. note ( format ! ( "late-bound region is {:?}" , self . to_region_vid( r) ) ) ;
374
374
} ) ;
375
375
}
376
- DefiningTy :: FnDef ( def_id, args ) => {
376
+ DefiningTy :: FnDef ( def_id, args ) => {
377
377
err. subdiagnostic ( DefiningTypeNote :: FnDef {
378
- type_name : & tcx. def_path_str_with_args ( def_id, & args) ,
378
+ type_name : & tcx. def_path_str_with_args ( def_id, & args) ,
379
379
} ) ;
380
380
}
381
381
DefiningTy :: Const ( def_id, args) => {
382
382
err. subdiagnostic ( DefiningTypeNote :: Const {
383
- type_name : & tcx. def_path_str_with_args ( def_id, & args) ,
383
+ type_name : & tcx. def_path_str_with_args ( def_id, & args) ,
384
384
} ) ;
385
385
}
386
- DefiningTy :: InlineConst ( def_id, args) => {
386
+ DefiningTy :: InlineConst ( def_id, args) => {
387
387
err. subdiagnostic ( DefiningTypeNote :: InlineConst {
388
- type_name : & tcx. def_path_str_with_args ( def_id, & args) ,
388
+ type_name : & tcx. def_path_str_with_args ( def_id, & args) ,
389
389
} ) ;
390
390
}
391
391
}
0 commit comments