Compile unchecked diagnostics in release mode
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user