1
Fork 0

More manual formatting

This commit is contained in:
Oli Scherer 2022-11-03 08:17:32 +00:00
parent c3eb8f2778
commit 6773e7ee56

View file

@ -226,12 +226,12 @@ impl<'a, 'tcx> Visitor<'tcx> for TypeChecker<'a, 'tcx> {
let check_equal = |this: &Self, location, f_ty| { let check_equal = |this: &Self, location, f_ty| {
if !this.mir_assign_valid_types(ty, f_ty) { if !this.mir_assign_valid_types(ty, f_ty) {
this.fail( this.fail(
location, location,
format!( format!(
"Field projection `{:?}.{:?}` specified type `{:?}`, but actual type is `{:?}`", "Field projection `{:?}.{:?}` specified type `{:?}`, but actual type is `{:?}`",
parent, f, ty, f_ty parent, f, ty, f_ty
)
) )
)
} }
}; };