Change all uses of 'when' in alt-patterns to 'if'

Issue #1396
This commit is contained in:
Austin Seipp 2012-01-09 19:15:17 -06:00 committed by Brian Anderson
parent aeae04cb49
commit a94b1ccacb
10 changed files with 17 additions and 17 deletions

View file

@ -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");