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.rs51
1 files changed, 51 insertions, 0 deletions
diff --git a/crates/ide-assists/src/tests/generated.rs b/crates/ide-assists/src/tests/generated.rs
index 937e78f8d7..eec1087e2d 100644
--- a/crates/ide-assists/src/tests/generated.rs
+++ b/crates/ide-assists/src/tests/generated.rs
@@ -346,6 +346,21 @@ pub(crate) fn frobnicate() {}
}
#[test]
+fn doctest_comment_to_doc() {
+ check_doc_test(
+ "comment_to_doc",
+ r#####"
+// Wow what $0a nice module
+// I sure hope this shows up when I hover over it
+"#####,
+ r#####"
+//! Wow what a nice module
+//! I sure hope this shows up when I hover over it
+"#####,
+ )
+}
+
+#[test]
fn doctest_convert_bool_then_to_if() {
check_doc_test(
"convert_bool_then_to_if",
@@ -801,6 +816,24 @@ fn main() {
}
#[test]
+fn doctest_desugar_async_into_impl_future() {
+ check_doc_test(
+ "desugar_async_into_impl_future",
+ r#####"
+//- minicore: future
+pub as$0ync fn foo() -> usize {
+ 0
+}
+"#####,
+ r#####"
+pub fn foo() -> impl core::future::Future<Output = usize> {
+ 0
+}
+"#####,
+ )
+}
+
+#[test]
fn doctest_desugar_doc_comment() {
check_doc_test(
"desugar_doc_comment",
@@ -3021,6 +3054,24 @@ use std::{collections::HashMap};
}
#[test]
+fn doctest_sugar_impl_future_into_async() {
+ check_doc_test(
+ "sugar_impl_future_into_async",
+ r#####"
+//- minicore: future
+pub fn foo() -> impl core::future::F$0uture<Output = usize> {
+ async { 0 }
+}
+"#####,
+ r#####"
+pub async fn foo() -> usize {
+ async { 0 }
+}
+"#####,
+ )
+}
+
+#[test]
fn doctest_toggle_ignore() {
check_doc_test(
"toggle_ignore",