rust-analyzer/crates/rust-analyzer
bors fc08e04570 Auto merge of #17988 - darichey:fix-scip-def, r=Veykril
Fix incorrect symbol definitions in SCIP output

The SCIP output incorrectly marks some symbols as definitions because it doesn't account for the file ID when comparing the token's range to its definition's range.

This means that if a symbol is referenced in a file at the same position at which it is defined in another file, that reference will be marked as a definition. I was quite surprised by how common this is. For example, `PartialEq` is defined [here](https://github.com/rust-lang/rust/blob/1.80.1/library/core/src/cmp.rs#L273) and `uuid` references it [here](https://github.com/uuid-rs/uuid/blob/1.8.0/src/lib.rs#L329). And what do you know, they're both at offset 10083! In our large monorepo, this happens for basically every common stdlib type!
2024-08-29 07:44:29 +00:00
..
src Auto merge of #17988 - darichey:fix-scip-def, r=Veykril 2024-08-29 07:44:29 +00:00
tests Auto merge of #17973 - Veykril:proc-macro-curr-dir, r=Veykril 2024-08-27 11:53:04 +00:00
build.rs Bump Cargo.lock 2024-05-14 10:57:02 +02:00
Cargo.toml Use crossbeam-channel from the workspace 2024-08-09 23:48:03 +02:00