rustdoc: move #[macro_use] extern crate
statements outside the generated main in doctests
#49174
Labels
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
E-mentor
Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
In #48106 i moved plain
extern crate some_crate
statements outside thefn main
that rustdoc generates, but i failed to take#[macro_use]
attributes into account. Since one of the common reasons people would add the manual crate import is to import its macros, this makes the feature less useful.(Mentoring instructions to follow...)
The text was updated successfully, but these errors were encountered: