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 bd53510 + b959fc1 commit c350ae8
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 @@ -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 {
Expand Down

0 comments on commit c350ae8

Please sign in to comment.