pub const CALL_DEPTH_LIMIT: usize = 1_000_000;Expand description
How many calls may stand at once. A recursion that never returns pushes a
frame per call, so an unbounded one grows the frame stack until the
operating system kills the process; the call past this many frames raises
call_depth_exceeded instead. The limit sits far above what a working
recursion needs, and the frames a run this deep stands on stay within a few
hundred megabytes even for a function that saves many registers per level.