Skip to content

Commit 4fcf43f

Browse files
committed
update comments
1 parent 5ac9734 commit 4fcf43f

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

compiler/rustc_infer/src/infer/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ pub struct InferCtxtInner<'tcx> {
181181
///
182182
/// Before running `resolve_regions_and_report_errors`, the creator
183183
/// of the inference context is expected to invoke
184-
/// `process_region_obligations` (defined in `self::region_obligations`)
184+
/// [`InferCtxt::process_registered_region_obligations`]
185185
/// for each body-id in this map, which will process the
186186
/// obligations within. This is expected to be done 'late enough'
187187
/// that all type inference variables have been bound and so forth.

compiler/rustc_infer/src/infer/outlives/obligations.rs

+1-7
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ impl<'cx, 'tcx> InferCtxt<'cx, 'tcx> {
136136
///
137137
/// # Parameters
138138
///
139-
/// - `region_bound_pairs`: the set of region bounds implied by
139+
/// - `region_bound_pairs_map`: the set of region bounds implied by
140140
/// the parameters and where-clauses. In particular, each pair
141141
/// `('a, K)` in this list tells us that the bounds in scope
142142
/// indicate that `K: 'a`, where `K` is either a generic
@@ -147,12 +147,6 @@ impl<'cx, 'tcx> InferCtxt<'cx, 'tcx> {
147147
/// - `param_env` is the parameter environment for the enclosing function.
148148
/// - `body_id` is the body-id whose region obligations are being
149149
/// processed.
150-
///
151-
/// # Returns
152-
///
153-
/// This function may have to perform normalizations, and hence it
154-
/// returns an `InferOk` with subobligations that must be
155-
/// processed.
156150
#[instrument(level = "debug", skip(self, region_bound_pairs_map))]
157151
pub fn process_registered_region_obligations(
158152
&self,

0 commit comments

Comments
 (0)