Skip to content

Commit bd5f017

Browse files
Rename typeck_with_fallback
1 parent 0493557 commit bd5f017

File tree

1 file changed

+3
-3
lines changed
  • compiler/rustc_hir_typeck/src

1 file changed

+3
-3
lines changed

compiler/rustc_hir_typeck/src/lib.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ fn used_trait_imports(tcx: TyCtxt<'_>, def_id: LocalDefId) -> &UnordSet<LocalDef
8787
}
8888

8989
fn typeck<'tcx>(tcx: TyCtxt<'tcx>, def_id: LocalDefId) -> &'tcx ty::TypeckResults<'tcx> {
90-
typeck_with_fallback(tcx, def_id, None)
90+
typeck_with_inspect(tcx, def_id, None)
9191
}
9292

9393
/// Same as `typeck` but `inspect` is invoked on evaluation of each root obligation.
@@ -99,11 +99,11 @@ pub fn inspect_typeck<'tcx>(
9999
def_id: LocalDefId,
100100
inspect: ObligationInspector<'tcx>,
101101
) -> &'tcx ty::TypeckResults<'tcx> {
102-
typeck_with_fallback(tcx, def_id, Some(inspect))
102+
typeck_with_inspect(tcx, def_id, Some(inspect))
103103
}
104104

105105
#[instrument(level = "debug", skip(tcx, inspector), ret)]
106-
fn typeck_with_fallback<'tcx>(
106+
fn typeck_with_inspect<'tcx>(
107107
tcx: TyCtxt<'tcx>,
108108
def_id: LocalDefId,
109109
inspector: Option<ObligationInspector<'tcx>>,

0 commit comments

Comments
 (0)