Skip to content

Commit 8aef4d6

Browse files
committed
---
yaml --- r: 24543 b: refs/heads/try2 c: aa909dc h: refs/heads/master i: 24541: 4bdcacc 24539: 5cc3b4c 24535: 7543aeb 24527: 5358239 24511: 5a437a0 v: v3
1 parent 658bf6d commit 8aef4d6

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
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: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
55
refs/heads/try: ffbe0e0e00374358b789b0037bcb3a577cd218be
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: a76ed88f54f6e7a3f9a85936a7b4576e2e3f3e78
8+
refs/heads/try2: aa909dc60a172a6dd1b3788818364c0768b1ea84
99
refs/heads/incoming: 05543fd04dfb3f63b453a331e239ceb1a9a219f9
1010
refs/heads/dist-snap: 2f32a1581f522e524009138b33b1c7049ced668d
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596

branches/try2/src/libcore/option.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ impl extensions<T: copy> for option<T> {
136136
137137
Fails if the value equals `none`
138138
"]
139-
pure fn expect<T: copy>(reason: str) -> T { expect(self, reason) }
139+
pure fn expect(reason: str) -> T { expect(self, reason) }
140140
}
141141

142142
#[test]

branches/try2/src/libstd/map.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,11 +232,11 @@ mod chained {
232232
}
233233

234234
fn get(k: K) -> V {
235-
option::get(self.find(k))
235+
self.find(k).expect("Key not found in table")
236236
}
237237

238238
fn [](k: K) -> V {
239-
option::get(self.find(k))
239+
self.get(k)
240240
}
241241

242242
fn remove(k: K) -> option<V> {

0 commit comments

Comments
 (0)