Skip to content

Commit c350ae8

Browse files
committed
Auto merge of rust-lang#121034 - obeis:improve-static-mut-ref, r=RalfJung
Improve wording of `static_mut_ref` Close rust-lang#120964
2 parents bd53510 + b959fc1 commit c350ae8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

example/mini_core_hello_world.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ fn start<T: Termination + 'static>(
9999

100100
static mut NUM: u8 = 6 * 7;
101101

102-
// FIXME: Use `SyncUnsafeCell` instead of allowing `static_mut_ref` lint
103-
#[allow(static_mut_ref)]
102+
// FIXME: Use `SyncUnsafeCell` instead of allowing `static_mut_refs` lint
103+
#[allow(static_mut_refs)]
104104
static NUM_REF: &'static u8 = unsafe { &NUM };
105105

106106
macro_rules! assert {

0 commit comments

Comments
 (0)