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 @@ -276,7 +276,7 @@ pub struct Config {
276
276
pub registry : Registry ,
277
277
}
278
278
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 {
280
280
crate :: callbacks:: setup_callbacks ( ) ;
281
281
282
282
let registry = & config. registry ;
Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ fn get_stack_size() -> Option<usize> {
133
133
}
134
134
135
135
#[ 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 > (
137
137
edition : Edition ,
138
138
_threads : usize ,
139
139
f : F ,
@@ -171,7 +171,7 @@ unsafe fn handle_deadlock() {
171
171
}
172
172
173
173
#[ 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 > (
175
175
edition : Edition ,
176
176
threads : usize ,
177
177
f : F ,
You can’t perform that action at this time.
0 commit comments