]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/single_component_path_imports_macro.rs
Allow `single_component_path_imports` for all macros
[rust.git] / tests / ui / single_component_path_imports_macro.rs
index 3c65ca3054c6919eb859317608a43151ea71eb5c..fda294a61546b5c6fa2befd83ef8281b92bba9ea 100644 (file)
@@ -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!();