1
Fork 0

update comments

This commit is contained in:
lcnr 2022-04-01 12:08:57 +02:00
parent 0677edc86e
commit 18fae7b2e5
3 changed files with 6 additions and 7 deletions

View file

@ -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>>>,