Skip to content

Commit

Permalink
Address nits.
Browse files Browse the repository at this point in the history
  • Loading branch information
nikomatsakis committed Feb 5, 2016
1 parent 8a29040 commit a0f96d6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/librustc/front/map/mod.rs
Expand Up @@ -297,12 +297,12 @@ impl<'ast> Map<'ast> {
// NB ^~~~~~~
//
// You would expect that `item.id == id`, but this
// is not always the case. In particular, for
// ViewPath like `use self::{mem, foo}`, we record
// is not always the case. In particular, for a
// ViewPath item like `use self::{mem, foo}`, we
// map the ids for `mem` and `foo` to the
// enclosing view path item. This seems mega super
// ultra wrong, but then who am I to
// judge. -nmatsakis
// ultra wrong, but then who am I to judge?
// -nmatsakis
return DepNode::Hir(def_id);
}

Expand Down Expand Up @@ -544,7 +544,7 @@ impl<'ast> Map<'ast> {
}

pub fn expect_item(&self, id: NodeId) -> &'ast Item {
match self.find(id) { // read recorded by `id`
match self.find(id) { // read recorded by `find`
Some(NodeItem(item)) => item,
_ => panic!("expected item, found {}", self.node_to_string(id))
}
Expand Down

0 comments on commit a0f96d6

Please sign in to comment.