fix: Fix nav target calculation discarding file ids from differing macro upmapping

This commit is contained in:
Lukas Wirth 2023-06-01 09:37:55 +02:00
parent 0e28202832
commit a7d604d46f
2 changed files with 56 additions and 58 deletions

View file

@ -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
"#]],