Skip to content

Commit a0db7b2

Browse files
committed
Update list of known directive names for diagnostics
1 parent bb59453 commit a0db7b2

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed

src/tools/compiletest/src/header.rs

+56
Original file line numberDiff line numberDiff line change
@@ -676,14 +676,17 @@ pub fn line_directive<'line>(
676676
/// names. This is **not** an exhaustive list of all possible directives. Instead, this is a
677677
/// best-effort approximation for diagnostics.
678678
const DIAGNOSTICS_DIRECTIVE_NAMES: &[&str] = &[
679+
"assembly-output",
679680
"aux-build",
680681
"aux-crate",
682+
"build-aux-docs",
681683
"build-fail",
682684
"build-pass",
683685
"check-fail",
684686
"check-pass",
685687
"check-run-results",
686688
"check-stdout",
689+
"check-test-line-numbers-match",
687690
"compile-flags",
688691
"dont-check-compiler-stderr",
689692
"dont-check-compiler-stdout",
@@ -694,12 +697,16 @@ const DIAGNOSTICS_DIRECTIVE_NAMES: &[&str] = &[
694697
"failure-status",
695698
"forbid-output",
696699
"force-host",
700+
"ignore-16bit",
697701
"ignore-32bit",
698702
"ignore-64bit",
699703
"ignore-aarch64",
700704
"ignore-aarch64-unknown-linux-gnu",
701705
"ignore-android",
702706
"ignore-arm",
707+
"ignore-avr",
708+
"ignore-beta",
709+
"ignore-cdb",
703710
"ignore-compare-mode-next-solver",
704711
"ignore-compare-mode-polonius",
705712
"ignore-cross-compile",
@@ -708,13 +715,21 @@ const DIAGNOSTICS_DIRECTIVE_NAMES: &[&str] = &[
708715
"ignore-endian-big",
709716
"ignore-freebsd",
710717
"ignore-fuchsia",
718+
"ignore-gdb",
719+
"ignore-gdb-version",
711720
"ignore-gnu",
712721
"ignore-haiku",
713722
"ignore-horizon",
714723
"ignore-i686-pc-windows-msvc",
715724
"ignore-ios",
725+
"ignore-linux",
726+
"ignore-lldb",
716727
"ignore-llvm-version",
728+
"ignore-loongarch64",
717729
"ignore-macos",
730+
"ignore-mode-coverage-map",
731+
"ignore-mode-coverage-run",
732+
"ignore-msp430",
718733
"ignore-msvc",
719734
"ignore-musl",
720735
"ignore-netbsd",
@@ -723,20 +738,35 @@ const DIAGNOSTICS_DIRECTIVE_NAMES: &[&str] = &[
723738
"ignore-nvptx64",
724739
"ignore-openbsd",
725740
"ignore-pass",
741+
"ignore-remote",
742+
"ignore-riscv64",
743+
"ignore-s390x",
726744
"ignore-sgx",
727745
"ignore-spirv",
746+
"ignore-stable",
747+
"ignore-stage1",
728748
"ignore-test",
729749
"ignore-thumbv8m.base-none-eabi",
730750
"ignore-thumbv8m.main-none-eabi",
751+
"ignore-tidy-cr",
752+
"ignore-tidy-linelength",
753+
"ignore-tidy-tab",
754+
"ignore-tidy-trailing-newlines",
731755
"ignore-uwp",
732756
"ignore-vxworks",
733757
"ignore-wasm",
734758
"ignore-wasm32",
735759
"ignore-wasm32-bare",
736760
"ignore-windows",
761+
"ignore-windows-gnu",
737762
"ignore-x86",
763+
"ignore-x86_64-apple-darwin",
738764
"incremental",
739765
"known-bug",
766+
"llvm-cov-flags",
767+
"min-cdb-version",
768+
"min-gdb-version",
769+
"min-lldb-version",
740770
"min-llvm-version",
741771
"needs-asm-support",
742772
"needs-dlltool",
@@ -745,11 +775,15 @@ const DIAGNOSTICS_DIRECTIVE_NAMES: &[&str] = &[
745775
"needs-profiler-support",
746776
"needs-relocation-model-pic",
747777
"needs-run-enabled",
778+
"needs-rust-lldb",
748779
"needs-sanitizer-address",
749780
"needs-sanitizer-cfi",
750781
"needs-sanitizer-hwaddress",
751782
"needs-sanitizer-leak",
752783
"needs-sanitizer-memory",
784+
"needs-sanitizer-memtag",
785+
"needs-sanitizer-safestack",
786+
"needs-sanitizer-shadow-call-stack",
753787
"needs-sanitizer-support",
754788
"needs-sanitizer-thread",
755789
"needs-unwind",
@@ -759,23 +793,42 @@ const DIAGNOSTICS_DIRECTIVE_NAMES: &[&str] = &[
759793
"normalize-stderr-64bit",
760794
"normalize-stderr-test",
761795
"normalize-stdout-test",
796+
"only-16bit",
762797
"only-32bit",
763798
"only-64bit",
764799
"only-aarch64",
800+
"only-arm",
801+
"only-avr",
802+
"only-bpf",
803+
"only-cdb",
765804
"only-gnu",
766805
"only-i686-pc-windows-msvc",
767806
"only-linux",
807+
"only-loongarch64",
808+
"only-loongarch64-unknown-linux-gnu",
768809
"only-macos",
810+
"only-mips",
811+
"only-mips64",
812+
"only-msp430",
769813
"only-msvc",
770814
"only-nightly",
815+
"only-nvptx64",
816+
"only-riscv64",
817+
"only-sparc",
818+
"only-sparc64",
819+
"only-thumb",
771820
"only-wasm32",
821+
"only-wasm32-bare",
772822
"only-windows",
773823
"only-x86",
774824
"only-x86_64",
825+
"only-x86_64-fortanix-unknown-sgx",
775826
"only-x86_64-pc-windows-msvc",
776827
"only-x86_64-unknown-linux-gnu",
777828
"pp-exact",
829+
"pretty-compare-only",
778830
"pretty-expanded",
831+
"pretty-mode",
779832
"regex-error-pattern",
780833
"remap-src-base",
781834
"revisions",
@@ -786,7 +839,10 @@ const DIAGNOSTICS_DIRECTIVE_NAMES: &[&str] = &[
786839
"rustc-env",
787840
"rustfix-only-machine-applicable",
788841
"should-fail",
842+
"should-ice",
789843
"stderr-per-bitwidth",
844+
"unit-test",
845+
"unset-exec-env",
790846
"unset-rustc-env",
791847
];
792848

0 commit comments

Comments
 (0)