diff options
| author | Lukas Markeffsky <@> | 2024-04-20 16:43:00 +0200 |
|---|---|---|
| committer | Lukas Markeffsky <@> | 2024-04-20 16:43:00 +0200 |
| commit | f9ba863c4dc2c36bd39d954ee135122cd646d914 (patch) | |
| tree | 66a7023273b4639328c56a14ffdb7952f8513c88 /compiler/rustc_trait_selection/src/traits/auto_trait.rs | |
| parent | 88b10c1162004e8f3bf4f5a9c386dde5fc11fc2e (diff) | |
| download | rust-f9ba863c4dc2c36bd39d954ee135122cd646d914.tar.gz rust-f9ba863c4dc2c36bd39d954ee135122cd646d914.zip | |
remove `InferCtxt::clear_caches`
Diffstat (limited to 'compiler/rustc_trait_selection/src/traits/auto_trait.rs')
| -rw-r--r-- | compiler/rustc_trait_selection/src/traits/auto_trait.rs | 3 |
1 files changed, 0 insertions, 3 deletions
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; } |
