-
Notifications
You must be signed in to change notification settings - Fork 42
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
Doesn't compile out of the box on mac #27
Comments
I just ran into the same issue, thanks for posting this and pointing at the Rust issue. I'm also new to Rust and couldn't figure out how to override the
|
I actually ran into this issue on Windows as well. The above solution worked. |
This also worked for me on macOS Big Sur 11.5.2. |
Me too, the issue title maybe should be changed to generic as both Mac & Windows seems to be affected |
I faced the same issue in Linux as well (Pop OS 21.04). Updating the cargo packages via |
After error[E0308]: mismatched types
--> /Users/asher/.cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.19.5/src/platform/macos/view.rs:209:9
|
205 | extern fn has_marked_text(this: &Object, _sel: Sel) -> BOOL {
| ---- expected `bool` because of return type
...
209 | (marked_text.length() > 0) as i8
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `bool`, found `i8`
error[E0308]: mismatched types
--> /Users/asher/.cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.19.5/src/platform/macos/window.rs:103:26
|
103 | is_zoomed != 0
| ^ expected `bool`, found integer
error[E0308]: mismatched types
--> /Users/asher/.cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.19.5/src/platform/macos/window.rs:175:57
|
175 | self.window.setFrame_display_(new_rect, 0);
| ^ expected `bool`, found integer
Compiling glyph_brush v0.6.3
error[E0308]: mismatched types
--> /Users/asher/.cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.19.5/src/platform/macos/window.rs:1301:48
|
1301 | window.setFrame_display_(current_rect, 0)
| ^ expected `bool`, found integer
Compiling laminar v0.3.2
error[E0308]: mismatched types
--> /Users/asher/.cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.19.5/src/platform/macos/window.rs:1308:48
|
1308 | window.setFrame_display_(current_rect, 0)
| ^ expected `bool`, found integer
Compiling fern v0.6.0
error[E0308]: mismatched types
--> /Users/asher/.cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.19.5/src/platform/macos/window.rs:1325:48
|
1325 | window.setFrame_display_(current_rect, 0)
| ^ expected `bool`, found integer
error[E0308]: mismatched types
--> /Users/asher/.cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.19.5/src/platform/macos/window.rs:1332:48
|
1332 | window.setFrame_display_(current_rect, 0)
| ^ expected `bool`, found integer
Compiling shred v0.10.2
For more information about this error, try `rustc --explain E0308`.
error: could not compile `winit` due to 7 previous errors
warning: build failed, waiting for other jobs to finish...
error: build failed |
Hey i get this error too!
Tried the above solution, |
Any update on this? I'm trying with |
When I set the project up with the latest stable Rust release and
cargo run
it, I get 27 errors from lexical-core-0.4.6, it's various flavors of this:Seems related to rust-lang/rust#81654, which leads me to believe this could be fixed with a dependency update. I'm relatively new to Rust so I haven't been able to fix it locally yet.
The text was updated successfully, but these errors were encountered: