Auto merge of #95960 - jhpratt:remove-rustc_deprecated, r=compiler-errors
Remove `#[rustc_deprecated]` This removes `#[rustc_deprecated]` and introduces diagnostics to help users to the right direction (that being `#[deprecated]`). All uses of `#[rustc_deprecated]` have been converted. CI is expected to fail initially; this requires #95958, which includes converting `stdarch`. I plan on following up in a short while (maybe a bootstrap cycle?) removing the diagnostics, as they're only intended to be short-term.
This commit is contained in:
commit
8a2fe75d0e
98 changed files with 406 additions and 437 deletions
|
@ -304,8 +304,7 @@ pub const BUILTIN_ATTRIBUTES: &[BuiltinAttribute] = &[
|
|||
List: r#"/*opt*/ since = "version", /*opt*/ note = "reason""#,
|
||||
NameValueStr: "reason"
|
||||
),
|
||||
// This has special duplicate handling in E0550 to handle duplicates with rustc_deprecated
|
||||
DuplicatesOk
|
||||
ErrorFollowing
|
||||
),
|
||||
|
||||
// Crate properties:
|
||||
|
@ -469,10 +468,10 @@ pub const BUILTIN_ATTRIBUTES: &[BuiltinAttribute] = &[
|
|||
// ==========================================================================
|
||||
|
||||
ungated!(feature, CrateLevel, template!(List: "name1, name2, ..."), DuplicatesOk),
|
||||
// DuplicatesOk since it has its own validation
|
||||
// FIXME(jhpratt) remove this eventually
|
||||
ungated!(
|
||||
rustc_deprecated, Normal,
|
||||
template!(List: r#"since = "version", note = "...""#), DuplicatesOk // See E0550
|
||||
template!(List: r#"since = "version", note = "...""#), ErrorFollowing
|
||||
),
|
||||
// DuplicatesOk since it has its own validation
|
||||
ungated!(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue