about summary refs log tree commit diff
diff options
context:
space:
mode:
authorObei Sideg <obei.sideg@gmail.com>2024-02-17 22:01:56 +0300
committerObei Sideg <obei.sideg@gmail.com>2024-02-18 06:01:40 +0300
commitb959fc1d0ae090301fa204f37bec8891957243b3 (patch)
tree446f2282631c4519d8023b944c39272e7352a8ad
parent64dfa4f455ed72e1c17a82fa67a577b869ed5992 (diff)
downloadrust-b959fc1d0ae090301fa204f37bec8891957243b3.tar.gz
rust-b959fc1d0ae090301fa204f37bec8891957243b3.zip
Improve wording of static_mut_ref
Rename `static_mut_ref` lint to `static_mut_refs`.
-rw-r--r--example/mini_core_hello_world.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/example/mini_core_hello_world.rs b/example/mini_core_hello_world.rs
index 9827e299f2a..add77880716 100644
--- a/example/mini_core_hello_world.rs
+++ b/example/mini_core_hello_world.rs
@@ -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 {