Make two functions private
This commit is contained in:
parent
55ceed81fe
commit
7ba4110012
1 changed files with 2 additions and 2 deletions
|
@ -118,7 +118,7 @@ fn get_stack_size() -> Option<usize> {
|
||||||
/// Like a `thread::Builder::spawn` followed by a `join()`, but avoids the need
|
/// Like a `thread::Builder::spawn` followed by a `join()`, but avoids the need
|
||||||
/// for `'static` bounds.
|
/// for `'static` bounds.
|
||||||
#[cfg(not(parallel_compiler))]
|
#[cfg(not(parallel_compiler))]
|
||||||
pub fn scoped_thread<F: FnOnce() -> R + Send, R: Send>(cfg: thread::Builder, f: F) -> R {
|
fn scoped_thread<F: FnOnce() -> R + Send, R: Send>(cfg: thread::Builder, f: F) -> R {
|
||||||
// SAFETY: join() is called immediately, so any closure captures are still
|
// SAFETY: join() is called immediately, so any closure captures are still
|
||||||
// alive.
|
// alive.
|
||||||
match unsafe { cfg.spawn_unchecked(f) }.unwrap().join() {
|
match unsafe { cfg.spawn_unchecked(f) }.unwrap().join() {
|
||||||
|
@ -379,7 +379,7 @@ fn sysroot_candidates() -> Vec<PathBuf> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn get_codegen_sysroot(maybe_sysroot: &Option<PathBuf>, backend_name: &str) -> MakeBackendFn {
|
fn get_codegen_sysroot(maybe_sysroot: &Option<PathBuf>, backend_name: &str) -> MakeBackendFn {
|
||||||
// For now we only allow this function to be called once as it'll dlopen a
|
// For now we only allow this function to be called once as it'll dlopen a
|
||||||
// few things, which seems to work best if we only do that once. In
|
// few things, which seems to work best if we only do that once. In
|
||||||
// general this assertion never trips due to the once guard in `get_codegen_backend`,
|
// general this assertion never trips due to the once guard in `get_codegen_backend`,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue