We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ad26ef9 commit f478a6cCopy full SHA for f478a6c
crates/core_arch/src/macros.rs
@@ -71,7 +71,7 @@ macro_rules! static_assert {
71
struct Validate<const $imm: $ty>();
72
impl<const $imm: $ty> Validate<$imm> {
73
const VALID: () = {
74
- assert!($e, "Assertion failed");
+ assert!($e, concat_str!("Assertion failed: ", stringify!($e)));
75
};
76
}
77
let _ = Validate::<$imm>::VALID;
0 commit comments