We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f10d31 commit a36c636Copy full SHA for a36c636
compiler/rustc_data_structures/src/obligation_forest/mod.rs
@@ -342,7 +342,7 @@ impl<O: ForestObligation> ObligationForest<O> {
342
return Ok(());
343
}
344
345
- match self.active_cache.entry(cache_key.clone()) {
+ match self.active_cache.entry(cache_key) {
346
Entry::Occupied(o) => {
347
let node = &mut self.nodes[*o.get()];
348
if let Some(parent_index) = parent {
@@ -366,7 +366,7 @@ impl<O: ForestObligation> ObligationForest<O> {
366
&& self
367
.error_cache
368
.get(&obligation_tree_id)
369
- .map(|errors| errors.contains(&cache_key))
+ .map(|errors| errors.contains(v.key()))
370
.unwrap_or(false);
371
372
if already_failed {
0 commit comments