Skip to content

Commit 9175746

Browse files
guswynnJoshua Nelson
authored and
Joshua Nelson
committed
add suggested workflow to setup nightly rustup for rustc
1 parent f787039 commit 9175746

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/building/suggested.md

+16
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,22 @@ the problem. A nice side-effect of this style is that you are left
6767
with a fairly fine-grained set of commits at the end, all of which
6868
build and pass tests. This often helps reviewing.
6969

70+
## Configuring `rustup` to use nightly
71+
72+
Some parts of the bootstrap process uses pinned, nightly versions of tools like
73+
rustfmt. To make things like `cargo fmt` work correctly in your repo, run
74+
75+
```console
76+
cd <path to rustc repo>
77+
rustup override set nightly
78+
```
79+
80+
after [installing a nightly toolchain] with `rustup`. Don't forget to do this for all
81+
directories you have [setup a worktree for].
82+
83+
[installing a nightly toolchain]: https://rust-lang.github.io/rustup/concepts/channels.html?highlight=nightl#working-with-nightly-rust
84+
[setup a worktree for]: ./suggested.html#working-on-multiple-branches-at-the-same-time
85+
7086
## Incremental builds with `--keep-stage`.
7187

7288
Sometimes just checking

0 commit comments

Comments
 (0)