Skip to content

Commit f1ce931

Browse files
committed
---
yaml --- r: 63459 b: refs/heads/snap-stage3 c: 021e81f h: refs/heads/master i: 63457: f9f55b2 63455: 0e9d430 v: v3
1 parent b0f8e73 commit f1ce931

File tree

3 files changed

+6
-10
lines changed

3 files changed

+6
-10
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 2d28d645422c1617be58c8ca7ad9a457264ca850
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 9ef4c413a869b4fc1e5df3f79f484b2ffd46cda0
4+
refs/heads/snap-stage3: 021e81fbd311d93c94cbd40524ff53062fd7fe6e
55
refs/heads/try: 7b78b52e602bb3ea8174f9b2006bff3315f03ef9
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/libstd/macros.rs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,18 +39,10 @@ macro_rules! rtassert (
3939
)
4040

4141

42-
// The do_abort function was originally inside the abort macro, but
43-
// this was ICEing the compiler so it has been moved outside. Now this
44-
// seems to work?
45-
#[allow(missing_doc)]
46-
pub fn do_abort() -> ! {
47-
unsafe { ::libc::abort(); }
48-
}
49-
5042
macro_rules! abort(
5143
($( $msg:expr),+) => ( {
5244
rtdebug!($($msg),+);
53-
::macros::do_abort();
45+
::rt::util::abort();
5446
} )
5547
)
5648

branches/snap-stage3/src/libstd/rt/util.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,8 @@ pub fn num_cpus() -> uint {
1919
extern {
2020
fn rust_get_num_cpus() -> libc::uintptr_t;
2121
}
22+
}
23+
24+
pub fn abort() -> ! {
25+
unsafe { libc::abort(); }
2226
}

0 commit comments

Comments
 (0)