Skip to content

Commit b0b29ef

Browse files
authored
Rollup merge of rust-lang#40026 - nrc:analysis-manifest, r=alexcrichton
Add save-analysis data to nightly manifests. For use by RLS. r? @alexcrichton
2 parents a7a349a + 9ce8bb9 commit b0b29ef

File tree

1 file changed

+10
-0
lines changed
  • src/tools/build-manifest/src

1 file changed

+10
-0
lines changed

Diff for: src/tools/build-manifest/src/main.rs

+10
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,10 @@ impl Builder {
217217
self.package("rust-docs", &mut manifest.pkg, TARGETS);
218218
self.package("rust-src", &mut manifest.pkg, &["*"]);
219219

220+
if self.channel == "rust-nightly" {
221+
self.package("analysis", &mut manifest.pkg, TARGETS);
222+
}
223+
220224
let mut pkg = Package {
221225
version: self.cached_version("rust").to_string(),
222226
target: HashMap::new(),
@@ -266,6 +270,12 @@ impl Builder {
266270
target: target.to_string(),
267271
});
268272
}
273+
if self.channel == "nightly" {
274+
extensions.push(Component {
275+
pkg: "rust-analysis".to_string(),
276+
target: target.to_string(),
277+
});
278+
}
269279
}
270280
extensions.push(Component {
271281
pkg: "rust-src".to_string(),

0 commit comments

Comments
 (0)