We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I've created the following reproduction and confirmed that this seems to break when i run rust-analyzer version: 183ef048f 2021-11-22 stable.
rust-analyzer version: 183ef048f 2021-11-22 stable
Meanwhile it does seems to work on rust-analyzer version: 73668334f 2021-11-15 stable.
rust-analyzer version: 73668334f 2021-11-15 stable
cargo new hello_world --bin
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(); }
.collect::<Vec<BootInfo>>();
The text was updated successfully, but these errors were encountered:
What version of rustc are you using?
Sorry, something went wrong.
This is most definitely #10851 - I cannot reproduce on rustc 1.52.0, but can on 1.51.0.
Please upgrade to a rustc stable version >= 1.52.0 and your issue should be resolved!
If that's the case, then this solves the issue, as we're currently upgrading from Rust 1.49 to Rust 1.54.
No branches or pull requests
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
.cargo new hello_world --bin
.collect::<Vec<BootInfo>>();
in line 24:The text was updated successfully, but these errors were encountered: