Auto merge of #121034 - obeis:improve-static-mut-ref, r=RalfJung

Improve wording of `static_mut_ref`

Close #120964
This commit is contained in:
bors 2024-02-18 08:00:34 +00:00
commit c350ae83e8

View File

@ -99,8 +99,8 @@ fn start<T: Termination + 'static>(
static mut NUM: u8 = 6 * 7;
// FIXME: Use `SyncUnsafeCell` instead of allowing `static_mut_ref` lint
#[allow(static_mut_ref)]
// FIXME: Use `SyncUnsafeCell` instead of allowing `static_mut_refs` lint
#[allow(static_mut_refs)]
static NUM_REF: &'static u8 = unsafe { &NUM };
macro_rules! assert {