diff options
Diffstat (limited to 'src/comp/front')
| -rw-r--r-- | src/comp/front/test.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/comp/front/test.rs b/src/comp/front/test.rs index bb2e5426938..79d4523b14b 100644 --- a/src/comp/front/test.rs +++ b/src/comp/front/test.rs @@ -100,7 +100,7 @@ fn fold_item(cx: test_ctxt, &&i: @ast::item, fld: fold::ast_fold) -> if is_test_fn(i) { alt i.node { - ast::item_fn(decl, _, _) when decl.purity == ast::unsafe_fn { + ast::item_fn(decl, _, _) if decl.purity == ast::unsafe_fn { cx.sess.span_fatal( i.span, "unsafe functions cannot be used for tests"); |
