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
editor or extension: VScode - latest version (seems to be v0.3.2112)
relevant settings: None
repository link (if public, optional): Irrelevant
code snippet to reproduce:
// Any aliased import would really work.use std::io::ErrorasIoError;// Here (read after code snippet)fnmain() -> Result<(),IoError>{// Any usage of the alias (it's now clearly used).Ok(())}
Place your cursor at the marked spot in the code, click ctrl + . (or your keybind for code actions) and select "Remove all the unused imports".
The text was updated successfully, but these errors were encountered:
An extra note (again), seems like adding self does cause the wrong behaviour. This wouldn't work correctly:
use std::{self, io::ErrorasIoError};fnmain() -> Result<(),IoError>{Ok(())}
This is... odd? Importing anything but self doesn't cause the same (wrong) behaviour. Also, in the code above, it would just remove the whole use statement.
rust-analyzer version: 0.3.2112-standalone
rustc version: rustc 1.80.1 (3f5fd8dd4 2024-08-06)
editor or extension: VScode - latest version (seems to be
v0.3.2112
)relevant settings: None
repository link (if public, optional): Irrelevant
code snippet to reproduce:
Place your cursor at the marked spot in the code, click ctrl + . (or your keybind for code actions) and select "Remove all the unused imports".
The text was updated successfully, but these errors were encountered: