aboutsummaryrefslogtreecommitdiff
path: root/src/lib/util.rs
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2010-09-09 15:59:29 -0700
committerGraydon Hoare <[email protected]>2010-09-09 15:59:29 -0700
commita9e2327a18e782df524c14dc42910d61a4785324 (patch)
tree8763224ac3a4c11275dd64257aac47036c97c48d /src/lib/util.rs
parentFixed lost signal notifications. (diff)
downloadrust-a9e2327a18e782df524c14dc42910d61a4785324.tar.xz
rust-a9e2327a18e782df524c14dc42910d61a4785324.zip
Switch tags to purely nominal, removing TY_iso and TY_idx. Seems to mostly work, possibly a little bumpy. Changes a lot.
Diffstat (limited to 'src/lib/util.rs')
-rw-r--r--src/lib/util.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/util.rs b/src/lib/util.rs
index 1688c263..dee93773 100644
--- a/src/lib/util.rs
+++ b/src/lib/util.rs
@@ -1,4 +1,7 @@
-type option[T] = tag(none(), some(T));
+tag option[T] {
+ none();
+ some(T);
+}
type operator[T, U] = fn(&T) -> U;