diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-03-06 14:25:44 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-03-08 08:41:43 +1100 |
| commit | 9212e31c92aba29fac1c1e05a258abe36dd0afee (patch) | |
| tree | 09152c971d35e3689ae6aa3007c2492eca4f0c84 /compiler/rustc_data_structures/src/sync.rs | |
| parent | beba32cebb4fb2ef8f02c4fc898a9d31f1b03c61 (diff) | |
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)]`.
Diffstat (limited to 'compiler/rustc_data_structures/src/sync.rs')
| -rw-r--r-- | compiler/rustc_data_structures/src/sync.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_data_structures/src/sync.rs b/compiler/rustc_data_structures/src/sync.rs index a1cc75c4985..616a18a72ab 100644 --- a/compiler/rustc_data_structures/src/sync.rs +++ b/compiler/rustc_data_structures/src/sync.rs @@ -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 } |
