1 #![allow(non_fmt_panics)]
3 macro_rules! assert_const {
6 debug_assert!($len < 0);
12 assert!(true, "true message");
13 assert!(false, "false message");
15 let msg = "panic message";
16 assert!(false, "{}", msg.to_uppercase());
21 const C: bool = false;
23 assert!(C, "C message");
26 // Don't lint this, since there is no better way for expressing "Only panic in debug mode".
27 debug_assert!(false); // #3948
31 // Don't lint on this:
32 assert!(cfg!(feature = "hey") || cfg!(not(feature = "asdf")));