File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -297,12 +297,12 @@ impl<'ast> Map<'ast> {
297
297
// NB ^~~~~~~
298
298
//
299
299
// You would expect that `item.id == id`, but this
300
- // is not always the case. In particular, for
301
- // ViewPath like `use self::{mem, foo}`, we record
300
+ // is not always the case. In particular, for a
301
+ // ViewPath item like `use self::{mem, foo}`, we
302
302
// map the ids for `mem` and `foo` to the
303
303
// enclosing view path item. This seems mega super
304
- // ultra wrong, but then who am I to
305
- // judge. -nmatsakis
304
+ // ultra wrong, but then who am I to judge?
305
+ // -nmatsakis
306
306
return DepNode :: Hir ( def_id) ;
307
307
}
308
308
@@ -544,7 +544,7 @@ impl<'ast> Map<'ast> {
544
544
}
545
545
546
546
pub fn expect_item ( & self , id : NodeId ) -> & ' ast Item {
547
- match self . find ( id) { // read recorded by `id `
547
+ match self . find ( id) { // read recorded by `find `
548
548
Some ( NodeItem ( item) ) => item,
549
549
_ => panic ! ( "expected item, found {}" , self . node_to_string( id) )
550
550
}
You can’t perform that action at this time.
0 commit comments