1
Fork 0

Make structured suggestion for fn casting verbose

This commit is contained in:
Esteban Küber 2023-01-30 21:55:25 +00:00
parent 6c2c8edac3
commit d86835769c
5 changed files with 36 additions and 25 deletions

View file

@ -404,7 +404,7 @@ impl<'tcx> TypeErrCtxt<'_, 'tcx> {
(msg, sug)
}
};
diag.span_suggestion(span, msg, sug, Applicability::MaybeIncorrect);
diag.span_suggestion_verbose(span, msg, sug, Applicability::MaybeIncorrect);
}
(ty::FnDef(did1, substs1), ty::FnDef(did2, substs2)) => {
let expected_sig =