Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide-completion/src/tests/item_list.rs')
-rw-r--r--crates/ide-completion/src/tests/item_list.rs19
1 files changed, 19 insertions, 0 deletions
diff --git a/crates/ide-completion/src/tests/item_list.rs b/crates/ide-completion/src/tests/item_list.rs
index c37900478e..f138938b02 100644
--- a/crates/ide-completion/src/tests/item_list.rs
+++ b/crates/ide-completion/src/tests/item_list.rs
@@ -123,6 +123,7 @@ fn after_unsafe_token() {
check(
r#"unsafe $0"#,
expect![[r#"
+ kw async
kw fn
kw impl
kw trait
@@ -131,6 +132,17 @@ fn after_unsafe_token() {
}
#[test]
+fn after_async_token() {
+ check(
+ r#"async $0"#,
+ expect![[r#"
+ kw fn
+ kw unsafe
+ "#]],
+ );
+}
+
+#[test]
fn after_visibility() {
check(
r#"pub $0"#,
@@ -157,6 +169,7 @@ fn after_visibility_unsafe() {
check(
r#"pub unsafe $0"#,
expect![[r#"
+ kw async
kw fn
kw trait
"#]],
@@ -170,6 +183,7 @@ fn in_impl_assoc_item_list() {
expect![[r#"
ma makro!(…) macro_rules! makro
md module
+ kw async
kw const
kw crate::
kw fn
@@ -189,6 +203,7 @@ fn in_impl_assoc_item_list_after_attr() {
expect![[r#"
ma makro!(…) macro_rules! makro
md module
+ kw async
kw const
kw crate::
kw fn
@@ -208,6 +223,7 @@ fn in_trait_assoc_item_list() {
expect![[r#"
ma makro!(…) macro_rules! makro
md module
+ kw async
kw const
kw crate::
kw fn
@@ -225,6 +241,7 @@ fn in_trait_assoc_fn_missing_body() {
expect![[r#"
ma makro!(…) macro_rules! makro
md module
+ kw async
kw const
kw crate::
kw fn
@@ -242,6 +259,7 @@ fn in_trait_assoc_const_missing_body() {
expect![[r#"
ma makro!(…) macro_rules! makro
md module
+ kw async
kw const
kw crate::
kw fn
@@ -259,6 +277,7 @@ fn in_trait_assoc_type_aliases_missing_ty() {
expect![[r#"
ma makro!(…) macro_rules! makro
md module
+ kw async
kw const
kw crate::
kw fn