2 #![warn(clippy::blocks_in_if_conditions)]
3 #![allow(unused, clippy::let_and_return)]
4 #![warn(clippy::nonminimal_bool)]
12 macro_rules! blocky_too {
25 fn condition_has_block() -> i32 {
36 fn condition_has_block_with_single_expression() -> i32 {
44 fn condition_is_normal() -> i32 {
53 fn condition_is_unsafe_block() {
56 // this should not warn because the condition is an unsafe block
57 if unsafe { 1u32 == std::mem::transmute(a) } {
58 println!("1u32 == a");
62 fn block_in_assert() {