Skip to content

Commit e1e1b0d

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

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

src/tools/compiletest/src/header.rs

+52
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,8 +738,13 @@ 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",
@@ -734,9 +754,15 @@ const DIAGNOSTICS_DIRECTIVE_NAMES: &[&str] = &[
734754
"ignore-wasm32",
735755
"ignore-wasm32-bare",
736756
"ignore-windows",
757+
"ignore-windows-gnu",
737758
"ignore-x86",
759+
"ignore-x86_64-apple-darwin",
738760
"incremental",
739761
"known-bug",
762+
"llvm-cov-flags",
763+
"min-cdb-version",
764+
"min-gdb-version",
765+
"min-lldb-version",
740766
"min-llvm-version",
741767
"needs-asm-support",
742768
"needs-dlltool",
@@ -745,11 +771,15 @@ const DIAGNOSTICS_DIRECTIVE_NAMES: &[&str] = &[
745771
"needs-profiler-support",
746772
"needs-relocation-model-pic",
747773
"needs-run-enabled",
774+
"needs-rust-lldb",
748775
"needs-sanitizer-address",
749776
"needs-sanitizer-cfi",
750777
"needs-sanitizer-hwaddress",
751778
"needs-sanitizer-leak",
752779
"needs-sanitizer-memory",
780+
"needs-sanitizer-memtag",
781+
"needs-sanitizer-safestack",
782+
"needs-sanitizer-shadow-call-stack",
753783
"needs-sanitizer-support",
754784
"needs-sanitizer-thread",
755785
"needs-unwind",
@@ -759,23 +789,42 @@ const DIAGNOSTICS_DIRECTIVE_NAMES: &[&str] = &[
759789
"normalize-stderr-64bit",
760790
"normalize-stderr-test",
761791
"normalize-stdout-test",
792+
"only-16bit",
762793
"only-32bit",
763794
"only-64bit",
764795
"only-aarch64",
796+
"only-arm",
797+
"only-avr",
798+
"only-bpf",
799+
"only-cdb",
765800
"only-gnu",
766801
"only-i686-pc-windows-msvc",
767802
"only-linux",
803+
"only-loongarch64",
804+
"only-loongarch64-unknown-linux-gnu",
768805
"only-macos",
806+
"only-mips",
807+
"only-mips64",
808+
"only-msp430",
769809
"only-msvc",
770810
"only-nightly",
811+
"only-nvptx64",
812+
"only-riscv64",
813+
"only-sparc",
814+
"only-sparc64",
815+
"only-thumb",
771816
"only-wasm32",
817+
"only-wasm32-bare",
772818
"only-windows",
773819
"only-x86",
774820
"only-x86_64",
821+
"only-x86_64-fortanix-unknown-sgx",
775822
"only-x86_64-pc-windows-msvc",
776823
"only-x86_64-unknown-linux-gnu",
777824
"pp-exact",
825+
"pretty-compare-only",
778826
"pretty-expanded",
827+
"pretty-mode",
779828
"regex-error-pattern",
780829
"remap-src-base",
781830
"revisions",
@@ -786,7 +835,10 @@ const DIAGNOSTICS_DIRECTIVE_NAMES: &[&str] = &[
786835
"rustc-env",
787836
"rustfix-only-machine-applicable",
788837
"should-fail",
838+
"should-ice",
789839
"stderr-per-bitwidth",
840+
"unit-test",
841+
"unset-exec-env",
790842
"unset-rustc-env",
791843
];
792844

0 commit comments

Comments
 (0)