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