about summary refs log tree commit diff
diff options
context:
space:
mode:
authorYuki Okushi <huyuumi.dev@gmail.com>2019-12-07 00:10:07 +0900
committerGitHub <noreply@github.com>2019-12-07 00:10:07 +0900
commitcc7c45fdc67a7e8439a502ef6de65f3d7db01dd8 (patch)
tree213d9f9801207608aa15b9c43eec09100df736ba
parentc85284ec58f353c9df7615f9f130f65572a3f639 (diff)
parent5ddfbc2e2bc4d72a97a3ae2e95d47d298015954f (diff)
downloadrust-cc7c45fdc67a7e8439a502ef6de65f3d7db01dd8.tar.gz
rust-cc7c45fdc67a7e8439a502ef6de65f3d7db01dd8.zip
Rollup merge of #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.
-rw-r--r--src/librustc_interface/queries.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_interface/queries.rs b/src/librustc_interface/queries.rs
index 6103d42c5db..d1fbb949fb1 100644
--- a/src/librustc_interface/queries.rs
+++ b/src/librustc_interface/queries.rs
@@ -22,7 +22,7 @@ use std::mem;
 use syntax::{self, ast};
 
 /// Represent the result of a query.
-/// This result can be stolen with the `take` method and returned with the `give` method.
+/// This result can be stolen with the `take` method and generated with the `compute` method.
 pub struct Query<T> {
     result: RefCell<Option<Result<T>>>,
 }
@@ -37,7 +37,7 @@ impl<T> Query<T> {
     }
 
     /// Takes ownership of the query result. Further attempts to take or peek the query
-    /// result will panic unless it is returned by calling the `give` method.
+    /// result will panic unless it is generated by calling the `compute` method.
     pub fn take(&self) -> T {
         self.result
             .borrow_mut()