Skip to content

Commit 43ce2c2

Browse files
committed
Improve contributing instructions
- Fix incorrect comment - Recommend `x.py setup` over manually editing config.toml - Link to rustc-dev-guide
1 parent 85a9a43 commit 43ce2c2

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

CONTRIBUTING.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,9 @@ The setup for a local rustc works as follows:
144144
# Clone the rust-lang/rust repo.
145145
git clone https://github.com/rust-lang/rust rustc
146146
cd rustc
147-
cp config.toml.example config.toml
148-
# Now edit `config.toml` and set `debug-assertions = true`.
147+
# Create a config.toml with defaults for working on miri.
148+
./x.py setup compiler
149+
# Now edit `config.toml` and under `[rust]` set `debug-assertions = true`.
149150

150151
# Build a stage 1 rustc, and build the rustc libraries with that rustc.
151152
# This step can take 30 minutes or more.
@@ -158,5 +159,8 @@ rustup toolchain link stage1 build/x86_64-unknown-linux-gnu/stage1
158159
rustup override set stage1
159160
```
160161

162+
For more information about building and configuring a local compiler,
163+
see <https://rustc-dev-guide.rust-lang.org/building/how-to-build-and-run.html>.
164+
161165
With this, you should now have a working development setup! See
162166
[above](#building-and-testing-miri) for how to proceed working on Miri.

0 commit comments

Comments
 (0)