Remove some unnecessary tcx-passing
This commit is contained in:
parent
acbcfaaf7b
commit
1ab14ea7c2
2 changed files with 8 additions and 7 deletions
|
@ -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> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue