We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 792a9f1 commit 7300ed8Copy full SHA for 7300ed8
src/libcollections/vec.rs
@@ -1384,10 +1384,6 @@ impl<T: Ord> Ord for Vec<T> {
1384
impl<T> Drop for Vec<T> {
1385
#[unsafe_destructor_blind_to_params]
1386
fn drop(&mut self) {
1387
- // NOTE: this is currently abusing the fact that ZSTs can't impl Drop.
1388
- // Or rather, that impl'ing Drop makes them not zero-sized. This is
1389
- // OK because exactly when this stops being a valid assumption, we
1390
- // don't need unsafe_no_drop_flag shenanigans anymore.
1391
if self.buf.unsafe_no_drop_flag_needs_drop() {
1392
unsafe {
1393
// The branch on needs_drop() is an -O1 performance optimization.
0 commit comments