diff options
| author | bors <bors@rust-lang.org> | 2015-10-21 02:39:59 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-10-21 02:39:59 +0000 |
| commit | fddf2f75747faf5e0e2fa9e10befe30120554e02 (patch) | |
| tree | ffc16d493a298dc851371210594a038f5ced2bcb /src/libcollections | |
| parent | 4826f9625b589b9b0ec61791b040b51e131347b5 (diff) | |
| parent | 2b712c78cfb88960aeb1928d008291881d2c7341 (diff) | |
Auto merge of #29186 - pnkfelix:fsk-fix-issue-29166, r=alexcrichton
Add dropck unsafe escape hatch (UGEH) to vec::IntoIter. Fix #29166
Diffstat (limited to 'src/libcollections')
| -rw-r--r-- | src/libcollections/vec.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libcollections/vec.rs b/src/libcollections/vec.rs index d374c0959f3..40e1222c884 100644 --- a/src/libcollections/vec.rs +++ b/src/libcollections/vec.rs @@ -1577,6 +1577,7 @@ impl<T> ExactSizeIterator for IntoIter<T> {} #[stable(feature = "rust1", since = "1.0.0")] impl<T> Drop for IntoIter<T> { + #[unsafe_destructor_blind_to_params] fn drop(&mut self) { // destroy the remaining elements for _x in self {} |
