Skip to content

Commit 91dcc15

Browse files
committed
docs: Hide private macros
The macros were previously shown in the docs, as they are exported. We still need them to be exported, but they shouldn't be shown.
1 parent fcfc13a commit 91dcc15

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

crates/libtest2/src/macros.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#[macro_export]
2+
#[doc(hidden)]
23
macro_rules! _main_parse {
34
(#[main] $(#[$meta:meta])* fn main $($item:tt)*) => {
45
static TESTS: $crate::_private::DistributedList<$crate::_private::DynCase> = $crate::_private::DistributedList::root();
@@ -14,6 +15,7 @@ macro_rules! _main_parse {
1415
}
1516

1617
#[macro_export]
18+
#[doc(hidden)]
1719
#[allow(clippy::crate_in_macro_def)] // accessing item defined by `_main_parse`/`_parse_ignore`/`_run_test`, and recursively calling the macro itself
1820
macro_rules! _test_parse {
1921
// Entry point
@@ -133,6 +135,7 @@ macro_rules! _test_parse {
133135
}
134136

135137
#[macro_export]
138+
#[doc(hidden)]
136139
macro_rules! _parse_ignore {
137140
($context:expr, [$reason:literal] $(,)?) => {
138141
$context.ignore_for($reason)?
@@ -144,6 +147,7 @@ macro_rules! _parse_ignore {
144147
}
145148

146149
#[macro_export]
150+
#[doc(hidden)]
147151
macro_rules! _run_test {
148152
($context:expr, [$expected:literal]) => {
149153
$crate::panic::assert_panic_contains(|| run($context), $expected)

0 commit comments

Comments
 (0)