Skip to content

Commit dca8a0d

Browse files
committed
core: Inherit the mem module
1 parent 5b75e44 commit dca8a0d

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

src/libcore/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,4 @@
2424
/* Core modules for ownership management */
2525

2626
pub mod intrinsics;
27+
pub mod mem;

src/libstd/mem.rs renamed to src/libcore/mem.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
//! This module contains functions for querying the size and alignment of
1414
//! types, initializing and manipulating memory.
1515
16-
#![allow(missing_doc)] // FIXME
17-
1816
use cast;
1917
use ptr;
2018
use intrinsics;

src/libstd/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ extern crate core;
134134
#[cfg(test)] pub use owned = realstd::owned;
135135

136136
pub use core::intrinsics;
137+
pub use core::mem;
137138

138139
// Run tests with libgreen instead of libnative.
139140
//
@@ -243,8 +244,6 @@ pub mod path;
243244
pub mod cast;
244245
pub mod fmt;
245246
pub mod cleanup;
246-
pub mod mem;
247-
248247

249248
/* Unsupported interfaces */
250249

0 commit comments

Comments
 (0)