mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-05 03:38:29 +00:00
document Box and box_free connection
This commit is contained in:
parent
214cd1f228
commit
db4e60b29f
@ -169,6 +169,9 @@ use crate::vec::Vec;
|
|||||||
#[lang = "owned_box"]
|
#[lang = "owned_box"]
|
||||||
#[fundamental]
|
#[fundamental]
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
|
// The declaration of the `Box` struct must be kept in sync with the
|
||||||
|
// `alloc::alloc::box_free` function or ICEs will happen. See the comment
|
||||||
|
// on `box_free` for more details.
|
||||||
pub struct Box<
|
pub struct Box<
|
||||||
T: ?Sized,
|
T: ?Sized,
|
||||||
#[unstable(feature = "allocator_api", issue = "32838")] A: Allocator = Global,
|
#[unstable(feature = "allocator_api", issue = "32838")] A: Allocator = Global,
|
||||||
|
Loading…
Reference in New Issue
Block a user