Skip to content
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

generate_const on generator and ImplMod #68

Open
VictorKoenders opened this issue Jun 4, 2023 · 1 comment
Open

generate_const on generator and ImplMod #68

VictorKoenders opened this issue Jun 4, 2023 · 1 comment

Comments

@VictorKoenders
Copy link
Contributor

it would be nice to be able to generate compile-time checks. These are usually in the form of:

const _: () = { if !some_check() { panic!(""); }};

this does not work in impl Foo { .. } blocks as rust will not allow underscore names on associated consts.

We should have a copy of generate_const on both the generator (top level) and ImplMod (nested mod)

@stale
Copy link

stale bot commented Aug 3, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Aug 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant