Skip to content

Commit 08c901f

Browse files
committed
Always treat 'std' and 'core' as public
1 parent 93d872d commit 08c901f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/librustc/session/config.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1925,9 +1925,13 @@ pub fn build_session_options_and_crate_config(
19251925
)
19261926
}
19271927

1928-
let extern_public: FxHashSet<String> = matches.opt_strs("extern-public").
1928+
let mut extern_public: FxHashSet<String> = matches.opt_strs("extern-public").
19291929
iter().cloned().collect();
19301930

1931+
// TODO - come up with a better way of handling this
1932+
extern_public.insert("core".to_string());
1933+
extern_public.insert("std".to_string());
1934+
19311935
let (lint_opts, describe_lints, lint_cap) = get_cmd_lint_options(matches, error_format);
19321936

19331937
let mut debugging_opts = build_debugging_options(matches, error_format);

0 commit comments

Comments
 (0)