Skip to content

Commit 226387a

Browse files
committed
Reduce visibility of some functions.
1 parent d156a90 commit 226387a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

compiler/rustc_interface/src/interface.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ pub struct Config {
276276
pub registry: Registry,
277277
}
278278

279-
pub fn create_compiler_and_run<R>(config: Config, f: impl FnOnce(&Compiler) -> R) -> R {
279+
fn create_compiler_and_run<R>(config: Config, f: impl FnOnce(&Compiler) -> R) -> R {
280280
crate::callbacks::setup_callbacks();
281281

282282
let registry = &config.registry;

compiler/rustc_interface/src/util.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ fn get_stack_size() -> Option<usize> {
133133
}
134134

135135
#[cfg(not(parallel_compiler))]
136-
pub fn run_in_thread_pool_with_globals<F: FnOnce() -> R + Send, R: Send>(
136+
pub(crate) fn run_in_thread_pool_with_globals<F: FnOnce() -> R + Send, R: Send>(
137137
edition: Edition,
138138
_threads: usize,
139139
f: F,
@@ -171,7 +171,7 @@ unsafe fn handle_deadlock() {
171171
}
172172

173173
#[cfg(parallel_compiler)]
174-
pub fn run_in_thread_pool_with_globals<F: FnOnce() -> R + Send, R: Send>(
174+
pub(crate) fn run_in_thread_pool_with_globals<F: FnOnce() -> R + Send, R: Send>(
175175
edition: Edition,
176176
threads: usize,
177177
f: F,

0 commit comments

Comments
 (0)