about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-06-10 18:54:35 -0700
committerAlex Crichton <alex@alexcrichton.com>2015-06-17 09:07:17 -0700
commit96cce02924b83227b53799c2992f5040340528fc (patch)
treee3ea15d3238919ee2e208df57bddbd35afb9e6b7
parent0d818b4ee4a978babc8781ece028a7d0e9ed2e36 (diff)
downloadrust-96cce02924b83227b53799c2992f5040340528fc.tar.gz
rust-96cce02924b83227b53799c2992f5040340528fc.zip
std: Deprecate the `exit_status` feature
These two functions should be replaceable with the `process::exit` function.
-rw-r--r--src/libstd/env.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libstd/env.rs b/src/libstd/env.rs
index 7f83f0763c6..2e00e126e23 100644
--- a/src/libstd/env.rs
+++ b/src/libstd/env.rs
@@ -486,6 +486,7 @@ static EXIT_STATUS: AtomicIsize = AtomicIsize::new(0);
 ///
 /// Note that this is not synchronized against modifications of other threads.
 #[unstable(feature = "exit_status", reason = "managing the exit status may change")]
+#[deprecated(since = "1.2.0", reason = "use process::exit instead")]
 pub fn set_exit_status(code: i32) {
     EXIT_STATUS.store(code as isize, Ordering::SeqCst)
 }
@@ -493,6 +494,7 @@ pub fn set_exit_status(code: i32) {
 /// Fetches the process's current exit code. This defaults to 0 and can change
 /// by calling `set_exit_status`.
 #[unstable(feature = "exit_status", reason = "managing the exit status may change")]
+#[deprecated(since = "1.2.0", reason = "use process::exit instead")]
 pub fn get_exit_status() -> i32 {
     EXIT_STATUS.load(Ordering::SeqCst) as i32
 }