Skip to content

Commit dcc194e

Browse files
committed
Reduce visibility of some functions.
1 parent 134e9d3 commit dcc194e

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
@@ -275,7 +275,7 @@ pub struct Config {
275275
pub registry: Registry,
276276
}
277277

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

281281
let registry = &config.registry;

compiler/rustc_interface/src/util.rs

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

133133
#[cfg(not(parallel_compiler))]
134-
pub fn run_in_thread_pool_with_globals<F: FnOnce() -> R + Send, R: Send>(
134+
pub(crate) fn run_in_thread_pool_with_globals<F: FnOnce() -> R + Send, R: Send>(
135135
edition: Edition,
136136
_threads: usize,
137137
f: F,
@@ -169,7 +169,7 @@ unsafe fn handle_deadlock() {
169169
}
170170

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

0 commit comments

Comments
 (0)