about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2020-02-26 02:07:05 +0100
committerGitHub <noreply@github.com>2020-02-26 02:07:05 +0100
commit0860f5aebd1939b821cf9af5ba568cbd6be8077e (patch)
tree803b98b762167a21f0a72ccb14bf5b02a167a11a /src/libstd
parent6fd8798f4de63328d743eb2a9a9c12e202a4a182 (diff)
parent9c3ee1bc351fcfabcfd47947dc44b0c020427181 (diff)
downloadrust-0860f5aebd1939b821cf9af5ba568cbd6be8077e.tar.gz
rust-0860f5aebd1939b821cf9af5ba568cbd6be8077e.zip
Rollup merge of #67637 - Mark-Simulacrum:primitive-mod, r=dtolnay
Add primitive module to libcore

This re-exports the primitive types from libcore at `core::primitive` to allow
macro authors to have a reliable location to use them from.

Fixes #44865
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/lib.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libstd/lib.rs b/src/libstd/lib.rs
index 799585ffc0a..7b3c702b929 100644
--- a/src/libstd/lib.rs
+++ b/src/libstd/lib.rs
@@ -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)]
@@ -551,6 +551,9 @@ pub use core::{
     trace_macros,
 };
 
+#[stable(feature = "core_primitive", since = "1.43.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.