Closed
Description
A common use case would be #[doc = include_str!("../../README.md")]
. Such include calls currently do not appear to be resolved by rust-analyzer (hovering over the identifier doesn't show the documentation from the README).
It would be great if rust-analyzer could additionally resolve simple custom declarative macros in #[doc = ...]
, e.g:
macro_rules! link {
($label:literal, $path:literal) => {
concat!("[", $label, "](https://example.com/some/path", $path, ")")
};
}
#[doc = link!("foo", "/bar.html")]
struct Foo;