Skip to content

Commit f478a6c

Browse files
committed
Include assertion expression in panic message
1 parent ad26ef9 commit f478a6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/core_arch/src/macros.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ macro_rules! static_assert {
7171
struct Validate<const $imm: $ty>();
7272
impl<const $imm: $ty> Validate<$imm> {
7373
const VALID: () = {
74-
assert!($e, "Assertion failed");
74+
assert!($e, concat_str!("Assertion failed: ", stringify!($e)));
7575
};
7676
}
7777
let _ = Validate::<$imm>::VALID;

0 commit comments

Comments
 (0)