about summary refs log tree commit diff
path: root/compiler/rustc_errors/src/lock.rs
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2024-08-27 12:03:37 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2024-08-27 12:03:37 +1000
commit5fd503ab445b2a70897026e495dd4df4343333eb (patch)
tree3a11f2af6663ebc61d2b0d883a72e114cc76a799 /compiler/rustc_errors/src/lock.rs
parent2b5621280c118ca72eb84470129c72b069e22907 (diff)
downloadrust-5fd503ab445b2a70897026e495dd4df4343333eb.tar.gz
rust-5fd503ab445b2a70897026e495dd4df4343333eb.zip
Add `warn(unreachable_pub)` to `rustc_errors`.
Diffstat (limited to 'compiler/rustc_errors/src/lock.rs')
-rw-r--r--compiler/rustc_errors/src/lock.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_errors/src/lock.rs b/compiler/rustc_errors/src/lock.rs
index 915542c9092..7557969f374 100644
--- a/compiler/rustc_errors/src/lock.rs
+++ b/compiler/rustc_errors/src/lock.rs
@@ -12,7 +12,7 @@
 use std::any::Any;
 
 #[cfg(windows)]
-pub fn acquire_global_lock(name: &str) -> Box<dyn Any> {
+pub(crate) fn acquire_global_lock(name: &str) -> Box<dyn Any> {
     use std::ffi::CString;
     use std::io;
 
@@ -80,6 +80,6 @@ pub fn acquire_global_lock(name: &str) -> Box<dyn Any> {
 }
 
 #[cfg(not(windows))]
-pub fn acquire_global_lock(_name: &str) -> Box<dyn Any> {
+pub(crate) fn acquire_global_lock(_name: &str) -> Box<dyn Any> {
     Box::new(())
 }