Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

Commit 00b367b

Browse files
authored
Merge pull request #530 from rust-lang-nursery/Xanewok-patch-1
Mention RUSTC_SAVE_ANALYSIS in contributing.md
2 parents 75f9719 + c2345e3 commit 00b367b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

contributing.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,11 +173,10 @@ Everything should now work! You may need to restart the RLS.
173173

174174
### Build it yourself
175175

176-
When you build Rust, add `-Zsave-analysis-api` to your stage 2 flags, e.g., by
177-
setting the environment variable:
176+
When you build Rust, run it with a `RUSTC_SAVE_ANALYSIS=api` environment variable, e.g. with:
178177

179178
```
180-
export RUSTFLAGS_STAGE2='-Zsave-analysis-api'
179+
RUSTC_SAVE_ANALYSIS=api ./x.py build
181180
```
182181

183182
When the build has finished, you should have a bunch of JSON data in a directory like

0 commit comments

Comments
 (0)