Skip to content
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

Compiler bug trigged on OSX #359

Closed
bvssvni opened this issue Apr 4, 2015 · 2 comments
Closed

Compiler bug trigged on OSX #359

bvssvni opened this issue Apr 4, 2015 · 2 comments

Comments

@bvssvni
Copy link
Contributor

bvssvni commented Apr 4, 2015

rustc 1.0.0-nightly (f207ecbe0 2015-04-03) (built 2015-04-03)

/Users/sven/.cargo/registry/src/github.com-1ecc6299db9ec823/objc-0.1.1/src/declare.rs:138:21: 138:35 error: internal compiler error: coherence failed to report ambiguity: cannot locate the impl of the trait `core::marker::PhantomFn<<F as declare::IntoMethodImp>::Ret>` for the type `<F as declare::IntoMethodImp>::Ret`
/Users/sven/.cargo/registry/src/github.com-1ecc6299db9ec823/objc-0.1.1/src/declare.rs:138     let mut types = F::Ret::encode().as_str().to_string();
                                                                                                              ^~~~~~~~~~~~~~
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: run with `RUST_BACKTRACE=1` for a backtrace
thread 'rustc' panicked at 'Box<Any>', /Users/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-mac/build/src/libsyntax/diagnostic.rs:130


Build failed, waiting for other jobs to finish...
Could not compile `objc`.
@tomaka tomaka added the A-cocoa label Apr 4, 2015
@tomaka
Copy link
Contributor

tomaka commented Apr 4, 2015

cc @SSheldon

Probably related to the deprecation of PhantomFn.

@SSheldon
Copy link
Contributor

SSheldon commented Apr 4, 2015

Looks like this ICE will be fixed by rust-lang/rust#24056, but I figured out a way to avoid PhantomFn and still compile on the beta in SSheldon/rust-objc@ef565e4 and published that as objc 0.1.2.

@bvssvni, if you cargo update this should be fixed!

@SSheldon SSheldon closed this as completed Apr 4, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants