compiletest/
directive-list.rs

1/// This was originally generated by collecting directives from ui tests and then extracting their
2/// directive names. This is **not** an exhaustive list of all possible directives. Instead, this is
3/// a best-effort approximation for diagnostics. Add new headers to this list when needed.
4const KNOWN_DIRECTIVE_NAMES: &[&str] = &[
5    // tidy-alphabetical-start
6    "add-core-stubs",
7    "assembly-output",
8    "aux-bin",
9    "aux-build",
10    "aux-codegen-backend",
11    "aux-crate",
12    "build-aux-docs",
13    "build-fail",
14    "build-pass",
15    "check-fail",
16    "check-pass",
17    "check-run-results",
18    "check-stdout",
19    "check-test-line-numbers-match",
20    "compile-flags",
21    "doc-flags",
22    "dont-check-compiler-stderr",
23    "dont-check-compiler-stdout",
24    "dont-check-failure-status",
25    "edition",
26    "error-pattern",
27    "exact-llvm-major-version",
28    "exec-env",
29    "failure-status",
30    "filecheck-flags",
31    "forbid-output",
32    "force-host",
33    "ignore-16bit",
34    "ignore-32bit",
35    "ignore-64bit",
36    "ignore-aarch64",
37    "ignore-aarch64-unknown-linux-gnu",
38    "ignore-aix",
39    "ignore-android",
40    "ignore-apple",
41    "ignore-arm",
42    "ignore-arm-unknown-linux-gnueabi",
43    "ignore-arm-unknown-linux-gnueabihf",
44    "ignore-arm-unknown-linux-musleabi",
45    "ignore-arm-unknown-linux-musleabihf",
46    "ignore-avr",
47    "ignore-beta",
48    "ignore-cdb",
49    "ignore-compare-mode-next-solver",
50    "ignore-compare-mode-polonius",
51    "ignore-coverage-map",
52    "ignore-coverage-run",
53    "ignore-cross-compile",
54    "ignore-eabi",
55    "ignore-elf",
56    "ignore-emscripten",
57    "ignore-endian-big",
58    "ignore-enzyme",
59    "ignore-freebsd",
60    "ignore-fuchsia",
61    "ignore-gdb",
62    "ignore-gdb-version",
63    "ignore-gnu",
64    "ignore-haiku",
65    "ignore-horizon",
66    "ignore-i686-pc-windows-gnu",
67    "ignore-i686-pc-windows-msvc",
68    "ignore-illumos",
69    "ignore-ios",
70    "ignore-linux",
71    "ignore-lldb",
72    "ignore-llvm-version",
73    "ignore-loongarch64",
74    "ignore-macabi",
75    "ignore-macos",
76    "ignore-msp430",
77    "ignore-msvc",
78    "ignore-musl",
79    "ignore-netbsd",
80    "ignore-nightly",
81    "ignore-none",
82    "ignore-nto",
83    "ignore-nvptx64",
84    "ignore-nvptx64-nvidia-cuda",
85    "ignore-openbsd",
86    "ignore-pass",
87    "ignore-powerpc",
88    "ignore-remote",
89    "ignore-riscv64",
90    "ignore-rustc-debug-assertions",
91    "ignore-rustc_abi-x86-sse2",
92    "ignore-s390x",
93    "ignore-sgx",
94    "ignore-sparc64",
95    "ignore-spirv",
96    "ignore-stable",
97    "ignore-stage1",
98    "ignore-stage2",
99    "ignore-std-debug-assertions",
100    "ignore-test",
101    "ignore-thumb",
102    "ignore-thumbv8m.base-none-eabi",
103    "ignore-thumbv8m.main-none-eabi",
104    "ignore-tvos",
105    "ignore-unix",
106    "ignore-unknown",
107    "ignore-uwp",
108    "ignore-visionos",
109    "ignore-vxworks",
110    "ignore-wasi",
111    "ignore-wasm",
112    "ignore-wasm32",
113    "ignore-wasm32-bare",
114    "ignore-wasm64",
115    "ignore-watchos",
116    "ignore-windows",
117    "ignore-windows-gnu",
118    "ignore-windows-msvc",
119    "ignore-x32",
120    "ignore-x86",
121    "ignore-x86_64",
122    "ignore-x86_64-apple-darwin",
123    "ignore-x86_64-pc-windows-gnu",
124    "ignore-x86_64-unknown-linux-gnu",
125    "incremental",
126    "known-bug",
127    "llvm-cov-flags",
128    "max-llvm-major-version",
129    "min-cdb-version",
130    "min-gdb-version",
131    "min-lldb-version",
132    "min-llvm-version",
133    "min-system-llvm-version",
134    "needs-asm-support",
135    "needs-deterministic-layouts",
136    "needs-dlltool",
137    "needs-dynamic-linking",
138    "needs-enzyme",
139    "needs-force-clang-based-tests",
140    "needs-git-hash",
141    "needs-llvm-components",
142    "needs-llvm-zstd",
143    "needs-profiler-runtime",
144    "needs-relocation-model-pic",
145    "needs-run-enabled",
146    "needs-rust-lld",
147    "needs-rustc-debug-assertions",
148    "needs-sanitizer-address",
149    "needs-sanitizer-cfi",
150    "needs-sanitizer-dataflow",
151    "needs-sanitizer-hwaddress",
152    "needs-sanitizer-kcfi",
153    "needs-sanitizer-leak",
154    "needs-sanitizer-memory",
155    "needs-sanitizer-memtag",
156    "needs-sanitizer-safestack",
157    "needs-sanitizer-shadow-call-stack",
158    "needs-sanitizer-support",
159    "needs-sanitizer-thread",
160    "needs-std-debug-assertions",
161    "needs-subprocess",
162    "needs-symlink",
163    "needs-target-has-atomic",
164    "needs-threads",
165    "needs-unwind",
166    "needs-wasmtime",
167    "needs-xray",
168    "no-auto-check-cfg",
169    "no-prefer-dynamic",
170    "normalize-stderr",
171    "normalize-stderr-32bit",
172    "normalize-stderr-64bit",
173    "normalize-stdout",
174    "only-16bit",
175    "only-32bit",
176    "only-64bit",
177    "only-aarch64",
178    "only-aarch64-unknown-linux-gnu",
179    "only-apple",
180    "only-arm",
181    "only-avr",
182    "only-beta",
183    "only-bpf",
184    "only-cdb",
185    "only-dist",
186    "only-elf",
187    "only-emscripten",
188    "only-gnu",
189    "only-i686-pc-windows-gnu",
190    "only-i686-pc-windows-msvc",
191    "only-ios",
192    "only-linux",
193    "only-loongarch64",
194    "only-loongarch64-unknown-linux-gnu",
195    "only-macos",
196    "only-mips",
197    "only-mips64",
198    "only-msp430",
199    "only-msvc",
200    "only-nightly",
201    "only-nvptx64",
202    "only-powerpc",
203    "only-riscv64",
204    "only-rustc_abi-x86-sse2",
205    "only-s390x",
206    "only-sparc",
207    "only-sparc64",
208    "only-stable",
209    "only-thumb",
210    "only-tvos",
211    "only-unix",
212    "only-visionos",
213    "only-wasm32",
214    "only-wasm32-bare",
215    "only-wasm32-wasip1",
216    "only-watchos",
217    "only-windows",
218    "only-windows-gnu",
219    "only-windows-msvc",
220    "only-x86",
221    "only-x86_64",
222    "only-x86_64-fortanix-unknown-sgx",
223    "only-x86_64-pc-windows-gnu",
224    "only-x86_64-pc-windows-msvc",
225    "only-x86_64-unknown-linux-gnu",
226    "pp-exact",
227    "pretty-compare-only",
228    "pretty-mode",
229    "proc-macro",
230    "reference",
231    "regex-error-pattern",
232    "remap-src-base",
233    "revisions",
234    "run-fail",
235    "run-flags",
236    "run-pass",
237    "run-rustfix",
238    "rustc-env",
239    "rustfix-only-machine-applicable",
240    "should-fail",
241    "should-ice",
242    "stderr-per-bitwidth",
243    "test-mir-pass",
244    "unique-doc-out-dir",
245    "unset-exec-env",
246    "unset-rustc-env",
247    // Used by the tidy check `unknown_revision`.
248    "unused-revision-names",
249    // tidy-alphabetical-end
250];