1
Fork 0

peel derives when checking normalized is expected

This commit is contained in:
SNCPlay42 2021-01-08 22:16:24 +00:00
parent 770a9cf780
commit 525e23adaf
6 changed files with 40 additions and 9 deletions

View file

@ -1190,7 +1190,7 @@ impl<'a, 'tcx> InferCtxtPrivExt<'tcx> for InferCtxt<'a, 'tcx> {
);
let is_normalized_ty_expected = !matches!(
obligation.cause.code,
obligation.cause.code.peel_derives(),
ObligationCauseCode::ItemObligation(_)
| ObligationCauseCode::BindingObligation(_, _)
| ObligationCauseCode::ObjectCastObligation(_)