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

@@ -24,7 +24,7 @@ fn evaluate_obligation<'tcx>(
debug!("evaluate_obligation: goal={:#?}", goal);
let ParamEnvAnd { param_env, value: predicate } = goal;
if sizedness_fast_path(tcx, predicate) {
if sizedness_fast_path(tcx, predicate, param_env) {
return Ok(EvaluationResult::EvaluatedToOk);
}