about summary refs log tree commit diff
path: root/compiler/rustc_traits
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2025-07-20 17:44:55 +0000
committerMichael Goulet <michael@errs.io>2025-07-20 17:45:01 +0000
commit1e96d7a55304f8573b6dfeb5ccbdabdb407b89b9 (patch)
treebd4a6b035e34ef145ae60090224efc8de666ed7e /compiler/rustc_traits
parent0864097cd31ee30f5081ba588a5c9820c2c6fc71 (diff)
downloadrust-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.rs2
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);
     }