Skip to content

Commit bf3d0c0

Browse files
authored
Merge pull request #245 from Manishearth/testfix
Fix tests; update to latest nightly
2 parents 37f4f9c + 998e096 commit bf3d0c0

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,10 @@ pub fn make_test(config: &Config, testpaths: &TestPaths) -> test::TestDescAndFn
261261
ignore: early_props.ignore,
262262
should_panic: should_panic,
263263
allow_fail: false,
264+
#[cfg(feature = "rustc")]
265+
compile_fail: false,
266+
#[cfg(feature = "rustc")]
267+
no_run: false,
264268
test_type: test::TestType::IntegrationTest,
265269
},
266270
testfn: make_test_closure(config, testpaths),

test-project/tests/compile-fail/asm-gated.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010

1111
fn main() {
1212
unsafe {
13-
llvm_asm!(""); //~ ERROR use of unstable library feature
13+
asm!(""); //~ ERROR use of unstable library feature
1414
}
1515
}

test-project/tests/pretty/macro.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
// pretty-mode:expanded
99
// pp-exact:macro.pp
1010

11-
macro_rules! square { ($ x : expr) => { $ x * $ x } ; }
11+
macro_rules! square { ($x : expr) => { $x * $x } ; }
1212

1313
fn f() -> i8 { 5 * 5 }

test-project/tests/ui/dyn-keyword.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ note: the lint level is defined here
99
|
1010
14 | #![deny(keyword_idents)]
1111
| ^^^^^^^^^^^^^^
12-
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in the 2018 edition!
12+
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
1313
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
1414

1515
error: aborting due to previous error

0 commit comments

Comments
 (0)