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