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