mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 06:44:35 +00:00
Tweak wording
Co-authored-by: lcnr <rust@lcnr.de>
This commit is contained in:
parent
09ae438eb0
commit
c966370b19
@ -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()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user