2229: Annotate stdlib with insignficant dtors
This commit is contained in:
parent
95cfbe43d2
commit
099a34cd95
8 changed files with 9 additions and 0 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue