Activate checking code for ASM feature gate. Fix tests
This commit is contained in:
parent
ece5028a8b
commit
c4bcf7714b
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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];
|
||||
|
@ -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
|
||||
|
@ -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")]
|
||||
|
@ -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")]
|
||||
|
@ -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")]
|
||||
|
@ -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")]
|
||||
|
@ -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"##;
|
||||
|
||||
|
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user