virtue icon indicating copy to clipboard operation
virtue copied to clipboard

`generate_const` on generator and `ImplMod`

Open VictorKoenders opened this issue 2 years ago • 1 comments

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)

VictorKoenders avatar Jun 04 '23 10:06 VictorKoenders

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[bot] avatar Aug 03 '23 12:08 stale[bot]