lapce-rust
lapce-rust copied to clipboard
This causes Lapce to crash
Finishing the iter_mut() line in this code snippet will cause Lapce to crash.
I'm using the latest stable version of Lapce, the latest version of this plugin available in the Lapce plugin registry, and the latest version of rust-analyzer.
fn main() {
let mut numbers = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
// numbers.iter_mut().for_each(|n| { *n = *n * 5; });
// Try typing in .f below, and Lapce will crash
numbers.iter_mut()
numbers.iter().for_each(|n| { print!("{n} "); });
println!("...All done.");
}
It's worth mentioning that I'm using a rust-analyzer executable from the VSCodium extension instead of the bundled rust-analyzer. This crash does not happen if I'm using the bundled rust-analyzer executable.