smjonas / inc-rename.nvim

Incremental LSP renaming based on Neovim's command-preview feature.
MIT License
637 stars 8 forks source link

Rust - Inlined format args not renamed #39

Closed ConnorWay32 closed 1 year ago

ConnorWay32 commented 1 year ago

Renaming a variable with uninlined format args works as expected, however inlined format args are not affected.

let a = 5;
println!("{}", a);
println!("{a}");

becomes

let b = 5;
println!("{}", b);
println!("{a}");
smjonas commented 1 year ago

This is a rust-analyzer issue. Duplicate of https://github.com/rust-lang/rust-analyzer/issues/11296.