|
static HOOK_LOCK: RWLock = RWLock::new(); |
|
static mut HOOK: Hook = Hook::Default; |
looking at these two lines of code is very frightening.
Is there a specific reason to use RWLock instead of RwLock? I would open a PR with either using RwLock or a comment describing why RWLock is needed here.
@rustbot modify labels: T-libs
rust/src/libstd/panicking.rs
Lines 57 to 58 in 7ac0200
looking at these two lines of code is very frightening.
Is there a specific reason to use
RWLockinstead ofRwLock? I would open a PR with either usingRwLockor a comment describing whyRWLockis needed here.@rustbot modify labels: T-libs