Skip to content

Commit 1a46b26

Browse files
committed
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 uses them, including in-tree tools.
1 parent e888a57 commit 1a46b26

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
@@ -795,7 +795,7 @@ pub const fn default_lib_output() -> CrateType {
795795
CrateType::Rlib
796796
}
797797

798-
pub fn default_configuration(sess: &Session) -> CrateConfig {
798+
fn default_configuration(sess: &Session) -> CrateConfig {
799799
let end = &sess.target.endian;
800800
let arch = &sess.target.arch;
801801
let wordsz = sess.target.pointer_width.to_string();
@@ -890,7 +890,7 @@ pub fn build_configuration(sess: &Session, mut user_cfg: CrateConfig) -> CrateCo
890890
user_cfg
891891
}
892892

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

0 commit comments

Comments
 (0)