Skip to content

Commit 76cb0f9

Browse files
authored
Rollup merge of #143850 - fmease:comptest-simp-docck-handling, r=jieyouxu
Compiletest: Simplify {Html,Json}DocCk directive handling So much more maintainable and extensible. r? ````@jieyouxu```` as discussed
2 parents 7323414 + 557ffa1 commit 76cb0f9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/rustdoc-internals/rustdoc-test-suite.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ Similar to shell commands,
5555
directives can extend across multiple lines if their last char is `\`.
5656
In this case, the start of the next line should be `//`, with no `@`.
5757

58+
Similar to compiletest directives, besides a space you can also use a colon `:` to separate
59+
the directive name and the arguments, however a space is preferred for HtmlDocCk directives.
60+
5861
Use the special string `{{channel}}` in XPaths, `PATTERN` arguments and [snapshot files](#snapshot)
5962
if you'd like to refer to the URL `https://doc.rust-lang.org/CHANNEL` where `CHANNEL` refers to the
6063
current release channel (e.g, `stable` or `nightly`).

0 commit comments

Comments
 (0)