Fix outdated comment on Box

This commit is contained in:
bjorn3 2024-01-26 12:15:46 +00:00
parent 69db514ed9
commit 1f994c7695

View File

@ -191,8 +191,7 @@ mod thin;
#[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 // 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 // compiler or ICEs will happen.
// 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,