aboutsummaryrefslogtreecommitdiff
path: root/crates/ide
diff options
context:
space:
mode:
authorLukas Wirth <[email protected]>2021-01-31 18:53:01 +0000
committerLukas Wirth <[email protected]>2021-01-31 18:53:01 +0000
commit999e020da2f08460ab0683409227ddd88097b336 (patch)
treef3ed7fcf81e6747a90b205f9197ca8ed091e0e10 /crates/ide
parent286d90de2d213b467a092e702edf8b0706c7c1b2 (diff)
Return inner attributes of outline mod declarations in `attrs_query`
Diffstat (limited to 'crates/ide')
-rw-r--r--crates/ide/src/hover.rs16
1 files changed, 16 insertions, 0 deletions
diff --git a/crates/ide/src/hover.rs b/crates/ide/src/hover.rs
index d47a4cb0f..5d2d072b1 100644
--- a/crates/ide/src/hover.rs
+++ b/crates/ide/src/hover.rs
@@ -3444,4 +3444,20 @@ impl<const LEN: usize> Foo<LEN$0> {}
3444 "#]], 3444 "#]],
3445 ); 3445 );
3446 } 3446 }
3447
3448 #[test]
3449 fn hover_mod_def() {
3450 check(
3451 r#"
3452//- /main.rs
3453mod foo$0;
3454//- /foo.rs
3455//! For the horde!
3456"#,
3457 expect![[r#"
3458 *foo*
3459 For the horde!
3460 "#]],
3461 );
3462 }
3447} 3463}