Skip to content

Commit 18fae7b

Browse files
committed
update comments
1 parent 0677edc commit 18fae7b

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

compiler/rustc_infer/src/infer/canonical/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ impl<'cx, 'tcx> InferCtxt<'cx, 'tcx> {
4949
/// At the end of processing, the substitution S (once
5050
/// canonicalized) then represents the values that you computed
5151
/// for each of the canonical inputs to your query.
52-
5352
pub fn instantiate_canonical_with_fresh_inference_vars<T>(
5453
&self,
5554
span: Span,

compiler/rustc_infer/src/infer/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -558,9 +558,9 @@ impl<'tcx> fmt::Display for FixupError<'tcx> {
558558
}
559559
}
560560

561-
/// Helper type of a temporary returned by `tcx.infer_ctxt()`.
562-
/// Necessary because we can't write the following bound:
563-
/// `F: for<'b, 'tcx> where 'tcx FnOnce(InferCtxt<'b, 'tcx>)`.
561+
/// A temporary returned by `tcx.infer_ctxt()`. This is necessary
562+
/// for multiple `InferCtxt` to share the same `in_progress_typeck_results`
563+
/// without using `Rc` or something similar.
564564
pub struct InferCtxtBuilder<'tcx> {
565565
tcx: TyCtxt<'tcx>,
566566
fresh_typeck_results: Option<RefCell<ty::TypeckResults<'tcx>>>,

compiler/rustc_typeck/src/check/inherited.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ impl<'a, 'tcx> Deref for Inherited<'a, 'tcx> {
6868
}
6969
}
7070

71-
/// Helper type of a temporary returned by `Inherited::build(...)`.
72-
/// Necessary because we can't write the following bound:
73-
/// `F: for<'b, 'tcx> where 'tcx FnOnce(Inherited<'b, 'tcx>)`.
71+
/// A temporary returned by `Inherited::build(...)`. This is necessary
72+
/// for multiple `InferCtxt` to share the same `in_progress_typeck_results`
73+
/// without using `Rc` or something similar.
7474
pub struct InheritedBuilder<'tcx> {
7575
infcx: infer::InferCtxtBuilder<'tcx>,
7676
def_id: LocalDefId,

0 commit comments

Comments
 (0)