Skip to content

Commit 570eed7

Browse files
authored
Rollup merge of rust-lang#84436 - jyn514:private, r=petrochenkov
Make a few functions private These were made public in 3105bcf. This is so long ago I doubt anyone remembers why they're public. No one outside rustc_session uses them, including in-tree tools.
2 parents b454469 + 1a46b26 commit 570eed7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/rustc_session/src/config.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -797,7 +797,7 @@ pub const fn default_lib_output() -> CrateType {
797797
CrateType::Rlib
798798
}
799799

800-
pub fn default_configuration(sess: &Session) -> CrateConfig {
800+
fn default_configuration(sess: &Session) -> CrateConfig {
801801
let end = &sess.target.endian;
802802
let arch = &sess.target.arch;
803803
let wordsz = sess.target.pointer_width.to_string();
@@ -892,7 +892,7 @@ pub fn build_configuration(sess: &Session, mut user_cfg: CrateConfig) -> CrateCo
892892
user_cfg
893893
}
894894

895-
pub fn build_target_config(opts: &Options, target_override: Option<Target>) -> Target {
895+
pub(super) fn build_target_config(opts: &Options, target_override: Option<Target>) -> Target {
896896
let target_result = target_override.map_or_else(|| Target::search(&opts.target_triple), Ok);
897897
let target = target_result.unwrap_or_else(|e| {
898898
early_error(

0 commit comments

Comments
 (0)