Skip to content

Commit 945d588

Browse files
committed
Add comment.
1 parent e256d22 commit 945d588

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

compiler/rustc_query_system/src/query/plumbing.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -614,6 +614,8 @@ where
614614
/// This function is particularly useful when executing passes for their
615615
/// side-effects -- e.g., in order to report errors for erroneous programs.
616616
///
617+
/// Return `true` if the query has already been executed.
618+
///
617619
/// Note: The optimization is only available during incr. comp.
618620
#[inline(never)]
619621
fn ensure_query_impl<CTX, K, V>(tcx: CTX, key: &K, query: &QueryVtable<CTX, K, V>) -> bool

0 commit comments

Comments
 (0)