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 @@ -859,7 +859,6 @@ impl<'hir> Map<'hir> {
859
859
node : Node :: Item ( Item { kind : ItemKind :: ForeignMod ( ref nm) , .. } ) , ..
860
860
} = entry
861
861
{
862
- self . read ( hir_id) ; // reveals some of the content of a node
863
862
return nm. abi ;
864
863
}
865
864
}
@@ -868,7 +867,6 @@ impl<'hir> Map<'hir> {
868
867
869
868
pub fn expect_item ( & self , id : HirId ) -> & ' hir Item < ' hir > {
870
869
match self . find ( id) {
871
- // read recorded by `find`
872
870
Some ( Node :: Item ( item) ) => item,
873
871
_ => bug ! ( "expected item, found {}" , self . node_to_string( id) ) ,
874
872
}
@@ -918,7 +916,6 @@ impl<'hir> Map<'hir> {
918
916
919
917
pub fn expect_expr ( & self , id : HirId ) -> & ' hir Expr < ' hir > {
920
918
match self . find ( id) {
921
- // read recorded by find
922
919
Some ( Node :: Expr ( expr) ) => expr,
923
920
_ => bug ! ( "expected expr, found {}" , self . node_to_string( id) ) ,
924
921
}
You can’t perform that action at this time.
0 commit comments