Skip to main content

Module doc_attr_interleave

Module doc_attr_interleave 

Source
Expand description

MXL302: non-doc attribute interrupts a doc-comment stream on a #[miniextendr] item.

When #[cfg(...)], #[deprecated], or another non-doc attribute appears between two /// comment blocks on a #[miniextendr] item, trailing prose can be incorrectly concatenated into the preceding @examples / @details / @return block, producing corrupted .Rd output.

The macro now resets multiline-continuation context at the interruption point so the generated output is well-formed, but this warning guides users toward the idiomatic pattern: all /// comments placed above all non-doc attributes.

Functionsยง

check