diff options
Diffstat (limited to 'crates/ide/src')
-rw-r--r-- | crates/ide/src/hover.rs | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/crates/ide/src/hover.rs b/crates/ide/src/hover.rs index afeded315..14cf94d60 100644 --- a/crates/ide/src/hover.rs +++ b/crates/ide/src/hover.rs | |||
@@ -3000,29 +3000,24 @@ fn foo(ar$0g: &impl Foo + Bar<S>) {} | |||
3000 | fn test_hover_async_block_impl_trait_has_goto_type_action() { | 3000 | fn test_hover_async_block_impl_trait_has_goto_type_action() { |
3001 | check_actions( | 3001 | check_actions( |
3002 | r#" | 3002 | r#" |
3003 | //- minicore: future | ||
3003 | struct S; | 3004 | struct S; |
3004 | fn foo() { | 3005 | fn foo() { |
3005 | let fo$0o = async { S }; | 3006 | let fo$0o = async { S }; |
3006 | } | 3007 | } |
3007 | |||
3008 | #[prelude_import] use future::*; | ||
3009 | mod future { | ||
3010 | #[lang = "future_trait"] | ||
3011 | pub trait Future { type Output; } | ||
3012 | } | ||
3013 | "#, | 3008 | "#, |
3014 | expect![[r#" | 3009 | expect![[r#" |
3015 | [ | 3010 | [ |
3016 | GoToType( | 3011 | GoToType( |
3017 | [ | 3012 | [ |
3018 | HoverGotoTypeData { | 3013 | HoverGotoTypeData { |
3019 | mod_path: "test::future::Future", | 3014 | mod_path: "core::future::Future", |
3020 | nav: NavigationTarget { | 3015 | nav: NavigationTarget { |
3021 | file_id: FileId( | 3016 | file_id: FileId( |
3022 | 0, | 3017 | 1, |
3023 | ), | 3018 | ), |
3024 | full_range: 101..163, | 3019 | full_range: 244..426, |
3025 | focus_range: 140..146, | 3020 | focus_range: 283..289, |
3026 | name: "Future", | 3021 | name: "Future", |
3027 | kind: Trait, | 3022 | kind: Trait, |
3028 | description: "pub trait Future", | 3023 | description: "pub trait Future", |