make InheritedBuilder::enter public

This commit is contained in:
Ryan1729 2020-08-02 21:30:25 -06:00
parent 5565c1a1ca
commit 0c37239e0e

View File

@ -648,7 +648,7 @@ pub fn build(tcx: TyCtxt<'tcx>, def_id: LocalDefId) -> InheritedBuilder<'tcx> {
}
impl<'tcx> InheritedBuilder<'tcx> {
fn enter<F, R>(&mut self, f: F) -> R
pub fn enter<F, R>(&mut self, f: F) -> R
where
F: for<'a> FnOnce(Inherited<'a, 'tcx>) -> R,
{