Closed
Description
I've created the following reproduction and confirmed that this seems to break when i run rust-analyzer version: 183ef048f 2021-11-22 stable
.
Meanwhile it does seems to work on rust-analyzer version: 73668334f 2021-11-15 stable
.
- Create new crate:
cargo new hello_world --bin
- Fill main.rs with:
use std::{
collections::HashMap,
ffi::OsStr,
fs::{self, DirEntry, File},
io::{self, Read},
path::PathBuf,
sync::mpsc::channel,
time::Duration,
};
#[derive(Debug, Clone)]
struct BootInfo {
pub id: String,
pub idx: u32,
pub start_time: String,
pub end_time: String,
}
fn find_boots() -> io::Result<HashMap<String, BootInfo>> {
let mut res: HashMap<String, BootInfo> = HashMap::new();
Ok(res)
}
fn gg() -> io::Result<()> {
let boots = find_boots()?;
let foo = boots.values().cloned().collect::<Vec<BootInfo>>();
println!("{:?}", foo);
Ok(())
}
fn main() {
gg().unwrap();
}
- Inline typehits and hover types missing after
.collect::<Vec<BootInfo>>();
in line 24: