Rename should affect references in doc comments
Author: Dit05Created Dec 16, 2024Updated Sep 15, 2026
LabelsC-featureA-ide
/// See [`bar`].
fn foo() {}
/// I am bar.
fn bar() {}Hovering the reference to bar in the doc comment shows its description, as expected.
When I rename bar (its definition after the fn keyword), the reference to it in foo's doc comment is not changed, so it refers to a non-existent item now.
Would it be possible for renaming to affect doc comments as well?
I am using rust-analyzer with the default nvim-lspconfig configuration. I'm on rust-analyzer 1.83.0 (90b35a6 2024-11-26).
Source: rust-lang/rust-analyzer