Skip to content

Commit f285c6e

Browse files
committed
Add missing known directives
1 parent 967dac6 commit f285c6e

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

src/tools/compiletest/src/header.rs

+33
Original file line numberDiff line numberDiff line change
@@ -673,6 +673,7 @@ pub fn line_directive<'line>(
673673
/// This is generated by collecting directives from ui tests and then extracting their directive
674674
/// names. This is **not** an exhaustive list of all possible directives. Instead, this is a
675675
/// best-effort approximation for diagnostics.
676+
// tidy-alphabetical-start
676677
const KNOWN_DIRECTIVE_NAMES: &[&str] = &[
677678
"assembly-output",
678679
"aux-build",
@@ -709,6 +710,7 @@ const KNOWN_DIRECTIVE_NAMES: &[&str] = &[
709710
"ignore-compare-mode-polonius",
710711
"ignore-cross-compile",
711712
"ignore-debug",
713+
"ignore-eabi",
712714
"ignore-emscripten",
713715
"ignore-endian-big",
714716
"ignore-freebsd",
@@ -724,14 +726,30 @@ const KNOWN_DIRECTIVE_NAMES: &[&str] = &[
724726
"ignore-lldb",
725727
"ignore-llvm-version",
726728
"ignore-loongarch64",
729+
"ignore-macabi",
727730
"ignore-macos",
731+
"ignore-mode-assembly",
732+
"ignore-mode-codegen",
733+
"ignore-mode-codegen-units",
728734
"ignore-mode-coverage-map",
729735
"ignore-mode-coverage-run",
736+
"ignore-mode-debuginfo",
737+
"ignore-mode-incremental",
738+
"ignore-mode-js-doc-test",
739+
"ignore-mode-mir-opt",
740+
"ignore-mode-run-make",
741+
"ignore-mode-run-pass-valgrind",
742+
"ignore-mode-rustdoc",
743+
"ignore-mode-rustdoc-json",
744+
"ignore-mode-pretty",
745+
"ignore-mode-ui",
746+
"ignore-mode-ui-fulldeps",
730747
"ignore-msp430",
731748
"ignore-msvc",
732749
"ignore-musl",
733750
"ignore-netbsd",
734751
"ignore-nightly",
752+
"ignore-none",
735753
"ignore-nto",
736754
"ignore-nvptx64",
737755
"ignore-openbsd",
@@ -743,28 +761,39 @@ const KNOWN_DIRECTIVE_NAMES: &[&str] = &[
743761
"ignore-spirv",
744762
"ignore-stable",
745763
"ignore-stage1",
764+
"ignore-stage2",
746765
"ignore-test",
766+
"ignore-thumb",
747767
"ignore-thumbv8m.base-none-eabi",
748768
"ignore-thumbv8m.main-none-eabi",
769+
"ignore-unix",
770+
"ignore-unknown",
749771
"ignore-uwp",
750772
"ignore-vxworks",
773+
"ignore-wasi",
751774
"ignore-wasm",
752775
"ignore-wasm32",
753776
"ignore-wasm32-bare",
777+
"ignore-wasm64",
754778
"ignore-windows",
755779
"ignore-windows-gnu",
780+
"ignore-x32",
756781
"ignore-x86",
782+
"ignore-x86_64",
757783
"ignore-x86_64-apple-darwin",
784+
"ignore-x86_64-unknown-linux-gnu",
758785
"incremental",
759786
"known-bug",
760787
"llvm-cov-flags",
761788
"min-cdb-version",
762789
"min-gdb-version",
763790
"min-lldb-version",
764791
"min-llvm-version",
792+
"min-system-llvm-version",
765793
"needs-asm-support",
766794
"needs-dlltool",
767795
"needs-dynamic-linking",
796+
"needs-git-hash",
768797
"needs-llvm-components",
769798
"needs-profiler-support",
770799
"needs-relocation-model-pic",
@@ -793,6 +822,7 @@ const KNOWN_DIRECTIVE_NAMES: &[&str] = &[
793822
"only-aarch64",
794823
"only-arm",
795824
"only-avr",
825+
"only-beta",
796826
"only-bpf",
797827
"only-cdb",
798828
"only-gnu",
@@ -810,13 +840,15 @@ const KNOWN_DIRECTIVE_NAMES: &[&str] = &[
810840
"only-riscv64",
811841
"only-sparc",
812842
"only-sparc64",
843+
"only-stable",
813844
"only-thumb",
814845
"only-wasm32",
815846
"only-wasm32-bare",
816847
"only-windows",
817848
"only-x86",
818849
"only-x86_64",
819850
"only-x86_64-fortanix-unknown-sgx",
851+
"only-x86_64-pc-windows-gnu",
820852
"only-x86_64-pc-windows-msvc",
821853
"only-x86_64-unknown-linux-gnu",
822854
"pp-exact",
@@ -839,6 +871,7 @@ const KNOWN_DIRECTIVE_NAMES: &[&str] = &[
839871
"unset-exec-env",
840872
"unset-rustc-env",
841873
];
874+
// tidy-alphabetical-end
842875

843876
/// The broken-down contents of a line containing a test header directive,
844877
/// which [`iter_header`] passes to its callback function.

0 commit comments

Comments
 (0)