1
Fork 0

Permit #[deprecated] in stdlib

This commit is contained in:
Jacob Pratt 2022-03-04 21:59:18 -05:00
parent 5636655d0f
commit 38478ea0cd
No known key found for this signature in database
GPG key ID: B80E19E4662B5AA4
33 changed files with 168 additions and 366 deletions

View file

@ -437,14 +437,6 @@ impl<'a> Visitor<'a> for PostExpansionVisitor<'a> {
)
.emit();
}
} else {
// FIXME(jhpratt) remove this after the two attributes are merged
if attr.has_name(sym::deprecated) {
self.sess
.struct_span_err(attr.span, "`#[deprecated]` cannot be used in staged API")
.span_label(attr.span, "use `#[rustc_deprecated]` instead")
.emit();
}
}
}