Stream: t-compiler/wg-rls-2.0

Topic: could not compile `ra_hir_def`


Adeynack (Dec 26 2019 at 01:19, on Zulip):

Failing to build rust-analyzer (https://github.com/rust-analyzer/rust-analyzer)

Revision: 97f01396 (just git-pull-ed)

VSCode:
Version: 1.41.1
Commit: 26076a4de974ead31f97692a0d32f90d735645c0
Date: 2019-12-18T14:57:51.166Z
Electron: 6.1.5
Chrome: 76.0.3809.146
Node.js: 12.4.0
V8: 7.6.303.31-electron.0
OS: Darwin x64 19.2.0

Build command: cargo xtask install

Output (tail):

error[E0658]: use of unstable library feature 'mem_take'
  --> crates/ra_hir_def/src/body.rs:69:41
   |
69 | ...                   ast_id_map: mem::take(&mut self.ast_id_map),
   |                                   ^^^^^^^^^
   |
   = note: for more information, see https://github.com/rust-lang/rust/issues/61129

error[E0658]: use of unstable library feature 'mem_take'
  --> crates/ra_hir_def/src/body.rs:90:27
   |
90 |         self.ast_id_map = mem::take(&mut mark.ast_id_map);
   |                           ^^^^^^^^^
   |
   = note: for more information, see https://github.com/rust-lang/rust/issues/61129

error[E0658]: use of unstable library feature 'inner_deref': newly added
   --> crates/ra_hir_def/src/path.rs:146:26
    |
146 |         self.type_anchor.as_deref()
    |                          ^^^^^^^^
    |
    = note: for more information, see https://github.com/rust-lang/rust/issues/50264

error: aborting due to 3 previous errors

For more information about this error, try `rustc --explain E0658`.
error: could not compile `ra_hir_def`.
warning: build failed, waiting for other jobs to finish...
error: failed to compile `ra_lsp_server v0.1.0 (/Users/adeynack/src/gh/rust-analyzer/rust-analyzer/crates/ra_lsp_server)`, intermediate artifacts can be found at `/Users/adeynack/src/gh/rust-analyzer/rust-analyzer/target`

Caused by:
  build failed

WARNING: at least rust 1.40.0 is required to compile rust-analyzer

Error: install server

Caused by:
    `cargo install --path crates/ra_lsp_server --locked --force` exited with exit code: 101
Mikail Bagishov (Dec 26 2019 at 04:55, on Zulip):

I think you should update Rust toolchain to latest stable at least

matklad (Dec 26 2019 at 21:51, on Zulip):

yup:

WARNING: at least rust 1.40.0 is required to compile rust-analyzer

Adeynack (Dec 28 2019 at 20:33, on Zulip):

I think I read too fast and read that VSCode 1.40.0 min was required. #doh

Adeynack (Dec 28 2019 at 20:56, on Zulip):

It worked like a charm. Thanks for your help!

Last update: Jan 21 2020 at 09:00UTC