Skip to content

Commit 0c6c4c6

Browse files
committed
Remove useless wrapper.
1 parent 9986f24 commit 0c6c4c6

File tree

1 file changed

+1
-5
lines changed
  • compiler/rustc_hir_typeck/src/fn_ctxt

1 file changed

+1
-5
lines changed

compiler/rustc_hir_typeck/src/fn_ctxt/_impl.rs

+1-5
Original file line numberDiff line numberDiff line change
@@ -509,10 +509,6 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
509509
typeck_results.rvalue_scopes = rvalue_scopes;
510510
}
511511

512-
pub(in super::super) fn resolve_generator_interiors(&self, def_id: DefId) {
513-
self.save_generator_interior_predicates(def_id);
514-
}
515-
516512
/// Unify the inference variables corresponding to generator witnesses, and save all the
517513
/// predicates that were stalled on those inference variables.
518514
///
@@ -522,7 +518,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
522518
/// We must not attempt to select obligations after this method has run, or risk query cycle
523519
/// ICE.
524520
#[instrument(level = "debug", skip(self))]
525-
fn save_generator_interior_predicates(&self, def_id: DefId) {
521+
pub(in super::super) fn resolve_generator_interiors(&self, def_id: DefId) {
526522
// Try selecting all obligations that are not blocked on inference variables.
527523
// Once we start unifying generator witnesses, trying to select obligations on them will
528524
// trigger query cycle ICEs, as doing so requires MIR.

0 commit comments

Comments
 (0)