@@ -266,7 +266,7 @@ impl<'ast> Map<'ast> {
266
266
267
267
if let Some ( last_id) = last_expr {
268
268
// The body of the item may have a separate dep node
269
- // (Note that impl/ trait items don't currently have
269
+ // (Note that trait items don't currently have
270
270
// their own dep node, so there's also just one
271
271
// HirBody node for all the items)
272
272
if self . is_body ( last_id, item) {
@@ -282,9 +282,6 @@ impl<'ast> Map<'ast> {
282
282
283
283
if let Some ( last_id) = last_expr {
284
284
// The body of the item may have a separate dep node
285
- // (Note that impl/trait items don't currently have
286
- // their own dep node, so there's also just one
287
- // HirBody node for all the items)
288
285
if self . is_impl_item_body ( last_id, item) {
289
286
return DepNode :: HirBody ( def_id) ;
290
287
}
@@ -373,9 +370,9 @@ impl<'ast> Map<'ast> {
373
370
fn is_body ( & self , node_id : NodeId , item : & Item ) -> bool {
374
371
match item. node {
375
372
ItemFn ( _, _, _, _, _, body) => body. node_id ( ) == node_id,
376
- // Since trait/impl items currently don't get their own dep nodes,
373
+ // Since trait items currently don't get their own dep nodes,
377
374
// we check here whether node_id is the body of any of the items.
378
- // Once they get their own dep nodes, this can go away
375
+ // If they get their own dep nodes, this can go away
379
376
ItemTrait ( _, _, _, ref trait_items) => {
380
377
trait_items. iter ( ) . any ( |trait_item| { match trait_item. node {
381
378
MethodTraitItem ( _, Some ( body) ) => body. node_id ( ) == node_id,
0 commit comments