Skip to content

Commit e91cd39

Browse files
committed
session: diagnostic migration lint on more fns
Apply the diagnostic migration lint to more functions on `Session`. Signed-off-by: David Wood <[email protected]>
1 parent a8a33cf commit e91cd39

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

compiler/rustc_session/src/session.rs

+6
Original file line numberDiff line numberDiff line change
@@ -525,9 +525,11 @@ impl Session {
525525
Err(ErrorGuaranteed::unchecked_claim_error_was_emitted())
526526
}
527527
}
528+
#[rustc_lint_diagnostics]
528529
pub fn span_warn<S: Into<MultiSpan>>(&self, sp: S, msg: impl Into<DiagnosticMessage>) {
529530
self.diagnostic().span_warn(sp, msg)
530531
}
532+
#[rustc_lint_diagnostics]
531533
pub fn span_warn_with_code<S: Into<MultiSpan>>(
532534
&self,
533535
sp: S,
@@ -536,6 +538,7 @@ impl Session {
536538
) {
537539
self.diagnostic().span_warn_with_code(sp, msg, code)
538540
}
541+
#[rustc_lint_diagnostics]
539542
pub fn warn(&self, msg: impl Into<DiagnosticMessage>) {
540543
self.diagnostic().warn(msg)
541544
}
@@ -566,16 +569,19 @@ impl Session {
566569
self.diagnostic().delay_good_path_bug(msg)
567570
}
568571

572+
#[rustc_lint_diagnostics]
569573
pub fn note_without_error(&self, msg: impl Into<DiagnosticMessage>) {
570574
self.diagnostic().note_without_error(msg)
571575
}
576+
#[rustc_lint_diagnostics]
572577
pub fn span_note_without_error<S: Into<MultiSpan>>(
573578
&self,
574579
sp: S,
575580
msg: impl Into<DiagnosticMessage>,
576581
) {
577582
self.diagnostic().span_note_without_error(sp, msg)
578583
}
584+
#[rustc_lint_diagnostics]
579585
pub fn struct_note_without_error(
580586
&self,
581587
msg: impl Into<DiagnosticMessage>,

0 commit comments

Comments
 (0)