Skip to content

Commit 285e057

Browse files
committed
---
yaml --- r: 97247 b: refs/heads/dist-snap c: a60f12d h: refs/heads/master i: 97245: be9824b 97243: bb9cb91 97239: e5adde9 97231: 2487711 97215: 36d513c v: v3
1 parent 62e5735 commit 285e057

File tree

3 files changed

+16
-23
lines changed

3 files changed

+16
-23
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: c274a6888410ce3e357e014568b43310ed787d36
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9-
refs/heads/dist-snap: b88138a3ec4bb142fa514a863b62f955bf1c44e3
9+
refs/heads/dist-snap: a60f12d84cc50978b09d1a092047025c7cc2df5e
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1212
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0

branches/dist-snap/src/libextra/getopts.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
//!
3232
//! ~~~{.rust}
3333
//! extern mod extra;
34-
//! use extra::getopts::*;
34+
//! use extra::getopts::{optopt,optflag,getopts};
3535
//! use std::os;
3636
//!
3737
//! fn do_work(inp: &str, out: Option<~str>) {

branches/dist-snap/src/libstd/rt/unwind.rs

Lines changed: 14 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -180,29 +180,22 @@ impl Unwinder {
180180
self.unwinding = true;
181181
self.cause = Some(cause);
182182

183-
rust_fail();
183+
unsafe {
184+
let exception = ~uw::_Unwind_Exception {
185+
exception_class: rust_exception_class(),
186+
exception_cleanup: exception_cleanup,
187+
private_1: 0,
188+
private_2: 0
189+
};
190+
let error = uw::_Unwind_RaiseException(cast::transmute(exception));
191+
rtabort!("Could not unwind stack, error = {}", error as int)
192+
}
184193

185-
// An uninlined, unmangled function upon which to slap yer breakpoints
186-
#[inline(never)]
187-
#[no_mangle]
188-
fn rust_fail() -> ! {
194+
extern "C" fn exception_cleanup(_unwind_code: uw::_Unwind_Reason_Code,
195+
exception: *uw::_Unwind_Exception) {
196+
rtdebug!("exception_cleanup()");
189197
unsafe {
190-
let exception = ~uw::_Unwind_Exception {
191-
exception_class: rust_exception_class(),
192-
exception_cleanup: exception_cleanup,
193-
private_1: 0,
194-
private_2: 0
195-
};
196-
let error = uw::_Unwind_RaiseException(cast::transmute(exception));
197-
rtabort!("Could not unwind stack, error = {}", error as int)
198-
}
199-
200-
extern "C" fn exception_cleanup(_unwind_code: uw::_Unwind_Reason_Code,
201-
exception: *uw::_Unwind_Exception) {
202-
rtdebug!("exception_cleanup()");
203-
unsafe {
204-
let _: ~uw::_Unwind_Exception = cast::transmute(exception);
205-
}
198+
let _: ~uw::_Unwind_Exception = cast::transmute(exception);
206199
}
207200
}
208201
}

0 commit comments

Comments
 (0)