Tweak wording

Co-authored-by: lcnr <rust@lcnr.de>
This commit is contained in:
Nadrieril 2024-08-08 21:51:50 +02:00 committed by GitHub
parent 09ae438eb0
commit c966370b19
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -53,7 +53,10 @@ impl<T> Steal<T> {
} }
/// Writers of rustc drivers often encounter stealing issues. This function makes it possible to /// 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 { pub fn is_stolen(&self) -> bool {
self.value.borrow().is_none() self.value.borrow().is_none()
} }