@@ -428,10 +428,6 @@ top_level_options!(
428428 remap_path_prefix: Vec <( PathBuf , PathBuf ) > [ UNTRACKED ] ,
429429
430430 edition: Edition [ TRACKED ] ,
431-
432- // The crates to consider private when
433- // checking leaked private dependency types in public interfaces
434- //extern_private: ExternPrivates [UNTRACKED],
435431 }
436432) ;
437433
@@ -634,7 +630,6 @@ impl Default for Options {
634630 cli_forced_thinlto_off : false ,
635631 remap_path_prefix : Vec :: new ( ) ,
636632 edition : DEFAULT_EDITION ,
637- //extern_private: ExternPrivates(BTreeMap::new())
638633 }
639634 }
640635}
@@ -2304,23 +2299,6 @@ pub fn build_session_options_and_crate_config(
23042299 )
23052300 }
23062301
2307- /*let mut extern_private: BTreeMap<_, BTreeSet<_>> = BTreeMap::new();
2308-
2309- for arg in matches.opt_strs("extern-private").into_iter() {
2310- let mut parts = arg.splitn(2, '=');
2311- let name = parts.next().unwrap_or_else(||
2312- early_error(error_format, "--extern-private value must not be empty"));
2313- let location = parts.next().map(|s| s.to_string()).unwrap_or_else(||
2314- early_error(error_format, "--extern-private value must include a location"));
2315-
2316-
2317- extern_private
2318- .entry(name.to_owned())
2319- .or_default()
2320- .insert(location);
2321-
2322- }*/
2323-
23242302 // We start out with a Vec<(Option<String>, bool)>>,
23252303 // and later convert it into a BTreeSet<(Option<String>, bool)>
23262304 // This allows to modify entries in-place to set their correct
@@ -2342,7 +2320,7 @@ pub fn build_session_options_and_crate_config(
23422320 } ;
23432321
23442322
2345- // Externsl crates start out public,
2323+ // Extern crates start out public,
23462324 // and become private if we later see
23472325 // an '--extern-private' key. They never
23482326 // go back to being public once we've seen
@@ -2422,7 +2400,6 @@ pub fn build_session_options_and_crate_config(
24222400 cli_forced_thinlto_off : disable_thinlto,
24232401 remap_path_prefix,
24242402 edition,
2425- //extern_private: ExternPrivates(extern_private)
24262403 } ,
24272404 cfg,
24282405 )
0 commit comments