Skip to content

Commit cc7c45f

Browse files
authored
Rollup merge of rust-lang#67081 - osa1:fix_query_type_docs, r=Dylan-DPC
Fix Query type docs `give` no longer exists, `compute` is used to generate query results now.
2 parents c85284e + 5ddfbc2 commit cc7c45f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc_interface/queries.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ use std::mem;
2222
use syntax::{self, ast};
2323

2424
/// Represent the result of a query.
25-
/// This result can be stolen with the `take` method and returned with the `give` method.
25+
/// This result can be stolen with the `take` method and generated with the `compute` method.
2626
pub struct Query<T> {
2727
result: RefCell<Option<Result<T>>>,
2828
}
@@ -37,7 +37,7 @@ impl<T> Query<T> {
3737
}
3838

3939
/// Takes ownership of the query result. Further attempts to take or peek the query
40-
/// result will panic unless it is returned by calling the `give` method.
40+
/// result will panic unless it is generated by calling the `compute` method.
4141
pub fn take(&self) -> T {
4242
self.result
4343
.borrow_mut()

0 commit comments

Comments
 (0)