From 65251d65f458a501a5b6400ca5793bc22c8c0c95 Mon Sep 17 00:00:00 2001 From: Erich Gubler Date: Tue, 13 Dec 2022 10:37:34 -0500 Subject: [PATCH] docs: remove `Panics` section of `TypeInner::size` Requested at . --- src/proc/mod.rs | 5 ----- 1 file changed, 5 deletions(-) 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,