Skip to content

Commit 5134a5f

Browse files
committed
Remove save-analysis-api references from tests and rustbuild
1 parent ad8ecc2 commit 5134a5f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/bootstrap/bin/rustc.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,10 @@ fn main() {
185185

186186
// Emit save-analysis info.
187187
if env::var("RUSTC_SAVE_ANALYSIS") == Ok("api".to_string()) {
188-
cmd.arg("-Zsave-analysis-api");
188+
cmd.arg("-Zsave-analysis");
189+
cmd.env("RUST_SAVE_ANALYSIS_CONFIG",
190+
"{\"output_file\": null,\"full_docs\": false,\"pub_only\": true,\
191+
\"signatures\": false,\"borrow_data\": false}");
189192
}
190193

191194
// Dealing with rpath here is a little special, so let's go into some

src/test/run-make/save-analysis/Makefile

-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,3 @@ krate2: krate2.rs
44
$(RUSTC) $<
55
code: foo.rs krate2
66
$(RUSTC) foo.rs -Zsave-analysis
7-
$(RUSTC) foo.rs -Zsave-analysis-api

0 commit comments

Comments
 (0)