mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-05 03:38:29 +00:00
Update documentation
This commit is contained in:
parent
905d23b65c
commit
cac0dd63b3
@ -1,5 +1,3 @@
|
|||||||
#![allow(dead_code)]
|
|
||||||
|
|
||||||
use crate::alloc::{GlobalAlloc, Layout, System};
|
use crate::alloc::{GlobalAlloc, Layout, System};
|
||||||
use crate::cmp;
|
use crate::cmp;
|
||||||
use crate::ptr;
|
use crate::ptr;
|
||||||
|
@ -1 +1,13 @@
|
|||||||
|
// This module contains code that is shared between all platforms, mostly utility or fallback code.
|
||||||
|
// This explicitly does not include code that is shared between only a few platforms,
|
||||||
|
// such as when reusing an implementation from `unix` or `unsupported`.
|
||||||
|
// In those cases the desired code should be included directly using the #[path] attribute,
|
||||||
|
// not moved to this module.
|
||||||
|
//
|
||||||
|
// Currently `sys_common` contains a lot of code that should live in this module,
|
||||||
|
// ideally `sys_common` would only contain platform-independent abstractions on top of `sys`.
|
||||||
|
// Progress on this is tracked in #84187.
|
||||||
|
|
||||||
|
#![allow(dead_code)]
|
||||||
|
|
||||||
pub mod alloc;
|
pub mod alloc;
|
||||||
|
@ -8,9 +8,11 @@
|
|||||||
//! rest of `std` is complex, with dependencies going in all
|
//! rest of `std` is complex, with dependencies going in all
|
||||||
//! directions: `std` depending on `sys_common`, `sys_common`
|
//! directions: `std` depending on `sys_common`, `sys_common`
|
||||||
//! depending on `sys`, and `sys` depending on `sys_common` and `std`.
|
//! depending on `sys`, and `sys` depending on `sys_common` and `std`.
|
||||||
//! Ideally `sys_common` would be split into two and the dependencies
|
//! This is because `sys_common` not only contains platform-independent code,
|
||||||
//! between them all would form a dag, facilitating the extraction of
|
//! but also code that is shared between the different platforms in `sys`.
|
||||||
//! `std::sys` from the standard library.
|
//! Ideally all that shared code should be moved to `sys::common`,
|
||||||
|
//! and the dependencies between `std`, `sys_common` and `sys` all would form a dag.
|
||||||
|
//! Progress on this is tracked in #84187.
|
||||||
|
|
||||||
#![allow(missing_docs)]
|
#![allow(missing_docs)]
|
||||||
#![allow(missing_debug_implementations)]
|
#![allow(missing_debug_implementations)]
|
||||||
|
Loading…
Reference in New Issue
Block a user