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
1 changed files with 1 additions and 1 deletions
|
@ -1179,7 +1179,7 @@ impl DiagCtxt {
|
||||||
span: impl Into<MultiSpan>,
|
span: impl Into<MultiSpan>,
|
||||||
msg: impl Into<DiagnosticMessage>,
|
msg: impl Into<DiagnosticMessage>,
|
||||||
) -> DiagnosticBuilder<'_, ()> {
|
) -> DiagnosticBuilder<'_, ()> {
|
||||||
DiagnosticBuilder::new(self, Note, msg).with_span(span)
|
self.struct_note(msg).with_span(span)
|
||||||
}
|
}
|
||||||
|
|
||||||
#[rustc_lint_diagnostics]
|
#[rustc_lint_diagnostics]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue