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 @@ impl Inherited<'_, '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,
{