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