Closed
Description
error[E0658]: let...else
statements are unstable
I am compiling rust analyzer and here it cause some problem
https://rust-analyzer.github.io/manual.html#building-from-source
└─# cargo xtask install 1 ⨯
Finished dev [unoptimized] target(s) in 0.26s
Running `target/debug/xtask install`
$ cargo install --path crates/rust-analyzer --locked --force --features force-always-assert
Installing rust-analyzer v0.0.0 (/root/Project/whatsapp-webhook/myrust/rust-analyzer/crates/rust-analyzer)
Updating crates.io index
Compiling ide v0.0.0 (/root/Project/whatsapp-webhook/myrust/rust-analyzer/crates/ide)
error[E0658]: `let...else` statements are unstable
--> crates/ide/src/rename.rs:43:13
|
43 | / let Some(frange) = sema.original_range_opt(name_like.syntax()) else {
44 | | bail!("No references found at position");
45 | | };
| |______________^
|
= note: see issue #87335 <https://github.com/rust-lang/rust/issues/87335> for more information
For more information about this error, try `rustc --explain E0658`.
error: could not compile `ide` due to previous error
error: failed to compile `rust-analyzer v0.0.0 (/root/Project/whatsapp-webhook/myrust/rust-analyzer/crates/rust-analyzer)`, intermediate artifacts can be found at `/root/Project/whatsapp-webhook/myrust/rust-analyzer/target`
Error: install server
Caused by:
command exited with non-zero code `cargo install --path crates/rust-analyzer --locked --force --features force-always-assert`: 101
Metadata
Metadata
Assignees
Labels
No labels