File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ To build a corpus, you may want to use:
7373
7474- The rustc/rust-analyzer/clippy test suites (or even source code) --- though avoid
7575 tests that are already known to cause failures, which often begin with comments
76- like ` // failure-status: 101 ` or ` // known-bug: #NNN ` .
76+ like ` //@ failure-status: 101 ` or ` //@ known-bug: #NNN ` .
7777- The already-fixed ICEs in the archived [ Glacier] [ glacier ] repository --- though
7878 avoid the unfixed ones in ` ices/ ` !
7979
Original file line number Diff line number Diff line change @@ -281,10 +281,10 @@ using `XPath` notation to get a precise look at the output. The full
281281description of all the commands available to ` rustdoc ` tests (e.g. [ ` @has ` ] and
282282[ ` @matches ` ] ) is in [ ` htmldocck.py ` ] .
283283
284- To use multiple crates in a ` rustdoc ` test, add ` // aux-build:filename.rs `
284+ To use multiple crates in a ` rustdoc ` test, add ` //@ aux-build:filename.rs `
285285to the top of the test file. ` filename.rs ` should be placed in an ` auxiliary `
286286directory relative to the test file with the comment. If you need to build
287- docs for the auxiliary file, use ` // build-aux-docs ` .
287+ docs for the auxiliary file, use ` //@ build-aux-docs ` .
288288
289289In addition, there are separate tests for the search index and ` rustdoc ` 's
290290ability to query it. The files in ` tests/rustdoc-js ` each contain a
Original file line number Diff line number Diff line change @@ -619,7 +619,7 @@ file). The `-L` flag is used to find the extern crates.
619619` aux-crate ` is very similar to ` aux-build ` . However, it uses the ` --extern ` flag
620620to link to the extern crate to make the crate be available as an extern prelude.
621621That allows you to specify the additional syntax of the ` --extern ` flag, such as
622- renaming a dependency. For example, ` // aux-crate:foo=bar.rs ` will compile
622+ renaming a dependency. For example, ` //@ aux-crate:foo=bar.rs ` will compile
623623` auxiliary/bar.rs ` and make it available under then name ` foo ` within the test.
624624This is similar to how Cargo does dependency renaming.
625625
You can’t perform that action at this time.
0 commit comments