X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=tests%2Fui%2Fsingle_component_path_imports_macro.rs;h=fda294a61546b5c6fa2befd83ef8281b92bba9ea;hb=2ee53723897407ea31a1803af9bbedf98a49f934;hp=3c65ca3054c6919eb859317608a43151ea71eb5c;hpb=4e3fac9118d47227bcdf3aab444b906e59df42ff;p=rust.git diff --git a/tests/ui/single_component_path_imports_macro.rs b/tests/ui/single_component_path_imports_macro.rs index 3c65ca3054c..fda294a6154 100644 --- a/tests/ui/single_component_path_imports_macro.rs +++ b/tests/ui/single_component_path_imports_macro.rs @@ -1,8 +1,8 @@ -// run-rustfix #![warn(clippy::single_component_path_imports)] #![allow(unused_imports)] // #7106: use statements exporting a macro within a crate should not trigger lint +// #7923: normal `use` statements of macros should also not trigger the lint macro_rules! m1 { () => {}; @@ -12,7 +12,7 @@ macro_rules! m1 { macro_rules! m2 { () => {}; } -use m2; // fail +use m2; // ok fn main() { m1!();