@@ -37,7 +37,7 @@ declare_lint_pass! {
3737 DEPRECATED ,
3838 DEPRECATED_CFG_ATTR_CRATE_TYPE_NAME ,
3939 DEPRECATED_IN_FUTURE ,
40- DEPRECATED_SAFE ,
40+ DEPRECATED_SAFE_2024 ,
4141 DEPRECATED_WHERE_CLAUSE_LOCATION ,
4242 DUPLICATE_MACRO_ATTRIBUTES ,
4343 ELIDED_LIFETIMES_IN_ASSOCIATED_CONSTANT ,
@@ -4812,8 +4812,8 @@ declare_lint! {
48124812}
48134813
48144814declare_lint ! {
4815- /// The `deprecated_safe ` lint detects unsafe functions being used as safe
4816- /// functions.
4815+ /// The `deprecated_safe_2024 ` lint detects unsafe functions being used as
4816+ /// safe functions.
48174817 ///
48184818 /// ### Example
48194819 ///
@@ -4832,8 +4832,8 @@ declare_lint! {
48324832 ///
48334833 /// Rust [editions] allow the language to evolve without breaking backward
48344834 /// compatibility. This lint catches code that uses `unsafe` functions that
4835- /// were declared as safe (non-`unsafe`) in earlier editions. If you switch
4836- /// the compiler to a new edition without updating the code, then it
4835+ /// were declared as safe (non-`unsafe`) in editions prior to Rust 2024. If
4836+ /// you switch the compiler to Rust 2024 without updating the code, then it
48374837 /// will fail to compile if you are using a function previously marked as
48384838 /// safe.
48394839 ///
@@ -4850,7 +4850,7 @@ declare_lint! {
48504850 /// future.
48514851 ///
48524852 /// [editions]: https://doc.rust-lang.org/edition-guide/
4853- pub DEPRECATED_SAFE ,
4853+ pub DEPRECATED_SAFE_2024 ,
48544854 Allow ,
48554855 "detects unsafe functions being used as safe functions" ,
48564856 @future_incompatible = FutureIncompatibleInfo {
0 commit comments