File tree 2 files changed +0
-15
lines changed
compiler/rustc_middle/src/hir
2 files changed +0
-15
lines changed Original file line number Diff line number Diff line change @@ -18,16 +18,6 @@ use crate::middle::debugger_visualizer::DebuggerVisualizerFile;
18
18
use crate :: query:: LocalCrate ;
19
19
use crate :: ty:: TyCtxt ;
20
20
21
- // FIXME: the structure was necessary in the past but now it
22
- // only serves as "namespace" for HIR-related methods, and can be
23
- // removed if all the methods are reasonably renamed and moved to tcx
24
- // (https://github.com/rust-lang/rust/pull/118256#issuecomment-1826442834).
25
- #[ allow( unused) ] // FIXME: temporary
26
- #[ derive( Copy , Clone ) ]
27
- pub struct Map < ' hir > {
28
- pub ( super ) tcx : TyCtxt < ' hir > ,
29
- }
30
-
31
21
/// An iterator that walks up the ancestor tree of a given `HirId`.
32
22
/// Constructed using `tcx.hir_parent_iter(hir_id)`.
33
23
struct ParentHirIterator < ' tcx > {
Original file line number Diff line number Diff line change @@ -116,11 +116,6 @@ impl ModuleItems {
116
116
}
117
117
118
118
impl < ' tcx > TyCtxt < ' tcx > {
119
- #[ inline( always) ]
120
- pub fn hir ( self ) -> map:: Map < ' tcx > {
121
- map:: Map { tcx : self }
122
- }
123
-
124
119
pub fn parent_module ( self , id : HirId ) -> LocalModDefId {
125
120
if !id. is_owner ( ) && self . def_kind ( id. owner ) == DefKind :: Mod {
126
121
LocalModDefId :: new_unchecked ( id. owner . def_id )
You can’t perform that action at this time.
0 commit comments