Skip to content

Commit ec8a805

Browse files
committed
core: Inherit the kinds module
1 parent 2862466 commit ec8a805

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed
File renamed without changes.

src/libcore/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,7 @@ pub mod cast;
2727
pub mod intrinsics;
2828
pub mod mem;
2929
pub mod ptr;
30+
31+
/* Core language traits */
32+
33+
pub mod kinds;

src/libstd/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,8 @@ extern crate core;
133133
#[cfg(test)] pub use ty = realstd::ty;
134134
#[cfg(test)] pub use owned = realstd::owned;
135135

136+
#[cfg(not(test))] pub use kinds = core::kinds;
137+
136138
pub use core::cast;
137139
pub use core::intrinsics;
138140
pub use core::mem;
@@ -202,7 +204,6 @@ pub mod gc;
202204

203205
/* Core language traits */
204206

205-
#[cfg(not(test))] pub mod kinds;
206207
#[cfg(not(test))] pub mod ops;
207208
#[cfg(not(test))] pub mod cmp;
208209
#[cfg(not(test))] pub mod ty;

0 commit comments

Comments
 (0)