diff options
| author | John Kåre Alsaker <john.kare.alsaker@gmail.com> | 2020-02-08 03:30:57 +0100 |
|---|---|---|
| committer | John Kåre Alsaker <john.kare.alsaker@gmail.com> | 2020-03-14 22:52:29 +0100 |
| commit | 270ee7eca39188ba7adc7af19a26d4aca3cc186b (patch) | |
| tree | 77d6797412fa6e7c6bc33e7c396b2b7a0c466ff7 | |
| parent | 61527c8d8c7d301e37d241c6dfa7e5c281e9a5b7 (diff) | |
Remove comments
| -rw-r--r-- | src/librustc/hir/map/mod.rs | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/librustc/hir/map/mod.rs b/src/librustc/hir/map/mod.rs index 52bdc6a1475..f9b9c7a3cfe 100644 --- a/src/librustc/hir/map/mod.rs +++ b/src/librustc/hir/map/mod.rs @@ -859,7 +859,6 @@ impl<'hir> Map<'hir> { node: Node::Item(Item { kind: ItemKind::ForeignMod(ref nm), .. }), .. } = entry { - self.read(hir_id); // reveals some of the content of a node return nm.abi; } } @@ -868,7 +867,6 @@ impl<'hir> Map<'hir> { pub fn expect_item(&self, id: HirId) -> &'hir Item<'hir> { match self.find(id) { - // read recorded by `find` Some(Node::Item(item)) => item, _ => bug!("expected item, found {}", self.node_to_string(id)), } @@ -918,7 +916,6 @@ impl<'hir> Map<'hir> { pub fn expect_expr(&self, id: HirId) -> &'hir Expr<'hir> { match self.find(id) { - // read recorded by find Some(Node::Expr(expr)) => expr, _ => bug!("expected expr, found {}", self.node_to_string(id)), } |
