Skip to content

Commit

Permalink
Make struct_span_note call struct_note.
Browse files Browse the repository at this point in the history
So it follows the same pattern as all the other `struct_span_*` methods.
  • Loading branch information
nnethercote committed Feb 13, 2024
1 parent a84bb95 commit bdc6d82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_errors/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit bdc6d82

Please sign in to comment.