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> {
864864 node : Node :: Item ( Item { kind : ItemKind :: ForeignMod ( ref nm) , .. } ) , ..
865865 } = entry
866866 {
867- self . read ( hir_id) ; // reveals some of the content of a node
868867 return nm. abi ;
869868 }
870869 }
@@ -873,7 +872,6 @@ impl<'hir> Map<'hir> {
873872
874873 pub fn expect_item ( & self , id : HirId ) -> & ' hir Item < ' hir > {
875874 match self . find ( id) {
876- // read recorded by `find`
877875 Some ( Node :: Item ( item) ) => item,
878876 _ => bug ! ( "expected item, found {}" , self . node_to_string( id) ) ,
879877 }
@@ -923,7 +921,6 @@ impl<'hir> Map<'hir> {
923921
924922 pub fn expect_expr ( & self , id : HirId ) -> & ' hir Expr < ' hir > {
925923 match self . find ( id) {
926- // read recorded by find
927924 Some ( Node :: Expr ( expr) ) => expr,
928925 _ => bug ! ( "expected expr, found {}" , self . node_to_string( id) ) ,
929926 }
You can’t perform that action at this time.
0 commit comments