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() {
|
||||
|
|
|
|||
|
|
@ -54,7 +54,6 @@ const KNOWN_FEATURES: &'static [(&'static str, &'static str, Status)] = &[
|
|||
("non_ascii_idents", "1.0.0", Active),
|
||||
("thread_local", "1.0.0", Active),
|
||||
("link_args", "1.0.0", Active),
|
||||
("phase", "1.0.0", Removed),
|
||||
("plugin_registrar", "1.0.0", Active),
|
||||
("log_syntax", "1.0.0", Active),
|
||||
("trace_macros", "1.0.0", Active),
|
||||
|
|
|
|||
|
|
@ -1,17 +0,0 @@
|
|||
// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
|
||||
// file at the top-level directory of this distribution and at
|
||||
// http://rust-lang.org/COPYRIGHT.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
||||
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#![feature(custom_attribute)]
|
||||
|
||||
#[phase(blah)]
|
||||
//~^ ERROR #[phase] is deprecated
|
||||
extern crate foo;
|
||||
|
||||
fn main() {}
|
||||
|
|
@ -1,17 +0,0 @@
|
|||
// Copyright 2015 The Rust Project Developers. See the COPYRIGHT
|
||||
// file at the top-level directory of this distribution and at
|
||||
// http://rust-lang.org/COPYRIGHT.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
||||
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#![feature(plugin)]
|
||||
|
||||
#[plugin] //~ ERROR #[plugin] on `extern crate` is deprecated
|
||||
//~^ HELP use a crate attribute instead, i.e. #![plugin(std)]
|
||||
extern crate std;
|
||||
|
||||
fn main() {}
|
||||
Loading…
Add table
Add a link
Reference in a new issue