Make struct_span_note call struct_note.

So it follows the same pattern as all the other `struct_span_*` methods.
This commit is contained in:
Nicholas Nethercote 2024-02-13 09:13:52 +11:00
parent a84bb95a1f
commit bdc6d82f9a

View File

@ -1179,7 +1179,7 @@ impl DiagCtxt {
span: impl Into<MultiSpan>,
msg: impl Into<DiagnosticMessage>,
) -> DiagnosticBuilder<'_, ()> {
DiagnosticBuilder::new(self, Note, msg).with_span(span)
self.struct_note(msg).with_span(span)
}
#[rustc_lint_diagnostics]