diff options
| author | Joshua Nelson <jyn514@gmail.com> | 2021-04-22 09:22:30 -0400 |
|---|---|---|
| committer | Joshua Nelson <jyn514@gmail.com> | 2021-04-22 09:22:30 -0400 |
| commit | 1a46b26422e8fb2c89c23554f405d5dff2cb5917 (patch) | |
| tree | b64d40fb15ade919b465a376825415c8a45b07eb /compiler/rustc_session/src | |
| parent | e888a57da83fca78d6e64af0a347d06d9161affe (diff) | |
| download | rust-1a46b26422e8fb2c89c23554f405d5dff2cb5917.tar.gz rust-1a46b26422e8fb2c89c23554f405d5dff2cb5917.zip | |
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 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 b6b349e4a80..47de57e3c70 100644 --- a/compiler/rustc_session/src/config.rs +++ b/compiler/rustc_session/src/config.rs @@ -795,7 +795,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(); @@ -890,7 +890,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( |
