goffrie/plex

Won't build on Rust 1.19.0-nightly

Addisonbean opened this issue · 2 comments

When running cargo build, I get these errors:

    Compiling plex v0.0.3 (file:///Users/addisonbean/git/other/plex)
 error[E0560]: struct `syntax::ast::Lifetime` has no field named `name`
    --> src/lexer.rs:122:21
     |
 122 |                     name: ident.name
     |                     ^^^^^ `syntax::ast::Lifetime` does not have this field
 
 error[E0308]: mismatched types
    --> src/lexer.rs:131:31
     |
 131 |         cx.lifetime(DUMMY_SP, Symbol::gensym("text"))
     |                               ^^^^^^^^^^^^^^^^^^^^^^ expected struct `syntax::ast::Ident`, found struct `syntax::ast::Symbol`
     |
     = note: expected type `syntax::ast::Ident`
                found type `syntax::ast::Symbol`
     = help: here are some functions which might fulfill your needs:
             - .to_ident()
 
 error: no associated item named `RESTRICTION_STMT_EXPR` found for type `syntax::parse::parser::Restrictions` in the current scope
    --> src/lexer.rs:159:47
     |
 159 |         let expr = try!(parser.parse_expr_res(parser::Restrictions::RESTRICTION_STMT_EXPR, None));
     |                                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
 error: no associated item named `RESTRICTION_STMT_EXPR` found for type `syntax::parse::parser::Restrictions` in the current scope
    --> src/parser.rs:620:51
     |
 620 |             let expr = try!(parser.parse_expr_res(parser::Restrictions::RESTRICTION_STMT_EXPR, None));
     |                                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
 error: aborting due to previous error(s)
 
 error: Could not compile `plex`.
 
 To learn more, run the command again with --verbose.

I am on macOS 10.12.4, using Rust 1.19.0-nightly.

That was fast, thanks!