1
Fork 0

Remove rustc_deprecated diagnostics

This commit is contained in:
Jacob Pratt 2022-06-14 19:11:24 -04:00
parent 1f34da9ec8
commit fb05b53745
No known key found for this signature in database
GPG key ID: B80E19E4662B5AA4
9 changed files with 166 additions and 237 deletions

View file

@ -406,8 +406,7 @@ impl<'a> Visitor<'a> for PostExpansionVisitor<'a> {
// Emit errors for non-staged-api crates.
if !self.features.staged_api {
if attr.has_name(sym::rustc_deprecated)
|| attr.has_name(sym::unstable)
if attr.has_name(sym::unstable)
|| attr.has_name(sym::stable)
|| attr.has_name(sym::rustc_const_unstable)
|| attr.has_name(sym::rustc_const_stable)