diff options
| author | Steve Klabnik <steve@steveklabnik.com> | 2015-11-05 22:28:49 +0100 |
|---|---|---|
| committer | Steve Klabnik <steve@steveklabnik.com> | 2015-11-05 22:28:49 +0100 |
| commit | 0171abb0d05bdc5b2d4a3705b85bc4a9a231cbbe (patch) | |
| tree | 937c01ed2608fc36b0869b27e3e0fa2c323e6e62 /src | |
| parent | 15dd4170ff05f561964da4679f8958ce2172889d (diff) | |
| parent | 7300ed8e401f7a0910a17b981c315e1e3e9f8128 (diff) | |
| download | rust-0171abb0d05bdc5b2d4a3705b85bc4a9a231cbbe.tar.gz rust-0171abb0d05bdc5b2d4a3705b85bc4a9a231cbbe.zip | |
Rollup merge of #29614 - bluss:vec-drop-comment, r=Gankro
vec: Remove old comment in Vec::drop This comment was leftover from an earlier revision of a PR, something that never was merged. There is no ZST special casing in Vec::drop.
Diffstat (limited to 'src')
| -rw-r--r-- | src/libcollections/vec.rs | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/libcollections/vec.rs b/src/libcollections/vec.rs index a22e66583c4..95158054d65 100644 --- a/src/libcollections/vec.rs +++ b/src/libcollections/vec.rs @@ -1384,10 +1384,6 @@ impl<T: Ord> Ord for Vec<T> { impl<T> Drop for Vec<T> { #[unsafe_destructor_blind_to_params] fn drop(&mut self) { - // NOTE: this is currently abusing the fact that ZSTs can't impl Drop. - // Or rather, that impl'ing Drop makes them not zero-sized. This is - // OK because exactly when this stops being a valid assumption, we - // don't need unsafe_no_drop_flag shenanigans anymore. if self.buf.unsafe_no_drop_flag_needs_drop() { unsafe { // The branch on needs_drop() is an -O1 performance optimization. |
