diff options
| author | bors <bors@rust-lang.org> | 2019-12-06 15:11:35 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2019-12-06 15:11:35 +0000 |
| commit | 9630dbbc3caca60f2482e6eae8904aa6bda54f93 (patch) | |
| tree | 5deec471683d621f91208385425acc4a6b04713c /src/librustc_interface | |
| parent | d0126e8ed3cc0d6fcb9dd44c36a46f9ce65010a0 (diff) | |
| parent | 931be6c3bccc38be9052433c321f11da033c57c5 (diff) | |
Auto merge of #67091 - JohnTitor:rollup-kitphze, r=JohnTitor
Rollup of 11 pull requests
Successful merges:
- #66846 (Make try_mark_previous_green aware of cycles.)
- #66959 (Remove potential cfgs duplicates)
- #66988 (Fix angle bracket formatting when dumping MIR debug vars)
- #66998 (Modified the testcases for VxWorks)
- #67008 (rustdoc: Add test for fixed issue)
- #67023 (SGX: Fix target linker used by bootstrap)
- #67033 (Migrate to LLVM{Get,Set}ValueName2)
- #67049 (Simplify {IoSlice, IoSliceMut}::advance examples and tests)
- #67054 (codegen "unreachable" for invalid SetDiscriminant)
- #67081 (Fix Query type docs)
- #67085 (Remove boxed closures in address parser.)
Failed merges:
r? @ghost
Diffstat (limited to 'src/librustc_interface')
| -rw-r--r-- | src/librustc_interface/queries.rs | 4 |
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() |
