From f2a90174bb36b9ad528e863ab34c02ebce002b02 Mon Sep 17 00:00:00 2001 From: Valentin Date: Fri, 15 Jun 2018 18:57:24 +0200 Subject: Update for latest nightly 2018-06-09 (#70) * Update for latest nightly 2018-06-09 * We now have a proper horizon os and sys modules in libstd --- ctr-std/src/process.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ctr-std/src/process.rs') diff --git a/ctr-std/src/process.rs b/ctr-std/src/process.rs index 00051d4..732f43c 100644 --- a/ctr-std/src/process.rs +++ b/ctr-std/src/process.rs @@ -1099,7 +1099,7 @@ impl fmt::Display for ExitStatus { /// [RFC #1937]: https://github.com/rust-lang/rfcs/pull/1937 #[derive(Clone, Copy, Debug)] #[unstable(feature = "process_exitcode_placeholder", issue = "48711")] -pub struct ExitCode(imp::ExitCode); +pub struct ExitCode(pub u8); #[unstable(feature = "process_exitcode_placeholder", issue = "48711")] impl ExitCode { @@ -1109,7 +1109,7 @@ impl ExitCode { /// termination, so there's no need to return this from `main` unless /// you're also returning other possible codes. #[unstable(feature = "process_exitcode_placeholder", issue = "48711")] - pub const SUCCESS: ExitCode = ExitCode(imp::ExitCode::SUCCESS); + pub const SUCCESS: ExitCode = ExitCode(0 as _); /// The canonical ExitCode for unsuccessful termination on this platform. /// @@ -1117,7 +1117,7 @@ impl ExitCode { /// instead returning `Err(_)` and `Ok(())` respectively, which will /// return the same codes (but will also `eprintln!` the error). #[unstable(feature = "process_exitcode_placeholder", issue = "48711")] - pub const FAILURE: ExitCode = ExitCode(imp::ExitCode::FAILURE); + pub const FAILURE: ExitCode = ExitCode(-1 as _); } impl Child { @@ -1493,7 +1493,7 @@ impl Termination for Result { impl Termination for ExitCode { #[inline] fn report(self) -> i32 { - self.0.as_i32() + self.0 as i32 } } -- cgit v1.2.3