File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
src/tools/build-manifest/src Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff 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 > ,
You can’t perform that action at this time.
0 commit comments