1 // aux-build:macro_rules.rs
3 #![warn(clippy::empty_loop)]
4 #![allow(clippy::unused_label)]
7 extern crate macro_rules;
20 fn should_not_trigger() {
22 panic!("This is fine")
24 let ten_millis = std::time::Duration::from_millis(10);
26 std::thread::sleep(ten_millis)
29 #[allow(clippy::never_loop)]
37 // Make sure `allow` works for this lint
38 #[allow(clippy::empty_loop)]
41 // We don't lint loops inside macros
48 // We don't lint external macros