We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
use module_name::self
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
rust-analyzer version: rust-analyzer version: 0.3.1932-standalone (47a901b 2024-04-21)
rustc version: rustc 1.79.0-nightly (ef8b9dcf2 2024-04-24)
editor or extension: VScode v0.3.1932
code snippet to reproduce:
mod inner { pub struct X(); pub struct Y(); } mod z { use super::inner::{self, X}$0; fn f() { let y = inner::Y(); } }
becomes
mod inner { pub struct X(); pub struct Y(); } mod z { use super::inner:self; fn f() { let y = inner::Y(); } }
which is invalid. It should be use super::inner instead.
use super::inner
The text was updated successfully, but these errors were encountered:
e3e22c6
Successfully merging a pull request may close this issue.
rust-analyzer version: rust-analyzer version: 0.3.1932-standalone (47a901b 2024-04-21)
rustc version: rustc 1.79.0-nightly (ef8b9dcf2 2024-04-24)
editor or extension: VScode v0.3.1932
code snippet to reproduce:
becomes
which is invalid. It should be
use super::inner
instead.The text was updated successfully, but these errors were encountered: