1 // aux-build:macro_rules.rs
3 #![warn(clippy::empty_loop)]
6 extern crate macro_rules;
19 fn should_not_trigger() {
21 panic!("This is fine")
23 let ten_millis = std::time::Duration::from_millis(10);
25 std::thread::sleep(ten_millis)
28 #[allow(clippy::never_loop)]
36 // Make sure `allow` works for this lint
37 #[allow(clippy::empty_loop)]
40 // We don't lint loops inside macros
47 // We don't lint external macros