@@ -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