Skip to content

Commit cfee86e

Browse files
committed
update all docs to use ./x.py test tidy syntax
1 parent a2db5ad commit cfee86e

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

src/conventions.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ at the moment, however, it follows a rather more *chaotic* style. We
1212
do have some mandatory formatting conventions, which are automatically
1313
enforced by a script we affectionately call the "tidy" script. The
1414
tidy script runs automatically when you do `./x.py test` and can be run
15-
in isolation with `./x.py test src/tools/tidy`.
15+
in isolation with `./x.py test tidy`.
1616

1717
[fmt]: https://github.com./rust-lang-nursery/fmt-rfcs
1818

src/diagnostics/diagnostic-codes.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ code. This is a bit tricky since the codes are defined in various crates. To do
1212
it, run this obscure command:
1313

1414
```
15-
./x.py test --stage 0 src/tools/tidy
15+
./x.py test --stage 0 tidy
1616
```
1717

1818
This will invoke the tidy script, which generally checks that your code obeys

src/tests/intro.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ including:
6161
There is more information in the
6262
[section on coding conventions](../conventions.html#formatting).
6363

64-
Example: `./x.py test src/tools/tidy`
64+
Example: `./x.py test tidy`
6565

6666
- **Formatting** – Rustfmt is integrated with the build system to enforce
6767
uniform style across the compiler. In the CI, we check that the formatting
@@ -73,7 +73,7 @@ including:
7373

7474
Example: `./x.py fmt` runs rustfmt on the codebase.
7575

76-
Example: `./x.py test src/tools/tidy --bless` does formatting before doing
76+
Example: `./x.py test tidy --bless` does formatting before doing
7777
other tidy checks.
7878

7979
- **Unit tests** – The Rust standard library and many of the Rust packages

src/tests/running.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,10 @@ Likewise, you can test a single file by passing its path:
7272
./x.py test src/libstd
7373
```
7474

75-
### Run tests on the standard library and run the tidy script
75+
### Run the tidy script and tests on the standard library
7676

7777
```bash
78-
./x.py test src/libstd src/tools/tidy
78+
./x.py test tidy src/libstd
7979
```
8080

8181
### Run tests on the standard library using a stage 1 compiler

0 commit comments

Comments
 (0)