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

Refactoring::Renaming - Reproducible bug that misses renaming #13881

Closed
PepeOnzima opened this issue Jan 2, 2023 · 1 comment
Closed

Refactoring::Renaming - Reproducible bug that misses renaming #13881

PepeOnzima opened this issue Jan 2, 2023 · 1 comment

Comments

@PepeOnzima
Copy link

PepeOnzima commented Jan 2, 2023

Consider the following code:

let secret_number= rand::thread_rng().gen_range(1..=10);
println!("The secret number is: {}", secret_number);
println!("The secret number is: {secret_number}");

if I hit F2 or rename in contextual menu, the extension will properly rename the second line, but not the 3rd.

The extension should rename all valid occurrences of the variable, including line 3 in this example.

@lnicola
Copy link
Member

lnicola commented Jan 2, 2023

Duplicate of #11296.

@lnicola lnicola closed this as completed Jan 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants