Skip to content
New issue

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

Renaming struct renames usage even if aliased #13498

Closed
Bben01 opened this issue Oct 27, 2022 · 0 comments · Fixed by #13549
Closed

Renaming struct renames usage even if aliased #13498

Bben01 opened this issue Oct 27, 2022 · 0 comments · Fixed by #13549
Labels
A-ide general IDE features C-bug Category: bug

Comments

@Bben01
Copy link
Contributor

Bben01 commented Oct 27, 2022

rust-analyzer version: 0.0.0 (d022e0e 2022-10-27) [compiled from master]

rustc version: 1.64.0 (a55dd71d5 2022-09-19)

relevant settings: Running on WSL

Code:

mod foo {
    pub struct Test; // <- Rename to Testing
}

use foo::Test as Tester;

fn main() {
    let t = Tester;
}

Result:

mod foo {
    pub struct Testing;
}

use foo::Testing as Tester;

fn main() {
    let t = Testing;  // <- Was also renamed
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-ide general IDE features C-bug Category: bug
Projects
None yet
2 participants