Skip to content

Commit 083d172

Browse files
committed
Remove niche optimizations never will be stable
1 parent 1fe614c commit 083d172

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

src/cvt.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use std::io::{self, Error, ErrorKind, IoSlice, IoSliceMut, SeekFrom};
1+
use std::io::ErrorKind;
22

33
#[doc(hidden)]
44
pub trait IsMinusOne {

src/fd.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![unstable(reason = "not public", issue = "none", feature = "fd")]
2-
31
#[cfg(test)]
42
mod tests;
53

@@ -12,11 +10,6 @@ use crate::sys_common::AsInner;
1210
use libc::{c_int, c_void};
1311

1412
#[derive(Debug)]
15-
#[rustc_layout_scalar_valid_range_start(0)]
16-
// libstd/os/raw/mod.rs assures me that every libstd-supported platform has a
17-
// 32-bit c_int. Below is -2, in two's complement, but that only works out
18-
// because c_int is 32 bits.
19-
#[rustc_layout_scalar_valid_range_end(0xFF_FF_FF_FE)]
2013
pub struct FileDesc {
2114
fd: c_int,
2215
}

0 commit comments

Comments
 (0)