You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that use statements that occur inside blocks are not being used to inform autocompletion or type inference. For example, this doesn't give completions or display types on file. or File:::
use std::{fs::File, io::Read};fnmain(){let result = {letmut file = File::open("test.txt").unwrap();letmut buf = [0;16];
file.read_exact(&mut buf[..]).unwrap();
buf
};}
I noticed this while using the rust-analyzer plugin for VS Code, version 0.2.232. Apologies if this is a duplicate issue or isn't sufficiently descriptive. I'm a happy user of rust-analyzer, but I don't have much knowledge about commonly used terminology so I may have missed something while searching the issue tracker.
The text was updated successfully, but these errors were encountered:
I noticed that
use
statements that occur inside blocks are not being used to inform autocompletion or type inference. For example, this doesn't give completions or display types onfile.
orFile::
:Whereas this does:
I noticed this while using the rust-analyzer plugin for VS Code, version 0.2.232. Apologies if this is a duplicate issue or isn't sufficiently descriptive. I'm a happy user of rust-analyzer, but I don't have much knowledge about commonly used terminology so I may have missed something while searching the issue tracker.
The text was updated successfully, but these errors were encountered: