@@ -357,16 +357,16 @@ impl<'a, 'gcx, 'tcx> FnCtxt<'a, 'gcx, 'tcx> {
357357 } )
358358 }
359359
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,
370370 ) ;
371371
372372 let tcx = self . tcx ;
@@ -375,6 +375,7 @@ impl<'a, 'gcx, 'tcx> FnCtxt<'a, 'gcx, 'tcx> {
375375 match self . probe_for_name ( span, mode, method_name, IsSuggestion ( false ) ,
376376 self_ty, expr_id, ProbeScope :: TraitsInScope ) {
377377 Ok ( pick) => {
378+ debug ! ( "resolve_ufcs: pick={:?}" , pick) ;
378379 if let Some ( import_id) = pick. import_id {
379380 let import_def_id = tcx. hir ( ) . local_def_id ( import_id) ;
380381 debug ! ( "resolve_ufcs: used_trait_import: {:?}" , import_def_id) ;
@@ -383,6 +384,7 @@ impl<'a, 'gcx, 'tcx> FnCtxt<'a, 'gcx, 'tcx> {
383384 }
384385
385386 let def = pick. item . def ( ) ;
387+ debug ! ( "resolve_ufcs: def={:?}" , def) ;
386388 tcx. check_stability ( def. def_id ( ) , Some ( expr_id) , span) ;
387389
388390 Ok ( def)
0 commit comments