@@ -357,16 +357,16 @@ impl<'a, 'gcx, 'tcx> FnCtxt<'a, 'gcx, 'tcx> {
357
357
} )
358
358
}
359
359
360
- pub fn resolve_ufcs ( & self ,
361
- span : Span ,
362
- method_name : ast :: Ident ,
363
- self_ty : Ty < ' tcx > ,
364
- expr_id : ast :: NodeId )
365
- -> Result < Def , MethodError < ' tcx > > {
366
- debug ! ( "resolve_ufcs: method_name={:?} self_ty={:?} expr_id={:?}" ,
367
- method_name ,
368
- self_ty,
369
- expr_id
360
+ pub fn resolve_ufcs (
361
+ & self ,
362
+ span : Span ,
363
+ method_name : ast :: Ident ,
364
+ self_ty : Ty < ' tcx > ,
365
+ expr_id : ast :: NodeId
366
+ ) -> Result < Def , MethodError < ' tcx > > {
367
+ debug ! (
368
+ "resolve_ufcs: method_name={:?} self_ty={:?} expr_id={:?}" ,
369
+ method_name , self_ty , expr_id,
370
370
) ;
371
371
372
372
let tcx = self . tcx ;
@@ -375,6 +375,7 @@ impl<'a, 'gcx, 'tcx> FnCtxt<'a, 'gcx, 'tcx> {
375
375
match self . probe_for_name ( span, mode, method_name, IsSuggestion ( false ) ,
376
376
self_ty, expr_id, ProbeScope :: TraitsInScope ) {
377
377
Ok ( pick) => {
378
+ debug ! ( "resolve_ufcs: pick={:?}" , pick) ;
378
379
if let Some ( import_id) = pick. import_id {
379
380
let import_def_id = tcx. hir ( ) . local_def_id ( import_id) ;
380
381
debug ! ( "resolve_ufcs: used_trait_import: {:?}" , import_def_id) ;
@@ -383,6 +384,7 @@ impl<'a, 'gcx, 'tcx> FnCtxt<'a, 'gcx, 'tcx> {
383
384
}
384
385
385
386
let def = pick. item . def ( ) ;
387
+ debug ! ( "resolve_ufcs: def={:?}" , def) ;
386
388
tcx. check_stability ( def. def_id ( ) , Some ( expr_id) , span) ;
387
389
388
390
Ok ( def)
0 commit comments