Tweak wording
Co-authored-by: lcnr <rust@lcnr.de>
This commit is contained in:
parent
09ae438eb0
commit
c966370b19
1 changed files with 4 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue