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