1
Fork 0

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 bcb3545164
73 changed files with 783 additions and 460 deletions

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 {