From 28624661c3ab16331d134fdbbfb2fd10513e9411 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Wed, 30 Apr 2014 20:20:44 -0700 Subject: [PATCH] core: Inherit the cast module --- src/{libstd => libcore}/cast.rs | 0 src/libcore/lib.rs | 1 + src/libstd/lib.rs | 2 +- 3 files changed, 2 insertions(+), 1 deletion(-) rename src/{libstd => libcore}/cast.rs (100%) diff --git a/src/libstd/cast.rs b/src/libcore/cast.rs similarity index 100% rename from src/libstd/cast.rs rename to src/libcore/cast.rs diff --git a/src/libcore/lib.rs b/src/libcore/lib.rs index bbbadad6e36..4f215793a38 100644 --- a/src/libcore/lib.rs +++ b/src/libcore/lib.rs @@ -23,6 +23,7 @@ /* Core modules for ownership management */ +pub mod cast; pub mod intrinsics; pub mod mem; pub mod ptr; diff --git a/src/libstd/lib.rs b/src/libstd/lib.rs index 1405d201a52..066886ba382 100644 --- a/src/libstd/lib.rs +++ b/src/libstd/lib.rs @@ -133,6 +133,7 @@ extern crate core; #[cfg(test)] pub use ty = realstd::ty; #[cfg(test)] pub use owned = realstd::owned; +pub use core::cast; pub use core::intrinsics; pub use core::mem; pub use core::ptr; @@ -242,7 +243,6 @@ pub mod c_vec; pub mod os; pub mod io; pub mod path; -pub mod cast; pub mod fmt; pub mod cleanup;