Skip to content

Commit d8fc630

Browse files
committed
Track extern_public command-line argument
1 parent bc2221f commit d8fc630

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/librustc/session/config.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ top_level_options!(
414414

415415
// The list of crates to consider public for
416416
// checking leaked private dependency types in public interfaces
417-
extern_public: FxHashSet<String> [UNTRACKED],
417+
extern_public: Vec<String> [TRACKED],
418418
}
419419
);
420420

@@ -610,7 +610,7 @@ impl Default for Options {
610610
cli_forced_thinlto_off: false,
611611
remap_path_prefix: Vec::new(),
612612
edition: DEFAULT_EDITION,
613-
extern_public: FxHashSet::default()
613+
extern_public: vec![]
614614
}
615615
}
616616
}
@@ -1925,12 +1925,12 @@ pub fn build_session_options_and_crate_config(
19251925
)
19261926
}
19271927

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

19311931
// FIXME - come up with a better way of handling this
1932-
extern_public.insert("core".to_string());
1933-
extern_public.insert("std".to_string());
1932+
extern_public.push("core".to_string());
1933+
extern_public.push("std".to_string());
19341934

19351935
let (lint_opts, describe_lints, lint_cap) = get_cmd_lint_options(matches, error_format);
19361936

0 commit comments

Comments
 (0)