You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Eurydice shouldn't produce empty structs, especially when they are not actually used.
In Rust we sometimes need structs to attach functions while they don't actually do anything.
While the generated code is correct, the struct in the following example should not be generated (dropped).
I want compiling C code 😉 So I think it's either a unit as you suggest, or treating them specially to drop them. I actually thought that the phase that removes unused code would also cover structs. But maybe it doesn't?
But a unit sounds reasonable and should work.
Eurydice shouldn't produce empty structs, especially when they are not actually used.
In Rust we sometimes need structs to attach functions while they don't actually do anything.
While the generated code is correct, the struct in the following example should not be generated (dropped).
The following struct won't compile (in most cases) and is not needed.
The text was updated successfully, but these errors were encountered: