Skip to content

Commit b959fc1

Browse files
committed
Improve wording of static_mut_ref
Rename `static_mut_ref` lint to `static_mut_refs`.
1 parent 64dfa4f commit b959fc1

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)