I want to change keyword spellings in Rust language.
For example, for
-> phur
, so where should I look in rustc source code?
Thanks in advance.
Asked
Active
Viewed 80 times
1 Answers
1
There isn't just the one place you'd need to change.
The keywords themselves are defined in src/librustc_span/symbol.rs
but many things in the compiler internals rely on those keyword not to change, including:
- macro expansion
- Any kind of syntactic sugar relying on the
quote!
family of macros. - pretty printing
- the test suite

mcarton
- 27,633
- 5
- 85
- 95