From e964b46d761272ba7b84e8287570bf5e90ff266d Mon Sep 17 00:00:00 2001 From: Makro Date: Fri, 31 Jul 2026 14:30:44 +0000 Subject: [PATCH] Fix operator precedence in ProvisionalEvaluationCache::on_failure --- compiler/rustc_trait_selection/src/traits/select/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/rustc_trait_selection/src/traits/select/mod.rs b/compiler/rustc_trait_selection/src/traits/select/mod.rs index f0a6ff9a58b51..6938872092770 100644 --- a/compiler/rustc_trait_selection/src/traits/select/mod.rs +++ b/compiler/rustc_trait_selection/src/traits/select/mod.rs @@ -3133,7 +3133,7 @@ impl<'tcx> ProvisionalEvaluationCache<'tcx> { fn on_failure(&self, dfn: usize) { debug!(?dfn, "on_failure"); self.map.borrow_mut().retain(|key, eval| { - if !eval.from_dfn >= dfn { + if eval.from_dfn >= dfn { debug!("on_failure: removing {:?}", key); false } else {