1
Fork 0

Resolve vars when reporting WF error

This commit is contained in:
Michael Goulet 2023-06-23 16:26:22 +00:00
parent f12695b53b
commit 2eb7d69309
5 changed files with 7 additions and 6 deletions

View file

@ -1049,6 +1049,7 @@ impl<'tcx> TypeErrCtxtExt<'tcx> for TypeErrCtxt<'_, 'tcx> {
}
ty::PredicateKind::Clause(ty::ClauseKind::WellFormed(ty)) => {
let ty = self.resolve_vars_if_possible(ty);
match self.tcx.sess.opts.unstable_opts.trait_solver {
TraitSolver::Classic => {
// WF predicates cannot themselves make