2021-04-22 04:34:36 -05:00
|
|
|
#![warn(clippy::single_component_path_imports)]
|
|
|
|
#![allow(unused_imports)]
|
|
|
|
|
|
|
|
// #7106: use statements exporting a macro within a crate should not trigger lint
|
2022-03-14 16:39:36 -05:00
|
|
|
// #7923: normal `use` statements of macros should also not trigger the lint
|
2021-04-22 04:34:36 -05:00
|
|
|
|
|
|
|
macro_rules! m1 {
|
|
|
|
() => {};
|
|
|
|
}
|
|
|
|
pub(crate) use m1; // ok
|
|
|
|
|
|
|
|
macro_rules! m2 {
|
|
|
|
() => {};
|
|
|
|
}
|
2022-03-14 16:39:36 -05:00
|
|
|
use m2; // ok
|
2021-04-22 04:34:36 -05:00
|
|
|
|
|
|
|
fn main() {
|
|
|
|
m1!();
|
|
|
|
m2!();
|
|
|
|
}
|