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:
73
73
74
74
- The rustc/rust-analyzer/clippy test suites (or even source code) --- though avoid
75
75
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 ` .
77
77
- The already-fixed ICEs in the archived [ Glacier] [ glacier ] repository --- though
78
78
avoid the unfixed ones in ` ices/ ` !
79
79
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
281
281
description of all the commands available to ` rustdoc ` tests (e.g. [ ` @has ` ] and
282
282
[ ` @matches ` ] ) is in [ ` htmldocck.py ` ] .
283
283
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 `
285
285
to the top of the test file. ` filename.rs ` should be placed in an ` auxiliary `
286
286
directory 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 ` .
288
288
289
289
In addition, there are separate tests for the search index and ` rustdoc ` 's
290
290
ability 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.
619
619
` aux-crate ` is very similar to ` aux-build ` . However, it uses the ` --extern ` flag
620
620
to link to the extern crate to make the crate be available as an extern prelude.
621
621
That 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
623
623
` auxiliary/bar.rs ` and make it available under then name ` foo ` within the test.
624
624
This is similar to how Cargo does dependency renaming.
625
625
You can’t perform that action at this time.
0 commit comments