Skip to content

Commit ce924f7

Browse files
nnethercotezedddie
authored andcommitted
Remove an out-of-date comment.
It should have been removed in rust-lang#153650. (The comments on `CollectActiveJobsKind` suffice now.)
1 parent fef0f2a commit ce924f7

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

compiler/rustc_query_impl/src/execution.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,6 @@ pub enum CollectActiveJobsKind {
4747
}
4848

4949
/// Returns a map of currently active query jobs, collected from all queries.
50-
///
51-
/// If `require_complete` is `true`, this function locks all shards of the
52-
/// query results to produce a complete map, which always returns `Ok`.
53-
/// Otherwise, it may return an incomplete map as an error if any shard
54-
/// lock cannot be acquired.
55-
///
56-
/// Prefer passing `false` to `require_complete` to avoid potential deadlocks,
57-
/// especially when called from within a deadlock handler, unless a
58-
/// complete map is needed and no deadlock is possible at this call site.
5950
pub fn collect_active_query_jobs<'tcx>(
6051
tcx: TyCtxt<'tcx>,
6152
collect_kind: CollectActiveJobsKind,

0 commit comments

Comments
 (0)