Skip to content

Commit 01d4197

Browse files
committed
Make struct_span_note call struct_note.
So it follows the same pattern as all the other `struct_span_*` methods.
1 parent fd9bb7f commit 01d4197

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_errors/src

1 file changed

+1
-1
lines changed

compiler/rustc_errors/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1175,7 +1175,7 @@ impl DiagCtxt {
11751175
span: impl Into<MultiSpan>,
11761176
msg: impl Into<DiagnosticMessage>,
11771177
) -> DiagnosticBuilder<'_, ()> {
1178-
DiagnosticBuilder::new(self, Note, msg).with_span(span)
1178+
self.struct_note(msg).with_span(span)
11791179
}
11801180

11811181
#[rustc_lint_diagnostics]

0 commit comments

Comments
 (0)