@@ -676,14 +676,17 @@ pub fn line_directive<'line>(
676
676
/// names. This is **not** an exhaustive list of all possible directives. Instead, this is a
677
677
/// best-effort approximation for diagnostics.
678
678
const DIAGNOSTICS_DIRECTIVE_NAMES : & [ & str ] = & [
679
+ "assembly-output" ,
679
680
"aux-build" ,
680
681
"aux-crate" ,
682
+ "build-aux-docs" ,
681
683
"build-fail" ,
682
684
"build-pass" ,
683
685
"check-fail" ,
684
686
"check-pass" ,
685
687
"check-run-results" ,
686
688
"check-stdout" ,
689
+ "check-test-line-numbers-match" ,
687
690
"compile-flags" ,
688
691
"dont-check-compiler-stderr" ,
689
692
"dont-check-compiler-stdout" ,
@@ -694,12 +697,16 @@ const DIAGNOSTICS_DIRECTIVE_NAMES: &[&str] = &[
694
697
"failure-status" ,
695
698
"forbid-output" ,
696
699
"force-host" ,
700
+ "ignore-16bit" ,
697
701
"ignore-32bit" ,
698
702
"ignore-64bit" ,
699
703
"ignore-aarch64" ,
700
704
"ignore-aarch64-unknown-linux-gnu" ,
701
705
"ignore-android" ,
702
706
"ignore-arm" ,
707
+ "ignore-avr" ,
708
+ "ignore-beta" ,
709
+ "ignore-cdb" ,
703
710
"ignore-compare-mode-next-solver" ,
704
711
"ignore-compare-mode-polonius" ,
705
712
"ignore-cross-compile" ,
@@ -708,13 +715,21 @@ const DIAGNOSTICS_DIRECTIVE_NAMES: &[&str] = &[
708
715
"ignore-endian-big" ,
709
716
"ignore-freebsd" ,
710
717
"ignore-fuchsia" ,
718
+ "ignore-gdb" ,
719
+ "ignore-gdb-version" ,
711
720
"ignore-gnu" ,
712
721
"ignore-haiku" ,
713
722
"ignore-horizon" ,
714
723
"ignore-i686-pc-windows-msvc" ,
715
724
"ignore-ios" ,
725
+ "ignore-linux" ,
726
+ "ignore-lldb" ,
716
727
"ignore-llvm-version" ,
728
+ "ignore-loongarch64" ,
717
729
"ignore-macos" ,
730
+ "ignore-mode-coverage-map" ,
731
+ "ignore-mode-coverage-run" ,
732
+ "ignore-msp430" ,
718
733
"ignore-msvc" ,
719
734
"ignore-musl" ,
720
735
"ignore-netbsd" ,
@@ -723,20 +738,35 @@ const DIAGNOSTICS_DIRECTIVE_NAMES: &[&str] = &[
723
738
"ignore-nvptx64" ,
724
739
"ignore-openbsd" ,
725
740
"ignore-pass" ,
741
+ "ignore-remote" ,
742
+ "ignore-riscv64" ,
743
+ "ignore-s390x" ,
726
744
"ignore-sgx" ,
727
745
"ignore-spirv" ,
746
+ "ignore-stable" ,
747
+ "ignore-stage1" ,
728
748
"ignore-test" ,
729
749
"ignore-thumbv8m.base-none-eabi" ,
730
750
"ignore-thumbv8m.main-none-eabi" ,
751
+ "ignore-tidy-cr" ,
752
+ "ignore-tidy-linelength" ,
753
+ "ignore-tidy-tab" ,
754
+ "ignore-tidy-trailing-newlines" ,
731
755
"ignore-uwp" ,
732
756
"ignore-vxworks" ,
733
757
"ignore-wasm" ,
734
758
"ignore-wasm32" ,
735
759
"ignore-wasm32-bare" ,
736
760
"ignore-windows" ,
761
+ "ignore-windows-gnu" ,
737
762
"ignore-x86" ,
763
+ "ignore-x86_64-apple-darwin" ,
738
764
"incremental" ,
739
765
"known-bug" ,
766
+ "llvm-cov-flags" ,
767
+ "min-cdb-version" ,
768
+ "min-gdb-version" ,
769
+ "min-lldb-version" ,
740
770
"min-llvm-version" ,
741
771
"needs-asm-support" ,
742
772
"needs-dlltool" ,
@@ -745,11 +775,15 @@ const DIAGNOSTICS_DIRECTIVE_NAMES: &[&str] = &[
745
775
"needs-profiler-support" ,
746
776
"needs-relocation-model-pic" ,
747
777
"needs-run-enabled" ,
778
+ "needs-rust-lldb" ,
748
779
"needs-sanitizer-address" ,
749
780
"needs-sanitizer-cfi" ,
750
781
"needs-sanitizer-hwaddress" ,
751
782
"needs-sanitizer-leak" ,
752
783
"needs-sanitizer-memory" ,
784
+ "needs-sanitizer-memtag" ,
785
+ "needs-sanitizer-safestack" ,
786
+ "needs-sanitizer-shadow-call-stack" ,
753
787
"needs-sanitizer-support" ,
754
788
"needs-sanitizer-thread" ,
755
789
"needs-unwind" ,
@@ -759,23 +793,42 @@ const DIAGNOSTICS_DIRECTIVE_NAMES: &[&str] = &[
759
793
"normalize-stderr-64bit" ,
760
794
"normalize-stderr-test" ,
761
795
"normalize-stdout-test" ,
796
+ "only-16bit" ,
762
797
"only-32bit" ,
763
798
"only-64bit" ,
764
799
"only-aarch64" ,
800
+ "only-arm" ,
801
+ "only-avr" ,
802
+ "only-bpf" ,
803
+ "only-cdb" ,
765
804
"only-gnu" ,
766
805
"only-i686-pc-windows-msvc" ,
767
806
"only-linux" ,
807
+ "only-loongarch64" ,
808
+ "only-loongarch64-unknown-linux-gnu" ,
768
809
"only-macos" ,
810
+ "only-mips" ,
811
+ "only-mips64" ,
812
+ "only-msp430" ,
769
813
"only-msvc" ,
770
814
"only-nightly" ,
815
+ "only-nvptx64" ,
816
+ "only-riscv64" ,
817
+ "only-sparc" ,
818
+ "only-sparc64" ,
819
+ "only-thumb" ,
771
820
"only-wasm32" ,
821
+ "only-wasm32-bare" ,
772
822
"only-windows" ,
773
823
"only-x86" ,
774
824
"only-x86_64" ,
825
+ "only-x86_64-fortanix-unknown-sgx" ,
775
826
"only-x86_64-pc-windows-msvc" ,
776
827
"only-x86_64-unknown-linux-gnu" ,
777
828
"pp-exact" ,
829
+ "pretty-compare-only" ,
778
830
"pretty-expanded" ,
831
+ "pretty-mode" ,
779
832
"regex-error-pattern" ,
780
833
"remap-src-base" ,
781
834
"revisions" ,
@@ -786,7 +839,10 @@ const DIAGNOSTICS_DIRECTIVE_NAMES: &[&str] = &[
786
839
"rustc-env" ,
787
840
"rustfix-only-machine-applicable" ,
788
841
"should-fail" ,
842
+ "should-ice" ,
789
843
"stderr-per-bitwidth" ,
844
+ "unit-test" ,
845
+ "unset-exec-env" ,
790
846
"unset-rustc-env" ,
791
847
] ;
792
848
0 commit comments