@@ -649,7 +649,7 @@ impl Handler {
649649 /// Attempting to `.emit()` the builder will only emit if either:
650650 /// * `can_emit_warnings` is `true`
651651 /// * `is_force_warn` was set in `DiagnosticId::Lint`
652- #[ cfg_attr ( not ( bootstrap ) , rustc_lint_diagnostics) ]
652+ #[ rustc_lint_diagnostics]
653653 pub fn struct_span_warn (
654654 & self ,
655655 span : impl Into < MultiSpan > ,
@@ -678,7 +678,7 @@ impl Handler {
678678 }
679679
680680 /// Construct a builder at the `Allow` level at the given `span` and with the `msg`.
681- #[ cfg_attr ( not ( bootstrap ) , rustc_lint_diagnostics) ]
681+ #[ rustc_lint_diagnostics]
682682 pub fn struct_span_allow (
683683 & self ,
684684 span : impl Into < MultiSpan > ,
@@ -691,7 +691,7 @@ impl Handler {
691691
692692 /// Construct a builder at the `Warning` level at the given `span` and with the `msg`.
693693 /// Also include a code.
694- #[ cfg_attr ( not ( bootstrap ) , rustc_lint_diagnostics) ]
694+ #[ rustc_lint_diagnostics]
695695 pub fn struct_span_warn_with_code (
696696 & self ,
697697 span : impl Into < MultiSpan > ,
@@ -708,7 +708,7 @@ impl Handler {
708708 /// Attempting to `.emit()` the builder will only emit if either:
709709 /// * `can_emit_warnings` is `true`
710710 /// * `is_force_warn` was set in `DiagnosticId::Lint`
711- #[ cfg_attr ( not ( bootstrap ) , rustc_lint_diagnostics) ]
711+ #[ rustc_lint_diagnostics]
712712 pub fn struct_warn ( & self , msg : impl Into < DiagnosticMessage > ) -> DiagnosticBuilder < ' _ , ( ) > {
713713 DiagnosticBuilder :: new ( self , Level :: Warning ( None ) , msg)
714714 }
@@ -728,13 +728,13 @@ impl Handler {
728728 }
729729
730730 /// Construct a builder at the `Allow` level with the `msg`.
731- #[ cfg_attr ( not ( bootstrap ) , rustc_lint_diagnostics) ]
731+ #[ rustc_lint_diagnostics]
732732 pub fn struct_allow ( & self , msg : impl Into < DiagnosticMessage > ) -> DiagnosticBuilder < ' _ , ( ) > {
733733 DiagnosticBuilder :: new ( self , Level :: Allow , msg)
734734 }
735735
736736 /// Construct a builder at the `Expect` level with the `msg`.
737- #[ cfg_attr ( not ( bootstrap ) , rustc_lint_diagnostics) ]
737+ #[ rustc_lint_diagnostics]
738738 pub fn struct_expect (
739739 & self ,
740740 msg : impl Into < DiagnosticMessage > ,
@@ -744,7 +744,7 @@ impl Handler {
744744 }
745745
746746 /// Construct a builder at the `Error` level at the given `span` and with the `msg`.
747- #[ cfg_attr ( not ( bootstrap ) , rustc_lint_diagnostics) ]
747+ #[ rustc_lint_diagnostics]
748748 pub fn struct_span_err (
749749 & self ,
750750 span : impl Into < MultiSpan > ,
@@ -756,7 +756,7 @@ impl Handler {
756756 }
757757
758758 /// Construct a builder at the `Error` level at the given `span`, with the `msg`, and `code`.
759- #[ cfg_attr ( not ( bootstrap ) , rustc_lint_diagnostics) ]
759+ #[ rustc_lint_diagnostics]
760760 pub fn struct_span_err_with_code (
761761 & self ,
762762 span : impl Into < MultiSpan > ,
@@ -770,7 +770,7 @@ impl Handler {
770770
771771 /// Construct a builder at the `Error` level with the `msg`.
772772 // FIXME: This method should be removed (every error should have an associated error code).
773- #[ cfg_attr ( not ( bootstrap ) , rustc_lint_diagnostics) ]
773+ #[ rustc_lint_diagnostics]
774774 pub fn struct_err (
775775 & self ,
776776 msg : impl Into < DiagnosticMessage > ,
@@ -785,7 +785,7 @@ impl Handler {
785785 }
786786
787787 /// Construct a builder at the `Error` level with the `msg` and the `code`.
788- #[ cfg_attr ( not ( bootstrap ) , rustc_lint_diagnostics) ]
788+ #[ rustc_lint_diagnostics]
789789 pub fn struct_err_with_code (
790790 & self ,
791791 msg : impl Into < DiagnosticMessage > ,
@@ -797,7 +797,7 @@ impl Handler {
797797 }
798798
799799 /// Construct a builder at the `Warn` level with the `msg` and the `code`.
800- #[ cfg_attr ( not ( bootstrap ) , rustc_lint_diagnostics) ]
800+ #[ rustc_lint_diagnostics]
801801 pub fn struct_warn_with_code (
802802 & self ,
803803 msg : impl Into < DiagnosticMessage > ,
@@ -809,7 +809,7 @@ impl Handler {
809809 }
810810
811811 /// Construct a builder at the `Fatal` level at the given `span` and with the `msg`.
812- #[ cfg_attr ( not ( bootstrap ) , rustc_lint_diagnostics) ]
812+ #[ rustc_lint_diagnostics]
813813 pub fn struct_span_fatal (
814814 & self ,
815815 span : impl Into < MultiSpan > ,
@@ -821,7 +821,7 @@ impl Handler {
821821 }
822822
823823 /// Construct a builder at the `Fatal` level at the given `span`, with the `msg`, and `code`.
824- #[ cfg_attr ( not ( bootstrap ) , rustc_lint_diagnostics) ]
824+ #[ rustc_lint_diagnostics]
825825 pub fn struct_span_fatal_with_code (
826826 & self ,
827827 span : impl Into < MultiSpan > ,
@@ -834,33 +834,33 @@ impl Handler {
834834 }
835835
836836 /// Construct a builder at the `Error` level with the `msg`.
837- #[ cfg_attr ( not ( bootstrap ) , rustc_lint_diagnostics) ]
837+ #[ rustc_lint_diagnostics]
838838 pub fn struct_fatal ( & self , msg : impl Into < DiagnosticMessage > ) -> DiagnosticBuilder < ' _ , !> {
839839 DiagnosticBuilder :: new_fatal ( self , msg)
840840 }
841841
842842 /// Construct a builder at the `Help` level with the `msg`.
843- #[ cfg_attr ( not ( bootstrap ) , rustc_lint_diagnostics) ]
843+ #[ rustc_lint_diagnostics]
844844 pub fn struct_help ( & self , msg : impl Into < DiagnosticMessage > ) -> DiagnosticBuilder < ' _ , ( ) > {
845845 DiagnosticBuilder :: new ( self , Level :: Help , msg)
846846 }
847847
848848 /// Construct a builder at the `Note` level with the `msg`.
849- #[ cfg_attr ( not ( bootstrap ) , rustc_lint_diagnostics) ]
849+ #[ rustc_lint_diagnostics]
850850 pub fn struct_note_without_error (
851851 & self ,
852852 msg : impl Into < DiagnosticMessage > ,
853853 ) -> DiagnosticBuilder < ' _ , ( ) > {
854854 DiagnosticBuilder :: new ( self , Level :: Note , msg)
855855 }
856856
857- #[ cfg_attr ( not ( bootstrap ) , rustc_lint_diagnostics) ]
857+ #[ rustc_lint_diagnostics]
858858 pub fn span_fatal ( & self , span : impl Into < MultiSpan > , msg : impl Into < DiagnosticMessage > ) -> ! {
859859 self . emit_diag_at_span ( Diagnostic :: new ( Fatal , msg) , span) ;
860860 FatalError . raise ( )
861861 }
862862
863- #[ cfg_attr ( not ( bootstrap ) , rustc_lint_diagnostics) ]
863+ #[ rustc_lint_diagnostics]
864864 pub fn span_fatal_with_code (
865865 & self ,
866866 span : impl Into < MultiSpan > ,
@@ -871,7 +871,7 @@ impl Handler {
871871 FatalError . raise ( )
872872 }
873873
874- #[ cfg_attr ( not ( bootstrap ) , rustc_lint_diagnostics) ]
874+ #[ rustc_lint_diagnostics]
875875 pub fn span_err (
876876 & self ,
877877 span : impl Into < MultiSpan > ,
@@ -880,7 +880,7 @@ impl Handler {
880880 self . emit_diag_at_span ( Diagnostic :: new ( Error { lint : false } , msg) , span) . unwrap ( )
881881 }
882882
883- #[ cfg_attr ( not ( bootstrap ) , rustc_lint_diagnostics) ]
883+ #[ rustc_lint_diagnostics]
884884 pub fn span_err_with_code (
885885 & self ,
886886 span : impl Into < MultiSpan > ,
@@ -893,12 +893,12 @@ impl Handler {
893893 ) ;
894894 }
895895
896- #[ cfg_attr ( not ( bootstrap ) , rustc_lint_diagnostics) ]
896+ #[ rustc_lint_diagnostics]
897897 pub fn span_warn ( & self , span : impl Into < MultiSpan > , msg : impl Into < DiagnosticMessage > ) {
898898 self . emit_diag_at_span ( Diagnostic :: new ( Warning ( None ) , msg) , span) ;
899899 }
900900
901- #[ cfg_attr ( not ( bootstrap ) , rustc_lint_diagnostics) ]
901+ #[ rustc_lint_diagnostics]
902902 pub fn span_warn_with_code (
903903 & self ,
904904 span : impl Into < MultiSpan > ,
0 commit comments