You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the following has a macro that generates documentation for A and for B. Rust-Anaylzer displays the documentation just fine for B, but shows no documentation for A.
just to confirm that the docs exist, here's the output of cargo expand (cargo doc also confirms a doc string exists for A)
#![feature(prelude_import)]#[prelude_import]use std::prelude::rust_2021::*;#[macro_use]externcrate std;///This is AconstA:u8 = 1u8;///This is BconstB:u8 = 1u8;fnmain(){A;B;}
but using rust-analyzer: Expand Macro Recursively shows that the 'A' doc has parentheses around it, which would be considered a syntax error
// Recursive expansion of tester! macro// =====================================#[doc = ("This is A")]constA:u8 = 1u8;
// Recursive expansion of tester! macro// =====================================#[doc = "This is B"]constB:u8 = 1u8;
rust-analyzer version: both the release version 0.3.1186-standalone (e8e598f64 2022-08-28) and pre-release version 0.4.1192-standalone (8ddb8b7e8 2022-09-03)
rustc version: both rustc 1.63.0 (4b91a6ea7 2022-08-08) and rustc 1.65.0-nightly (84f0c3f79 2022-09-03)
relevant settings: None
The text was updated successfully, but these errors were encountered:
i messed around with this some more and i found a similar example that may actually be a separate issue. rust-analyzer manages to generate the correct syntax for the doc string but still fails to show documentation for it
possibly related to #13075
the following has a macro that generates documentation for
A
and forB
. Rust-Anaylzer displays the documentation just fine forB
, but shows no documentation forA
.just to confirm that the docs exist, here's the output of
cargo expand
(cargo doc
also confirms a doc string exists for A)but using
rust-analyzer: Expand Macro Recursively
shows that the 'A' doc has parentheses around it, which would be considered a syntax errorrust-analyzer version: both the release version
0.3.1186-standalone (e8e598f64 2022-08-28)
and pre-release version0.4.1192-standalone (8ddb8b7e8 2022-09-03)
rustc version: both
rustc 1.63.0 (4b91a6ea7 2022-08-08)
andrustc 1.65.0-nightly (84f0c3f79 2022-09-03)
relevant settings: None
The text was updated successfully, but these errors were encountered: