diff --git a/src/proc/mod.rs b/src/proc/mod.rs index cd7e9b8f9d..c718c33b24 100644 --- a/src/proc/mod.rs +++ b/src/proc/mod.rs @@ -98,11 +98,6 @@ impl super::TypeInner { } /// Get the size of this type. - /// - /// # Panics - /// - /// Panics if `constants` doesn't contain a referenced handle. This may not happen in - /// a properly validated IR module. pub fn size(&self, constants: &super::Arena) -> u32 { match *self { Self::Scalar { kind: _, width } | Self::Atomic { kind: _, width } => width as u32,