Skip to content

Commit 4f9e94c

Browse files
committed
formating
1 parent 8a72896 commit 4f9e94c

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

compiler/rustc_borrowck/src/universal_regions.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ impl<'tcx> UniversalRegions<'tcx> {
341341
.collect::<Vec<_>>()
342342
);
343343
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),
345345
subsets: &v.join(",\n "),
346346
});
347347

@@ -354,15 +354,15 @@ impl<'tcx> UniversalRegions<'tcx> {
354354
err.note(format!("late-bound region is {:?}", self.to_region_vid(r)));
355355
});
356356
}
357-
DefiningTy::Generator(def_id, args,_) => {
357+
DefiningTy::Generator(def_id, args, _) => {
358358
let v = with_no_trimmed_paths!(
359359
args[tcx.generics_of(def_id).parent_count..]
360360
.iter()
361361
.map(|arg| arg.to_string())
362362
.collect::<Vec<_>>()
363363
);
364364
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),
366366
subsets: &v.join(",\n "),
367367
});
368368

@@ -373,19 +373,19 @@ impl<'tcx> UniversalRegions<'tcx> {
373373
err.note(format!("late-bound region is {:?}", self.to_region_vid(r)));
374374
});
375375
}
376-
DefiningTy::FnDef(def_id,args ) => {
376+
DefiningTy::FnDef(def_id, args) => {
377377
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),
379379
});
380380
}
381381
DefiningTy::Const(def_id, args) => {
382382
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),
384384
});
385385
}
386-
DefiningTy::InlineConst(def_id,args) => {
386+
DefiningTy::InlineConst(def_id, args) => {
387387
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),
389389
});
390390
}
391391
}

0 commit comments

Comments
 (0)