Skip to content

Commit 23dbcd5

Browse files
committed
Remove redundant argument from subdiagnostic method
1 parent c05c411 commit 23dbcd5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/diagnostics.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ pub fn report_msg<'tcx>(
566566
let is_local = machine.is_local(frame_info);
567567
// No span for non-local frames and the first frame (which is the error site).
568568
if is_local && idx > 0 {
569-
err.subdiagnostic(err.dcx, frame_info.as_note(machine.tcx));
569+
err.subdiagnostic(frame_info.as_note(machine.tcx));
570570
} else {
571571
let sm = sess.source_map();
572572
let span = sm.span_to_embeddable_string(frame_info.span);

0 commit comments

Comments
 (0)