bilge icon indicating copy to clipboard operation
bilge copied to clipboard

validate macro input at entry point

Open pickx opened this issue 1 year ago • 4 comments

if macro input is invalid, we go straight to unreachable, so something like this

#[bitsize(5)]
union A {
    B,
}

would panic with "entered unreachable code: should have already been validated". syn::parse_macro_input! seems like a more sanitary way to do this.

pickx avatar Jul 17 '23 15:07 pickx