Permit #[deprecated]
in stdlib
This commit is contained in:
parent
5636655d0f
commit
38478ea0cd
33 changed files with 168 additions and 366 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue