Skip to content

Commit

Permalink
Mark as permanently-unstable some implementation details
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonSapin committed Jun 11, 2018
1 parent 951bc28 commit 75e17da
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/libcore/alloc.rs
Expand Up @@ -19,7 +19,7 @@ use usize;
use ptr::{self, NonNull};
use num::NonZeroUsize;

#[unstable(feature = "allocator_api", issue = "32838")]
#[unstable(feature = "alloc_internals", issue = "0")]
#[cfg(stage0)]
pub type Opaque = u8;

Expand Down
4 changes: 2 additions & 2 deletions src/libstd/alloc.rs
Expand Up @@ -64,7 +64,7 @@ fn default_oom_hook(layout: Layout) {
#[cfg(not(test))]
#[doc(hidden)]
#[lang = "oom"]
#[unstable(feature = "allocator_api", issue = "32838")]
#[unstable(feature = "alloc_internals", issue = "0")]
pub extern fn rust_oom(layout: Layout) -> ! {
let hook = HOOK.load(Ordering::SeqCst);
let hook: fn(Layout) = if hook.is_null() {
Expand All @@ -79,7 +79,7 @@ pub extern fn rust_oom(layout: Layout) -> ! {
#[cfg(not(test))]
#[doc(hidden)]
#[allow(unused_attributes)]
#[unstable(feature = "allocator_api", issue = "32838")]
#[unstable(feature = "alloc_internals", issue = "0")]
pub mod __default_lib_allocator {
use super::{System, Layout, GlobalAlloc};
// for symbol names src/librustc/middle/allocator.rs
Expand Down

0 comments on commit 75e17da

Please sign in to comment.