peel derives when checking normalized is expected
This commit is contained in:
parent
770a9cf780
commit
525e23adaf
6 changed files with 40 additions and 9 deletions
|
@ -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(_)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue