about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEric Huss <eric@huss.org>2024-10-09 06:01:25 -0700
committerEric Huss <eric@huss.org>2024-10-09 06:01:25 -0700
commitde60931645a1baf5edddd9f0c9027c0e494b46fb (patch)
tree3c100a9896c44bcac29dc50e791e3b3c845d78ec
parent4203c686136428ab10e2765a00886b7c2909a477 (diff)
Add "reference" as a known compiletest header
This adds the "reference" compiletest header so that the Rust reference
can add annotations to the test suite in order to link tests to
individual rules in the reference.

Tooling in the reference repo will be responsible for collecting these
annotations and linking to the tests.

More details are in MCP 783: https://github.com/rust-lang/compiler-team/issues/783
-rw-r--r--src/tools/compiletest/src/command-list.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tools/compiletest/src/command-list.rs b/src/tools/compiletest/src/command-list.rs
index b34c276ab19..8349c3085cc 100644
--- a/src/tools/compiletest/src/command-list.rs
+++ b/src/tools/compiletest/src/command-list.rs
@@ -208,6 +208,7 @@ const KNOWN_DIRECTIVE_NAMES: &[&str] = &[
     "pretty-compare-only",
     "pretty-expanded",
     "pretty-mode",
+    "reference",
     "regex-error-pattern",
     "remap-src-base",
     "revisions",