Make a few functions private
These were made public in 3105bcfdc1
. This
is so long ago I doubt anyone remembers why they're public. No one uses
them, including in-tree tools.
This commit is contained in:
parent
e888a57da8
commit
1a46b26422
1 changed files with 2 additions and 2 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Reference in a new issue