Skip to content

Commit 0f88106

Browse files
committed
Improve formatting
1 parent 87734b1 commit 0f88106

File tree

2 files changed

+1
-25
lines changed

2 files changed

+1
-25
lines changed

src/librustc/session/config.rs

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -443,10 +443,6 @@ top_level_options!(
443443
remap_path_prefix: Vec<(PathBuf, PathBuf)> [UNTRACKED],
444444

445445
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],
450446
}
451447
);
452448

@@ -649,7 +645,6 @@ impl Default for Options {
649645
cli_forced_thinlto_off: false,
650646
remap_path_prefix: Vec::new(),
651647
edition: DEFAULT_EDITION,
652-
//extern_private: ExternPrivates(BTreeMap::new())
653648
}
654649
}
655650
}
@@ -2331,23 +2326,6 @@ pub fn build_session_options_and_crate_config(
23312326
)
23322327
}
23332328

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-
23512329
// We start out with a Vec<(Option<String>, bool)>>,
23522330
// and later convert it into a BTreeSet<(Option<String>, bool)>
23532331
// This allows to modify entries in-place to set their correct
@@ -2369,7 +2347,7 @@ pub fn build_session_options_and_crate_config(
23692347
};
23702348

23712349

2372-
// Externsl crates start out public,
2350+
// Extern crates start out public,
23732351
// and become private if we later see
23742352
// an '--extern-private' key. They never
23752353
// go back to being public once we've seen
@@ -2449,7 +2427,6 @@ pub fn build_session_options_and_crate_config(
24492427
cli_forced_thinlto_off: disable_thinlto,
24502428
remap_path_prefix,
24512429
edition,
2452-
//extern_private: ExternPrivates(extern_private)
24532430
},
24542431
cfg,
24552432
)

src/librustc_metadata/cstore_impl.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,6 @@ impl cstore::CStore {
399399
r
400400
}
401401

402-
403402
pub fn crate_edition_untracked(&self, cnum: CrateNum) -> Edition {
404403
self.get_crate_data(cnum).root.edition
405404
}

0 commit comments

Comments
 (0)