Always treat 'std' and 'core' as public

This commit is contained in:
Aaron Hill 2019-01-13 20:35:14 -05:00
parent 93d872dbc8
commit 08c901f015
No known key found for this signature in database
GPG Key ID: B4087E510E98B164

View File

@ -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);