Skip to content

Commit 7ba4110

Browse files
committed
Make two functions private
1 parent 55ceed8 commit 7ba4110

File tree

1 file changed

+2
-2
lines changed
  • compiler/rustc_interface/src

1 file changed

+2
-2
lines changed

compiler/rustc_interface/src/util.rs

+2-2
Original file line numberDiff line numberDiff 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`,

0 commit comments

Comments
 (0)