rust-lang / rust-lang/rust-analyzer

Replace `EditionedFileId` with a better abstraction

Open
#19,128 2 comments 0 reactions 1 assignee View on GitHub

@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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.