Skip to content

Commit bdc6d82

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 a84bb95 commit bdc6d82

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -1179,7 +1179,7 @@ impl DiagCtxt {
11791179
span: impl Into<MultiSpan>,
11801180
msg: impl Into<DiagnosticMessage>,
11811181
) -> DiagnosticBuilder<'_, ()> {
1182-
DiagnosticBuilder::new(self, Note, msg).with_span(span)
1182+
self.struct_note(msg).with_span(span)
11831183
}
11841184

11851185
#[rustc_lint_diagnostics]

0 commit comments

Comments
 (0)