Skip to content

Commit db4e60b

Browse files
committed
document Box and box_free connection
1 parent 214cd1f commit db4e60b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

library/alloc/src/boxed.rs

+3
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,9 @@ use crate::vec::Vec;
169169
#[lang = "owned_box"]
170170
#[fundamental]
171171
#[stable(feature = "rust1", since = "1.0.0")]
172+
// The declaration of the `Box` struct must be kept in sync with the
173+
// `alloc::alloc::box_free` function or ICEs will happen. See the comment
174+
// on `box_free` for more details.
172175
pub struct Box<
173176
T: ?Sized,
174177
#[unstable(feature = "allocator_api", issue = "32838")] A: Allocator = Global,

0 commit comments

Comments
 (0)