@@ -428,10 +428,6 @@ top_level_options!(
428
428
remap_path_prefix: Vec <( PathBuf , PathBuf ) > [ UNTRACKED ] ,
429
429
430
430
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],
435
431
}
436
432
) ;
437
433
@@ -634,7 +630,6 @@ impl Default for Options {
634
630
cli_forced_thinlto_off : false ,
635
631
remap_path_prefix : Vec :: new ( ) ,
636
632
edition : DEFAULT_EDITION ,
637
- //extern_private: ExternPrivates(BTreeMap::new())
638
633
}
639
634
}
640
635
}
@@ -2304,23 +2299,6 @@ pub fn build_session_options_and_crate_config(
2304
2299
)
2305
2300
}
2306
2301
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
-
2324
2302
// We start out with a Vec<(Option<String>, bool)>>,
2325
2303
// and later convert it into a BTreeSet<(Option<String>, bool)>
2326
2304
// This allows to modify entries in-place to set their correct
@@ -2342,7 +2320,7 @@ pub fn build_session_options_and_crate_config(
2342
2320
} ;
2343
2321
2344
2322
2345
- // Externsl crates start out public,
2323
+ // Extern crates start out public,
2346
2324
// and become private if we later see
2347
2325
// an '--extern-private' key. They never
2348
2326
// go back to being public once we've seen
@@ -2422,7 +2400,6 @@ pub fn build_session_options_and_crate_config(
2422
2400
cli_forced_thinlto_off : disable_thinlto,
2423
2401
remap_path_prefix,
2424
2402
edition,
2425
- //extern_private: ExternPrivates(extern_private)
2426
2403
} ,
2427
2404
cfg,
2428
2405
)
0 commit comments