mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
Merge #10232
10232: internal: Add more tests for ide functionality in attributed items r=Veykril a=Veykril cc https://github.com/rust-analyzer/rust-analyzer/issues/9868 Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
This commit is contained in:
commit
f750eebd0d
12 changed files with 250 additions and 51 deletions
|
@ -1730,6 +1730,28 @@ id! {
|
|||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_hover_through_attr() {
|
||||
check(
|
||||
r#"
|
||||
//- proc_macros: identity
|
||||
#[proc_macros::identity]
|
||||
fn foo$0() {}
|
||||
"#,
|
||||
expect![[r#"
|
||||
*foo*
|
||||
|
||||
```rust
|
||||
test
|
||||
```
|
||||
|
||||
```rust
|
||||
fn foo()
|
||||
```
|
||||
"#]],
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_hover_through_expr_in_macro() {
|
||||
check(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue