Move std::sys_common::alloc
to std::sys::common
This commit is contained in:
parent
3f8added70
commit
905d23b65c
1
library/std/src/sys/common/mod.rs
Normal file
1
library/std/src/sys/common/mod.rs
Normal file
@ -0,0 +1 @@
|
||||
pub mod alloc;
|
@ -22,6 +22,8 @@
|
||||
|
||||
#![allow(missing_debug_implementations)]
|
||||
|
||||
mod common;
|
||||
|
||||
cfg_if::cfg_if! {
|
||||
if #[cfg(target_os = "vxworks")] {
|
||||
mod vxworks;
|
||||
|
@ -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 {
|
||||
|
@ -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;
|
||||
|
@ -46,7 +46,6 @@ macro_rules! rtunwrap {
|
||||
};
|
||||
}
|
||||
|
||||
pub mod alloc;
|
||||
pub mod at_exit_imp;
|
||||
pub mod backtrace;
|
||||
pub mod bytestring;
|
||||
|
Loading…
Reference in New Issue
Block a user