about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSteven Joruk <steven@joruk.com>2022-03-13 13:25:06 +0000
committerSteven Joruk <steven@joruk.com>2022-03-13 13:25:06 +0000
commit1981a3dc655b742c8b5b681abbca3545a2be485c (patch)
tree4cb39c3d5282e4790075c319ba1a7b25b1276423
parent2e00fa208fa9552ac8ddb56c253b89901d9515f9 (diff)
downloadrust-1981a3dc655b742c8b5b681abbca3545a2be485c.tar.gz
rust-1981a3dc655b742c8b5b681abbca3545a2be485c.zip
test: Make imported_external test that the full path is replaced
-rw-r--r--crates/ide_assists/src/handlers/inline_type_alias.rs10
1 files changed, 4 insertions, 6 deletions
diff --git a/crates/ide_assists/src/handlers/inline_type_alias.rs b/crates/ide_assists/src/handlers/inline_type_alias.rs
index ed8f22dd667..0ffa339cda5 100644
--- a/crates/ide_assists/src/handlers/inline_type_alias.rs
+++ b/crates/ide_assists/src/handlers/inline_type_alias.rs
@@ -723,24 +723,22 @@ fn main() {
     }
 
     #[test]
-    fn imported_external() {
+    fn full_path_type_is_replaced() {
         check_assist(
             inline_type_alias,
             r#"
 mod foo {
-    type A = String;
+    pub type A = String;
 }
 fn main() {
-    use foo::A;
-    let a: $0A;
+    let a: foo::$0A;
 }
 "#,
             r#"
 mod foo {
-    type A = String;
+    pub type A = String;
 }
 fn main() {
-    use foo::A;
     let a: String;
 }
 "#,