1
Fork 0

Plumb through param_env to note_type_err

This commit is contained in:
Michael Goulet 2024-10-15 15:17:25 -04:00
parent b8bb2968ce
commit 1920c66a8d
15 changed files with 98 additions and 39 deletions

View file

@ -2300,10 +2300,10 @@ impl<'tcx> CheckAttrVisitor<'tcx> {
&mut diag,
&cause,
None,
Some(ValuePairs::PolySigs(ExpectedFound {
Some(param_env.and(ValuePairs::PolySigs(ExpectedFound {
expected: ty::Binder::dummy(expected_sig),
found: ty::Binder::dummy(sig),
})),
}))),
terr,
false,
);