Skip to content

Commit 3e8b55e

Browse files
committed
Remove the ZST special case
1 parent b8c0e54 commit 3e8b55e

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/raw/mod.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1229,12 +1229,7 @@ impl<A: Allocator + Clone> RawTableInner<A> {
12291229
debug_assert_ne!(self.bucket_mask, 0);
12301230
debug_assert!(index < self.buckets());
12311231
let base: *mut u8 = self.data_end().as_ptr();
1232-
if size_of == 0 {
1233-
// FIXME: Check if this `data_end` is aligned with ZST?
1234-
base
1235-
} else {
1236-
base.sub((index + 1) * size_of)
1237-
}
1232+
base.sub((index + 1) * size_of)
12381233
}
12391234

12401235
#[cfg_attr(feature = "inline-more", inline)]

0 commit comments

Comments
 (0)