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
commit8ce7f62e58c8f3671bce09cbfd1216e8df405f2b (patch)
tree1ce13f7ad4e7edcbe32c2b553628aa0dd23943b9
parentaa6d02f3681eb7d0f60a27eda4efe7cee56ca196 (diff)
downloadrust-8ce7f62e58c8f3671bce09cbfd1216e8df405f2b.tar.gz
rust-8ce7f62e58c8f3671bce09cbfd1216e8df405f2b.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 2a7b1107ffc..8b0b9123ac7 100644
--- a/example/mini_core_hello_world.rs
+++ b/example/mini_core_hello_world.rs
@@ -112,8 +112,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 };
 
 unsafe fn zeroed<T>() -> T {