File tree 1 file changed +2
-2
lines changed
compiler/rustc_interface/src
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ fn get_stack_size() -> Option<usize> {
118
118
/// Like a `thread::Builder::spawn` followed by a `join()`, but avoids the need
119
119
/// for `'static` bounds.
120
120
#[ cfg( not( parallel_compiler) ) ]
121
- pub fn scoped_thread < F : FnOnce ( ) -> R + Send , R : Send > ( cfg : thread:: Builder , f : F ) -> R {
121
+ fn scoped_thread < F : FnOnce ( ) -> R + Send , R : Send > ( cfg : thread:: Builder , f : F ) -> R {
122
122
// SAFETY: join() is called immediately, so any closure captures are still
123
123
// alive.
124
124
match unsafe { cfg. spawn_unchecked ( f) } . unwrap ( ) . join ( ) {
@@ -379,7 +379,7 @@ fn sysroot_candidates() -> Vec<PathBuf> {
379
379
}
380
380
}
381
381
382
- pub fn get_codegen_sysroot ( maybe_sysroot : & Option < PathBuf > , backend_name : & str ) -> MakeBackendFn {
382
+ fn get_codegen_sysroot ( maybe_sysroot : & Option < PathBuf > , backend_name : & str ) -> MakeBackendFn {
383
383
// For now we only allow this function to be called once as it'll dlopen a
384
384
// few things, which seems to work best if we only do that once. In
385
385
// general this assertion never trips due to the once guard in `get_codegen_backend`,
You can’t perform that action at this time.
0 commit comments