We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
BackendRepr::is_signed
1 parent 928468c commit 439048eCopy full SHA for 439048e
compiler/rustc_abi/src/lib.rs
@@ -1462,7 +1462,8 @@ impl BackendRepr {
1462
!self.is_unsized()
1463
}
1464
1465
- /// Returns `true` if this is a single signed integer scalar
+ /// Returns `true` if this is a single signed integer scalar.
1466
+ /// Sanity check: panics if this is not a scalar type (see PR #70189).
1467
#[inline]
1468
pub fn is_signed(&self) -> bool {
1469
match self {
0 commit comments