-
Notifications
You must be signed in to change notification settings - Fork 0
Unexpected failure during compilation #1
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
Comments
Hm, that's not good. ICE is a bug in Rust, so you did the right thing opening a Rust issue. It'd help the Rust devs if you could reduce the example to the minimal amount of code which still triggers it. I'll try to compile your code and look into it later, but I wonder if it's because of the |
Looks like the ICE was fixed in one of the recent commits. I'm not seeing it any more with this:
It now produces proper compilation errors. |
Oh, and I've looked into the colour issue a bit more. Casting I've coded up a quick proof of concept that should demonstrate what you're trying to do (if I understood your commit directly): This just adds one colour alias, but as you can see and test in the example, that colour is usable in the safe tcod bindings. You can just as well use the Would this work for you? |
Ah yes, I realized afterwards that casting in Rust doesn't work that way. This adresses my issue. |
Fails at compiling due to recent commit aa44e25 with the following error message:
I'm guessing this is because I'm not interacting with the FFI in the proper way. Do you, @tomassedovic, know what could be wrong with the code?
The text was updated successfully, but these errors were encountered: