Skip to content

Commit bc7ef45

Browse files
committed
Rename Handler::span_note_diag as struct_span_note.
Because `span_note_diag` doesn't follow the naming structure used for the error reporting functions.
1 parent d083ce1 commit bc7ef45

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
@@ -456,7 +456,7 @@ pub fn report_msg<'tcx>(
456456
let mut err = match diag_level {
457457
DiagLevel::Error => sess.struct_span_err(span, title).forget_guarantee(),
458458
DiagLevel::Warning => sess.struct_span_warn(span, title),
459-
DiagLevel::Note => sess.diagnostic().span_note_diag(span, title),
459+
DiagLevel::Note => sess.diagnostic().struct_span_note(span, title),
460460
};
461461

462462
// Show main message.

0 commit comments

Comments
 (0)