Compile unchecked diagnostics in release mode

This commit is contained in:
2026-07-31 04:03:09 +02:00
parent 29dfa1e508
commit be98362c28
-1
View File
@@ -249,7 +249,6 @@ impl TypeErasedVec {
/// # Safety
/// `T` must have the same `Layout` as the underlying capacity.
pub unsafe fn as_type_unchecked<T: 'static>(&mut self) -> ContentGuard<'_, T> {
#[cfg(debug_assertions)]
let layout = self.layout;
let res = self.try_as_type();