Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit b4b44bb

Browse files
Merge pull request #2421 from aDotInTheVoid/slashslashat
Fix some old `// <directive>` to `//@ <directive>`
2 parents 234bc7b + 655367d commit b4b44bb

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

‎src/fuzzing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

‎src/rustdoc-internals.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,10 +281,10 @@ using `XPath` notation to get a precise look at the output. The full
281281
description 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`
285285
to the top of the test file. `filename.rs` should be placed in an `auxiliary`
286286
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`.
288288

289289
In addition, there are separate tests for the search index and `rustdoc`'s
290290
ability to query it. The files in `tests/rustdoc-js` each contain a

‎src/tests/compiletest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
620620
to link to the extern crate to make the crate be available as an extern prelude.
621621
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
623623
`auxiliary/bar.rs` and make it available under then name `foo` within the test.
624624
This is similar to how Cargo does dependency renaming.
625625

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /