about summary refs log tree commit diff
path: root/src/test/run-pass
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/run-pass')
-rw-r--r--src/test/run-pass/hashmap-memory.rs6
-rw-r--r--src/test/run-pass/iface-cast.rs2
-rw-r--r--src/test/run-pass/non-boolean-pure-fns.rs2
-rw-r--r--src/test/run-pass/unchecked-predicates.rs2
4 files changed, 6 insertions, 6 deletions
diff --git a/src/test/run-pass/hashmap-memory.rs b/src/test/run-pass/hashmap-memory.rs
index 69060afce56..343a042dbc1 100644
--- a/src/test/run-pass/hashmap-memory.rs
+++ b/src/test/run-pass/hashmap-memory.rs
@@ -46,7 +46,7 @@ mod map_reduce {
             let c;
             alt im.find(key) {
               some(_c) { c = _c }
-              none. {
+              none {
                 let p = port();
                 #error("sending find_reducer");
                 send(ctrl, find_reducer(str::bytes(key), chan(p)));
@@ -78,12 +78,12 @@ mod map_reduce {
 
         while num_mappers > 0 {
             alt recv(ctrl) {
-              mapper_done. { num_mappers -= 1; }
+              mapper_done { num_mappers -= 1; }
               find_reducer(k, cc) {
                 let c;
                 alt reducers.find(str::unsafe_from_bytes(k)) {
                   some(_c) { c = _c; }
-                  none. { c = 0; }
+                  none { c = 0; }
                 }
                 send(cc, c);
               }
diff --git a/src/test/run-pass/iface-cast.rs b/src/test/run-pass/iface-cast.rs
index f252eef07bc..c8704ab50a6 100644
--- a/src/test/run-pass/iface-cast.rs
+++ b/src/test/run-pass/iface-cast.rs
@@ -14,7 +14,7 @@ iface to_str {
 impl <T: to_str> of to_str for option<T> {
     fn to_str() -> str {
         alt self {
-          none. { "none" }
+          none { "none" }
           some(t) { "some(" + t.to_str() + ")" }
         }
     }
diff --git a/src/test/run-pass/non-boolean-pure-fns.rs b/src/test/run-pass/non-boolean-pure-fns.rs
index d74fb81a3b9..6081dc145fd 100644
--- a/src/test/run-pass/non-boolean-pure-fns.rs
+++ b/src/test/run-pass/non-boolean-pure-fns.rs
@@ -3,7 +3,7 @@ use std;
 import std::list::*;
 
 pure fn pure_length_go<T: copy>(ls: list<T>, acc: uint) -> uint {
-    alt ls { nil. { acc } cons(_, tl) { pure_length_go(*tl, acc + 1u) } }
+    alt ls { nil { acc } cons(_, tl) { pure_length_go(*tl, acc + 1u) } }
 }
 
 pure fn pure_length<T: copy>(ls: list<T>) -> uint { pure_length_go(ls, 0u) }
diff --git a/src/test/run-pass/unchecked-predicates.rs b/src/test/run-pass/unchecked-predicates.rs
index e43cdaacb8b..062f9c81a8b 100644
--- a/src/test/run-pass/unchecked-predicates.rs
+++ b/src/test/run-pass/unchecked-predicates.rs
@@ -9,7 +9,7 @@ import std::list::*;
 // no syntax for specifying that f is pure.
 fn pure_foldl<T: copy, U: copy>(ls: list<T>, u: U, f: block(T, U) -> U) -> U {
     alt ls {
-        nil. { u }
+        nil { u }
         cons(hd, tl) { f(hd, pure_foldl(*tl, f(hd, u), f)) }
     }
 }