about summary refs log tree commit diff
path: root/compiler/rustc_feature
diff options
context:
space:
mode:
authorTobias Bucher <tobiasbucher5991@gmail.com>2024-07-17 13:45:31 +0200
committerTobias Bucher <tobiasbucher5991@gmail.com>2024-08-13 11:32:24 +0200
commit399ef23d2bf2b1619d360a87de9b83edf9d99762 (patch)
tree071223c58c3c1bbf57696e600671b7b60c3154e4 /compiler/rustc_feature
parent591ecb88dffdb0f233e2fae74fd3d7c81d65ff0c (diff)
downloadrust-399ef23d2bf2b1619d360a87de9b83edf9d99762.tar.gz
rust-399ef23d2bf2b1619d360a87de9b83edf9d99762.zip
Allow to customize `// TODO:` comment for deprecated safe autofix
Relevant for the deprecation of `CommandExt::before_exit` in #125970.
Diffstat (limited to 'compiler/rustc_feature')
-rw-r--r--compiler/rustc_feature/src/builtin_attrs.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_feature/src/builtin_attrs.rs b/compiler/rustc_feature/src/builtin_attrs.rs
index 72ea55d5999..1b4c18e96fc 100644
--- a/compiler/rustc_feature/src/builtin_attrs.rs
+++ b/compiler/rustc_feature/src/builtin_attrs.rs
@@ -643,8 +643,8 @@ pub const BUILTIN_ATTRIBUTES: &[BuiltinAttribute] = &[
         through unstable paths"
     ),
     rustc_attr!(
-        rustc_deprecated_safe_2024, Normal, template!(Word), WarnFollowing,
-        EncodeCrossCrate::Yes,
+        rustc_deprecated_safe_2024, Normal, template!(List: r#"todo = "...""#),
+        ErrorFollowing, EncodeCrossCrate::Yes,
         "rustc_deprecated_safe_2024 is supposed to be used in libstd only",
     ),