Skip to content

Commit 5cf6c2a

Browse files
olsonjefferybrson
authored andcommitted
---
yaml --- r: 15989 b: refs/heads/try c: bb88f77 h: refs/heads/master i: 15987: 1932bed v: v3
1 parent c74aceb commit 5cf6c2a

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
refs/heads/master: 61b1875c16de39c166b0f4d54bba19f9c6777d1a
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5-
refs/heads/try: a40f550ed5b159fcfc1540df538b8f0b6acd01a7
5+
refs/heads/try: bb88f772a457d09616d790fed0f548d63863e5ee
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

branches/try/src/libcore/result.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -218,13 +218,11 @@ fn iter2<S,T,U:copy>(ss: [S], ts: [T],
218218

219219
#[doc="
220220
Unwraps a result, assuming it is an `ok(T)`
221-
222-
This operation is unsafe.
223221
"]
224222
fn unwrap<T, U>(-res: result<T, U>) -> T unsafe {
225223
let addr = alt res {
226224
ok(x) { ptr::addr_of(x) }
227-
err(_) { fail "option none" }
225+
err(_) { fail "error result" }
228226
};
229227
let liberated_value = unsafe::reinterpret_cast(*addr);
230228
unsafe::forget(res);

0 commit comments

Comments
 (0)