Closed
Description
At present, doctests aren't run on macro_rules!
macros that are not annotated with #[macro_export]
. After #88019, it will become possible to fix this problem. However, doing so will cause tests to run that were skipped previously to run, which will likely cause test failures and may mess up people's CI. It might be helpful to provide some form of warning period first.
The relevant code is here:
rust/src/librustdoc/doctest.rs
Lines 1175 to 1184 in 5eacec9
Fixing this issue technically just requires removing that special case. However, things are complicated by the fact that this will cause people's tests to suddenly fail. I'm not really sure how we should handle that. @jyn514, do you have any ideas?
Metadata
Metadata
Assignees
Labels
Area: Documentation tests, run by rustdocArea: All kinds of macros (custom derive, macro_rules!, proc macros, ..)Category: This is a bug.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.Relevant to the rustdoc team, which will review and decide on the PR/issue.