Skip to main content

MAX_ALIAS_HOPS

Constant MAX_ALIAS_HOPS 

Source
pub const MAX_ALIAS_HOPS: usize = 64;
Expand description

How many typedefs one chain may hop through before it is taken for a cycle.

The same number crate::MAX_VALUE_DEPTH and zerodds_ast_layout::MAX_DEPTH carry, and for the same reason: every hop is one frame of a recursive descent, and 64 sits far enough below the thread’s stack that the refusal arrives before the stack does.