- let sig = match trait_item.node {
- hir::MethodTraitItem(ref sig, _) => sig,
+ let (sig, the_scope, the_id) = match trait_item.node {
+ hir::MethodTraitItem(ref sig, Some(ref body)) => {
+ let body_scope =
+ ccx.tcx.region_maps.call_site_extent(trait_item.id, body.id);
+ (sig, body_scope, body.id)
+ }
+ hir::MethodTraitItem(ref sig, None) => {
+ let item_scope = ccx.tcx.region_maps.item_extent(trait_item.id);
+ (sig, item_scope, it.id)
+ }