-3

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.

mcarton
  • 27,633
  • 5
  • 85
  • 95
Vnti Jiro
  • 3
  • 2

1 Answers1

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