From f9ba863c4dc2c36bd39d954ee135122cd646d914 Mon Sep 17 00:00:00 2001 From: Lukas Markeffsky <@> Date: Sat, 20 Apr 2024 16:43:00 +0200 Subject: remove `InferCtxt::clear_caches` --- compiler/rustc_trait_selection/src/traits/auto_trait.rs | 3 --- 1 file changed, 3 deletions(-) (limited to 'compiler/rustc_trait_selection/src/traits/auto_trait.rs') diff --git a/compiler/rustc_trait_selection/src/traits/auto_trait.rs b/compiler/rustc_trait_selection/src/traits/auto_trait.rs index 73e94da165f..c450d104e5c 100644 --- a/compiler/rustc_trait_selection/src/traits/auto_trait.rs +++ b/compiler/rustc_trait_selection/src/traits/auto_trait.rs @@ -152,7 +152,6 @@ impl<'tcx> AutoTraitFinder<'tcx> { with {:?}", trait_ref, full_env ); - infcx.clear_caches(); // At this point, we already have all of the bounds we need. FulfillmentContext is used // to store all of the necessary region/lifetime bounds in the InferContext, as well as @@ -255,8 +254,6 @@ impl<'tcx> AutoTraitFinder<'tcx> { let dummy_cause = ObligationCause::dummy(); while let Some(pred) = predicates.pop_front() { - infcx.clear_caches(); - if !already_visited.insert(pred) { continue; } -- cgit 1.4.1-3-g733a5