BackendRepr::is_signed: comment why this may panics

This commit is contained in:
Lieselotte
2025-03-29 12:21:51 +01:00
parent 928468c47c
commit 439048e074

View File

@@ -1462,7 +1462,8 @@ impl BackendRepr {
!self.is_unsized()
}
/// Returns `true` if this is a single signed integer scalar
/// Returns `true` if this is a single signed integer scalar.
/// Sanity check: panics if this is not a scalar type (see PR #70189).
#[inline]
pub fn is_signed(&self) -> bool {
match self {