rust-lang / rust

Empowering everyone to build reliable and efficient software.
https://www.rust-lang.org
Other
98.14k stars 12.69k forks source link

Make the ast representation of qualified self paths more syntactic #42232

Open nrc opened 7 years ago

nrc commented 7 years ago

The current representation is fine for the HIR, I assume it is optimised for compiler internal stuff. But in the AST, it would be better to be closer to the surface syntax (since that should make parsing, pretty printing, rustdoc, etc. a bit easier). IOW, it is a fine semantic definition, but not a great syntactic definition.

Enselic commented 1 year ago

Triage: Can you give some examples of the current representation and the expected representation please? As it stands it is a bit tricky (at least for me) to understand what exactly needs to be done for this issue to be closed as fixed.

Or maybe this issue can be straight up closed since it is so old and circumstances changed?