X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Ftools%2Fclippy%2Ftests%2Fui%2Fsingle_component_path_imports_macro.rs;h=fda294a61546b5c6fa2befd83ef8281b92bba9ea;hb=3365e9a120fcce6994a95ecc324a6c911b2a1403;hp=3c65ca3054c6919eb859317608a43151ea71eb5c;hpb=d2df372bca13bb60979c909660e69f2451630e81;p=rust.git diff --git a/src/tools/clippy/tests/ui/single_component_path_imports_macro.rs b/src/tools/clippy/tests/ui/single_component_path_imports_macro.rs index 3c65ca3054c..fda294a6154 100644 --- a/src/tools/clippy/tests/ui/single_component_path_imports_macro.rs +++ b/src/tools/clippy/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!();