1
Fork 0

Add primitive module to libcore/std

This re-exports the primitive types from libcore at `core::primitive` to allow
macro authors to have a reliable location to use them from.
This commit is contained in:
Mark Rousskov 2019-12-26 12:55:13 -05:00
parent 1f8df2508f
commit 178de46116
5 changed files with 97 additions and 1 deletions

View file

@ -233,12 +233,12 @@
#![feature(allocator_internals)]
#![feature(allow_internal_unsafe)]
#![feature(allow_internal_unstable)]
#![feature(atomic_mut_ptr)]
#![feature(arbitrary_self_types)]
#![feature(array_error_internals)]
#![feature(asm)]
#![feature(assoc_int_consts)]
#![feature(associated_type_bounds)]
#![feature(atomic_mut_ptr)]
#![feature(box_syntax)]
#![feature(c_variadic)]
#![feature(cfg_target_has_atomic)]
@ -550,6 +550,9 @@ pub use core::{
trace_macros,
};
#[stable(feature = "core_primitive", since = "1.42.0")]
pub use core::primitive;
// Include a number of private modules that exist solely to provide
// the rustdoc documentation for primitive types. Using `include!`
// because rustdoc only looks for these modules at the crate level.