Skip to main content

MAX_MACRO_RECURSION_DEPTH

Constant MAX_MACRO_RECURSION_DEPTH 

Source
pub(crate) const MAX_MACRO_RECURSION_DEPTH: usize = 100;
Expand description

Maximum macro recursion depth allowed during compilation.

This prevents infinite recursion in macro expansion or argument resolution, which can occur with circular macro calls or recursive argument references.