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