@@ -102,6 +102,7 @@ pub enum CandidateSource {
102102
103103impl < ' a , ' tcx > FnCtxt < ' a , ' tcx > {
104104 /// Determines whether the type `self_ty` supports a method name `method_name` or not.
105+ #[ instrument( level = "debug" , skip( self ) ) ]
105106 pub fn method_exists (
106107 & self ,
107108 method_name : Ident ,
@@ -129,6 +130,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
129130 }
130131
131132 /// Adds a suggestion to call the given method to the provided diagnostic.
133+ #[ instrument( level = "debug" , skip( self , err, call_expr) ) ]
132134 crate fn suggest_method_call (
133135 & self ,
134136 err : & mut DiagnosticBuilder < ' a > ,
@@ -177,6 +179,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
177179 /// * `span`: the span for the method call
178180 /// * `call_expr`: the complete method call: (`foo.bar::<T1,...Tn>(...)`)
179181 /// * `self_expr`: the self expression (`foo`)
182+ #[ instrument( level = "debug" , skip( self , call_expr, self_expr) ) ]
180183 pub fn lookup_method (
181184 & self ,
182185 self_ty : Ty < ' tcx > ,
@@ -204,6 +207,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
204207
205208 let result =
206209 self . confirm_method ( span, self_expr, call_expr, self_ty, pick. clone ( ) , segment) ;
210+ debug ! ( "result = {:?}" , result) ;
207211
208212 if let Some ( span) = result. illegal_sized_bound {
209213 let mut needs_mut = false ;
@@ -256,6 +260,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
256260 Ok ( result. callee )
257261 }
258262
263+ #[ instrument( level = "debug" , skip( self , call_expr) ) ]
259264 pub fn lookup_probe (
260265 & self ,
261266 span : Span ,
@@ -286,6 +291,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
286291 // FIXME(#18741): it seems likely that we can consolidate some of this
287292 // code with the other method-lookup code. In particular, the second half
288293 // of this method is basically the same as confirmation.
294+ #[ instrument( level = "debug" , skip( self , span, opt_input_types) ) ]
289295 pub fn lookup_method_in_trait (
290296 & self ,
291297 span : Span ,
@@ -409,6 +415,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
409415 Some ( InferOk { obligations, value : callee } )
410416 }
411417
418+ #[ instrument( level = "debug" , skip( self ) ) ]
412419 pub fn resolve_ufcs (
413420 & self ,
414421 span : Span ,
0 commit comments