@@ -190,6 +190,7 @@ impl NiceRegionError<'me, 'tcx> {
190
190
// = note: Due to a where-clause on the function `all`,
191
191
// = note: `T` must implement `...` for any two lifetimes `'1` and `'2`.
192
192
// = note: However, the type `T` only implements `...` for some specific lifetime `'2`.
193
+ #[ instrument( level = "debug" , skip( self ) ) ]
193
194
fn try_report_placeholders_trait (
194
195
& self ,
195
196
vid : Option < ty:: Region < ' tcx > > ,
@@ -200,17 +201,6 @@ impl NiceRegionError<'me, 'tcx> {
200
201
expected_substs : SubstsRef < ' tcx > ,
201
202
actual_substs : SubstsRef < ' tcx > ,
202
203
) -> DiagnosticBuilder < ' tcx > {
203
- debug ! (
204
- "try_report_placeholders_trait(\
205
- vid={:?}, \
206
- sub_placeholder={:?}, \
207
- sup_placeholder={:?}, \
208
- trait_def_id={:?}, \
209
- expected_substs={:?}, \
210
- actual_substs={:?})",
211
- vid, sub_placeholder, sup_placeholder, trait_def_id, expected_substs, actual_substs
212
- ) ;
213
-
214
204
let span = cause. span ( self . tcx ( ) ) ;
215
205
let msg = format ! (
216
206
"implementation of `{}` is not general enough" ,
@@ -285,17 +275,13 @@ impl NiceRegionError<'me, 'tcx> {
285
275
286
276
let any_self_ty_has_vid = actual_self_ty_has_vid || expected_self_ty_has_vid;
287
277
288
- debug ! ( "try_report_placeholders_trait: actual_has_vid={:?}" , actual_has_vid) ;
289
- debug ! ( "try_report_placeholders_trait: expected_has_vid={:?}" , expected_has_vid) ;
290
- debug ! ( "try_report_placeholders_trait: has_sub={:?}" , has_sub) ;
291
- debug ! ( "try_report_placeholders_trait: has_sup={:?}" , has_sup) ;
292
- debug ! (
293
- "try_report_placeholders_trait: actual_self_ty_has_vid={:?}" ,
294
- actual_self_ty_has_vid
295
- ) ;
296
278
debug ! (
297
- "try_report_placeholders_trait: expected_self_ty_has_vid={:?}" ,
298
- expected_self_ty_has_vid
279
+ ?actual_has_vid,
280
+ ?expected_has_vid,
281
+ ?has_sub,
282
+ ?has_sup,
283
+ ?actual_self_ty_has_vid,
284
+ ?expected_self_ty_has_vid,
299
285
) ;
300
286
301
287
self . explain_actual_impl_that_was_found (
0 commit comments