Skip to content

Commit

Permalink
docs: remove Panics section of TypeInner::size
Browse files Browse the repository at this point in the history
Requested at
<gfx-rs#2090 (comment)>.
  • Loading branch information
ErichDonGubler committed Dec 13, 2022
1 parent c533142 commit 65251d6
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/proc/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<super::Constant>) -> u32 {
match *self {
Self::Scalar { kind: _, width } | Self::Atomic { kind: _, width } => width as u32,
Expand Down

0 comments on commit 65251d6

Please sign in to comment.