Reduce visibility of some functions.
This commit is contained in:
parent
134e9d36ce
commit
dcc194e4bf
2 changed files with 3 additions and 3 deletions
|
@ -275,7 +275,7 @@ pub struct Config {
|
||||||
pub registry: Registry,
|
pub registry: Registry,
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn create_compiler_and_run<R>(config: Config, f: impl FnOnce(&Compiler) -> R) -> R {
|
fn create_compiler_and_run<R>(config: Config, f: impl FnOnce(&Compiler) -> R) -> R {
|
||||||
crate::callbacks::setup_callbacks();
|
crate::callbacks::setup_callbacks();
|
||||||
|
|
||||||
let registry = &config.registry;
|
let registry = &config.registry;
|
||||||
|
|
|
@ -131,7 +131,7 @@ fn get_stack_size() -> Option<usize> {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(not(parallel_compiler))]
|
#[cfg(not(parallel_compiler))]
|
||||||
pub fn run_in_thread_pool_with_globals<F: FnOnce() -> R + Send, R: Send>(
|
pub(crate) fn run_in_thread_pool_with_globals<F: FnOnce() -> R + Send, R: Send>(
|
||||||
edition: Edition,
|
edition: Edition,
|
||||||
_threads: usize,
|
_threads: usize,
|
||||||
f: F,
|
f: F,
|
||||||
|
@ -169,7 +169,7 @@ unsafe fn handle_deadlock() {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(parallel_compiler)]
|
#[cfg(parallel_compiler)]
|
||||||
pub fn run_in_thread_pool_with_globals<F: FnOnce() -> R + Send, R: Send>(
|
pub(crate) fn run_in_thread_pool_with_globals<F: FnOnce() -> R + Send, R: Send>(
|
||||||
edition: Edition,
|
edition: Edition,
|
||||||
threads: usize,
|
threads: usize,
|
||||||
f: F,
|
f: F,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue