diff options
| author | Aaron Turon <aturon@mozilla.com> | 2015-01-17 16:15:52 -0800 | 
|---|---|---|
| committer | Aaron Turon <aturon@mozilla.com> | 2015-01-21 08:11:07 -0800 | 
| commit | a506d4cbfe8f20a2725c7efd9d43359a0bbd0e9e (patch) | |
| tree | d3cc252236786a58efbdd2b3c4bf3f12af88039e /src/libstd/sys/unix | |
| parent | 092ba6a8563b5c95f5aa53a705eaba6cc94e2da7 (diff) | |
| download | rust-a506d4cbfe8f20a2725c7efd9d43359a0bbd0e9e.tar.gz rust-a506d4cbfe8f20a2725c7efd9d43359a0bbd0e9e.zip | |
Fallout from stabilization.
Diffstat (limited to 'src/libstd/sys/unix')
| -rw-r--r-- | src/libstd/sys/unix/process.rs | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/src/libstd/sys/unix/process.rs b/src/libstd/sys/unix/process.rs index 36bf696dba5..46639d7d8f0 100644 --- a/src/libstd/sys/unix/process.rs +++ b/src/libstd/sys/unix/process.rs @@ -125,9 +125,9 @@ impl Process { 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)) } | 
