@@ -37,7 +37,7 @@ declare_lint_pass! {
37
37
DEPRECATED ,
38
38
DEPRECATED_CFG_ATTR_CRATE_TYPE_NAME ,
39
39
DEPRECATED_IN_FUTURE ,
40
- DEPRECATED_SAFE ,
40
+ DEPRECATED_SAFE_2024 ,
41
41
DEPRECATED_WHERE_CLAUSE_LOCATION ,
42
42
DUPLICATE_MACRO_ATTRIBUTES ,
43
43
ELIDED_LIFETIMES_IN_ASSOCIATED_CONSTANT ,
@@ -4847,8 +4847,8 @@ declare_lint! {
4847
4847
}
4848
4848
4849
4849
declare_lint ! {
4850
- /// The `deprecated_safe ` lint detects unsafe functions being used as safe
4851
- /// functions.
4850
+ /// The `deprecated_safe_2024 ` lint detects unsafe functions being used as
4851
+ /// safe functions.
4852
4852
///
4853
4853
/// ### Example
4854
4854
///
@@ -4867,8 +4867,8 @@ declare_lint! {
4867
4867
///
4868
4868
/// Rust [editions] allow the language to evolve without breaking backward
4869
4869
/// compatibility. This lint catches code that uses `unsafe` functions that
4870
- /// were declared as safe (non-`unsafe`) in earlier editions. If you switch
4871
- /// the compiler to a new edition without updating the code, then it
4870
+ /// were declared as safe (non-`unsafe`) in editions prior to Rust 2024. If
4871
+ /// you switch the compiler to Rust 2024 without updating the code, then it
4872
4872
/// will fail to compile if you are using a function previously marked as
4873
4873
/// safe.
4874
4874
///
@@ -4885,7 +4885,7 @@ declare_lint! {
4885
4885
/// future.
4886
4886
///
4887
4887
/// [editions]: https://doc.rust-lang.org/edition-guide/
4888
- pub DEPRECATED_SAFE ,
4888
+ pub DEPRECATED_SAFE_2024 ,
4889
4889
Allow ,
4890
4890
"detects unsafe functions being used as safe functions" ,
4891
4891
@future_incompatible = FutureIncompatibleInfo {
0 commit comments