diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2016-02-05 13:19:21 -0500 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2016-02-05 13:19:55 -0500 |
| commit | a0f96d631eafdec2605585f462376cd4d9209f05 (patch) | |
| tree | 07d5f7f4818d8e688a234f31bb943c3d4d7180f0 /src | |
| parent | 8a29040989eb12a1c9c82e6eee7040be38be3c39 (diff) | |
Address nits.
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustc/front/map/mod.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/librustc/front/map/mod.rs b/src/librustc/front/map/mod.rs index 8f3760c175f..008229aca0b 100644 --- a/src/librustc/front/map/mod.rs +++ b/src/librustc/front/map/mod.rs @@ -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); } @@ -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)) } |
