@@ -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,8 +738,13 @@ 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" ,
@@ -734,9 +754,15 @@ const DIAGNOSTICS_DIRECTIVE_NAMES: &[&str] = &[
734
754
"ignore-wasm32" ,
735
755
"ignore-wasm32-bare" ,
736
756
"ignore-windows" ,
757
+ "ignore-windows-gnu" ,
737
758
"ignore-x86" ,
759
+ "ignore-x86_64-apple-darwin" ,
738
760
"incremental" ,
739
761
"known-bug" ,
762
+ "llvm-cov-flags" ,
763
+ "min-cdb-version" ,
764
+ "min-gdb-version" ,
765
+ "min-lldb-version" ,
740
766
"min-llvm-version" ,
741
767
"needs-asm-support" ,
742
768
"needs-dlltool" ,
@@ -745,11 +771,15 @@ const DIAGNOSTICS_DIRECTIVE_NAMES: &[&str] = &[
745
771
"needs-profiler-support" ,
746
772
"needs-relocation-model-pic" ,
747
773
"needs-run-enabled" ,
774
+ "needs-rust-lldb" ,
748
775
"needs-sanitizer-address" ,
749
776
"needs-sanitizer-cfi" ,
750
777
"needs-sanitizer-hwaddress" ,
751
778
"needs-sanitizer-leak" ,
752
779
"needs-sanitizer-memory" ,
780
+ "needs-sanitizer-memtag" ,
781
+ "needs-sanitizer-safestack" ,
782
+ "needs-sanitizer-shadow-call-stack" ,
753
783
"needs-sanitizer-support" ,
754
784
"needs-sanitizer-thread" ,
755
785
"needs-unwind" ,
@@ -759,23 +789,42 @@ const DIAGNOSTICS_DIRECTIVE_NAMES: &[&str] = &[
759
789
"normalize-stderr-64bit" ,
760
790
"normalize-stderr-test" ,
761
791
"normalize-stdout-test" ,
792
+ "only-16bit" ,
762
793
"only-32bit" ,
763
794
"only-64bit" ,
764
795
"only-aarch64" ,
796
+ "only-arm" ,
797
+ "only-avr" ,
798
+ "only-bpf" ,
799
+ "only-cdb" ,
765
800
"only-gnu" ,
766
801
"only-i686-pc-windows-msvc" ,
767
802
"only-linux" ,
803
+ "only-loongarch64" ,
804
+ "only-loongarch64-unknown-linux-gnu" ,
768
805
"only-macos" ,
806
+ "only-mips" ,
807
+ "only-mips64" ,
808
+ "only-msp430" ,
769
809
"only-msvc" ,
770
810
"only-nightly" ,
811
+ "only-nvptx64" ,
812
+ "only-riscv64" ,
813
+ "only-sparc" ,
814
+ "only-sparc64" ,
815
+ "only-thumb" ,
771
816
"only-wasm32" ,
817
+ "only-wasm32-bare" ,
772
818
"only-windows" ,
773
819
"only-x86" ,
774
820
"only-x86_64" ,
821
+ "only-x86_64-fortanix-unknown-sgx" ,
775
822
"only-x86_64-pc-windows-msvc" ,
776
823
"only-x86_64-unknown-linux-gnu" ,
777
824
"pp-exact" ,
825
+ "pretty-compare-only" ,
778
826
"pretty-expanded" ,
827
+ "pretty-mode" ,
779
828
"regex-error-pattern" ,
780
829
"remap-src-base" ,
781
830
"revisions" ,
@@ -786,7 +835,10 @@ const DIAGNOSTICS_DIRECTIVE_NAMES: &[&str] = &[
786
835
"rustc-env" ,
787
836
"rustfix-only-machine-applicable" ,
788
837
"should-fail" ,
838
+ "should-ice" ,
789
839
"stderr-per-bitwidth" ,
840
+ "unit-test" ,
841
+ "unset-exec-env" ,
790
842
"unset-rustc-env" ,
791
843
] ;
792
844
0 commit comments