Remove some unnecessary tcx-passing

This commit is contained in:
Oli Scherer 2023-02-16 14:51:51 +00:00
parent acbcfaaf7b
commit 1ab14ea7c2
2 changed files with 8 additions and 7 deletions

View file

@ -1195,6 +1195,10 @@ impl<'tcx> Resolver<'_, 'tcx> {
self.cstore().item_generics_num_lifetimes(def_id, self.tcx.sess)
}
}
pub fn tcx(&self) -> TyCtxt<'tcx> {
self.tcx
}
}
impl<'a, 'tcx> Resolver<'a, 'tcx> {