@@ -171,6 +171,12 @@ impl<'ccx, 'tcx> CheckTypeWellFormedVisitor<'ccx, 'tcx> {
171
171
item : & ast:: Item )
172
172
{
173
173
self . with_fcx ( item, |this, fcx| {
174
+ // FIXME (pnkfelix): what is the "extent" of an item impl?
175
+ // This seems fundamentally different from the dynamic
176
+ // extent represented by a block or a function body.
177
+ //
178
+ // For now, just leaving as the default you get via
179
+ // `fn CodeExtent::from_node_id`.
174
180
let item_scope = region:: CodeExtent :: from_node_id ( item. id ) ;
175
181
176
182
let mut bounds_checker = BoundsChecker :: new ( fcx,
@@ -262,8 +268,11 @@ impl<'cx,'tcx> BoundsChecker<'cx,'tcx> {
262
268
scope : region:: CodeExtent ,
263
269
cache : Option < & ' cx mut HashSet < Ty < ' tcx > > > )
264
270
-> BoundsChecker < ' cx , ' tcx > {
265
- BoundsChecker { fcx : fcx, span : span, scope : scope,
266
- cache : cache, binding_count : 0 }
271
+ let ret = BoundsChecker { fcx : fcx, span : span, scope : scope,
272
+ cache : cache, binding_count : 0 } ;
273
+ debug ! ( "BoundsChecker::new returns b with: b.scope: {} b.binding_count: {}" ,
274
+ ret. scope, ret. binding_count) ;
275
+ ret
267
276
}
268
277
269
278
pub fn check_trait_ref ( & mut self , trait_ref : & ty:: TraitRef < ' tcx > ) {
0 commit comments