]> git.lizzy.rs Git - rust.git/commitdiff
Tidy fixes
authorAaron Hill <aa1ronham@gmail.com>
Tue, 29 Jan 2019 21:16:57 +0000 (16:16 -0500)
committerAaron Hill <aa1ronham@gmail.com>
Fri, 1 Feb 2019 14:43:57 +0000 (09:43 -0500)
src/librustc/session/config.rs
src/librustc_privacy/lib.rs

index 132a5a2a62bc282097d0ceb6eaf826586fad534c..8e6a48f9d56bc8f527a426e720a66b15ac49f804 100644 (file)
@@ -1917,7 +1917,7 @@ pub fn build_session_options_and_crate_config(
     let crate_types = parse_crate_types_from_list(unparsed_crate_types)
         .unwrap_or_else(|e| early_error(error_format, &e[..]));
 
-    
+
     let (lint_opts, describe_lints, lint_cap) = get_cmd_lint_options(matches, error_format);
 
     let mut debugging_opts = build_debugging_options(matches, error_format);
index f4f09db1087f486eab46bd3849773bba9a429c21..4084e0495db5bd16d60aff5a96d301193071197a 100644 (file)
@@ -1762,9 +1762,10 @@ fn privacy_access_levels<'tcx>(
         queries::check_mod_privacy::ensure(tcx, tcx.hir().local_def_id(module));
     }
 
-    let public_crates: Option<FxHashSet<CrateNum>> = tcx.sess.opts.extern_public.as_ref().map(|s| s.iter().flat_map(|c| {
-        tcx.crates().iter().find(|&&krate| &tcx.crate_name(krate) == c).cloned()
-    }).collect());
+    let public_crates: Option<FxHashSet<CrateNum>> = tcx.sess.opts.extern_public.as_ref()
+        .map(|s| s.iter().flat_map(|c| {
+            tcx.crates().iter().find(|&&krate| &tcx.crate_name(krate) == c).cloned()
+        }).collect());
 
 
     // Build up a set of all exported items in the AST. This is a set of all