-
Notifications
You must be signed in to change notification settings - Fork 47
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
Incoming breakage due to static assert on size #56
Comments
Ah! Thanks for the heads up. I'll look into this soon. |
This is so we can rely on their memory layout, which is needed for achieving a precise `Node` size in memory. Hopefully addresses issue #56.
@oli-obk: |
You can try this out locally by using https://crates.io/crates/rustup-toolchain-install-master to install the toolchain with hash 419e70b02dc61a51433bb55fe5a482c6ab6f7da5 |
Ah, thanks! That's convenient. I assumed I would have to build the whole thing myself, which... sounded quite daunting, especially just to test it out. |
Looks like it's fixed. Thanks! I'll leave this issue open until I cut a release with the fix. |
Published in Ropey 1.5.0. |
rust-lang/rust#94075 optimizes
repr(Rust)
enums better, making them smaller in many cases. This breaks ropey (see https://crater-reports.s3.amazonaws.com/pr-94075/try%23419e70b02dc61a51433bb55fe5a482c6ab6f7da5/gh/cessen.led/log.txt for an example). I'm not sure when this change gets merged and will hit stable, but relying on the exact size ofrepr(Rust)
types is suboptimal. The easy fix is to userepr(C)
for the affected enums, which will disable any such optimizations.If you have opinions on this topic, please don't hesitate to let me know here or post on the PR.
The text was updated successfully, but these errors were encountered: