hecatia-elegua / bilge

Use bitsized types as if they were a feature of rust.
Apache License 2.0
171 stars 17 forks source link

Show a better error on wrong struct size #62

Open hecatia-elegua opened 1 year ago

hecatia-elegua commented 1 year ago

Should be tested on a free standing project with both stable and nightly, since in-project I sometimes just saw "evaluation of constant value failed", which is not that helpful.

pickx commented 1 year ago

nice. I love that the location of the error ends up being the bitsize attribute, which shows the number, that's very cool.

hecatia-elegua commented 1 year ago

image image

???? now it's apparently a note

pickx commented 1 year ago

???? now it's apparently a note

seeing the same thing here. I guess the location does not end up being the attribute.strange that when consts are used in this position, they generate "erroneous constant" info instead of an error.

hecatia-elegua commented 7 months ago

trying to get professional help now: https://rust-lang.zulipchat.com/#narrow/stream/122651-general/topic/.22note.3A.20erroneous.20constant.20used.22/near/430142304