about summary refs log tree commit diff
path: root/compiler/rustc_feature
diff options
context:
space:
mode:
authorJacob Pratt <jacob@jhpratt.dev>2022-02-15 02:00:21 -0500
committerJacob Pratt <jacob@jhpratt.dev>2022-03-04 18:15:49 -0500
commit6efc8e34d8b83de7f5b1e47d4bbbe0f2daa385f8 (patch)
tree3584fabe76f9318369a15ea1e88dc057c4a345b7 /compiler/rustc_feature
parent9fcbc32053d5084d1de79bd484de82474cdae427 (diff)
downloadrust-6efc8e34d8b83de7f5b1e47d4bbbe0f2daa385f8.tar.gz
rust-6efc8e34d8b83de7f5b1e47d4bbbe0f2daa385f8.zip
Change `rustc_deprecated` to use `note`
This keeps `reason` around for the time being. This is necessary to
avoid breakage during the bootstrap process. This change, as a whole,
brings `#[rustc_deprecated]` more in line with `#[deprecated]`.
Diffstat (limited to 'compiler/rustc_feature')
-rw-r--r--compiler/rustc_feature/src/builtin_attrs.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_feature/src/builtin_attrs.rs b/compiler/rustc_feature/src/builtin_attrs.rs
index 4b9cf784495..f4032132b92 100644
--- a/compiler/rustc_feature/src/builtin_attrs.rs
+++ b/compiler/rustc_feature/src/builtin_attrs.rs
@@ -461,7 +461,7 @@ pub const BUILTIN_ATTRIBUTES: &[BuiltinAttribute] = &[
     // DuplicatesOk since it has its own validation
     ungated!(
         rustc_deprecated, Normal,
-        template!(List: r#"since = "version", reason = "...""#), DuplicatesOk // See E0550
+        template!(List: r#"since = "version", note = "...""#), DuplicatesOk // See E0550
     ),
     // DuplicatesOk since it has its own validation
     ungated!(