@@ -443,10 +443,6 @@ top_level_options!(
443
443
remap_path_prefix: Vec <( PathBuf , PathBuf ) > [ UNTRACKED ] ,
444
444
445
445
edition: Edition [ TRACKED ] ,
446
-
447
- // The crates to consider private when
448
- // checking leaked private dependency types in public interfaces
449
- //extern_private: ExternPrivates [UNTRACKED],
450
446
}
451
447
) ;
452
448
@@ -649,7 +645,6 @@ impl Default for Options {
649
645
cli_forced_thinlto_off : false ,
650
646
remap_path_prefix : Vec :: new ( ) ,
651
647
edition : DEFAULT_EDITION ,
652
- //extern_private: ExternPrivates(BTreeMap::new())
653
648
}
654
649
}
655
650
}
@@ -2331,23 +2326,6 @@ pub fn build_session_options_and_crate_config(
2331
2326
)
2332
2327
}
2333
2328
2334
- /*let mut extern_private: BTreeMap<_, BTreeSet<_>> = BTreeMap::new();
2335
-
2336
- for arg in matches.opt_strs("extern-private").into_iter() {
2337
- let mut parts = arg.splitn(2, '=');
2338
- let name = parts.next().unwrap_or_else(||
2339
- early_error(error_format, "--extern-private value must not be empty"));
2340
- let location = parts.next().map(|s| s.to_string()).unwrap_or_else(||
2341
- early_error(error_format, "--extern-private value must include a location"));
2342
-
2343
-
2344
- extern_private
2345
- .entry(name.to_owned())
2346
- .or_default()
2347
- .insert(location);
2348
-
2349
- }*/
2350
-
2351
2329
// We start out with a Vec<(Option<String>, bool)>>,
2352
2330
// and later convert it into a BTreeSet<(Option<String>, bool)>
2353
2331
// This allows to modify entries in-place to set their correct
@@ -2369,7 +2347,7 @@ pub fn build_session_options_and_crate_config(
2369
2347
} ;
2370
2348
2371
2349
2372
- // Externsl crates start out public,
2350
+ // Extern crates start out public,
2373
2351
// and become private if we later see
2374
2352
// an '--extern-private' key. They never
2375
2353
// go back to being public once we've seen
@@ -2449,7 +2427,6 @@ pub fn build_session_options_and_crate_config(
2449
2427
cli_forced_thinlto_off : disable_thinlto,
2450
2428
remap_path_prefix,
2451
2429
edition,
2452
- //extern_private: ExternPrivates(extern_private)
2453
2430
} ,
2454
2431
cfg,
2455
2432
)
0 commit comments