update comments
This commit is contained in:
parent
0677edc86e
commit
18fae7b2e5
3 changed files with 6 additions and 7 deletions
|
@ -558,9 +558,9 @@ impl<'tcx> fmt::Display for FixupError<'tcx> {
|
|||
}
|
||||
}
|
||||
|
||||
/// Helper type of a temporary returned by `tcx.infer_ctxt()`.
|
||||
/// Necessary because we can't write the following bound:
|
||||
/// `F: for<'b, 'tcx> where 'tcx FnOnce(InferCtxt<'b, 'tcx>)`.
|
||||
/// A temporary returned by `tcx.infer_ctxt()`. This is necessary
|
||||
/// for multiple `InferCtxt` to share the same `in_progress_typeck_results`
|
||||
/// without using `Rc` or something similar.
|
||||
pub struct InferCtxtBuilder<'tcx> {
|
||||
tcx: TyCtxt<'tcx>,
|
||||
fresh_typeck_results: Option<RefCell<ty::TypeckResults<'tcx>>>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue