]> git.lizzy.rs Git - rust.git/blobdiff - crates/ide_assists/src/handlers/merge_imports.rs
Don't compare ast::Visibility by stringifying
[rust.git] / crates / ide_assists / src / handlers / merge_imports.rs
index 31854840c22d345d69e345f2053a9747b3091fe6..fc117bd9a8469c6eb676977512eac5bd1211ca10 100644 (file)
@@ -212,6 +212,20 @@ fn merge_pub_crate() {
         )
     }
 
+    #[test]
+    fn merge_pub_in_path_crate() {
+        check_assist(
+            merge_imports,
+            r"
+pub(in this::path) use std::fmt$0::Debug;
+pub(in this::path) use std::fmt::Display;
+",
+            r"
+pub(in this::path) use std::fmt::{Debug, Display};
+",
+        )
+    }
+
     #[test]
     fn test_merge_nested() {
         check_assist(