diff options
| author | Michael Goulet <michael@errs.io> | 2025-07-20 17:44:55 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2025-07-20 17:45:01 +0000 |
| commit | 1e96d7a55304f8573b6dfeb5ccbdabdb407b89b9 (patch) | |
| tree | bd4a6b035e34ef145ae60090224efc8de666ed7e /compiler/rustc_traits | |
| parent | 0864097cd31ee30f5081ba588a5c9820c2c6fc71 (diff) | |
| download | rust-1e96d7a55304f8573b6dfeb5ccbdabdb407b89b9.tar.gz rust-1e96d7a55304f8573b6dfeb5ccbdabdb407b89b9.zip | |
Consider param-env for fast path
Diffstat (limited to 'compiler/rustc_traits')
| -rw-r--r-- | compiler/rustc_traits/src/evaluate_obligation.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_traits/src/evaluate_obligation.rs b/compiler/rustc_traits/src/evaluate_obligation.rs index 7771db855d7..819b8e3231c 100644 --- a/compiler/rustc_traits/src/evaluate_obligation.rs +++ b/compiler/rustc_traits/src/evaluate_obligation.rs @@ -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); } |
