Structurally resolve in pattern matching when peeling refs in new solver
This commit is contained in:
parent
55e8df2b0e
commit
846d54f16c
3 changed files with 11 additions and 5 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue