From 9ce8bb9f9d1d1513c091841fcc7feb5bd792fe02 Mon Sep 17 00:00:00 2001 From: Nick Cameron Date: Wed, 22 Feb 2017 15:33:34 +1300 Subject: [PATCH] Add save-analysis data to nightly manifests. For use by RLS. --- src/tools/build-manifest/src/main.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/tools/build-manifest/src/main.rs b/src/tools/build-manifest/src/main.rs index 991cd02d215..6d40dcacdba 100644 --- a/src/tools/build-manifest/src/main.rs +++ b/src/tools/build-manifest/src/main.rs @@ -215,6 +215,10 @@ impl Builder { self.package("rust-docs", &mut manifest.pkg, TARGETS); self.package("rust-src", &mut manifest.pkg, &["*"]); + if self.channel == "rust-nightly" { + self.package("analysis", &mut manifest.pkg, TARGETS); + } + let mut pkg = Package { version: self.cached_version("rust").to_string(), target: HashMap::new(), @@ -264,6 +268,12 @@ impl Builder { target: target.to_string(), }); } + if self.channel == "nightly" { + extensions.push(Component { + pkg: "rust-analysis".to_string(), + target: target.to_string(), + }); + } } extensions.push(Component { pkg: "rust-src".to_string(),