diff options
| author | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2023-02-16 14:51:51 +0000 |
|---|---|---|
| committer | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2023-02-20 15:28:59 +0000 |
| commit | 1ab14ea7c261388e863e15b2688f16e704d76c47 (patch) | |
| tree | 9111fe959d87ee984bd637a8c2660a9acbbf6e0c /compiler/rustc_resolve/src | |
| parent | acbcfaaf7b1da91197f58d17687399931bd5653a (diff) | |
| download | rust-1ab14ea7c261388e863e15b2688f16e704d76c47.tar.gz rust-1ab14ea7c261388e863e15b2688f16e704d76c47.zip | |
Remove some unnecessary tcx-passing
Diffstat (limited to 'compiler/rustc_resolve/src')
| -rw-r--r-- | compiler/rustc_resolve/src/lib.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/rustc_resolve/src/lib.rs b/compiler/rustc_resolve/src/lib.rs index 4d2b547d605..bf0eadeda21 100644 --- a/compiler/rustc_resolve/src/lib.rs +++ b/compiler/rustc_resolve/src/lib.rs @@ -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> { |
