Skip to content

Commit d305254

Browse files
committed
Add rustc-dev to nightly default and complete profiles
1 parent 2dcf2f0 commit d305254

File tree

1 file changed

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

1 file changed

+15
-0
lines changed

src/tools/build-manifest/src/main.rs

+15
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,13 @@ impl Builder {
427427
"rls-preview", "rust-src", "llvm-tools-preview",
428428
"lldb-preview", "rust-analysis", "miri-preview"
429429
]);
430+
431+
// The compiler libraries are not stable for end users, but `rustc-dev` was only recently
432+
// split out of `rust-std`. We'll include it by default as a transition for nightly users.
433+
if self.rust_release == "nightly" {
434+
self.extend_profile("default", &mut manifest.profiles, &["rustc-dev"]);
435+
self.extend_profile("complete", &mut manifest.profiles, &["rustc-dev"]);
436+
}
430437
}
431438

432439
fn add_renames_to(&self, manifest: &mut Manifest) {
@@ -549,6 +556,14 @@ impl Builder {
549556
dst.insert(profile_name.to_owned(), pkgs.iter().map(|s| (*s).to_owned()).collect());
550557
}
551558

559+
fn extend_profile(&mut self,
560+
profile_name: &str,
561+
dst: &mut BTreeMap<String, Vec<String>>,
562+
pkgs: &[&str]) {
563+
dst.get_mut(profile_name).expect("existing profile")
564+
.extend(pkgs.iter().map(|s| (*s).to_owned()));
565+
}
566+
552567
fn package(&mut self,
553568
pkgname: &str,
554569
dst: &mut BTreeMap<String, Package>,

0 commit comments

Comments
 (0)