-
Notifications
You must be signed in to change notification settings - Fork 480
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
rust no longer accepts comparison between byte and i8 in event.rs, expects u8 #469
Comments
o_o Uhh.. apparently it was relevant. When I compile for x86_64 it refuses to accept a u8 and expects an i8. I guess I'll file a bug upstream, then? |
true |
The solution is still missing though. |
Is updating your rustc to the most recent version not an adequate solution? Another workaround is simply adding a conversion on the left side in the expression on the two offending lines: .take_while(|&b| (*b) as u8 != 0u8) |
No, it's actually the problem (coupled with the libc crate update). The way it's looking right now crate authors will have been forced to fix this breakage at crate level. I wanted to open an issue for sdl2 but found it'd already been done (more or less). Until a new crate gets published it should definitely stay open. |
We're talking about this kind of problem in general:
and so on. |
Ah, apologies for closing it. It's difficult to imagine why this particular aspect of the problem should be left as it is. |
I'm a touch confused - is this problem still extant? |
The big breakage affecting arm linux and android is still there - have a look at the list of affected crates (found so far) at the bottom of rust-lang/rust#29867 The OP's issue may have been fixed by updating libstd but not the sdl2 crate itself. |
Cool. I'll take a pop at fixing this at lunch. |
Okay @petevine and @makoConstruct, I've had a crack at fixing it. It compiles fine on my cross-compiler, but I've not got anything to test it beyond that point. Does this work for you? |
Nope, still not compiling:
and so on (the errors are coming exlusively from |
Huh. |
Native nightly 1.6 on armv7 linux. |
This is now fixed for ARM with Rust 1.6.0 onwards. |
What's the solution (if any) for older versions of sdl2? For example, sokoban-rs uses 0.8.0 and it's not possible to just bump the version in Cargo.toml :
After forcing |
Not entirely sure what's going on, but you'll need to encourage the package maintainers to update I think. You might be able to override it here: |
Thanks for the suggestion - I concluded it was mostly caused by * dependencies leading to incompatibilities. |
just here and a couple lines down in the case for TextInput as well. thx.
(hopefully irrelevant but I'll mention it just in case: I'm compiling for arm, with a very recently compiled rustc)
The text was updated successfully, but these errors were encountered: