rust-lang / rust-lang/rust-analyzer
Replace `EditionedFileId` with a better abstraction
Open
@Veykril is already working on this.
Since Feb 10, 2025.
A-hygiene
A-ide
S-unactionable
- Dominant language
- Rust
- Stars
- 16.9k
- Forks
- 2.2k
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 72
Description
The introduction of EditionedFileId was mainly meant to get edition-based parsing working fast with the 2024 edition coming up and some other things. It is kind of annoying to deal with though wrt to HirFileId as the IDE doesn't always have the edition at hand while already dealing with HirFileIds for the macro cases. That is, within the HIR layer, this abstraction works fairly well. But we need something else in the IDE layer I believe.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.