about summary refs log tree commit diff
path: root/src/libstd/process.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-09-11 19:42:19 +0000
committerbors <bors@rust-lang.org>2015-09-11 19:42:19 +0000
commitc8ded9a14f16a4b5ce3facc3bedfd957dbe433fe (patch)
treed610a1695c2d8b14fbecaf9010a7eed0580a2eda /src/libstd/process.rs
parenteda85fede0ed55205545f0508b834994d86414ea (diff)
parentf4be2026dfb507e5db919cc5df8fd934e05fa0b8 (diff)
downloadrust-c8ded9a14f16a4b5ce3facc3bedfd957dbe433fe.tar.gz
rust-c8ded9a14f16a4b5ce3facc3bedfd957dbe433fe.zip
Auto merge of #28306 - alexcrichton:less-rt, r=brson
This commit does some refactoring to make almost all of the `std::rt` private.
Specifically, the following items are no longer part of its API:

* DEFAULT_ERROR_CODE
* backtrace
* unwind
* args
* at_exit
* cleanup
* heap (this is just alloc::heap)
* min_stack
* util

The module is now tagged as `#[doc(hidden)]` as the only purpose it's serve is
an entry point for the `panic!` macro via the `begin_unwind` and
`begin_unwind_fmt` reexports.
Diffstat (limited to 'src/libstd/process.rs')
-rw-r--r--src/libstd/process.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/process.rs b/src/libstd/process.rs
index 79f2d16fef4..5f5d5a69003 100644
--- a/src/libstd/process.rs
+++ b/src/libstd/process.rs
@@ -582,7 +582,7 @@ impl Child {
 /// to run.
 #[stable(feature = "rust1", since = "1.0.0")]
 pub fn exit(code: i32) -> ! {
-    ::rt::cleanup();
+    ::sys_common::cleanup();
     ::sys::os::exit(code)
 }