diff options
| author | Aman Arora <me@aman-arora.com> | 2021-09-22 05:17:30 -0400 |
|---|---|---|
| committer | Aman Arora <me@aman-arora.com> | 2021-09-22 05:17:30 -0400 |
| commit | 994793faabba1c490d108504b428ac653433ae44 (patch) | |
| tree | 24e6c24c89287efbc64530e41c6589cb4d84c9a7 /library/alloc/src/collections/btree/map.rs | |
| parent | d2cbe217566de4c95685316c7d59aa2823868a53 (diff) | |
| download | rust-994793faabba1c490d108504b428ac653433ae44.tar.gz rust-994793faabba1c490d108504b428ac653433ae44.zip | |
PR fixup
Diffstat (limited to 'library/alloc/src/collections/btree/map.rs')
| -rw-r--r-- | library/alloc/src/collections/btree/map.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/alloc/src/collections/btree/map.rs b/library/alloc/src/collections/btree/map.rs index 5486f862718..10298e117f5 100644 --- a/library/alloc/src/collections/btree/map.rs +++ b/library/alloc/src/collections/btree/map.rs @@ -155,6 +155,7 @@ pub(super) const MIN_LEN: usize = node::MIN_LEN_AFTER_SPLIT; /// ``` #[stable(feature = "rust1", since = "1.0.0")] #[cfg_attr(not(test), rustc_diagnostic_item = "BTreeMap")] +#[rustc_insignificant_dtor] pub struct BTreeMap<K, V> { root: Option<Root<K, V>>, length: usize, @@ -162,7 +163,6 @@ pub struct BTreeMap<K, V> { #[stable(feature = "btree_drop", since = "1.7.0")] unsafe impl<#[may_dangle] K, #[may_dangle] V> Drop for BTreeMap<K, V> { - #[rustc_insignificant_dtor] fn drop(&mut self) { drop(unsafe { ptr::read(self) }.into_iter()) } @@ -331,6 +331,7 @@ impl<K: fmt::Debug, V: fmt::Debug> fmt::Debug for IterMut<'_, K, V> { /// /// [`into_iter`]: IntoIterator::into_iter #[stable(feature = "rust1", since = "1.0.0")] +#[rustc_insignificant_dtor] pub struct IntoIter<K, V> { range: LazyLeafRange<marker::Dying, K, V>, length: usize, @@ -1460,7 +1461,6 @@ impl<K, V> IntoIterator for BTreeMap<K, V> { #[stable(feature = "btree_drop", since = "1.7.0")] impl<K, V> Drop for IntoIter<K, V> { - #[rustc_insignificant_dtor] fn drop(&mut self) { struct DropGuard<'a, K, V>(&'a mut IntoIter<K, V>); |
