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

Rename should affect references in doc comments #18703

Open
Dit05 opened this issue Dec 16, 2024 · 0 comments
Open

Rename should affect references in doc comments #18703

Dit05 opened this issue Dec 16, 2024 · 0 comments
Labels
A-ide general IDE features C-feature Category: feature request

Comments

@Dit05
Copy link

Dit05 commented Dec 16, 2024

/// 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).

@Dit05 Dit05 added the C-feature Category: feature request label Dec 16, 2024
@roife roife added the A-ide general IDE features label Dec 25, 2024
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-feature Category: feature request
Projects
None yet
Development

No branches or pull requests

2 participants