mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 05:45:12 +00:00
Record attribute calls on assoc items in TraitData and ImplData
This commit is contained in:
parent
6cf0cadfaa
commit
6746ba5839
5 changed files with 79 additions and 27 deletions
|
@ -1514,4 +1514,25 @@ fn func$0() {
|
|||
"#]],
|
||||
)
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn attr_assoc_item() {
|
||||
check(
|
||||
r#"
|
||||
//- proc_macros: identity
|
||||
|
||||
trait Trait {
|
||||
#[proc_macros::identity]
|
||||
fn func() {
|
||||
Self::func$0();
|
||||
}
|
||||
}
|
||||
"#,
|
||||
expect![[r#"
|
||||
func Function FileId(0) 48..87 51..55
|
||||
|
||||
FileId(0) 74..78
|
||||
"#]],
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue