Skip to content

Commit 2cee5a9

Browse files
rukaijyn514
authored andcommitted
Improve 'Running tests manually' section
1 parent c4776cb commit 2cee5a9

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

Diff for: src/building/how-to-build-and-run.md

+5
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,11 @@ host: x86_64-unknown-linux-gnu
212212
release: 1.48.0-dev
213213
LLVM version: 11.0
214214
```
215+
216+
The rustup toolchain points to the specified toolchain compiled in your `build` directory,
217+
so the rustup toolchain will be updated whenever `x.py build` or `x.py test` are run for
218+
that toolchain/stage.
219+
215220
## Other `x.py` commands
216221

217222
Here are a few other useful `x.py` commands. We'll cover some of them in detail

Diff for: src/tests/running.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,10 @@ however compare-modes must be manually run individually via the `--compare-mode`
200200

201201
## Running tests manually
202202

203-
Sometimes it's easier and faster to just run the test by hand. Most tests are
204-
just `rs` files, so you can do something like
203+
Sometimes it's easier and faster to just run the test by hand.
204+
Most tests are just `rs` files, so after
205+
[creating a rustup toolchain](/building/how-to-build-and-run.html#creating-a-rustup-toolchain),
206+
you can do something like:
205207

206208
```bash
207209
rustc +stage1 src/test/ui/issue-1234.rs

0 commit comments

Comments
 (0)