Skip to content

r-a ignores #[doc=concat!(...)] lines #13337

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
digama0 opened this issue Oct 2, 2022 · 1 comment
Closed

r-a ignores #[doc=concat!(...)] lines #13337

digama0 opened this issue Oct 2, 2022 · 1 comment

Comments

@digama0
Copy link
Contributor

digama0 commented Oct 2, 2022

/// Line 1
#[doc = concat!("Line", " 2")]
/// Line 3
pub const X: u8 = 0;
const _: u8 = X;
           // ^ hover doc: Line 1 Line 3

Rust analyzer currently seems to ignore macros in #[doc=...], leading to broken docs for e.g. u32::saturating_add().

rust-analyzer version: 0.4.1225-standalone

rustc version: rustc 1.63.0 (4b91a6ea7 2022-08-08)

@HKalbasi
Copy link
Member

HKalbasi commented Oct 3, 2022

Duplicate of #8092

@digama0 digama0 closed this as completed Oct 3, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants