Replaced with a single "quote" feature gate.

This commit is contained in:
James Deng 2014-02-04 22:03:00 +11:00
parent 38f2526beb
commit 124938bcf5
9 changed files with 11 additions and 16 deletions

View file

@ -49,12 +49,7 @@ static KNOWN_FEATURES: &'static [(&'static str, Status)] = &[
("trace_macros", Active),
("simd", Active),
("default_type_params", Active),
("quote_tokens", Active),
("quote_expr", Active),
("quote_ty", Active),
("quote_item", Active),
("quote_pat", Active),
("quote_stmt", Active),
("quote", Active),
// These are used to test this portion of the compiler, they don't actually
// mean anything
@ -221,7 +216,7 @@ impl Visitor<()> for Context {
} else {
for &quote in quotes.iter() {
if id == self.sess.ident_of(quote) {
self.gate_feature(quote, path.span, quote + msg);
self.gate_feature("quote", path.span, quote + msg);
}
}
}

View file

@ -29,7 +29,7 @@ This API is completely unstable and subject to change.
#[feature(macro_rules, globs, struct_variant, managed_boxes)];
#[allow(unknown_features)]; // Note: remove it after a snapshot.
#[feature(quote_item, quote_expr)];
#[feature(quote)];
extern mod extra;
extern mod flate;

View file

@ -27,8 +27,8 @@ This API is completely unstable and subject to change.
html_root_url = "http://static.rust-lang.org/doc/master")];
#[feature(macro_rules, globs, managed_boxes)];
#[allow(unknown_features)];
#[feature(quote_expr)];
#[allow(unknown_features)];// Note: remove it after a snapshot.
#[feature(quote)];
#[deny(non_camel_case_types)];

View file

@ -10,7 +10,7 @@
// force-host
#[feature(globs, macro_registrar, macro_rules, quote_expr)];
#[feature(globs, macro_registrar, macro_rules, quote)];
extern mod syntax;

View file

@ -9,7 +9,7 @@
// except according to those terms.
// xfail-test Can't use syntax crate here
#[feature(quote_expr)];
#[feature(quote)];
extern mod extra;
extern mod syntax;

View file

@ -9,7 +9,7 @@
// except according to those terms.
// xfail-test Can't use syntax crate here
#[feature(quote_stmt)];
#[feature(quote)];
extern mod extra;
extern mod syntax;

View file

@ -10,7 +10,7 @@
// xfail-pretty
// xfail-test
#[feature(quote_expr, quote_ty, quote_item, quote_stmt, quote_pat)];
#[feature(quote)];
extern mod extra;
extern mod syntax;

View file

@ -9,7 +9,7 @@
// except according to those terms.
// xfail-test
#[feature(quote_expr, quote_tokens, quote_item, quote_pat, quote_stmt)];
#[feature(quote)];
#[feature(managed_boxes)];
extern mod syntax;

View file

@ -10,7 +10,7 @@
// xfail-fast
// xfail-android
#[feature(quote_expr)];
#[feature(quote)];
#[deny(unused_variable)];
extern mod syntax;