-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move HIR into diplomat-tool
#596
Comments
This would just lead to unreachables due to AST For a long time I've actually wanted us to enable The original hope was for third-party backends to use I actually think that getting rid of the So I'd say we should get rid of |
Yes, but that's a few unreachables per type during lowering, not dozens of unreachables in each backend during code generation. |
This is also potentially going to be the long term fate of the |
HIR is not used by
diplomat
(the macro), only bydiplomat-tool
. It's already hidden behind a feature indiplomat-core
, so thatdiplomat
doesn't have to build it. Moving it intodiplomat-tool
would have the advantage of removing all the_ => unreachable!("unknown AST/HIR variant")
, that we have because all the HIR types are non_exhaustive.The text was updated successfully, but these errors were encountered: