File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
compiler/rustc_interface/src Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -275,7 +275,7 @@ pub struct Config {
275
275
pub registry : Registry ,
276
276
}
277
277
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 {
279
279
crate :: callbacks:: setup_callbacks ( ) ;
280
280
281
281
let registry = & config. registry ;
Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ fn get_stack_size() -> Option<usize> {
131
131
}
132
132
133
133
#[ 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 > (
135
135
edition : Edition ,
136
136
_threads : usize ,
137
137
f : F ,
@@ -169,7 +169,7 @@ unsafe fn handle_deadlock() {
169
169
}
170
170
171
171
#[ 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 > (
173
173
edition : Edition ,
174
174
threads : usize ,
175
175
f : F ,
You can’t perform that action at this time.
0 commit comments