Skip to content

Commit 0b02fdb

Browse files
Erick Tryzelaarerickt
authored andcommitted
---
yaml --- r: 36821 b: refs/heads/try2 c: 2ad41b8 h: refs/heads/master i: 36819: ec8f148 v: v3
1 parent 69923fe commit 0b02fdb

File tree

4 files changed

+15
-1
lines changed

4 files changed

+15
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: eb8fd119c65c67f3b1b8268cc7341c22d39b7b61
55
refs/heads/try: d324a424d8f84b1eb049b12cf34182bda91b0024
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: 82a983de6803c7b1026ba0b553186306e842e427
8+
refs/heads/try2: 2ad41b881cb8389cb690c643e41c27f6c34270d5
99
refs/heads/incoming: d9317a174e434d4c99fc1a37fd7dc0d2f5328d37
1010
refs/heads/dist-snap: 22efa39382d41b084fde1719df7ae8ce5697d8c9
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596

branches/try2/src/libcore/dvec.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,9 @@ priv impl<A> DVec<A> {
110110
self.data = move data;
111111
}
112112
}
113+
114+
#[inline(always)]
115+
fn unwrap(self) -> ~[A] { unwrap(self) }
113116
}
114117

115118
// In theory, most everything should work with any A, but in practice

branches/try2/src/libcore/either.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,14 @@ pub pure fn unwrap_right<T,U>(eith: Either<T,U>) -> U {
142142
}
143143
}
144144

145+
impl<T, U> Either<T, U> {
146+
#[inline(always)]
147+
fn unwrap_left(self) -> T { unwrap_left(self) }
148+
149+
#[inline(always)]
150+
fn unwrap_right(self) -> U { unwrap_right(self) }
151+
}
152+
145153
#[test]
146154
fn test_either_left() {
147155
let val = Left(10);

branches/try2/src/libcore/mutable.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ impl<T> Data<T> {
7373
op(unsafe{transmute_immut(&mut self.value)})
7474
}
7575
}
76+
77+
#[inline(always)]
78+
fn unwrap(self) -> T { unwrap(self) }
7679
}
7780

7881
#[test]

0 commit comments

Comments
 (0)