1
Fork 0

2229: Annotate stdlib with insignficant dtors

This commit is contained in:
Aman Arora 2021-09-21 04:04:50 -04:00
parent 95cfbe43d2
commit 099a34cd95
8 changed files with 9 additions and 0 deletions

View file

@ -2746,6 +2746,7 @@ impl<T: Ord, A: Allocator> Ord for Vec<T, A> {
#[stable(feature = "rust1", since = "1.0.0")]
unsafe impl<#[may_dangle] T, A: Allocator> Drop for Vec<T, A> {
#[rustc_insignificant_dtor]
fn drop(&mut self) {
unsafe {
// use drop for [T]