]> git.lizzy.rs Git - rust.git/blobdiff - src/libstd/sys/unix/process.rs
Fallout from stabilization.
[rust.git] / src / libstd / sys / unix / process.rs
index 36bf696dba5503da7cb02b613ee782cf941be89d..46639d7d8f0cdf599b17b42ed84f674d37017a48 100644 (file)
@@ -125,9 +125,9 @@ fn combine(arr: &[u8]) -> i32 {
                     let mut bytes = [0; 8];
                     return match input.read(&mut bytes) {
                         Ok(8) => {
-                            assert!(combine(CLOEXEC_MSG_FOOTER) == combine(bytes.slice(4, 8)),
+                            assert!(combine(CLOEXEC_MSG_FOOTER) == combine(&bytes[4.. 8]),
                                 "Validation on the CLOEXEC pipe failed: {:?}", bytes);
-                            let errno = combine(bytes.slice(0, 4));
+                            let errno = combine(&bytes[0.. 4]);
                             assert!(p.wait(0).is_ok(), "wait(0) should either return Ok or panic");
                             Err(super::decode_error(errno))
                         }