Skip to content

cargo build fails with no associated item named BitOr  #17

@cxbrooks

Description

@cxbrooks

I'm having problems building.

Under

bash-3.2$ rustc --version
rustc 1.14.0-nightly (3f4408347 2016-10-27)

I got:

    Compiling rustyline v0.2.2
error: no method named `char_at` found for type `&std::string::String` in the current scope
   --> /Users/cxh/.cargo/registry/src/github.com-1ecc6299db9ec823/rustyline-0.2.2/src/lib.rs:106:26

rustyline 0.2.1 had a similar problem

Possible solution: use a version of Rust from around the time of the last update to the js.rs repo:

rustup install nightly-2016-04-18
rustup default nightly-2016-04-18

However, with rustc nightly-2016-04-18:

cargo clean
cargo build

fails with:

   Compiling jsrs-parser v0.1.0 (https://github.com/rustoscript/js.rs-parser.git#bcb4bd2c)
/Users/cxh/.cargo/git/checkouts/js.rs-parser-6ae31b434aeca629/master/src/lalr.rs:263013:5: 263013:17 error: no associated item named `BitOr` found for type `jsrs_common::ast::BinOp` in the current scope
/Users/cxh/.cargo/git/checkouts/js.rs-parser-6ae31b434aeca629/master/src/lalr.rs:263013     BinOp::BitOr
  ^~~~~~~~~~~~

Any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions