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