@@ -936,6 +936,7 @@ impl Handler {
936
936
self . emit_diag_at_span ( Diagnostic :: new ( Bug , msg) , span) ;
937
937
}
938
938
939
+ #[ rustc_lint_diagnostics]
939
940
pub fn span_note_without_error (
940
941
& self ,
941
942
span : impl Into < MultiSpan > ,
@@ -944,6 +945,7 @@ impl Handler {
944
945
self . emit_diag_at_span ( Diagnostic :: new ( Note , msg) , span) ;
945
946
}
946
947
948
+ #[ rustc_lint_diagnostics]
947
949
pub fn span_note_diag (
948
950
& self ,
949
951
span : Span ,
@@ -955,19 +957,23 @@ impl Handler {
955
957
}
956
958
957
959
// NOTE: intentionally doesn't raise an error so rustc_codegen_ssa only reports fatal errors in the main thread
960
+ #[ rustc_lint_diagnostics]
958
961
pub fn fatal ( & self , msg : impl Into < DiagnosticMessage > ) -> FatalError {
959
962
self . inner . borrow_mut ( ) . fatal ( msg)
960
963
}
961
964
965
+ #[ rustc_lint_diagnostics]
962
966
pub fn err ( & self , msg : impl Into < DiagnosticMessage > ) -> ErrorGuaranteed {
963
967
self . inner . borrow_mut ( ) . err ( msg)
964
968
}
965
969
970
+ #[ rustc_lint_diagnostics]
966
971
pub fn warn ( & self , msg : impl Into < DiagnosticMessage > ) {
967
972
let mut db = DiagnosticBuilder :: new ( self , Warning ( None ) , msg) ;
968
973
db. emit ( ) ;
969
974
}
970
975
976
+ #[ rustc_lint_diagnostics]
971
977
pub fn note_without_error ( & self , msg : impl Into < DiagnosticMessage > ) {
972
978
DiagnosticBuilder :: new ( self , Note , msg) . emit ( ) ;
973
979
}
0 commit comments