Skip to content

Commit c9ee101

Browse files
committed
Add a comment linking to Box::new_uninit
1 parent bf6ede6 commit c9ee101

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

macro/src/expand.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1229,6 +1229,9 @@ fn expand_rust_box(key: NamedImplKey, types: &Types, explicit_impl: Option<&Impl
12291229
#[doc(hidden)]
12301230
#[export_name = #link_alloc]
12311231
unsafe extern "C" fn #local_alloc #impl_generics() -> *mut ::cxx::core::mem::MaybeUninit<#ident #ty_generics> {
1232+
// TODO: replace with Box::new_uninit when stable.
1233+
// https://doc.rust-lang.org/std/boxed/struct.Box.html#method.new_uninit
1234+
// https://github.com/rust-lang/rust/issues/63291
12321235
::cxx::alloc::boxed::Box::into_raw(::cxx::alloc::boxed::Box::new(::cxx::core::mem::MaybeUninit::uninit()))
12331236
}
12341237
#[doc(hidden)]

0 commit comments

Comments
 (0)