Add unreachable_pub
to the default lints 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:
parent
beba32cebb
commit
9212e31c92
9 changed files with 16 additions and 15 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue