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 6a325fd commit a89c361Copy full SHA for a89c361
compiler/rustc_borrowck/src/handle_placeholders.rs
@@ -163,6 +163,9 @@ impl RegionTracker {
163
164
/// Determine if the tracked universes of the two SCCs are compatible.
165
pub(crate) fn universe_compatible_with(&self, other: Self) -> bool {
166
+ // HACK: We first check whether we can name the highest existential universe
167
+ // of `other`. This only exists to avoid errors in case that scc already
168
+ // depends on a placeholder it cannot name itself.
169
self.max_nameable_universe().can_name(other.max_nameable_universe())
170
|| other.reachable_placeholders.can_be_named_by(self.max_nameable_universe())
171
}
0 commit comments