mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
Return inner attributes of outline mod declarations in attrs_query
This commit is contained in:
parent
286d90de2d
commit
999e020da2
2 changed files with 25 additions and 1 deletions
|
@ -3444,4 +3444,20 @@ impl<const LEN: usize> Foo<LEN$0> {}
|
|||
"#]],
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn hover_mod_def() {
|
||||
check(
|
||||
r#"
|
||||
//- /main.rs
|
||||
mod foo$0;
|
||||
//- /foo.rs
|
||||
//! For the horde!
|
||||
"#,
|
||||
expect![[r#"
|
||||
*foo*
|
||||
For the horde!
|
||||
"#]],
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue