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 {
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 ;
Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments