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 e153103 commit 0ee6b54Copy full SHA for 0ee6b54
src/librustc/ty/query/job.rs
@@ -324,16 +324,16 @@ fn connected_to_root<'tcx>(
324
query: Lrc<QueryJob<'tcx>>,
325
visited: &mut FxHashSet<*const QueryJob<'tcx>>
326
) -> bool {
327
- // We already visited this or we're deliberately ignoring it
328
- if visited.contains(&query.as_ptr()) {
329
- return false;
330
- }
331
-
332
// This query is connected to the root (it has no query parent), return true
333
if query.parent.is_none() {
334
return true;
335
}
336
+ // We already visited this or we're deliberately ignoring it
+ if visited.contains(&query.as_ptr()) {
+ return false;
+ }
+
337
visited.insert(query.as_ptr());
338
339
let mut connected = false;
0 commit comments