Skip to content

Commit 439048e

Browse files
committed
BackendRepr::is_signed: comment why this may panics
1 parent 928468c commit 439048e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: compiler/rustc_abi/src/lib.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1462,7 +1462,8 @@ impl BackendRepr {
14621462
!self.is_unsized()
14631463
}
14641464

1465-
/// Returns `true` if this is a single signed integer scalar
1465+
/// Returns `true` if this is a single signed integer scalar.
1466+
/// Sanity check: panics if this is not a scalar type (see PR #70189).
14661467
#[inline]
14671468
pub fn is_signed(&self) -> bool {
14681469
match self {

0 commit comments

Comments
 (0)