We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
struct_span_note
struct_note
1 parent a84bb95 commit bdc6d82Copy full SHA for bdc6d82
compiler/rustc_errors/src/lib.rs
@@ -1179,7 +1179,7 @@ impl DiagCtxt {
1179
span: impl Into<MultiSpan>,
1180
msg: impl Into<DiagnosticMessage>,
1181
) -> DiagnosticBuilder<'_, ()> {
1182
- DiagnosticBuilder::new(self, Note, msg).with_span(span)
+ self.struct_note(msg).with_span(span)
1183
}
1184
1185
#[rustc_lint_diagnostics]
0 commit comments