@@ -1364,6 +1364,7 @@ impl Default for Options {
13641364            cli_forced_local_thinlto_off :  false , 
13651365            remap_path_prefix :  Vec :: new ( ) , 
13661366            real_rust_source_base_dir :  None , 
1367+             real_rustc_dev_source_base_dir :  None , 
13671368            edition :  DEFAULT_EDITION , 
13681369            json_artifact_notifications :  false , 
13691370            json_unused_externs :  JsonUnusedExterns :: No , 
@@ -2713,6 +2714,10 @@ pub fn build_session_options(early_dcx: &mut EarlyDiagCtxt, matches: &getopts::M
27132714        // This is the location used by the `rust-src` `rustup` component. 
27142715        real_source_base_dir ( "lib/rustlib/src/rust" ,  "library/std/src/lib.rs" ) ; 
27152716
2717+     let  real_rustc_dev_source_base_dir =
2718+         // This is the location used by the `rustc-dev` `rustup` component. 
2719+         real_source_base_dir ( "lib/rustlib/rustc-src/rust" ,  "compiler/rustc/src/main.rs" ) ; 
2720+ 
27162721    let  mut  search_paths = vec ! [ ] ; 
27172722    for  s in  & matches. opt_strs ( "L" )  { 
27182723        search_paths. push ( SearchPath :: from_cli_opt ( 
@@ -2766,6 +2771,7 @@ pub fn build_session_options(early_dcx: &mut EarlyDiagCtxt, matches: &getopts::M
27662771        cli_forced_local_thinlto_off :  disable_local_thinlto, 
27672772        remap_path_prefix, 
27682773        real_rust_source_base_dir, 
2774+         real_rustc_dev_source_base_dir, 
27692775        edition, 
27702776        json_artifact_notifications, 
27712777        json_unused_externs, 
0 commit comments