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

Support for Rust 1.0? #92

Closed
alexispurslane opened this issue Jun 1, 2015 · 1 comment
Closed

Support for Rust 1.0? #92

alexispurslane opened this issue Jun 1, 2015 · 1 comment

Comments

@alexispurslane
Copy link

When I try to compile rust-peg with rustc 1.0.0 (a59de37e9 2015-05-13) (built 2015-05-14), it fails with these errors:

/Users/christopherdumas/.cargo/registry/src/github.com-1ecc6299db9ec823/peg-0.3.0/src/translate.rs:255:65: 255:75 error: type `&collections::string::String` does not implement any method in scope named `to_tokens`
/Users/christopherdumas/.cargo/registry/src/github.com-1ecc6299db9ec823/peg-0.3.0/src/translate.rs:255          println!("[PEG_TRACE] Attempting to match rule {} at {}:{}", $rule_name, line, col);
                                                                                                                                                                             ^~~~~~~~~~
note: in expansion of quote_expr!
/Users/christopherdumas/.cargo/registry/src/github.com-1ecc6299db9ec823/peg-0.3.0/src/translate.rs:253:3: 265:5 note: expansion site
/Users/christopherdumas/.cargo/registry/src/github.com-1ecc6299db9ec823/peg-0.3.0/src/translate.rs:261:71: 261:81 error: type `&collections::string::String` does not implement any method in scope named `to_tokens`
/Users/christopherdumas/.cargo/registry/src/github.com-1ecc6299db9ec823/peg-0.3.0/src/translate.rs:261              Matched(_, _) => println!("[PEG_TRACE] Matched rule {} at {}:{}", $rule_name, line, col),
                                                                                                                                                                                      ^~~~~~~~~~
note: in expansion of quote_expr!
/Users/christopherdumas/.cargo/registry/src/github.com-1ecc6299db9ec823/peg-0.3.0/src/translate.rs:253:3: 265:5 note: expansion site
/Users/christopherdumas/.cargo/registry/src/github.com-1ecc6299db9ec823/peg-0.3.0/src/translate.rs:262:72: 262:82 error: type `&collections::string::String` does not implement any method in scope named `to_tokens`
/Users/christopherdumas/.cargo/registry/src/github.com-1ecc6299db9ec823/peg-0.3.0/src/translate.rs:262              Failed => println!("[PEG_TRACE] Failed to match rule {} at {}:{}", $rule_name, line, col)
                                                                                                                                                                                       ^~~~~~~~~~
note: in expansion of quote_expr!
/Users/christopherdumas/.cargo/registry/src/github.com-1ecc6299db9ec823/peg-0.3.0/src/translate.rs:253:3: 265:5 note: expansion site
/Users/christopherdumas/.cargo/registry/src/github.com-1ecc6299db9ec823/peg-0.3.0/src/rustast.rs:20:11: 20:40 error: type `syntax::parse::ParseSess` does not implement any method in scope named `new`
/Users/christopherdumas/.cargo/registry/src/github.com-1ecc6299db9ec823/peg-0.3.0/src/rustast.rs:20     let ps = syntax::parse::ParseSess::new();
                                                                                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/christopherdumas/.cargo/registry/src/github.com-1ecc6299db9ec823/peg-0.3.0/src/rustast.rs:32:11: 32:40 error: type `syntax::parse::ParseSess` does not implement any method in scope named `new`
/Users/christopherdumas/.cargo/registry/src/github.com-1ecc6299db9ec823/peg-0.3.0/src/rustast.rs:32     let ps = syntax::parse::ParseSess::new();
                                                                                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/christopherdumas/.cargo/registry/src/github.com-1ecc6299db9ec823/peg-0.3.0/src/rustast.rs:40:11: 40:40 error: type `syntax::parse::ParseSess` does not implement any method in scope named `new`
/Users/christopherdumas/.cargo/registry/src/github.com-1ecc6299db9ec823/peg-0.3.0/src/rustast.rs:40     let ps = syntax::parse::ParseSess::new();
                                                                                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
error: aborting due to 6 previous errors
Could not compile `peg`.
@untitaker
Copy link
Contributor

See #72

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

3 participants