From c2345e316618efab294e11c49d688951e9049423 Mon Sep 17 00:00:00 2001 From: Igor Matuszewski <Xanewok@gmail.com> Date: Mon, 23 Oct 2017 10:49:33 +0200 Subject: [PATCH] Mention RUSTC_SAVE_ANALYSIS in contributing.md The flag was changed in https://github.com/rust-lang/rust/pull/43327. r? @nrc --- contributing.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/contributing.md b/contributing.md index a4356bdefee..089fb1f5fd6 100644 --- a/contributing.md +++ b/contributing.md @@ -173,11 +173,10 @@ Everything should now work! You may need to restart the RLS. ### Build it yourself -When you build Rust, add `-Zsave-analysis-api` to your stage 2 flags, e.g., by -setting the environment variable: +When you build Rust, run it with a `RUSTC_SAVE_ANALYSIS=api` environment variable, e.g. with: ``` -export RUSTFLAGS_STAGE2='-Zsave-analysis-api' +RUSTC_SAVE_ANALYSIS=api ./x.py build ``` When the build has finished, you should have a bunch of JSON data in a directory like