Consider param-env for fast path
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user