1
Fork 0

Add warn(unreachable_pub) to rustc_errors.

This commit is contained in:
Nicholas Nethercote 2024-08-27 12:03:37 +10:00
parent 2b5621280c
commit 5fd503ab44
8 changed files with 36 additions and 35 deletions

View file

@ -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(())
}