File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
compiler/rustc_trait_selection/src/solve/search_graph Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -59,6 +59,10 @@ impl<'tcx> ProvisionalCache<'tcx> {
59
59
/// Adds a dependency from the current leaf to `target` in the cache
60
60
/// to prevent us from moving any goals which depend on the current leaf
61
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`.
62
66
pub ( super ) fn add_dependency_of_leaf_on ( & mut self , target : EntryIndex ) {
63
67
let depth = self . entries [ target] . depth ;
64
68
for provisional_entry in & mut self . entries . raw [ target. index ( ) ..] {
You can’t perform that action at this time.
0 commit comments