From 0c37239e0e75a18315367ca77d63b86d444742bd Mon Sep 17 00:00:00 2001 From: Ryan1729 Date: Sun, 2 Aug 2020 21:30:25 -0600 Subject: [PATCH] make InheritedBuilder::enter public --- src/librustc_typeck/check/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustc_typeck/check/mod.rs b/src/librustc_typeck/check/mod.rs index 3af571417ff..1e016d47123 100644 --- a/src/librustc_typeck/check/mod.rs +++ b/src/librustc_typeck/check/mod.rs @@ -648,7 +648,7 @@ pub fn build(tcx: TyCtxt<'tcx>, def_id: LocalDefId) -> InheritedBuilder<'tcx> { } impl<'tcx> InheritedBuilder<'tcx> { - fn enter(&mut self, f: F) -> R + pub fn enter(&mut self, f: F) -> R where F: for<'a> FnOnce(Inherited<'a, 'tcx>) -> R, {