Skip to content

Commit

Permalink
Tweak wording
Browse files Browse the repository at this point in the history
Co-authored-by: lcnr <[email protected]>
  • Loading branch information
Nadrieril and lcnr authored Aug 8, 2024
1 parent 09ae438 commit c966370
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion compiler/rustc_data_structures/src/steal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,10 @@ impl<T> Steal<T> {
}

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

0 comments on commit c966370

Please sign in to comment.