Inline SubstFolder::tcx

This commit is contained in:
Tomasz Miąsko 2022-07-16 00:00:00 +00:00
parent 0e6251dcde
commit 880bde0ced

View file

@ -525,6 +525,7 @@ struct SubstFolder<'a, 'tcx> {
}
impl<'a, 'tcx> TypeFolder<'tcx> for SubstFolder<'a, 'tcx> {
#[inline]
fn tcx<'b>(&'b self) -> TyCtxt<'tcx> {
self.tcx
}