@@ -396,7 +396,6 @@ top_level_options!(
396
396
search_paths: Vec <SearchPath > [ UNTRACKED ] ,
397
397
libs: Vec <( String , Option <String >, Option <cstore:: NativeLibraryKind >) > [ TRACKED ] ,
398
398
maybe_sysroot: Option <PathBuf > [ UNTRACKED ] ,
399
- maybe_sysroot_remapped: Option <PathBuf > [ TRACKED ] ,
400
399
401
400
target_triple: TargetTriple [ TRACKED ] ,
402
401
@@ -611,7 +610,6 @@ impl Default for Options {
611
610
output_types : OutputTypes ( BTreeMap :: new ( ) ) ,
612
611
search_paths : vec ! [ ] ,
613
612
maybe_sysroot : None ,
614
- maybe_sysroot_remapped : None ,
615
613
target_triple : TargetTriple :: from_triple ( host_triple ( ) ) ,
616
614
test : false ,
617
615
incremental : None ,
@@ -2455,7 +2453,7 @@ pub fn build_session_options_and_crate_config(
2455
2453
2456
2454
let crate_name = matches. opt_str ( "crate-name" ) ;
2457
2455
2458
- let remap_path_prefix: Vec < ( PathBuf , PathBuf ) > = matches
2456
+ let remap_path_prefix = matches
2459
2457
. opt_strs ( "remap-path-prefix" )
2460
2458
. into_iter ( )
2461
2459
. map ( |remap| {
@@ -2472,10 +2470,6 @@ pub fn build_session_options_and_crate_config(
2472
2470
} )
2473
2471
. collect ( ) ;
2474
2472
2475
- let sysroot_remapped_opt = sysroot_opt
2476
- . clone ( )
2477
- . map ( |sysroot| FilePathMapping :: new ( remap_path_prefix. clone ( ) ) . map_prefix ( sysroot) . 0 ) ;
2478
-
2479
2473
(
2480
2474
Options {
2481
2475
crate_types,
@@ -2487,7 +2481,6 @@ pub fn build_session_options_and_crate_config(
2487
2481
output_types : OutputTypes ( output_types) ,
2488
2482
search_paths,
2489
2483
maybe_sysroot : sysroot_opt,
2490
- maybe_sysroot_remapped : sysroot_remapped_opt,
2491
2484
target_triple,
2492
2485
test,
2493
2486
incremental,
0 commit comments