Skip to content

Commit c966370

Browse files
Nadrierillcnr
andauthored
Tweak wording
Co-authored-by: lcnr <[email protected]>
1 parent 09ae438 commit c966370

File tree

1 file changed

+4
-1
lines changed
  • compiler/rustc_data_structures/src

1 file changed

+4
-1
lines changed

compiler/rustc_data_structures/src/steal.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,10 @@ impl<T> Steal<T> {
5353
}
5454

5555
/// Writers of rustc drivers often encounter stealing issues. This function makes it possible to
56-
/// handle these errors gracefully. This is not used within rustc as the time of writing.
56+
/// handle these errors gracefully.
57+
///
58+
/// This should not be used within rustc as it leaks information not tracked
59+
/// by the query system, breaking incremental compilation.
5760
pub fn is_stolen(&self) -> bool {
5861
self.value.borrow().is_none()
5962
}

0 commit comments

Comments
 (0)