Use ptr::drop_in_place in Vec::drop
Directly use the drop glue for [T]. Still optimizes out in -O1 like with the `needs_drop` intrinsic.
Showing
想要评论请 注册 或 登录
Directly use the drop glue for [T]. Still optimizes out in -O1 like with the `needs_drop` intrinsic.