aboutsummaryrefslogtreecommitdiff
path: root/crates/ide_assists/src
diff options
context:
space:
mode:
authorLukas Tobias Wirth <[email protected]>2021-05-20 16:27:51 +0100
committerLukas Tobias Wirth <[email protected]>2021-05-20 16:45:59 +0100
commitda7f1eb756ba849b70ccb7e6c961ccf233e19099 (patch)
treedcb4766c1dbd85188ebea29a2d6f9f48d369a76c /crates/ide_assists/src
parent8bb37737c9e8b7a390ae29d5fb0daaeeb495d2b5 (diff)
Don't compare ast::Visibility by stringifying
Diffstat (limited to 'crates/ide_assists/src')
-rw-r--r--crates/ide_assists/src/handlers/merge_imports.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/crates/ide_assists/src/handlers/merge_imports.rs b/crates/ide_assists/src/handlers/merge_imports.rs
index 31854840c..fc117bd9a 100644
--- a/crates/ide_assists/src/handlers/merge_imports.rs
+++ b/crates/ide_assists/src/handlers/merge_imports.rs
@@ -213,6 +213,20 @@ pub(crate) use std::fmt::{Debug, Display};
213 } 213 }
214 214
215 #[test] 215 #[test]
216 fn merge_pub_in_path_crate() {
217 check_assist(
218 merge_imports,
219 r"
220pub(in this::path) use std::fmt$0::Debug;
221pub(in this::path) use std::fmt::Display;
222",
223 r"
224pub(in this::path) use std::fmt::{Debug, Display};
225",
226 )
227 }
228
229 #[test]
216 fn test_merge_nested() { 230 fn test_merge_nested() {
217 check_assist( 231 check_assist(
218 merge_imports, 232 merge_imports,