mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-26 11:59:49 +00:00
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:
commit
bafa6c4ee5
4 changed files with 30 additions and 12 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue