racer icon indicating copy to clipboard operation
racer copied to clipboard

Error while installing racer: expected identifier, found keyword in

Open nbro opened this issue 7 years ago • 1 comments

I am getting the following error after having tried to install racer via cargo (as explained in the README file of this project):

[~] > cargo install racer
    Updating registry `https://github.com/rust-lang/crates.io-index`
 Downloading racer v2.0.12
  Installing racer v2.0.12
^[b Downloading clap v2.28.0
 Downloading env_logger v0.3.5
 Downloading log v0.3.8
 Downloading syntex_errors v0.52.0
 Downloading syntex_syntax v0.52.0
 Downloading toml v0.2.1
 Downloading lazy_static v0.2.11
 Downloading atty v0.2.3
 Downloading vec_map v0.8.0
 Downloading bitflags v1.0.1
 Downloading ansi_term v0.10.2
 Downloading strsim v0.6.0
 Downloading textwrap v0.9.0
 Downloading unicode-width v0.1.4
 Downloading regex v0.1.80
 Downloading regex-syntax v0.3.9
 Downloading utf8-ranges v0.1.3
 Downloading memchr v0.1.11
 Downloading aho-corasick v0.5.3
 Downloading thread_local v0.2.7
 Downloading libc v0.2.34
 Downloading thread-id v2.0.0
 Downloading kernel32-sys v0.2.2
 Downloading winapi v0.2.8
 Downloading winapi-build v0.1.1
 Downloading term v0.4.6
 Downloading rustc-serialize v0.3.24
 Downloading syntex_pos v0.52.0
 Downloading unicode-xid v0.0.3
 Downloading bitflags v0.7.0
   Compiling unicode-xid v0.0.3
   Compiling ansi_term v0.10.2
   Compiling bitflags v0.7.0
   Compiling strsim v0.6.0
   Compiling winapi-build v0.1.1
   Compiling rustc-serialize v0.3.24
   Compiling bitflags v1.0.1
   Compiling lazy_static v0.2.11
error: expected identifier, found keyword `in`
    --> .cargo/registry/src/github.com-1ecc6299db9ec823/bitflags-1.0.1/src/lib.rs:1148:22
     |
1148 |                 pub (in super) fn value() -> u8 {
     |                      ^^

error: aborting due to previous error

error: Could not compile `bitflags`.
Build failed, waiting for other jobs to finish...
error: this needs a `'static` lifetime or the `static_in_const` feature, see #35897
  --> .cargo/registry/src/github.com-1ecc6299db9ec823/ansi_term-0.10.2/src/ansi.rs:80:19
   |
80 | pub static RESET: &str = "\x1B[0m";
   |                   ^

error: aborting due to previous error

error: Could not compile `ansi_term`.
Build failed, waiting for other jobs to finish...
error: failed to compile `racer v2.0.12`, intermediate artifacts can be found at `/var/folders/gz/0xcqjr9x45lg8rqg256dtmwh0000gn/T/cargo-install.U6pofUGWpYzb`

Caused by:
  build failed

System info:

Mac OS Sierra, version 10.12.6.
cargo-0.17.0-nightly (f9e5481 2017-03-03)
rustc 1.16.0 (30cf806ef 2017-03-10)

nbro avatar Dec 01 '17 14:12 nbro

@nbro pub (...) syntax was introduced in version 1.18.0

elferia avatar Dec 16 '17 05:12 elferia