Closed
Description
Consider the following code:
#![allow(dead_code)]
fn main() {
/// Here, we initialize our thing to two.
///
/// ```
/// panic!("oh no what does rustdoc do here");
/// ```
let asdf = 2;
println!("hello {}!", asdf);
}
RLS and Racer would like to be able to show docs for asdf
on hover in the println!
statement. The markdown block in the example would successfully be desugared into a #[doc="..."]
attribute, so everything seems fine. However, the doctest in this won't be found or executed today.
Tagging @QuietMisdreavus, and @Ralith, who all weighed in on IRC.
This relates to racer-rust/racer#740.