File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
compiler/rustc_interface/src Expand file tree Collapse file tree 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> {
118118/// Like a `thread::Builder::spawn` followed by a `join()`, but avoids the need
119119/// for `'static` bounds.
120120#[ 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 {
122122 // SAFETY: join() is called immediately, so any closure captures are still
123123 // alive.
124124 match unsafe { cfg. spawn_unchecked ( f) } . unwrap ( ) . join ( ) {
@@ -379,7 +379,7 @@ fn sysroot_candidates() -> Vec<PathBuf> {
379379 }
380380}
381381
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 {
383383 // For now we only allow this function to be called once as it'll dlopen a
384384 // few things, which seems to work best if we only do that once. In
385385 // 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