Skip to content

Commit 45486cc

Browse files
committed
Tidy fixes
1 parent fe15f71 commit 45486cc

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/librustc/session/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1917,7 +1917,7 @@ pub fn build_session_options_and_crate_config(
19171917
let crate_types = parse_crate_types_from_list(unparsed_crate_types)
19181918
.unwrap_or_else(|e| early_error(error_format, &e[..]));
19191919

1920-
1920+
19211921
let (lint_opts, describe_lints, lint_cap) = get_cmd_lint_options(matches, error_format);
19221922

19231923
let mut debugging_opts = build_debugging_options(matches, error_format);

src/librustc_privacy/lib.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1762,9 +1762,10 @@ fn privacy_access_levels<'tcx>(
17621762
queries::check_mod_privacy::ensure(tcx, tcx.hir().local_def_id(module));
17631763
}
17641764

1765-
let public_crates: Option<FxHashSet<CrateNum>> = tcx.sess.opts.extern_public.as_ref().map(|s| s.iter().flat_map(|c| {
1766-
tcx.crates().iter().find(|&&krate| &tcx.crate_name(krate) == c).cloned()
1767-
}).collect());
1765+
let public_crates: Option<FxHashSet<CrateNum>> = tcx.sess.opts.extern_public.as_ref()
1766+
.map(|s| s.iter().flat_map(|c| {
1767+
tcx.crates().iter().find(|&&krate| &tcx.crate_name(krate) == c).cloned()
1768+
}).collect());
17681769

17691770

17701771
// Build up a set of all exported items in the AST. This is a set of all

0 commit comments

Comments
 (0)