Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit e516b4d

Browse files
committedJun 22, 2024·
Remove commands duplication between compiletest and tests/rustdoc
1 parent dcb6cba commit e516b4d

File tree

3 files changed

+259
-452
lines changed

3 files changed

+259
-452
lines changed
 

Diff for: ‎src/etc/htmldocck.py

+28-225
Original file line numberDiff line numberDiff line change
@@ -240,237 +240,40 @@ def concat_multi_lines(f):
240240
print_err(lineno, line, 'Trailing backslash at the end of the file')
241241

242242

243+
def get_known_directive_names():
244+
def filter_line(line):
245+
line = line.strip()
246+
return line.startswith('"') and (line.endswith('",') or line.endswith('"'))
247+
248+
# Equivalent to `src/tools/compiletest/src/header.rs` constant of the same name.
249+
with open(
250+
os.path.join(
251+
# We go back to `src`.
252+
os.path.dirname(os.path.dirname(__file__)),
253+
"tools/compiletest/src/command-list.rs",
254+
),
255+
"r",
256+
encoding="utf8"
257+
) as fd:
258+
content = fd.read()
259+
return [
260+
line.strip().replace('",', '').replace('"', '')
261+
for line in content.split('\n')
262+
if filter_line(line)
263+
]
264+
265+
266+
# To prevent duplicating the list of commmands between `compiletest` and `htmldocck`, we put
267+
# it into a common file which is included in rust code and parsed here.
268+
# FIXME: This setup is temporary until we figure out how to improve this situation.
269+
KNOWN_DIRECTIVE_NAMES = get_known_directive_names()
270+
243271
LINE_PATTERN = re.compile(r'''
244272
//@\s+
245273
(?P<negated>!?)(?P<cmd>[A-Za-z]+(?:-[A-Za-z]+)*)
246274
(?P<args>.*)$
247275
''', re.X | re.UNICODE)
248276

249-
# Equivalent to `src/tools/compiletest/src/header.rs` constant of the same name.
250-
KNOWN_DIRECTIVE_NAMES = [
251-
# tidy-alphabetical-start
252-
"assembly-output",
253-
"aux-bin",
254-
"aux-build",
255-
"aux-codegen-backend",
256-
"aux-crate",
257-
"build-aux-docs",
258-
"build-fail",
259-
"build-pass",
260-
"check-fail",
261-
"check-pass",
262-
"check-run-results",
263-
"check-stdout",
264-
"check-test-line-numbers-match",
265-
"compare-output-lines-by-subset",
266-
"compile-flags",
267-
"dont-check-compiler-stderr",
268-
"dont-check-compiler-stdout",
269-
"dont-check-failure-status",
270-
"edition",
271-
"error-pattern",
272-
"exec-env",
273-
"failure-status",
274-
"filecheck-flags",
275-
"forbid-output",
276-
"force-host",
277-
"ignore-16bit",
278-
"ignore-32bit",
279-
"ignore-64bit",
280-
"ignore-aarch64",
281-
"ignore-aarch64-unknown-linux-gnu",
282-
"ignore-android",
283-
"ignore-apple",
284-
"ignore-arm",
285-
"ignore-avr",
286-
"ignore-beta",
287-
"ignore-cdb",
288-
"ignore-compare-mode-next-solver",
289-
"ignore-compare-mode-polonius",
290-
"ignore-cross-compile",
291-
"ignore-debug",
292-
"ignore-eabi",
293-
"ignore-emscripten",
294-
"ignore-endian-big",
295-
"ignore-freebsd",
296-
"ignore-fuchsia",
297-
"ignore-gdb",
298-
"ignore-gdb-version",
299-
"ignore-gnu",
300-
"ignore-haiku",
301-
"ignore-horizon",
302-
"ignore-i686-pc-windows-msvc",
303-
"ignore-ios",
304-
"ignore-linux",
305-
"ignore-lldb",
306-
"ignore-llvm-version",
307-
"ignore-loongarch64",
308-
"ignore-macabi",
309-
"ignore-macos",
310-
"ignore-mode-assembly",
311-
"ignore-mode-codegen",
312-
"ignore-mode-codegen-units",
313-
"ignore-mode-coverage-map",
314-
"ignore-mode-coverage-run",
315-
"ignore-mode-crashes",
316-
"ignore-mode-debuginfo",
317-
"ignore-mode-incremental",
318-
"ignore-mode-js-doc-test",
319-
"ignore-mode-mir-opt",
320-
"ignore-mode-pretty",
321-
"ignore-mode-run-make",
322-
"ignore-mode-run-pass-valgrind",
323-
"ignore-mode-rustdoc",
324-
"ignore-mode-rustdoc-json",
325-
"ignore-mode-ui",
326-
"ignore-mode-ui-fulldeps",
327-
"ignore-msp430",
328-
"ignore-msvc",
329-
"ignore-musl",
330-
"ignore-netbsd",
331-
"ignore-nightly",
332-
"ignore-none",
333-
"ignore-nto",
334-
"ignore-nvptx64",
335-
"ignore-nvptx64-nvidia-cuda",
336-
"ignore-openbsd",
337-
"ignore-pass",
338-
"ignore-remote",
339-
"ignore-riscv64",
340-
"ignore-s390x",
341-
"ignore-sgx",
342-
"ignore-spirv",
343-
"ignore-stable",
344-
"ignore-stage1",
345-
"ignore-stage2",
346-
"ignore-test",
347-
"ignore-thumb",
348-
"ignore-thumbv8m.base-none-eabi",
349-
"ignore-thumbv8m.main-none-eabi",
350-
"ignore-tvos",
351-
"ignore-unix",
352-
"ignore-unknown",
353-
"ignore-uwp",
354-
"ignore-visionos",
355-
"ignore-vxworks",
356-
"ignore-wasi",
357-
"ignore-wasm",
358-
"ignore-wasm32",
359-
"ignore-wasm32-bare",
360-
"ignore-wasm64",
361-
"ignore-watchos",
362-
"ignore-windows",
363-
"ignore-windows-gnu",
364-
"ignore-x32",
365-
"ignore-x86",
366-
"ignore-x86_64",
367-
"ignore-x86_64-unknown-linux-gnu",
368-
"incremental",
369-
"known-bug",
370-
"llvm-cov-flags",
371-
"min-cdb-version",
372-
"min-gdb-version",
373-
"min-lldb-version",
374-
"min-llvm-version",
375-
"min-system-llvm-version",
376-
"needs-asm-support",
377-
"needs-dlltool",
378-
"needs-dynamic-linking",
379-
"needs-force-clang-based-tests",
380-
"needs-git-hash",
381-
"needs-llvm-components",
382-
"needs-profiler-support",
383-
"needs-relocation-model-pic",
384-
"needs-run-enabled",
385-
"needs-rust-lld",
386-
"needs-rust-lldb",
387-
"needs-sanitizer-address",
388-
"needs-sanitizer-cfi",
389-
"needs-sanitizer-dataflow",
390-
"needs-sanitizer-hwaddress",
391-
"needs-sanitizer-kcfi",
392-
"needs-sanitizer-leak",
393-
"needs-sanitizer-memory",
394-
"needs-sanitizer-memtag",
395-
"needs-sanitizer-safestack",
396-
"needs-sanitizer-shadow-call-stack",
397-
"needs-sanitizer-support",
398-
"needs-sanitizer-thread",
399-
"needs-threads",
400-
"needs-unwind",
401-
"needs-wasmtime",
402-
"needs-xray",
403-
"no-auto-check-cfg",
404-
"no-prefer-dynamic",
405-
"normalize-stderr-32bit",
406-
"normalize-stderr-64bit",
407-
"normalize-stderr-test",
408-
"normalize-stdout-test",
409-
"only-16bit",
410-
"only-32bit",
411-
"only-64bit",
412-
"only-aarch64",
413-
"only-apple",
414-
"only-arm",
415-
"only-avr",
416-
"only-beta",
417-
"only-bpf",
418-
"only-cdb",
419-
"only-gnu",
420-
"only-i686-pc-windows-msvc",
421-
"only-ios",
422-
"only-linux",
423-
"only-loongarch64",
424-
"only-loongarch64-unknown-linux-gnu",
425-
"only-macos",
426-
"only-mips",
427-
"only-mips64",
428-
"only-msp430",
429-
"only-msvc",
430-
"only-nightly",
431-
"only-nvptx64",
432-
"only-riscv64",
433-
"only-sparc",
434-
"only-sparc64",
435-
"only-stable",
436-
"only-thumb",
437-
"only-tvos",
438-
"only-unix",
439-
"only-visionos",
440-
"only-wasm32",
441-
"only-wasm32-bare",
442-
"only-wasm32-wasip1",
443-
"only-watchos",
444-
"only-windows",
445-
"only-x86",
446-
"only-x86_64",
447-
"only-x86_64-fortanix-unknown-sgx",
448-
"only-x86_64-pc-windows-gnu",
449-
"only-x86_64-pc-windows-msvc",
450-
"only-x86_64-unknown-linux-gnu",
451-
"pp-exact",
452-
"pretty-compare-only",
453-
"pretty-expanded",
454-
"pretty-mode",
455-
"regex-error-pattern",
456-
"remap-src-base",
457-
"revisions",
458-
"run-fail",
459-
"run-flags",
460-
"run-pass",
461-
"run-rustfix",
462-
"rustc-env",
463-
"rustfix-only-machine-applicable",
464-
"should-fail",
465-
"should-ice",
466-
"stderr-per-bitwidth",
467-
"test-mir-pass",
468-
"unset-exec-env",
469-
"unset-rustc-env",
470-
# Used by the tidy check `unknown_revision`.
471-
"unused-revision-names",
472-
# tidy-alphabetical-end
473-
]
474277

475278
def get_commands(template):
476279
with io.open(template, encoding='utf-8') as f:

Diff for: ‎src/tools/compiletest/src/command-list.rs

+227
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,227 @@
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.
4+
const KNOWN_DIRECTIVE_NAMES: &[&str] = &[
5+
// tidy-alphabetical-start
6+
"assembly-output",
7+
"aux-bin",
8+
"aux-build",
9+
"aux-codegen-backend",
10+
"aux-crate",
11+
"build-aux-docs",
12+
"build-fail",
13+
"build-pass",
14+
"check-fail",
15+
"check-pass",
16+
"check-run-results",
17+
"check-stdout",
18+
"check-test-line-numbers-match",
19+
"compare-output-lines-by-subset",
20+
"compile-flags",
21+
"dont-check-compiler-stderr",
22+
"dont-check-compiler-stdout",
23+
"dont-check-failure-status",
24+
"edition",
25+
"error-pattern",
26+
"exec-env",
27+
"failure-status",
28+
"filecheck-flags",
29+
"forbid-output",
30+
"force-host",
31+
"ignore-16bit",
32+
"ignore-32bit",
33+
"ignore-64bit",
34+
"ignore-aarch64",
35+
"ignore-aarch64-unknown-linux-gnu",
36+
"ignore-android",
37+
"ignore-apple",
38+
"ignore-arm",
39+
"ignore-avr",
40+
"ignore-beta",
41+
"ignore-cdb",
42+
"ignore-compare-mode-next-solver",
43+
"ignore-compare-mode-polonius",
44+
"ignore-cross-compile",
45+
"ignore-debug",
46+
"ignore-eabi",
47+
"ignore-emscripten",
48+
"ignore-endian-big",
49+
"ignore-freebsd",
50+
"ignore-fuchsia",
51+
"ignore-gdb",
52+
"ignore-gdb-version",
53+
"ignore-gnu",
54+
"ignore-haiku",
55+
"ignore-horizon",
56+
"ignore-i686-pc-windows-msvc",
57+
"ignore-ios",
58+
"ignore-linux",
59+
"ignore-lldb",
60+
"ignore-llvm-version",
61+
"ignore-loongarch64",
62+
"ignore-macabi",
63+
"ignore-macos",
64+
"ignore-mode-assembly",
65+
"ignore-mode-codegen",
66+
"ignore-mode-codegen-units",
67+
"ignore-mode-coverage-map",
68+
"ignore-mode-coverage-run",
69+
"ignore-mode-crashes",
70+
"ignore-mode-debuginfo",
71+
"ignore-mode-incremental",
72+
"ignore-mode-js-doc-test",
73+
"ignore-mode-mir-opt",
74+
"ignore-mode-pretty",
75+
"ignore-mode-run-make",
76+
"ignore-mode-run-pass-valgrind",
77+
"ignore-mode-rustdoc",
78+
"ignore-mode-rustdoc-json",
79+
"ignore-mode-ui",
80+
"ignore-mode-ui-fulldeps",
81+
"ignore-msp430",
82+
"ignore-msvc",
83+
"ignore-musl",
84+
"ignore-netbsd",
85+
"ignore-nightly",
86+
"ignore-none",
87+
"ignore-nto",
88+
"ignore-nvptx64",
89+
"ignore-nvptx64-nvidia-cuda",
90+
"ignore-openbsd",
91+
"ignore-pass",
92+
"ignore-remote",
93+
"ignore-riscv64",
94+
"ignore-s390x",
95+
"ignore-sgx",
96+
"ignore-spirv",
97+
"ignore-stable",
98+
"ignore-stage1",
99+
"ignore-stage2",
100+
"ignore-test",
101+
"ignore-thumb",
102+
"ignore-thumbv8m.base-none-eabi",
103+
"ignore-thumbv8m.main-none-eabi",
104+
"ignore-tvos",
105+
"ignore-unix",
106+
"ignore-unknown",
107+
"ignore-uwp",
108+
"ignore-visionos",
109+
"ignore-vxworks",
110+
"ignore-wasi",
111+
"ignore-wasm",
112+
"ignore-wasm32",
113+
"ignore-wasm32-bare",
114+
"ignore-wasm64",
115+
"ignore-watchos",
116+
"ignore-windows",
117+
"ignore-windows-gnu",
118+
"ignore-x32",
119+
"ignore-x86",
120+
"ignore-x86_64",
121+
"ignore-x86_64-unknown-linux-gnu",
122+
"incremental",
123+
"known-bug",
124+
"llvm-cov-flags",
125+
"min-cdb-version",
126+
"min-gdb-version",
127+
"min-lldb-version",
128+
"min-llvm-version",
129+
"min-system-llvm-version",
130+
"needs-asm-support",
131+
"needs-dlltool",
132+
"needs-dynamic-linking",
133+
"needs-force-clang-based-tests",
134+
"needs-git-hash",
135+
"needs-llvm-components",
136+
"needs-profiler-support",
137+
"needs-relocation-model-pic",
138+
"needs-run-enabled",
139+
"needs-rust-lld",
140+
"needs-rust-lldb",
141+
"needs-sanitizer-address",
142+
"needs-sanitizer-cfi",
143+
"needs-sanitizer-dataflow",
144+
"needs-sanitizer-hwaddress",
145+
"needs-sanitizer-kcfi",
146+
"needs-sanitizer-leak",
147+
"needs-sanitizer-memory",
148+
"needs-sanitizer-memtag",
149+
"needs-sanitizer-safestack",
150+
"needs-sanitizer-shadow-call-stack",
151+
"needs-sanitizer-support",
152+
"needs-sanitizer-thread",
153+
"needs-threads",
154+
"needs-unwind",
155+
"needs-wasmtime",
156+
"needs-xray",
157+
"no-auto-check-cfg",
158+
"no-prefer-dynamic",
159+
"normalize-stderr-32bit",
160+
"normalize-stderr-64bit",
161+
"normalize-stderr-test",
162+
"normalize-stdout-test",
163+
"only-16bit",
164+
"only-32bit",
165+
"only-64bit",
166+
"only-aarch64",
167+
"only-apple",
168+
"only-arm",
169+
"only-avr",
170+
"only-beta",
171+
"only-bpf",
172+
"only-cdb",
173+
"only-gnu",
174+
"only-i686-pc-windows-msvc",
175+
"only-ios",
176+
"only-linux",
177+
"only-loongarch64",
178+
"only-loongarch64-unknown-linux-gnu",
179+
"only-macos",
180+
"only-mips",
181+
"only-mips64",
182+
"only-msp430",
183+
"only-msvc",
184+
"only-nightly",
185+
"only-nvptx64",
186+
"only-riscv64",
187+
"only-sparc",
188+
"only-sparc64",
189+
"only-stable",
190+
"only-thumb",
191+
"only-tvos",
192+
"only-unix",
193+
"only-visionos",
194+
"only-wasm32",
195+
"only-wasm32-bare",
196+
"only-wasm32-wasip1",
197+
"only-watchos",
198+
"only-windows",
199+
"only-x86",
200+
"only-x86_64",
201+
"only-x86_64-fortanix-unknown-sgx",
202+
"only-x86_64-pc-windows-gnu",
203+
"only-x86_64-pc-windows-msvc",
204+
"only-x86_64-unknown-linux-gnu",
205+
"pp-exact",
206+
"pretty-compare-only",
207+
"pretty-expanded",
208+
"pretty-mode",
209+
"regex-error-pattern",
210+
"remap-src-base",
211+
"revisions",
212+
"run-fail",
213+
"run-flags",
214+
"run-pass",
215+
"run-rustfix",
216+
"rustc-env",
217+
"rustfix-only-machine-applicable",
218+
"should-fail",
219+
"should-ice",
220+
"stderr-per-bitwidth",
221+
"test-mir-pass",
222+
"unset-exec-env",
223+
"unset-rustc-env",
224+
// Used by the tidy check `unknown_revision`.
225+
"unused-revision-names",
226+
// tidy-alphabetical-end
227+
];

Diff for: ‎src/tools/compiletest/src/header.rs

+4-227
Original file line numberDiff line numberDiff line change
@@ -723,233 +723,10 @@ pub fn line_directive<'line>(
723723
}
724724
}
725725

726-
/// This was originally generated by collecting directives from ui tests and then extracting their
727-
/// directive names. This is **not** an exhaustive list of all possible directives. Instead, this is
728-
/// a best-effort approximation for diagnostics. Add new headers to this list when needed.
729-
const KNOWN_DIRECTIVE_NAMES: &[&str] = &[
730-
// tidy-alphabetical-start
731-
"assembly-output",
732-
"aux-bin",
733-
"aux-build",
734-
"aux-codegen-backend",
735-
"aux-crate",
736-
"build-aux-docs",
737-
"build-fail",
738-
"build-pass",
739-
"check-fail",
740-
"check-pass",
741-
"check-run-results",
742-
"check-stdout",
743-
"check-test-line-numbers-match",
744-
"compare-output-lines-by-subset",
745-
"compile-flags",
746-
"dont-check-compiler-stderr",
747-
"dont-check-compiler-stdout",
748-
"dont-check-failure-status",
749-
"edition",
750-
"error-pattern",
751-
"exec-env",
752-
"failure-status",
753-
"filecheck-flags",
754-
"forbid-output",
755-
"force-host",
756-
"ignore-16bit",
757-
"ignore-32bit",
758-
"ignore-64bit",
759-
"ignore-aarch64",
760-
"ignore-aarch64-unknown-linux-gnu",
761-
"ignore-android",
762-
"ignore-apple",
763-
"ignore-arm",
764-
"ignore-avr",
765-
"ignore-beta",
766-
"ignore-cdb",
767-
"ignore-compare-mode-next-solver",
768-
"ignore-compare-mode-polonius",
769-
"ignore-cross-compile",
770-
"ignore-debug",
771-
"ignore-eabi",
772-
"ignore-emscripten",
773-
"ignore-endian-big",
774-
"ignore-freebsd",
775-
"ignore-fuchsia",
776-
"ignore-gdb",
777-
"ignore-gdb-version",
778-
"ignore-gnu",
779-
"ignore-haiku",
780-
"ignore-horizon",
781-
"ignore-i686-pc-windows-msvc",
782-
"ignore-ios",
783-
"ignore-linux",
784-
"ignore-lldb",
785-
"ignore-llvm-version",
786-
"ignore-loongarch64",
787-
"ignore-macabi",
788-
"ignore-macos",
789-
"ignore-mode-assembly",
790-
"ignore-mode-codegen",
791-
"ignore-mode-codegen-units",
792-
"ignore-mode-coverage-map",
793-
"ignore-mode-coverage-run",
794-
"ignore-mode-crashes",
795-
"ignore-mode-debuginfo",
796-
"ignore-mode-incremental",
797-
"ignore-mode-js-doc-test",
798-
"ignore-mode-mir-opt",
799-
"ignore-mode-pretty",
800-
"ignore-mode-run-make",
801-
"ignore-mode-run-pass-valgrind",
802-
"ignore-mode-rustdoc",
803-
"ignore-mode-rustdoc-json",
804-
"ignore-mode-ui",
805-
"ignore-mode-ui-fulldeps",
806-
"ignore-msp430",
807-
"ignore-msvc",
808-
"ignore-musl",
809-
"ignore-netbsd",
810-
"ignore-nightly",
811-
"ignore-none",
812-
"ignore-nto",
813-
"ignore-nvptx64",
814-
"ignore-nvptx64-nvidia-cuda",
815-
"ignore-openbsd",
816-
"ignore-pass",
817-
"ignore-remote",
818-
"ignore-riscv64",
819-
"ignore-s390x",
820-
"ignore-sgx",
821-
"ignore-spirv",
822-
"ignore-stable",
823-
"ignore-stage1",
824-
"ignore-stage2",
825-
"ignore-test",
826-
"ignore-thumb",
827-
"ignore-thumbv8m.base-none-eabi",
828-
"ignore-thumbv8m.main-none-eabi",
829-
"ignore-tvos",
830-
"ignore-unix",
831-
"ignore-unknown",
832-
"ignore-uwp",
833-
"ignore-visionos",
834-
"ignore-vxworks",
835-
"ignore-wasi",
836-
"ignore-wasm",
837-
"ignore-wasm32",
838-
"ignore-wasm32-bare",
839-
"ignore-wasm64",
840-
"ignore-watchos",
841-
"ignore-windows",
842-
"ignore-windows-gnu",
843-
"ignore-x32",
844-
"ignore-x86",
845-
"ignore-x86_64",
846-
"ignore-x86_64-unknown-linux-gnu",
847-
"incremental",
848-
"known-bug",
849-
"llvm-cov-flags",
850-
"min-cdb-version",
851-
"min-gdb-version",
852-
"min-lldb-version",
853-
"min-llvm-version",
854-
"min-system-llvm-version",
855-
"needs-asm-support",
856-
"needs-dlltool",
857-
"needs-dynamic-linking",
858-
"needs-force-clang-based-tests",
859-
"needs-git-hash",
860-
"needs-llvm-components",
861-
"needs-profiler-support",
862-
"needs-relocation-model-pic",
863-
"needs-run-enabled",
864-
"needs-rust-lld",
865-
"needs-rust-lldb",
866-
"needs-sanitizer-address",
867-
"needs-sanitizer-cfi",
868-
"needs-sanitizer-dataflow",
869-
"needs-sanitizer-hwaddress",
870-
"needs-sanitizer-kcfi",
871-
"needs-sanitizer-leak",
872-
"needs-sanitizer-memory",
873-
"needs-sanitizer-memtag",
874-
"needs-sanitizer-safestack",
875-
"needs-sanitizer-shadow-call-stack",
876-
"needs-sanitizer-support",
877-
"needs-sanitizer-thread",
878-
"needs-threads",
879-
"needs-unwind",
880-
"needs-wasmtime",
881-
"needs-xray",
882-
"no-auto-check-cfg",
883-
"no-prefer-dynamic",
884-
"normalize-stderr-32bit",
885-
"normalize-stderr-64bit",
886-
"normalize-stderr-test",
887-
"normalize-stdout-test",
888-
"only-16bit",
889-
"only-32bit",
890-
"only-64bit",
891-
"only-aarch64",
892-
"only-apple",
893-
"only-arm",
894-
"only-avr",
895-
"only-beta",
896-
"only-bpf",
897-
"only-cdb",
898-
"only-gnu",
899-
"only-i686-pc-windows-msvc",
900-
"only-ios",
901-
"only-linux",
902-
"only-loongarch64",
903-
"only-loongarch64-unknown-linux-gnu",
904-
"only-macos",
905-
"only-mips",
906-
"only-mips64",
907-
"only-msp430",
908-
"only-msvc",
909-
"only-nightly",
910-
"only-nvptx64",
911-
"only-riscv64",
912-
"only-sparc",
913-
"only-sparc64",
914-
"only-stable",
915-
"only-thumb",
916-
"only-tvos",
917-
"only-unix",
918-
"only-visionos",
919-
"only-wasm32",
920-
"only-wasm32-bare",
921-
"only-wasm32-wasip1",
922-
"only-watchos",
923-
"only-windows",
924-
"only-x86",
925-
"only-x86_64",
926-
"only-x86_64-fortanix-unknown-sgx",
927-
"only-x86_64-pc-windows-gnu",
928-
"only-x86_64-pc-windows-msvc",
929-
"only-x86_64-unknown-linux-gnu",
930-
"pp-exact",
931-
"pretty-compare-only",
932-
"pretty-expanded",
933-
"pretty-mode",
934-
"regex-error-pattern",
935-
"remap-src-base",
936-
"revisions",
937-
"run-fail",
938-
"run-flags",
939-
"run-pass",
940-
"run-rustfix",
941-
"rustc-env",
942-
"rustfix-only-machine-applicable",
943-
"should-fail",
944-
"should-ice",
945-
"stderr-per-bitwidth",
946-
"test-mir-pass",
947-
"unset-exec-env",
948-
"unset-rustc-env",
949-
// Used by the tidy check `unknown_revision`.
950-
"unused-revision-names",
951-
// tidy-alphabetical-end
952-
];
726+
// To prevent duplicating the list of commmands between `compiletest` and `htmldocck`, we put
727+
// it into a common file which is included in rust code and parsed here.
728+
// FIXME: This setup is temporary until we figure out how to improve this situation.
729+
include!("command-list.rs");
953730

954731
const KNOWN_RUSTDOC_DIRECTIVE_NAMES: &[&str] = &[
955732
"count",

0 commit comments

Comments
 (0)
Please sign in to comment.