summary refs log tree commit diff
path: root/src/doc/rustc-dev-guide
diff options
context:
space:
mode:
authorLucas Kent <rubickent@gmail.com>2021-11-27 16:28:44 +1100
committerJoshua Nelson <github@jyn.dev>2021-11-27 03:45:39 -0500
commit99e213a27401b720cb4f442fa94a96c1da6c5bc9 (patch)
tree96cb7bb46f0f441c4f76cbcec0602e1da303875e /src/doc/rustc-dev-guide
parentfbe824dda04a36d1c03f21f9d807580de855fd18 (diff)
downloadrust-99e213a27401b720cb4f442fa94a96c1da6c5bc9.tar.gz
rust-99e213a27401b720cb4f442fa94a96c1da6c5bc9.zip
Improve 'Running tests manually' section
Diffstat (limited to 'src/doc/rustc-dev-guide')
-rw-r--r--src/doc/rustc-dev-guide/src/building/how-to-build-and-run.md5
-rw-r--r--src/doc/rustc-dev-guide/src/tests/running.md6
2 files changed, 9 insertions, 2 deletions
diff --git a/src/doc/rustc-dev-guide/src/building/how-to-build-and-run.md b/src/doc/rustc-dev-guide/src/building/how-to-build-and-run.md
index 981bb6e50e0..ae3aabf129a 100644
--- a/src/doc/rustc-dev-guide/src/building/how-to-build-and-run.md
+++ b/src/doc/rustc-dev-guide/src/building/how-to-build-and-run.md
@@ -212,6 +212,11 @@ host: x86_64-unknown-linux-gnu
 release: 1.48.0-dev
 LLVM version: 11.0
 ```
+
+The rustup toolchain points to the specified toolchain compiled in your `build` directory,
+so the rustup toolchain will be updated whenever `x.py build` or `x.py test` are run for
+that toolchain/stage.
+
 ## Other `x.py` commands
 
 Here are a few other useful `x.py` commands. We'll cover some of them in detail
diff --git a/src/doc/rustc-dev-guide/src/tests/running.md b/src/doc/rustc-dev-guide/src/tests/running.md
index 2e1ce0a9104..c91a27bf2d1 100644
--- a/src/doc/rustc-dev-guide/src/tests/running.md
+++ b/src/doc/rustc-dev-guide/src/tests/running.md
@@ -200,8 +200,10 @@ however compare-modes must be manually run individually via the `--compare-mode`
 
 ## Running tests manually
 
-Sometimes it's easier and faster to just run the test by hand. Most tests are
-just `rs` files, so you can do something like
+Sometimes it's easier and faster to just run the test by hand.
+Most tests are just `rs` files, so after
+[creating a rustup toolchain](/building/how-to-build-and-run.html#creating-a-rustup-toolchain),
+you can do something like:
 
 ```bash
 rustc +stage1 src/test/ui/issue-1234.rs