mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 05:45:12 +00:00
fix: Fix nav target calculation discarding file ids from differing macro upmapping
This commit is contained in:
parent
0e28202832
commit
a7d604d46f
2 changed files with 56 additions and 58 deletions
|
@ -1289,7 +1289,7 @@ trait Foo where Self$0 {
|
|||
impl Foo for () {}
|
||||
"#,
|
||||
expect![[r#"
|
||||
Self TypeParam FileId(0) 6..9 6..9
|
||||
Self TypeParam FileId(0) 0..44 6..9
|
||||
|
||||
FileId(0) 16..20
|
||||
FileId(0) 37..41
|
||||
|
@ -1380,7 +1380,7 @@ fn foo<T: Bar>(_: impl Bar, _: &dyn Bar) {}
|
|||
trait Foo = where Self$0: ;
|
||||
"#,
|
||||
expect![[r#"
|
||||
Self TypeParam FileId(0) 6..9 6..9
|
||||
Self TypeParam FileId(0) 0..25 6..9
|
||||
|
||||
FileId(0) 18..22
|
||||
"#]],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue