Skip to content

Commit

Permalink
Auto merge of rust-lang#121034 - obeis:improve-static-mut-ref, r=Ralf…
Browse files Browse the repository at this point in the history
…Jung

Improve wording of `static_mut_ref`

Close rust-lang#120964
  • Loading branch information
bors committed Feb 18, 2024
2 parents f7143af + 8ce7f62 commit 4f23c24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions example/mini_core_hello_world.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,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 };

unsafe fn zeroed<T>() -> T {
Expand Down

0 comments on commit 4f23c24

Please sign in to comment.