@@ -131,23 +131,6 @@ pub struct InferCtxtInner<'tcx> {
131131 /// `$0: 'static`. This will get checked later by regionck. (We
132132 /// can't generally check these things right away because we have
133133 /// to wait until types are resolved.)
134- ///
135- /// These are stored in a map keyed to the id of the innermost
136- /// enclosing fn body / static initializer expression. This is
137- /// because the location where the obligation was incurred can be
138- /// relevant with respect to which sublifetime assumptions are in
139- /// place. The reason that we store under the fn-id, and not
140- /// something more fine-grained, is so that it is easier for
141- /// regionck to be sure that it has found *all* the region
142- /// obligations (otherwise, it's easy to fail to walk to a
143- /// particular node-id).
144- ///
145- /// Before running `resolve_regions_and_report_errors`, the creator
146- /// of the inference context is expected to invoke
147- /// [`InferCtxt::process_registered_region_obligations`]
148- /// for each body-id in this map, which will process the
149- /// obligations within. This is expected to be done 'late enough'
150- /// that all type inference variables have been bound and so forth.
151134 region_obligations : Vec < TypeOutlivesConstraint < ' tcx > > ,
152135
153136 /// The outlives bounds that we assume must hold about placeholders that
0 commit comments