Skip to content

Commit 4f23c24

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 f7143af + 8ce7f62 commit 4f23c24

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
@@ -112,8 +112,8 @@ fn start<T: Termination + 'static>(
112112

113113
static mut NUM: u8 = 6 * 7;
114114

115-
// FIXME: Use `SyncUnsafeCell` instead of allowing `static_mut_ref` lint
116-
#[allow(static_mut_ref)]
115+
// FIXME: Use `SyncUnsafeCell` instead of allowing `static_mut_refs` lint
116+
#[allow(static_mut_refs)]
117117
static NUM_REF: &'static u8 = unsafe { &NUM };
118118

119119
unsafe fn zeroed<T>() -> T {

0 commit comments

Comments
 (0)