@@ -525,9 +525,11 @@ impl Session {
525
525
Err ( ErrorGuaranteed :: unchecked_claim_error_was_emitted ( ) )
526
526
}
527
527
}
528
+ #[ rustc_lint_diagnostics]
528
529
pub fn span_warn < S : Into < MultiSpan > > ( & self , sp : S , msg : impl Into < DiagnosticMessage > ) {
529
530
self . diagnostic ( ) . span_warn ( sp, msg)
530
531
}
532
+ #[ rustc_lint_diagnostics]
531
533
pub fn span_warn_with_code < S : Into < MultiSpan > > (
532
534
& self ,
533
535
sp : S ,
@@ -536,6 +538,7 @@ impl Session {
536
538
) {
537
539
self . diagnostic ( ) . span_warn_with_code ( sp, msg, code)
538
540
}
541
+ #[ rustc_lint_diagnostics]
539
542
pub fn warn ( & self , msg : impl Into < DiagnosticMessage > ) {
540
543
self . diagnostic ( ) . warn ( msg)
541
544
}
@@ -566,16 +569,19 @@ impl Session {
566
569
self . diagnostic ( ) . delay_good_path_bug ( msg)
567
570
}
568
571
572
+ #[ rustc_lint_diagnostics]
569
573
pub fn note_without_error ( & self , msg : impl Into < DiagnosticMessage > ) {
570
574
self . diagnostic ( ) . note_without_error ( msg)
571
575
}
576
+ #[ rustc_lint_diagnostics]
572
577
pub fn span_note_without_error < S : Into < MultiSpan > > (
573
578
& self ,
574
579
sp : S ,
575
580
msg : impl Into < DiagnosticMessage > ,
576
581
) {
577
582
self . diagnostic ( ) . span_note_without_error ( sp, msg)
578
583
}
584
+ #[ rustc_lint_diagnostics]
579
585
pub fn struct_note_without_error (
580
586
& self ,
581
587
msg : impl Into < DiagnosticMessage > ,
0 commit comments