Remove useless wrapper.
This commit is contained in:
parent
baa64b0e77
commit
855a75b6d6
@ -509,10 +509,6 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
|
|||||||
typeck_results.rvalue_scopes = rvalue_scopes;
|
typeck_results.rvalue_scopes = rvalue_scopes;
|
||||||
}
|
}
|
||||||
|
|
||||||
pub(in super::super) fn resolve_generator_interiors(&self, def_id: DefId) {
|
|
||||||
self.save_generator_interior_predicates(def_id);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Unify the inference variables corresponding to generator witnesses, and save all the
|
/// Unify the inference variables corresponding to generator witnesses, and save all the
|
||||||
/// predicates that were stalled on those inference variables.
|
/// predicates that were stalled on those inference variables.
|
||||||
///
|
///
|
||||||
@ -522,7 +518,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
|
|||||||
/// We must not attempt to select obligations after this method has run, or risk query cycle
|
/// We must not attempt to select obligations after this method has run, or risk query cycle
|
||||||
/// ICE.
|
/// ICE.
|
||||||
#[instrument(level = "debug", skip(self))]
|
#[instrument(level = "debug", skip(self))]
|
||||||
fn save_generator_interior_predicates(&self, def_id: DefId) {
|
pub(in super::super) fn resolve_generator_interiors(&self, def_id: DefId) {
|
||||||
// Try selecting all obligations that are not blocked on inference variables.
|
// Try selecting all obligations that are not blocked on inference variables.
|
||||||
// Once we start unifying generator witnesses, trying to select obligations on them will
|
// Once we start unifying generator witnesses, trying to select obligations on them will
|
||||||
// trigger query cycle ICEs, as doing so requires MIR.
|
// trigger query cycle ICEs, as doing so requires MIR.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user