We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3de0c4 commit 26ffca2Copy full SHA for 26ffca2
compiler/rustc_interface/src/queries.rs
@@ -30,6 +30,9 @@ use std::sync::Arc;
30
/// [`take`]: Self::take
31
/// [`compute`]: Self::compute
32
pub struct Query<T> {
33
+ // The outer option is `None` until the query is computed.
34
+ // Then the whole thing becomes `Some(Some(result))`.
35
+ // Once the value gets taken/stolen, it is `Some(None)`.
36
result: RefCell<Option<Option<Result<T>>>>,
37
}
38
0 commit comments