Rollup merge of #139105 - ShE3py:BackendRepr-is_signed, r=compiler-errors

`BackendRepr::is_signed`: comment why this may panics

Was wondering why this method could panics while the others couldn't, so quote PR #70189.
This commit is contained in:
Matthias Krüger 2025-03-29 21:08:14 +01:00 committed by GitHub
commit 713c58e37d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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 {