@@ -941,6 +941,7 @@ impl Handler {
941941 self . emit_diag_at_span ( Diagnostic :: new ( Bug , msg) , span) ;
942942 }
943943
944+ #[ rustc_lint_diagnostics]
944945 pub fn span_note_without_error (
945946 & self ,
946947 span : impl Into < MultiSpan > ,
@@ -949,6 +950,7 @@ impl Handler {
949950 self . emit_diag_at_span ( Diagnostic :: new ( Note , msg) , span) ;
950951 }
951952
953+ #[ rustc_lint_diagnostics]
952954 pub fn span_note_diag (
953955 & self ,
954956 span : Span ,
@@ -960,19 +962,23 @@ impl Handler {
960962 }
961963
962964 // NOTE: intentionally doesn't raise an error so rustc_codegen_ssa only reports fatal errors in the main thread
965+ #[ rustc_lint_diagnostics]
963966 pub fn fatal ( & self , msg : impl Into < DiagnosticMessage > ) -> FatalError {
964967 self . inner . borrow_mut ( ) . fatal ( msg)
965968 }
966969
970+ #[ rustc_lint_diagnostics]
967971 pub fn err ( & self , msg : impl Into < DiagnosticMessage > ) -> ErrorGuaranteed {
968972 self . inner . borrow_mut ( ) . err ( msg)
969973 }
970974
975+ #[ rustc_lint_diagnostics]
971976 pub fn warn ( & self , msg : impl Into < DiagnosticMessage > ) {
972977 let mut db = DiagnosticBuilder :: new ( self , Warning ( None ) , msg) ;
973978 db. emit ( ) ;
974979 }
975980
981+ #[ rustc_lint_diagnostics]
976982 pub fn note_without_error ( & self , msg : impl Into < DiagnosticMessage > ) {
977983 DiagnosticBuilder :: new ( self , Note , msg) . emit ( ) ;
978984 }
0 commit comments