Skip to content

Commit 270ee7e

Browse files
committed
Remove comments
1 parent 61527c8 commit 270ee7e

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/librustc/hir/map/mod.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -859,7 +859,6 @@ impl<'hir> Map<'hir> {
859859
node: Node::Item(Item { kind: ItemKind::ForeignMod(ref nm), .. }), ..
860860
} = entry
861861
{
862-
self.read(hir_id); // reveals some of the content of a node
863862
return nm.abi;
864863
}
865864
}
@@ -868,7 +867,6 @@ impl<'hir> Map<'hir> {
868867

869868
pub fn expect_item(&self, id: HirId) -> &'hir Item<'hir> {
870869
match self.find(id) {
871-
// read recorded by `find`
872870
Some(Node::Item(item)) => item,
873871
_ => bug!("expected item, found {}", self.node_to_string(id)),
874872
}
@@ -918,7 +916,6 @@ impl<'hir> Map<'hir> {
918916

919917
pub fn expect_expr(&self, id: HirId) -> &'hir Expr<'hir> {
920918
match self.find(id) {
921-
// read recorded by find
922919
Some(Node::Expr(expr)) => expr,
923920
_ => bug!("expected expr, found {}", self.node_to_string(id)),
924921
}

0 commit comments

Comments
 (0)