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> {
5959 /// Adds a dependency from the current leaf to `target` in the cache
6060 /// to prevent us from moving any goals which depend on the current leaf
6161 /// 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`.
6266 pub ( super ) fn add_dependency_of_leaf_on ( & mut self , target : EntryIndex ) {
6367 let depth = self . entries [ target] . depth ;
6468 for provisional_entry in & mut self . entries . raw [ target. index ( ) ..] {
You can’t perform that action at this time.
0 commit comments