]> git.lizzy.rs Git - rust.git/commitdiff
Track extern_public command-line argument
authorAaron Hill <aa1ronham@gmail.com>
Mon, 14 Jan 2019 03:39:24 +0000 (22:39 -0500)
committerAaron Hill <aa1ronham@gmail.com>
Fri, 1 Feb 2019 14:43:56 +0000 (09:43 -0500)
src/librustc/session/config.rs

index 635ac6dcc48f8e646c0605ded61733bc1117277c..e63336437cdb02d33ddee6b5f7de313389a8b5a7 100644 (file)
@@ -414,7 +414,7 @@ pub struct Options {
 
         // The list of crates to consider public for
         // checking leaked private dependency types in public interfaces
-        extern_public: FxHashSet<String> [UNTRACKED],
+        extern_public: Vec<String> [TRACKED],
     }
 );
 
@@ -610,7 +610,7 @@ fn default() -> Options {
             cli_forced_thinlto_off: false,
             remap_path_prefix: Vec::new(),
             edition: DEFAULT_EDITION,
-            extern_public: FxHashSet::default()
+            extern_public: vec![]
         }
     }
 }
@@ -1925,12 +1925,12 @@ pub fn build_session_options_and_crate_config(
         )
     }
 
-    let mut extern_public: FxHashSet<String> = matches.opt_strs("extern-public").
+    let mut extern_public: Vec<String> = matches.opt_strs("extern-public").
         iter().cloned().collect();
 
     // FIXME - come up with a better way of handling this
-    extern_public.insert("core".to_string());
-    extern_public.insert("std".to_string());
+    extern_public.push("core".to_string());
+    extern_public.push("std".to_string());
 
     let (lint_opts, describe_lints, lint_cap) = get_cmd_lint_options(matches, error_format);