File tree Expand file tree Collapse file tree 1 file changed +0
-3
lines changed Expand file tree Collapse file tree 1 file changed +0
-3
lines changed Original file line number Diff line number Diff line change @@ -864,7 +864,6 @@ impl<'hir> Map<'hir> {
864
864
node : Node :: Item ( Item { kind : ItemKind :: ForeignMod ( ref nm) , .. } ) , ..
865
865
} = entry
866
866
{
867
- self . read ( hir_id) ; // reveals some of the content of a node
868
867
return nm. abi ;
869
868
}
870
869
}
@@ -873,7 +872,6 @@ impl<'hir> Map<'hir> {
873
872
874
873
pub fn expect_item ( & self , id : HirId ) -> & ' hir Item < ' hir > {
875
874
match self . find ( id) {
876
- // read recorded by `find`
877
875
Some ( Node :: Item ( item) ) => item,
878
876
_ => bug ! ( "expected item, found {}" , self . node_to_string( id) ) ,
879
877
}
@@ -923,7 +921,6 @@ impl<'hir> Map<'hir> {
923
921
924
922
pub fn expect_expr ( & self , id : HirId ) -> & ' hir Expr < ' hir > {
925
923
match self . find ( id) {
926
- // read recorded by find
927
924
Some ( Node :: Expr ( expr) ) => expr,
928
925
_ => bug ! ( "expected expr, found {}" , self . node_to_string( id) ) ,
929
926
}
You can’t perform that action at this time.
0 commit comments