1
Fork 0

Add unreachable_pub to RUSTC_LINT_FLAGS for compiler/ crates.

And fix the new errors in the handful of crates that didn't have a
`#![warn(unreachable_pub)]`.
This commit is contained in:
Nicholas Nethercote 2025-03-11 11:51:07 +11:00
parent c9c8387955
commit 55505ab1d3
9 changed files with 16 additions and 14 deletions

View file

@ -88,7 +88,7 @@ mod mode {
// Whether thread safety might be enabled.
#[inline]
pub fn might_be_dyn_thread_safe() -> bool {
pub(super) fn might_be_dyn_thread_safe() -> bool {
DYN_THREAD_SAFE_MODE.load(Ordering::Relaxed) != DYN_NOT_THREAD_SAFE
}