From 795fda3f7a391132f6201db230ecbfd2df164ffd Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Sat, 24 Feb 2024 13:11:07 -0800 Subject: [PATCH] Rename static_mut_refs --- src/rust-2024/static-mut-reference.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rust-2024/static-mut-reference.md b/src/rust-2024/static-mut-reference.md index 539016c6..82184a1b 100644 --- a/src/rust-2024/static-mut-reference.md +++ b/src/rust-2024/static-mut-reference.md @@ -4,10 +4,10 @@ ## Summary -- The [`static_mut_ref`] lint is now a hard error that cannot be disabled. +- The [`static_mut_refs`] lint is now a hard error that cannot be disabled. This prevents taking a shared or mutable reference to a `static mut`. -[`static_mut_ref`]: ../../rustc/lints/listing/warn-by-default.html#static-mut-ref +[`static_mut_refs`]: ../../rustc/lints/listing/warn-by-default.html#static-mut-refs ## Details