1
Fork 0

Structurally resolve in pattern matching when peeling refs in new solver

This commit is contained in:
Michael Goulet 2023-07-08 05:10:24 +00:00
parent 55e8df2b0e
commit 846d54f16c
3 changed files with 11 additions and 5 deletions

View file

@ -1640,6 +1640,8 @@ impl<'tcx> InferCtxtPrivExt<'tcx> for TypeErrCtxt<'_, 'tcx> {
)
.into(),
};
// FIXME(-Ztrait-solver=next): For diagnostic purposes, it would be nice
// to deeply normalize this type.
let normalized_term =
ocx.normalize(&obligation.cause, obligation.param_env, unnormalized_term);