Consider NFC normalization of idents?
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 7k
- Forks
- 1.1k
- Avg merge
- 2d 13h
- Merged PRs (30d)
- 24
Description
Raised by @Jules-Bertholet in https://github.com/rust-lang/rust/issues/120697
It could be desirable to NFC-normalize identifiers so as to remove these kinds of inconsistencies.
However, it seems plausible that this may cause issues if the identifiers are not local, e.g. they come from another crate that does not run rustfmt.
It may make sense, however, if rustc itself linted against non-NFC-normalized idents?
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.
Research direction
Start by reviewing the referenced rust-lang/rust issue 120697 and the discussion here about NFC-normalizing identifiers. Determine whether the desired behavior belongs in rustfmt or rustc, and how identifiers from another crate would be handled. Done requires a clearly agreed scope and compatibility expectations before implementation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100