]> git.lizzy.rs Git - rust.git/commitdiff
Improve formatting
authorAaron Hill <aa1ronham@gmail.com>
Tue, 2 Apr 2019 20:06:43 +0000 (16:06 -0400)
committerAaron Hill <aa1ronham@gmail.com>
Sun, 14 Apr 2019 19:45:18 +0000 (15:45 -0400)
src/librustc/session/config.rs
src/librustc_metadata/cstore_impl.rs

index e07ef35c5d519d348ee77dd5df01eb8a0dc7219d..bf0e4a77777750294b1b5fa467509fce7812f77f 100644 (file)
@@ -443,10 +443,6 @@ pub struct Options {
         remap_path_prefix: Vec<(PathBuf, PathBuf)> [UNTRACKED],
 
         edition: Edition [TRACKED],
-
-        // The crates to consider private when
-        // checking leaked private dependency types in public interfaces
-        //extern_private: ExternPrivates [UNTRACKED],
     }
 );
 
@@ -649,7 +645,6 @@ fn default() -> Options {
             cli_forced_thinlto_off: false,
             remap_path_prefix: Vec::new(),
             edition: DEFAULT_EDITION,
-            //extern_private: ExternPrivates(BTreeMap::new())
         }
     }
 }
@@ -2331,23 +2326,6 @@ pub fn build_session_options_and_crate_config(
         )
     }
 
-    /*let mut extern_private: BTreeMap<_, BTreeSet<_>> = BTreeMap::new();
-
-    for arg in matches.opt_strs("extern-private").into_iter() {
-        let mut parts = arg.splitn(2, '=');
-        let name = parts.next().unwrap_or_else(||
-            early_error(error_format, "--extern-private value must not be empty"));
-        let location = parts.next().map(|s| s.to_string()).unwrap_or_else(||
-            early_error(error_format, "--extern-private value must include a location"));
-
-
-        extern_private
-            .entry(name.to_owned())
-            .or_default()
-            .insert(location);
-
-    }*/
-
     // We start out with a Vec<(Option<String>, bool)>>,
     // and later convert it into a BTreeSet<(Option<String>, bool)>
     // This allows to modify entries in-place to set their correct
@@ -2369,7 +2347,7 @@ pub fn build_session_options_and_crate_config(
         };
 
 
-        // Externsl crates start out public,
+        // Extern crates start out public,
         // and become private if we later see
         // an '--extern-private' key. They never
         // go back to being public once we've seen
@@ -2449,7 +2427,6 @@ pub fn build_session_options_and_crate_config(
             cli_forced_thinlto_off: disable_thinlto,
             remap_path_prefix,
             edition,
-            //extern_private: ExternPrivates(extern_private)
         },
         cfg,
     )
index 75671facf9446058851009af744b9f3fcb22d176..95fe9a70f750aedc824a30cec490c733d5820024 100644 (file)
@@ -399,7 +399,6 @@ pub fn dep_kind_untracked(&self, cnum: CrateNum) -> DepKind {
         r
     }
 
-
     pub fn crate_edition_untracked(&self, cnum: CrateNum) -> Edition {
         self.get_crate_data(cnum).root.edition
     }