We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ef4c41 commit 021e81fCopy full SHA for 021e81f
src/libstd/macros.rs
@@ -39,18 +39,10 @@ macro_rules! rtassert (
39
)
40
41
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
-
50
macro_rules! abort(
51
($( $msg:expr),+) => ( {
52
rtdebug!($($msg),+);
53
- ::macros::do_abort();
+ ::rt::util::abort();
54
} )
55
56
src/libstd/rt/util.rs
@@ -19,4 +19,8 @@ pub fn num_cpus() -> uint {
19
extern {
20
fn rust_get_num_cpus() -> libc::uintptr_t;
21
}
22
+}
23
+
24
+pub fn abort() -> ! {
25
+ unsafe { libc::abort(); }
26
0 commit comments