-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
round-trippability of HIR pretty printing #60663
Copy link
Copy link
Closed
Labels
A-HIRArea: The high-level intermediate representation (HIR)Area: The high-level intermediate representation (HIR)A-prettyArea: Pretty printing (including `-Z unpretty`)Area: Pretty printing (including `-Z unpretty`)T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
A-HIRArea: The high-level intermediate representation (HIR)Area: The high-level intermediate representation (HIR)A-prettyArea: Pretty printing (including `-Z unpretty`)Area: Pretty printing (including `-Z unpretty`)T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Should it be possible to feed the output of
--unpretty=hirback to rustc without requiring the user to do any changes? Right now this is only possible for very trivial code, and even then requires adding some feature gates.Any code with moderately complex expansions will require additional imports or touching the code. Some things I've noticed:
async fnis broken #60661 (async fn, probably easily fixed)existential typeis broken #60662 (existential type, easily fixed)$crateshows up in paths'_lifetimes where there were inferred lifetimes in signatures before