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

Compile error #9

Closed
aochagavia opened this issue Jul 11, 2014 · 3 comments
Closed

Compile error #9

aochagavia opened this issue Jul 11, 2014 · 3 comments

Comments

@aochagavia
Copy link
Contributor

I get 77 errors when compiling (with cargo build as well as with make). They look like this:

src\bencode.rs:935:1: 939:3 note: in expansion of dec_expect_value!
src\bencode.rs:1189:9: 1189:29 note: expansion site
src\bencode.rs:936:8: 936:12 error: `self` is not available in a static method.
Maybe a `self` argument is missing?
src\bencode.rs:936     if self.expect_key {
                          ^~~~
src\bencode.rs:935:1: 939:3 note: in expansion of dec_expect_value!
src\bencode.rs:1197:9: 1197:29 note: expansion site

However, the Travis build passes... How is that possible? I am using the latest rustc nightly.

I have recreated the issue in a small code snippet on the playpen: http://is.gd/EAiKNk

@arjantop
Copy link
Owner

I do not have access to the latest nightly at the moment but could you compile this example with --pretty expanded and paste the output here?

@arjantop
Copy link
Owner

So the situation is macros are now non-capturing so explicit passing of self is required. I am working on a fix. And for some reason linux nightly from rust-lang.org is from 6th july for some reason, i will shitch back to nightly ppa.

@arjantop
Copy link
Owner

Looks like nightly ppa is not up to date either *so travis faialed), but it works on nighly

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

No branches or pull requests

2 participants