Move std::sys_common::alloc to std::sys::common

This commit is contained in:
Christiaan Dirkx 2021-02-24 19:16:24 +01:00
parent 3f8added70
commit 905d23b65c
6 changed files with 5 additions and 3 deletions

View File

@ -0,0 +1 @@
pub mod alloc;

View File

@ -22,6 +22,8 @@
#![allow(missing_debug_implementations)]
mod common;
cfg_if::cfg_if! {
if #[cfg(target_os = "vxworks")] {
mod vxworks;

View File

@ -1,6 +1,6 @@
use crate::alloc::{GlobalAlloc, Layout, System};
use crate::ptr;
use crate::sys_common::alloc::{realloc_fallback, MIN_ALIGN};
use crate::sys::common::alloc::{realloc_fallback, MIN_ALIGN};
#[stable(feature = "alloc_system_type", since = "1.28.0")]
unsafe impl GlobalAlloc for System {

View File

@ -5,7 +5,7 @@
use crate::ptr;
use crate::sync::atomic::{AtomicPtr, Ordering};
use crate::sys::c;
use crate::sys_common::alloc::{realloc_fallback, MIN_ALIGN};
use crate::sys::common::alloc::{realloc_fallback, MIN_ALIGN};
#[cfg(test)]
mod tests;

View File

@ -46,7 +46,6 @@ macro_rules! rtunwrap {
};
}
pub mod alloc;
pub mod at_exit_imp;
pub mod backtrace;
pub mod bytestring;