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

another [E0083] issue #5

Closed
wants to merge 1 commit into from
Closed

Conversation

JasperWallace
Copy link

I'm running rustc 1.7.0 (a5d1e7a59 2016-02-29), so i don't know if this is cos i'm not on the beta or nightly or something?

In any case with this change the library works for me, thanks!

@azasypkin
Copy link
Member

Hey @JasperWallace, sorry just noticed your PR!

In fxbox we compile everything against Rust nightly-2016-04-10. Could you please let me know what issue exactly you're experiencing?

@JasperWallace
Copy link
Author

sure, when compiling with rust stable i get:

    Updating git repository `https://github.com/fxbox/multicast-dns.git`
   Compiling multicast_dns v0.1.0 (https://github.com/fxbox/multicast-dns.git#b9a07407)
/home/jasper/.cargo/git/checkouts/multicast-dns-d51af2fa146824d6/master/src/bindings/avahi/enums.rs:137:1: 139:2 error: unsupported representation for univariant enum [E0083]
/home/jasper/.cargo/git/checkouts/multicast-dns-d51af2fa146824d6/master/src/bindings/avahi/enums.rs:137 pub enum AvahiRecordClass {
/home/jasper/.cargo/git/checkouts/multicast-dns-d51af2fa146824d6/master/src/bindings/avahi/enums.rs:138     AVAHI_IN = 1,
/home/jasper/.cargo/git/checkouts/multicast-dns-d51af2fa146824d6/master/src/bindings/avahi/enums.rs:139 }
/home/jasper/.cargo/git/checkouts/multicast-dns-d51af2fa146824d6/master/src/bindings/avahi/enums.rs:137:1: 139:2 help: run `rustc --explain E0083` to see a detailed explanation
error: aborting due to previous error
Could not compile `multicast_dns`.

This is the same isue as the one fixed around here:

https://github.com/fxbox/multicast-dns/blob/master/src/bindings/avahi/enums.rs#L74

With the pull request applied it compiles and works fine.

@azasypkin
Copy link
Member

unsupported representation for univariant enum [E0083]

Hmm, I've just had a chance to try it out on the fresh Ubuntu 15.10 image with the stable rust [1]:

rustc 1.8.0 (db2939409 2016-04-11)
cargo 0.9.0-nightly (8fc3fd8 2016-02-29)

And it compiled successfully, @JasperWallace could you please let me know what exact version of Rust you use and if not the latest stable can you try with it?

I thought that the Rust fix for this issue already reached stable channel [2].

[1] http://blog.rust-lang.org/2016/04/14/Rust-1.8.html
[2] rust-lang/rust#10292

@JasperWallace
Copy link
Author

Hi,

I've updated to the latest rust stable (rustc 1.8.0 (db2939409 2016-04-11)) and this issue has gone away now.

Closeing the PR.

@azasypkin
Copy link
Member

Thanks for confirming and your PR anyway!

P.S. Sorry, I was too slow to respond so that they managed to fix this in Rust itself :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants