Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions src/util/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -982,8 +982,37 @@ macro_rules! codegen_preamble {
}
}

/// Stub for rendering codegen documentation; used to break build dependency
/// between benches and zerocopy when re-blessing codegen tests.
#[allow(unused)]
#[cfg(not(doc))]
macro_rules! codegen_section {
(
header = $level:expr,
bench = $bench:expr,
format = $format:expr,
arity = $arity:literal,
$([
$($open:ident)?
@index $index:literal
@title $title:literal
@variant $variant:literal
]),*
) => {
""
};
(
header = $level:expr,
bench = $bench:expr,
format = $format:expr,
) => {
""
};
}

/// Generates the HTML for code generation documentation.
#[allow(unused)]
#[cfg(doc)]
macro_rules! codegen_section {
(
header = $level:expr,
Expand Down
Loading