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]`.
This commit is contained in:
parent
9fcbc32053
commit
6efc8e34d8
22 changed files with 146 additions and 143 deletions
|
@ -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!(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue