about summary refs log tree commit diff
path: root/src/libstd/workcache.rs
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2013-03-21 21:34:30 -0700
committerPatrick Walton <pcwalton@mimiga.net>2013-03-22 10:29:17 -0700
commitc1084091d4e5472fac7e158b11120bad6ff210ff (patch)
tree745a42f03c8c88670da739313cd8050a5f1d8b37 /src/libstd/workcache.rs
parentbe9bddd46377bc982b73acf15a720365a54197a7 (diff)
downloadrust-c1084091d4e5472fac7e158b11120bad6ff210ff.tar.gz
rust-c1084091d4e5472fac7e158b11120bad6ff210ff.zip
libstd: Remove all uses of `pure` from libstd. rs=depure
Diffstat (limited to 'src/libstd/workcache.rs')
-rw-r--r--src/libstd/workcache.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libstd/workcache.rs b/src/libstd/workcache.rs
index 46335d062b4..b26b4b1c333 100644
--- a/src/libstd/workcache.rs
+++ b/src/libstd/workcache.rs
@@ -106,7 +106,7 @@ struct WorkKey {
 
 impl to_bytes::IterBytes for WorkKey {
     #[inline(always)]
-    pure fn iter_bytes(&self, lsb0: bool, f: to_bytes::Cb) {
+    fn iter_bytes(&self, lsb0: bool, f: to_bytes::Cb) {
         let mut flag = true;
         self.kind.iter_bytes(lsb0, |bytes| {flag = f(bytes); flag});
         if !flag { return; }
@@ -115,18 +115,18 @@ impl to_bytes::IterBytes for WorkKey {
 }
 
 impl cmp::Ord for WorkKey {
-    pure fn lt(&self, other: &WorkKey) -> bool {
+    fn lt(&self, other: &WorkKey) -> bool {
         self.kind < other.kind ||
             (self.kind == other.kind &&
              self.name < other.name)
     }
-    pure fn le(&self, other: &WorkKey) -> bool {
+    fn le(&self, other: &WorkKey) -> bool {
         self.lt(other) || self.eq(other)
     }
-    pure fn ge(&self, other: &WorkKey) -> bool {
+    fn ge(&self, other: &WorkKey) -> bool {
         self.gt(other) || self.eq(other)
     }
-    pure fn gt(&self, other: &WorkKey) -> bool {
+    fn gt(&self, other: &WorkKey) -> bool {
         ! self.le(other)
     }
 }