diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-08-27 18:59:29 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-27 18:59:29 +0200 |
| commit | 489eb230ddbcdf4ccd5b00db165a8844fac9c047 (patch) | |
| tree | b397a8e2cb3db9cf6392c7c28c0f424768c45f2f /compiler/rustc_errors/src/lock.rs | |
| parent | 02491259c2f54b026ac6be939de6b67c8c73c319 (diff) | |
| parent | 22cdd632f1a98830ead8f03cf7f227cc72d814a8 (diff) | |
Rollup merge of #129648 - nnethercote:unreachable_pub-2, r=Urgau
More `unreachable_pub` Add `unreachable_pub` checking to some more compiler crates. A follow-up to #126013. r? ``@Urgau``
Diffstat (limited to 'compiler/rustc_errors/src/lock.rs')
| -rw-r--r-- | compiler/rustc_errors/src/lock.rs | 4 |
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(()) } |
