Skip to content

Commit dbef124

Browse files
committed
Move std::os::raw to core::os::raw
… and re-export at the old location. This is primarily motivated by rust-lang/libc#71 (to support src/liblibc), but also because why not.
1 parent e24fffe commit dbef124

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

src/libcore/lib.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,3 +170,10 @@ pub mod fmt;
170170

171171
// note: does not need to be public
172172
mod tuple;
173+
174+
/* Raw OS-specific types for the current platform/architecture */
175+
176+
pub mod os {
177+
#![allow(missing_docs, bad_style)]
178+
pub mod raw;
179+
}
File renamed without changes.

src/libstd/os/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,5 @@ pub use sys::ext as windows;
3131
#[cfg(target_os = "netbsd")] pub mod netbsd;
3232
#[cfg(target_os = "openbsd")] pub mod openbsd;
3333

34-
pub mod raw;
34+
#[stable(feature = "raw_os", since = "1.1.0")]
35+
pub use core::os::raw;

0 commit comments

Comments
 (0)