Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide-assists/src/tests/generated.rs')
-rw-r--r--crates/ide-assists/src/tests/generated.rs38
1 files changed, 19 insertions, 19 deletions
diff --git a/crates/ide-assists/src/tests/generated.rs b/crates/ide-assists/src/tests/generated.rs
index d84f343c55..2644e7dd11 100644
--- a/crates/ide-assists/src/tests/generated.rs
+++ b/crates/ide-assists/src/tests/generated.rs
@@ -555,25 +555,6 @@ fn main() {
}
#[test]
-fn doctest_convert_ufcs_to_method() {
- check_doc_test(
- "convert_ufcs_to_method",
- r#####"
-fn main() {
- std::ops::Add::add$0(1, 2);
-}
-mod std { pub mod ops { pub trait Add { fn add(self, _: Self) {} } impl Add for i32 {} } }
-"#####,
- r#####"
-fn main() {
- 1.add(2);
-}
-mod std { pub mod ops { pub trait Add { fn add(self, _: Self) {} } impl Add for i32 {} } }
-"#####,
- )
-}
-
-#[test]
fn doctest_convert_while_to_loop() {
check_doc_test(
"convert_while_to_loop",
@@ -2553,6 +2534,25 @@ pub async fn bar() { foo() }
}
#[test]
+fn doctest_unqualify_method_call() {
+ check_doc_test(
+ "unqualify_method_call",
+ r#####"
+fn main() {
+ std::ops::Add::add$0(1, 2);
+}
+mod std { pub mod ops { pub trait Add { fn add(self, _: Self) {} } impl Add for i32 {} } }
+"#####,
+ r#####"
+fn main() {
+ 1.add(2);
+}
+mod std { pub mod ops { pub trait Add { fn add(self, _: Self) {} } impl Add for i32 {} } }
+"#####,
+ )
+}
+
+#[test]
fn doctest_unwrap_block() {
check_doc_test(
"unwrap_block",