1
Fork 0

Replace #[plugin_registrar] with exporting __rustc_plugin_registrar

This commit is contained in:
bjorn3 2021-05-14 15:37:53 +02:00
parent 2d10c2a330
commit a501308ec1
35 changed files with 287 additions and 556 deletions

View file

@ -375,14 +375,6 @@ impl<'a> Visitor<'a> for PostExpansionVisitor<'a> {
}
ast::ItemKind::Fn(..) => {
if self.sess.contains_name(&i.attrs[..], sym::plugin_registrar) {
gate_feature_post!(
&self,
plugin_registrar,
i.span,
"compiler plugins are experimental and possibly buggy"
);
}
if self.sess.contains_name(&i.attrs[..], sym::start) {
gate_feature_post!(
&self,