Fix error message for static references or mutable references

This commit is contained in:
yuk1ty
2025-04-20 10:51:19 +09:00
parent d3508a8ad0
commit bffb7608ce
22 changed files with 91 additions and 93 deletions

View File

@@ -51,7 +51,7 @@ declare_lint! {
/// This lint is "warn" by default on editions up to 2021, in 2024 is "deny".
pub STATIC_MUT_REFS,
Warn,
"shared references or mutable references of mutable static is discouraged",
"creating a shared reference to mutable static",
@future_incompatible = FutureIncompatibleInfo {
reason: FutureIncompatibilityReason::EditionError(Edition::Edition2024),
reference: "<https://doc.rust-lang.org/nightly/edition-guide/rust-2024/static-mut-references.html>",