parent
aeae04cb49
commit
a94b1ccacb
10 changed files with 17 additions and 17 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue