diff options
| author | Aaron Hill <aa1ronham@gmail.com> | 2019-01-13 20:35:14 -0500 |
|---|---|---|
| committer | Aaron Hill <aa1ronham@gmail.com> | 2019-02-01 09:43:56 -0500 |
| commit | 08c901f0155b10c55427991e9da6fce83b541f2c (patch) | |
| tree | bd1d7da80d3cd90ee0cf86cb8afcf608e96b0681 | |
| parent | 93d872dbc88412c2ef1c22be1f81961cae730ac2 (diff) | |
| download | rust-08c901f0155b10c55427991e9da6fce83b541f2c.tar.gz rust-08c901f0155b10c55427991e9da6fce83b541f2c.zip | |
Always treat 'std' and 'core' as public
| -rw-r--r-- | src/librustc/session/config.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/librustc/session/config.rs b/src/librustc/session/config.rs index 5c2aa882a06..16d3d332e40 100644 --- a/src/librustc/session/config.rs +++ b/src/librustc/session/config.rs @@ -1925,9 +1925,13 @@ pub fn build_session_options_and_crate_config( ) } - let extern_public: FxHashSet<String> = matches.opt_strs("extern-public"). + let mut extern_public: FxHashSet<String> = matches.opt_strs("extern-public"). iter().cloned().collect(); + // TODO - come up with a better way of handling this + extern_public.insert("core".to_string()); + extern_public.insert("std".to_string()); + let (lint_opts, describe_lints, lint_cap) = get_cmd_lint_options(matches, error_format); let mut debugging_opts = build_debugging_options(matches, error_format); |
