We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 324bad4 + 86a1b5a commit b7e7587Copy full SHA for b7e7587
src/diagnostics.rs
@@ -505,7 +505,7 @@ pub fn report_msg<'tcx>(
505
let is_local = machine.is_local(frame_info);
506
// No span for non-local frames and the first frame (which is the error site).
507
if is_local && idx > 0 {
508
- err.eager_subdiagnostic(err.dcx, frame_info.as_note(machine.tcx));
+ err.subdiagnostic(err.dcx, frame_info.as_note(machine.tcx));
509
} else {
510
let sm = sess.source_map();
511
let span = sm.span_to_embeddable_string(frame_info.span);
0 commit comments