about summary refs log tree commit diff
path: root/src/comp/front
diff options
context:
space:
mode:
authorAustin Seipp <as@hacks.yi.org>2012-01-09 19:15:17 -0600
committerBrian Anderson <banderson@mozilla.com>2012-01-09 19:27:05 -0800
commita94b1ccacbc2869b6a67afcda98d7495c0086eb3 (patch)
tree46c25968d972b54ef5acb86a7c18ed1bcf541f3e /src/comp/front
parentaeae04cb49a3af321e75f839d409768014bd5169 (diff)
downloadrust-a94b1ccacbc2869b6a67afcda98d7495c0086eb3.tar.gz
rust-a94b1ccacbc2869b6a67afcda98d7495c0086eb3.zip
Change all uses of 'when' in alt-patterns to 'if'
Issue #1396
Diffstat (limited to 'src/comp/front')
-rw-r--r--src/comp/front/test.rs2
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");