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:
Alex Crichton 2015-03-26 15:10:31 -07:00
parent 557d4346a2
commit 671d896294
4 changed files with 0 additions and 44 deletions

View file

@ -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() {