We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
subdiagnostic
1 parent c05c411 commit 23dbcd5Copy full SHA for 23dbcd5
src/diagnostics.rs
@@ -566,7 +566,7 @@ pub fn report_msg<'tcx>(
566
let is_local = machine.is_local(frame_info);
567
// No span for non-local frames and the first frame (which is the error site).
568
if is_local && idx > 0 {
569
- err.subdiagnostic(err.dcx, frame_info.as_note(machine.tcx));
+ err.subdiagnostic(frame_info.as_note(machine.tcx));
570
} else {
571
let sm = sess.source_map();
572
let span = sm.span_to_embeddable_string(frame_info.span);
0 commit comments