Skip to content

Commit 369faae

Browse files
committed
Cleanup unecessary code
1 parent 541d315 commit 369faae

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed

src/librustc/session/config.rs

-10
Original file line numberDiff line numberDiff line change
@@ -1653,13 +1653,6 @@ pub fn rustc_short_optgroups() -> Vec<RustcOptGroup> {
16531653
for the compiler to emit",
16541654
"[bin|lib|rlib|dylib|cdylib|staticlib|proc-macro]",
16551655
),
1656-
opt::multi_s(
1657-
"",
1658-
"extern-public",
1659-
"Comma separated list of crates to consider 'public'
1660-
for linting purposes",
1661-
"CRATES",
1662-
),
16631656
opt::opt_s(
16641657
"",
16651658
"crate-name",
@@ -1942,9 +1935,6 @@ pub fn build_session_options_and_crate_config(
19421935
);
19431936
}
19441937

1945-
1946-
1947-
19481938
let mut output_types = BTreeMap::new();
19491939
if !debugging_opts.parse_only {
19501940
for list in matches.opt_strs("emit") {

src/librustc_privacy/lib.rs

-5
Original file line numberDiff line numberDiff line change
@@ -1538,14 +1538,9 @@ impl<'a, 'tcx: 'a> SearchInterfaceForPrivateItemsVisitor<'a, 'tcx> {
15381538
/// 1. It's contained within a public type
15391539
/// 2. It comes from a private crate
15401540
fn leaks_private_dep(&self, item_id: DefId) -> bool {
1541-
// Don't do any leak checking if no private crates were specified
1542-
if self.private_crates.is_empty() {
1543-
return false
1544-
}
15451541
let ret = self.required_visibility == ty::Visibility::Public &&
15461542
self.private_crates.contains(&item_id.krate);
15471543

1548-
15491544
debug!("leaks_private_dep(item_id={:?})={}", item_id, ret);
15501545
return ret;
15511546
}

0 commit comments

Comments
 (0)