Skip to content

Commit c230627

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

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

src/tools/compiletest/src/header.rs

+34
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",
@@ -686,6 +687,7 @@ const KNOWN_DIRECTIVE_NAMES: &[&str] = &[
686687
"check-stdout",
687688
"check-test-line-numbers-match",
688689
"compile-flags",
690+
"count",
689691
"dont-check-compiler-stderr",
690692
"dont-check-compiler-stdout",
691693
"dont-check-failure-status",
@@ -709,6 +711,7 @@ const KNOWN_DIRECTIVE_NAMES: &[&str] = &[
709711
"ignore-compare-mode-polonius",
710712
"ignore-cross-compile",
711713
"ignore-debug",
714+
"ignore-eabi",
712715
"ignore-emscripten",
713716
"ignore-endian-big",
714717
"ignore-freebsd",
@@ -724,14 +727,30 @@ const KNOWN_DIRECTIVE_NAMES: &[&str] = &[
724727
"ignore-lldb",
725728
"ignore-llvm-version",
726729
"ignore-loongarch64",
730+
"ignore-macabi",
727731
"ignore-macos",
732+
"ignore-mode-assembly",
733+
"ignore-mode-codegen",
734+
"ignore-mode-codegen-units",
728735
"ignore-mode-coverage-map",
729736
"ignore-mode-coverage-run",
737+
"ignore-mode-debuginfo",
738+
"ignore-mode-incremental",
739+
"ignore-mode-js-doc-test",
740+
"ignore-mode-mir-opt",
741+
"ignore-mode-run-make",
742+
"ignore-mode-run-pass-valgrind",
743+
"ignore-mode-rustdoc",
744+
"ignore-mode-rustdoc-json",
745+
"ignore-mode-pretty",
746+
"ignore-mode-ui",
747+
"ignore-mode-ui-fulldeps",
730748
"ignore-msp430",
731749
"ignore-msvc",
732750
"ignore-musl",
733751
"ignore-netbsd",
734752
"ignore-nightly",
753+
"ignore-none",
735754
"ignore-nto",
736755
"ignore-nvptx64",
737756
"ignore-openbsd",
@@ -743,28 +762,39 @@ const KNOWN_DIRECTIVE_NAMES: &[&str] = &[
743762
"ignore-spirv",
744763
"ignore-stable",
745764
"ignore-stage1",
765+
"ignore-stage2",
746766
"ignore-test",
767+
"ignore-thumb",
747768
"ignore-thumbv8m.base-none-eabi",
748769
"ignore-thumbv8m.main-none-eabi",
770+
"ignore-unix",
771+
"ignore-unknown",
749772
"ignore-uwp",
750773
"ignore-vxworks",
774+
"ignore-wasi",
751775
"ignore-wasm",
752776
"ignore-wasm32",
753777
"ignore-wasm32-bare",
778+
"ignore-wasm64",
754779
"ignore-windows",
755780
"ignore-windows-gnu",
781+
"ignore-x32",
756782
"ignore-x86",
783+
"ignore-x86_64",
757784
"ignore-x86_64-apple-darwin",
785+
"ignore-x86_64-unknown-linux-gnu",
758786
"incremental",
759787
"known-bug",
760788
"llvm-cov-flags",
761789
"min-cdb-version",
762790
"min-gdb-version",
763791
"min-lldb-version",
764792
"min-llvm-version",
793+
"min-system-llvm-version",
765794
"needs-asm-support",
766795
"needs-dlltool",
767796
"needs-dynamic-linking",
797+
"needs-git-hash",
768798
"needs-llvm-components",
769799
"needs-profiler-support",
770800
"needs-relocation-model-pic",
@@ -793,6 +823,7 @@ const KNOWN_DIRECTIVE_NAMES: &[&str] = &[
793823
"only-aarch64",
794824
"only-arm",
795825
"only-avr",
826+
"only-beta",
796827
"only-bpf",
797828
"only-cdb",
798829
"only-gnu",
@@ -810,13 +841,15 @@ const KNOWN_DIRECTIVE_NAMES: &[&str] = &[
810841
"only-riscv64",
811842
"only-sparc",
812843
"only-sparc64",
844+
"only-stable",
813845
"only-thumb",
814846
"only-wasm32",
815847
"only-wasm32-bare",
816848
"only-windows",
817849
"only-x86",
818850
"only-x86_64",
819851
"only-x86_64-fortanix-unknown-sgx",
852+
"only-x86_64-pc-windows-gnu",
820853
"only-x86_64-pc-windows-msvc",
821854
"only-x86_64-unknown-linux-gnu",
822855
"pp-exact",
@@ -839,6 +872,7 @@ const KNOWN_DIRECTIVE_NAMES: &[&str] = &[
839872
"unset-exec-env",
840873
"unset-rustc-env",
841874
];
875+
// tidy-alphabetical-end
842876

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

0 commit comments

Comments
 (0)