Auto merge of #14935 - Veykril:sysroot-dedup, r=Veykril

fix: Don't duplicate sysroot crates in rustc workspace

Since we handle `library` as the sysroot source directly in the rustc workspace, we now duplicate the crates there, once as sysroot and once as just plain workspace crate. This causes a variety of issues for `vec!` macros and similar that emit `$crate` tokens across crates.
This commit is contained in:
bors 2023-05-31 13:50:53 +00:00
commit bafa6c4ee5
4 changed files with 30 additions and 12 deletions

View file

@ -74,7 +74,7 @@ pub(super) fn hints(
capture.display_place(sema.db)
),
None,
source.name().and_then(|name| sema.original_range_opt(name.syntax())),
source.name().and_then(|name| name.syntax().original_file_range_opt(sema.db)),
),
text_edit: None,
position: InlayHintPosition::After,