diff options
| author | Yuki Okushi <jtitor@2k36.org> | 2021-04-24 12:17:04 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-24 12:17:04 +0900 |
| commit | 570eed71ef123557ca8c4c527c404f1331282ef1 (patch) | |
| tree | a629ed62791f8979279e3c556228565dd958e907 /compiler/rustc_session/src | |
| parent | b4544698d39d9e6995a32b41b33f327b9b0f3f82 (diff) | |
| parent | 1a46b26422e8fb2c89c23554f405d5dff2cb5917 (diff) | |
| download | rust-570eed71ef123557ca8c4c527c404f1331282ef1.tar.gz rust-570eed71ef123557ca8c4c527c404f1331282ef1.zip | |
Rollup merge of #84436 - jyn514:private, r=petrochenkov
Make a few functions private These were made public in 3105bcfdc11030abf9855af7a693cbf904460813. This is so long ago I doubt anyone remembers why they're public. No one outside rustc_session uses them, including in-tree tools.
Diffstat (limited to 'compiler/rustc_session/src')
| -rw-r--r-- | compiler/rustc_session/src/config.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_session/src/config.rs b/compiler/rustc_session/src/config.rs index b683626bbd6..52a6e4ff924 100644 --- a/compiler/rustc_session/src/config.rs +++ b/compiler/rustc_session/src/config.rs @@ -797,7 +797,7 @@ pub const fn default_lib_output() -> CrateType { CrateType::Rlib } -pub fn default_configuration(sess: &Session) -> CrateConfig { +fn default_configuration(sess: &Session) -> CrateConfig { let end = &sess.target.endian; let arch = &sess.target.arch; let wordsz = sess.target.pointer_width.to_string(); @@ -892,7 +892,7 @@ pub fn build_configuration(sess: &Session, mut user_cfg: CrateConfig) -> CrateCo user_cfg } -pub fn build_target_config(opts: &Options, target_override: Option<Target>) -> Target { +pub(super) fn build_target_config(opts: &Options, target_override: Option<Target>) -> Target { let target_result = target_override.map_or_else(|| Target::search(&opts.target_triple), Ok); let target = target_result.unwrap_or_else(|e| { early_error( |
