Fix uninlined_format_args
for some compiler crates
Convert all the crates that have had their diagnostic migration completed (except save_analysis because that will be deleted soon and apfloat because of the licensing problem).
This commit is contained in:
parent
1d284af117
commit
fd7a159710
91 changed files with 287 additions and 329 deletions
|
@ -189,7 +189,7 @@ fn dtorck_constraint_for_ty<'tcx>(
|
|||
|
||||
tcx.sess.delay_span_bug(
|
||||
span,
|
||||
&format!("upvar_tys for closure not found. Expected capture information for closure {}", ty,),
|
||||
&format!("upvar_tys for closure not found. Expected capture information for closure {ty}",),
|
||||
);
|
||||
return Err(NoSolution);
|
||||
}
|
||||
|
@ -231,7 +231,7 @@ fn dtorck_constraint_for_ty<'tcx>(
|
|||
// be fully resolved.
|
||||
tcx.sess.delay_span_bug(
|
||||
span,
|
||||
&format!("upvar_tys for generator not found. Expected capture information for generator {}", ty,),
|
||||
&format!("upvar_tys for generator not found. Expected capture information for generator {ty}",),
|
||||
);
|
||||
return Err(NoSolution);
|
||||
}
|
||||
|
|
|
@ -47,7 +47,7 @@ fn try_normalize_after_erasing_regions<'tcx, T: TypeFoldable<'tcx> + PartialEq +
|
|||
// us a test case.
|
||||
debug_assert_eq!(normalized_value, resolved_value);
|
||||
let erased = infcx.tcx.erase_regions(resolved_value);
|
||||
debug_assert!(!erased.needs_infer(), "{:?}", erased);
|
||||
debug_assert!(!erased.needs_infer(), "{erased:?}");
|
||||
Ok(erased)
|
||||
}
|
||||
Err(NoSolution) => Err(NoSolution),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue