Consider param-env for fast path

This commit is contained in:
Michael Goulet
2025-07-20 17:44:55 +00:00
parent 0864097cd3
commit 1e96d7a553
14 changed files with 82 additions and 72 deletions

View File

@@ -597,7 +597,7 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
None => self.check_recursion_limit(&obligation, &obligation)?,
}
if sizedness_fast_path(self.tcx(), obligation.predicate) {
if sizedness_fast_path(self.tcx(), obligation.predicate, obligation.param_env) {
return Ok(EvaluatedToOk);
}