@@ -422,9 +422,11 @@ pub trait Emitter {
422
422
span : & mut MultiSpan ,
423
423
children : & mut Vec < SubDiagnostic > ,
424
424
) {
425
- for span in iter:: once ( span) . chain ( children. iter_mut ( ) . map ( |child| & mut child. span ) ) {
425
+ debug ! ( "fix_multispans_in_extern_macros: before: span={:?} children={:?}" , span, children) ;
426
+ for span in iter:: once ( & mut * span) . chain ( children. iter_mut ( ) . map ( |child| & mut child. span ) ) {
426
427
self . fix_multispan_in_extern_macros ( source_map, span) ;
427
428
}
429
+ debug ! ( "fix_multispans_in_extern_macros: after: span={:?} children={:?}" , span, children) ;
428
430
}
429
431
430
432
// This "fixes" MultiSpans that contain `Span`s pointing to locations inside of external macros.
@@ -472,6 +474,7 @@ impl Emitter for EmitterWriter {
472
474
fn emit_diagnostic ( & mut self , diag : & Diagnostic ) {
473
475
let mut children = diag. children . clone ( ) ;
474
476
let ( mut primary_span, suggestions) = self . primary_span_formatted ( & diag) ;
477
+ debug ! ( "emit_diagnostic: suggestions={:?}" , suggestions) ;
475
478
476
479
self . fix_multispans_in_extern_macros_and_render_macro_backtrace (
477
480
& self . sm ,
@@ -1533,6 +1536,7 @@ impl EmitterWriter {
1533
1536
1534
1537
// Render the replacements for each suggestion
1535
1538
let suggestions = suggestion. splice_lines ( & * * sm) ;
1539
+ debug ! ( "emit_suggestion_default: suggestions={:?}" , suggestions) ;
1536
1540
1537
1541
if suggestions. is_empty ( ) {
1538
1542
// Suggestions coming from macros can have malformed spans. This is a heavy handed
0 commit comments