We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 31ac29d commit 415aa66Copy full SHA for 415aa66
compiler/rustc_trait_selection/src/solve/search_graph/cache.rs
@@ -59,6 +59,10 @@ impl<'tcx> ProvisionalCache<'tcx> {
59
/// Adds a dependency from the current leaf to `target` in the cache
60
/// to prevent us from moving any goals which depend on the current leaf
61
/// to the global cache while we're still computing `target`.
62
+ ///
63
+ /// Its important to note that `target` may already be part of a different cycle.
64
+ /// In this case we have to ensure that we also depend on all other goals
65
+ /// in the existing cycle in addition to the potentially direct cycle with `target`.
66
pub(super) fn add_dependency_of_leaf_on(&mut self, target: EntryIndex) {
67
let depth = self.entries[target].depth;
68
for provisional_entry in &mut self.entries.raw[target.index()..] {
0 commit comments