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:
parent
a84bb95a1f
commit
bdc6d82f9a
@ -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]
|
||||
|
Loading…
x
Reference in New Issue
Block a user