rustc: Remove old #[phase] and #[plugin]
This commit removes the extra deprecation warnings and support for the old `phase` and `plugin` attributes for loading plugins.
This commit is contained in:
parent
557d4346a2
commit
671d896294
4 changed files with 0 additions and 44 deletions
|
|
@ -79,15 +79,6 @@ impl<'a, 'v> Visitor<'v> for MacroLoader<'a> {
|
|||
for attr in &item.attrs {
|
||||
let mut used = true;
|
||||
match &attr.name()[..] {
|
||||
"phase" => {
|
||||
self.sess.span_err(attr.span, "#[phase] is deprecated");
|
||||
}
|
||||
"plugin" => {
|
||||
self.sess.span_err(attr.span, "#[plugin] on `extern crate` is deprecated");
|
||||
self.sess.fileline_help(attr.span, &format!("use a crate attribute instead, \
|
||||
i.e. #![plugin({})]",
|
||||
item.ident.as_str()));
|
||||
}
|
||||
"macro_use" => {
|
||||
let names = attr.meta_item_list();
|
||||
if names.is_none() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue