diff options
| author | Aaron Hill <aa1ronham@gmail.com> | 2019-01-13 22:39:24 -0500 |
|---|---|---|
| committer | Aaron Hill <aa1ronham@gmail.com> | 2019-02-01 09:43:56 -0500 |
| commit | d8fc6300525a71372300807f9ed76a37ae99649d (patch) | |
| tree | 75d73588911038364a88df4d0f27cd4f6859dc09 | |
| parent | bc2221f7b6778de779113f1b9021477cf313010b (diff) | |
Track extern_public command-line argument
| -rw-r--r-- | src/librustc/session/config.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/librustc/session/config.rs b/src/librustc/session/config.rs index 635ac6dcc48..e63336437cd 100644 --- a/src/librustc/session/config.rs +++ b/src/librustc/session/config.rs @@ -414,7 +414,7 @@ top_level_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 @@ impl Default for 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); |
