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

Inner comment links of module point out a different item with cargo doc, If the module have a outer comment. #19506

Open
Hmikihiro opened this issue Apr 2, 2025 · 0 comments · May be fixed by #19507
Labels
C-bug Category: bug

Comments

@Hmikihiro
Copy link
Contributor

rust-analyzer version: rust-analyzer version: 0.3.2353-standalone (37acea8 2025-03-23)

rustc version: rustc 1.85.1 (4eb161250 2025-03-15)

editor or extension: (eg. VSCode, Vim, Emacs, etc. For VSCode users, specify your extension version; for users of other editors, provide the distribution if applicable)

relevant settings: (eg. client settings, or environment variables like CARGO, RUSTC, RUSTUP_HOME or CARGO_HOME)

repository link (if public, optional): (eg. rust-analyzer)

code snippet to reproduce:

fn test_mod_hl_injection() {
check_highlighting(
r##"
//- /foo.rs

A [Struct] in inner comment is not link.
Image

It's need to remove a outer comments.
Image

Or adding a path to resolve from module parents.
Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant