Skip to content

Commit bfcff79

Browse files
committed
Reduce exposure of cfg parsers.
1 parent 678e01a commit bfcff79

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/rustc_interface/src/interface.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ impl Compiler {
6464
}
6565

6666
/// Converts strings provided as `--cfg [cfgspec]` into a `Cfg`.
67-
pub fn parse_cfg(handler: &EarlyErrorHandler, cfgs: Vec<String>) -> Cfg<String> {
67+
pub(crate) fn parse_cfg(handler: &EarlyErrorHandler, cfgs: Vec<String>) -> Cfg<String> {
6868
cfgs.into_iter()
6969
.map(|s| {
7070
let sess = ParseSess::with_silent_emitter(Some(format!(
@@ -122,7 +122,7 @@ pub fn parse_cfg(handler: &EarlyErrorHandler, cfgs: Vec<String>) -> Cfg<String>
122122
}
123123

124124
/// Converts strings provided as `--check-cfg [specs]` into a `CheckCfg`.
125-
pub fn parse_check_cfg(handler: &EarlyErrorHandler, specs: Vec<String>) -> CheckCfg<String> {
125+
pub(crate) fn parse_check_cfg(handler: &EarlyErrorHandler, specs: Vec<String>) -> CheckCfg<String> {
126126
// If any --check-cfg is passed then exhaustive_values and exhaustive_names
127127
// are enabled by default.
128128
let exhaustive_names = !specs.is_empty();

0 commit comments

Comments
 (0)