@@ -645,8 +645,6 @@ impl Handler {
645645
646646 /// Construct a builder with the `msg` at the level appropriate for the specific `EmissionGuarantee`.
647647 #[ rustc_lint_diagnostics]
648- #[ allow( rustc:: diagnostic_outside_of_impl) ]
649- #[ allow( rustc:: untranslatable_diagnostic) ]
650648 pub fn struct_diagnostic < G : EmissionGuarantee > (
651649 & self ,
652650 msg : impl Into < DiagnosticMessage > ,
@@ -660,8 +658,6 @@ impl Handler {
660658 /// * `can_emit_warnings` is `true`
661659 /// * `is_force_warn` was set in `DiagnosticId::Lint`
662660 #[ rustc_lint_diagnostics]
663- #[ allow( rustc:: diagnostic_outside_of_impl) ]
664- #[ allow( rustc:: untranslatable_diagnostic) ]
665661 pub fn struct_span_warn (
666662 & self ,
667663 span : impl Into < MultiSpan > ,
@@ -678,8 +674,6 @@ impl Handler {
678674 /// Attempting to `.emit()` the builder will only emit if either:
679675 /// * `can_emit_warnings` is `true`
680676 /// * `is_force_warn` was set in `DiagnosticId::Lint`
681- #[ allow( rustc:: diagnostic_outside_of_impl) ]
682- #[ allow( rustc:: untranslatable_diagnostic) ]
683677 pub fn struct_span_warn_with_expectation (
684678 & self ,
685679 span : impl Into < MultiSpan > ,
@@ -693,8 +687,6 @@ impl Handler {
693687
694688 /// Construct a builder at the `Allow` level at the given `span` and with the `msg`.
695689 #[ rustc_lint_diagnostics]
696- #[ allow( rustc:: diagnostic_outside_of_impl) ]
697- #[ allow( rustc:: untranslatable_diagnostic) ]
698690 pub fn struct_span_allow (
699691 & self ,
700692 span : impl Into < MultiSpan > ,
@@ -708,8 +700,6 @@ impl Handler {
708700 /// Construct a builder at the `Warning` level at the given `span` and with the `msg`.
709701 /// Also include a code.
710702 #[ rustc_lint_diagnostics]
711- #[ allow( rustc:: diagnostic_outside_of_impl) ]
712- #[ allow( rustc:: untranslatable_diagnostic) ]
713703 pub fn struct_span_warn_with_code (
714704 & self ,
715705 span : impl Into < MultiSpan > ,
@@ -727,8 +717,6 @@ impl Handler {
727717 /// * `can_emit_warnings` is `true`
728718 /// * `is_force_warn` was set in `DiagnosticId::Lint`
729719 #[ rustc_lint_diagnostics]
730- #[ allow( rustc:: diagnostic_outside_of_impl) ]
731- #[ allow( rustc:: untranslatable_diagnostic) ]
732720 pub fn struct_warn ( & self , msg : impl Into < DiagnosticMessage > ) -> DiagnosticBuilder < ' _ , ( ) > {
733721 DiagnosticBuilder :: new ( self , Level :: Warning ( None ) , msg)
734722 }
@@ -739,8 +727,6 @@ impl Handler {
739727 /// Attempting to `.emit()` the builder will only emit if either:
740728 /// * `can_emit_warnings` is `true`
741729 /// * `is_force_warn` was set in `DiagnosticId::Lint`
742- #[ allow( rustc:: diagnostic_outside_of_impl) ]
743- #[ allow( rustc:: untranslatable_diagnostic) ]
744730 pub fn struct_warn_with_expectation (
745731 & self ,
746732 msg : impl Into < DiagnosticMessage > ,
@@ -751,16 +737,12 @@ impl Handler {
751737
752738 /// Construct a builder at the `Allow` level with the `msg`.
753739 #[ rustc_lint_diagnostics]
754- #[ allow( rustc:: diagnostic_outside_of_impl) ]
755- #[ allow( rustc:: untranslatable_diagnostic) ]
756740 pub fn struct_allow ( & self , msg : impl Into < DiagnosticMessage > ) -> DiagnosticBuilder < ' _ , ( ) > {
757741 DiagnosticBuilder :: new ( self , Level :: Allow , msg)
758742 }
759743
760744 /// Construct a builder at the `Expect` level with the `msg`.
761745 #[ rustc_lint_diagnostics]
762- #[ allow( rustc:: diagnostic_outside_of_impl) ]
763- #[ allow( rustc:: untranslatable_diagnostic) ]
764746 pub fn struct_expect (
765747 & self ,
766748 msg : impl Into < DiagnosticMessage > ,
@@ -771,8 +753,6 @@ impl Handler {
771753
772754 /// Construct a builder at the `Error` level at the given `span` and with the `msg`.
773755 #[ rustc_lint_diagnostics]
774- #[ allow( rustc:: diagnostic_outside_of_impl) ]
775- #[ allow( rustc:: untranslatable_diagnostic) ]
776756 pub fn struct_span_err (
777757 & self ,
778758 span : impl Into < MultiSpan > ,
@@ -785,8 +765,6 @@ impl Handler {
785765
786766 /// Construct a builder at the `Error` level at the given `span`, with the `msg`, and `code`.
787767 #[ rustc_lint_diagnostics]
788- #[ allow( rustc:: diagnostic_outside_of_impl) ]
789- #[ allow( rustc:: untranslatable_diagnostic) ]
790768 pub fn struct_span_err_with_code (
791769 & self ,
792770 span : impl Into < MultiSpan > ,
@@ -801,8 +779,6 @@ impl Handler {
801779 /// Construct a builder at the `Error` level with the `msg`.
802780 // FIXME: This method should be removed (every error should have an associated error code).
803781 #[ rustc_lint_diagnostics]
804- #[ allow( rustc:: diagnostic_outside_of_impl) ]
805- #[ allow( rustc:: untranslatable_diagnostic) ]
806782 pub fn struct_err (
807783 & self ,
808784 msg : impl Into < DiagnosticMessage > ,
@@ -812,16 +788,12 @@ impl Handler {
812788
813789 /// This should only be used by `rustc_middle::lint::struct_lint_level`. Do not use it for hard errors.
814790 #[ doc( hidden) ]
815- #[ allow( rustc:: diagnostic_outside_of_impl) ]
816- #[ allow( rustc:: untranslatable_diagnostic) ]
817791 pub fn struct_err_lint ( & self , msg : impl Into < DiagnosticMessage > ) -> DiagnosticBuilder < ' _ , ( ) > {
818792 DiagnosticBuilder :: new ( self , Level :: Error { lint : true } , msg)
819793 }
820794
821795 /// Construct a builder at the `Error` level with the `msg` and the `code`.
822796 #[ rustc_lint_diagnostics]
823- #[ allow( rustc:: diagnostic_outside_of_impl) ]
824- #[ allow( rustc:: untranslatable_diagnostic) ]
825797 pub fn struct_err_with_code (
826798 & self ,
827799 msg : impl Into < DiagnosticMessage > ,
@@ -834,8 +806,6 @@ impl Handler {
834806
835807 /// Construct a builder at the `Warn` level with the `msg` and the `code`.
836808 #[ rustc_lint_diagnostics]
837- #[ allow( rustc:: diagnostic_outside_of_impl) ]
838- #[ allow( rustc:: untranslatable_diagnostic) ]
839809 pub fn struct_warn_with_code (
840810 & self ,
841811 msg : impl Into < DiagnosticMessage > ,
@@ -848,8 +818,6 @@ impl Handler {
848818
849819 /// Construct a builder at the `Fatal` level at the given `span` and with the `msg`.
850820 #[ rustc_lint_diagnostics]
851- #[ allow( rustc:: diagnostic_outside_of_impl) ]
852- #[ allow( rustc:: untranslatable_diagnostic) ]
853821 pub fn struct_span_fatal (
854822 & self ,
855823 span : impl Into < MultiSpan > ,
@@ -862,8 +830,6 @@ impl Handler {
862830
863831 /// Construct a builder at the `Fatal` level at the given `span`, with the `msg`, and `code`.
864832 #[ rustc_lint_diagnostics]
865- #[ allow( rustc:: diagnostic_outside_of_impl) ]
866- #[ allow( rustc:: untranslatable_diagnostic) ]
867833 pub fn struct_span_fatal_with_code (
868834 & self ,
869835 span : impl Into < MultiSpan > ,
@@ -877,24 +843,18 @@ impl Handler {
877843
878844 /// Construct a builder at the `Error` level with the `msg`.
879845 #[ rustc_lint_diagnostics]
880- #[ allow( rustc:: diagnostic_outside_of_impl) ]
881- #[ allow( rustc:: untranslatable_diagnostic) ]
882846 pub fn struct_fatal ( & self , msg : impl Into < DiagnosticMessage > ) -> DiagnosticBuilder < ' _ , !> {
883847 DiagnosticBuilder :: new_fatal ( self , msg)
884848 }
885849
886850 /// Construct a builder at the `Help` level with the `msg`.
887851 #[ rustc_lint_diagnostics]
888- #[ allow( rustc:: diagnostic_outside_of_impl) ]
889- #[ allow( rustc:: untranslatable_diagnostic) ]
890852 pub fn struct_help ( & self , msg : impl Into < DiagnosticMessage > ) -> DiagnosticBuilder < ' _ , ( ) > {
891853 DiagnosticBuilder :: new ( self , Level :: Help , msg)
892854 }
893855
894856 /// Construct a builder at the `Note` level with the `msg`.
895857 #[ rustc_lint_diagnostics]
896- #[ allow( rustc:: diagnostic_outside_of_impl) ]
897- #[ allow( rustc:: untranslatable_diagnostic) ]
898858 pub fn struct_note_without_error (
899859 & self ,
900860 msg : impl Into < DiagnosticMessage > ,
0 commit comments