Activate checking code for ASM feature gate. Fix tests

This commit is contained in:
Léo Testard 2013-10-22 01:18:57 +02:00
parent ece5028a8b
commit c4bcf7714b
9 changed files with 21 additions and 8 deletions

View File

@ -124,11 +124,8 @@ impl Visitor<()> for Context {
}
else if path.segments.last().identifier == self.sess.ident_of("asm") {
// NOTE: remove the false once the ASM feature is in the next snapshot
if false {
self.gate_feature("asm", path.span, "inline assembly is not \
stable enough for use and is subject to change");
}
self.gate_feature("asm", path.span, "inline assembly is not \
stable enough for use and is subject to change");
}
}

View File

@ -61,7 +61,7 @@ they contained the following prologue:
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
html_root_url = "http://static.rust-lang.org/doc/master")];
#[feature(macro_rules, globs)];
#[feature(macro_rules, globs, asm)];
// Don't link to std. We are std.
#[no_std];

View File

@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// xfail-test
fn main() {
unsafe {
asm!(""); //~ ERROR inline assembly is not stable enough

View File

@ -8,6 +8,9 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// xfail-fast #[feature] doesn't work with check-fast
#[feature(asm)];
fn foo(x: int) { info2!("{}", x); }
#[cfg(target_arch = "x86")]

View File

@ -8,6 +8,9 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// xfail-fast #[feature] doesn't work with check-fast
#[feature(asm)];
fn foo(x: int) { info2!("{}", x); }
#[cfg(target_arch = "x86")]

View File

@ -8,6 +8,9 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// xfail-fast #[feature] doesn't work with check-fast
#[feature(asm)];
fn foo(x: int) { info2!("{}", x); }
#[cfg(target_arch = "x86")]

View File

@ -8,6 +8,9 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// xfail-fast #[feature] doesn't work with check-fast
#[feature(asm)];
fn foo(x: int) { info2!("{}", x); }
#[cfg(target_arch = "x86")]

View File

@ -8,8 +8,11 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// xfail-fast #[feature] doesn't work with check-fast
// pp-exact
#[feature(asm)];
#[cfg = r#"just parse this"#]
extern mod blah = r##"blah"##;

View File

@ -8,6 +8,9 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// xfail-fast #[feature] doesn't work with check-fast
#[feature(asm)];
#[cfg(target_arch = "x86")]
#[cfg(target_arch = "x86_64")]
pub fn main() {