]> git.lizzy.rs Git - rust.git/commitdiff
std: Add into_raw_os traits to the OS preludes
authorAlex Crichton <alex@alexcrichton.com>
Wed, 19 Aug 2015 00:23:45 +0000 (17:23 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Wed, 19 Aug 2015 00:23:45 +0000 (17:23 -0700)
These traits were mistakenly left out of the OS-specific prelude modules when
they were added.

src/libstd/sys/unix/ext/mod.rs
src/libstd/sys/windows/ext/mod.rs

index f7dee1a8f355f2a96453ac0c54c2ce0b80ad6167..5b9f36cbc373ab5da6c450707647be8634e62b0d 100644 (file)
@@ -41,7 +41,7 @@
 #[stable(feature = "rust1", since = "1.0.0")]
 pub mod prelude {
     #[doc(no_inline)]
-    pub use super::io::{RawFd, AsRawFd, FromRawFd};
+    pub use super::io::{RawFd, AsRawFd, FromRawFd, IntoRawFd};
     #[doc(no_inline)] #[stable(feature = "rust1", since = "1.0.0")]
     pub use super::ffi::{OsStrExt, OsStringExt};
     #[doc(no_inline)]
index 65c3c506d3c8effb27a8342026b9a561609c36c1..f69c2d075e3ea13aee4032e08751fd004a3dd2c4 100644 (file)
@@ -30,7 +30,7 @@ pub mod prelude {
     #[doc(no_inline)]
     pub use super::io::{RawSocket, RawHandle, AsRawSocket, AsRawHandle};
     #[doc(no_inline)]
-    pub use super::io::{FromRawSocket, FromRawHandle};
+    pub use super::io::{FromRawSocket, FromRawHandle, IntoRawSocket, IntoRawHandle};
     #[doc(no_inline)] #[stable(feature = "rust1", since = "1.0.0")]
     pub use super::ffi::{OsStrExt, OsStringExt};
     #[doc(no_inline)]