rustc_
data_
structures
1.85.0-nightly
(14ee63a3c 2024-12-29)
Module stack
Module Items
Constants
Functions
In crate rustc_
data_
structures
rustc_data_structures
Module
stack
Copy item path
Source
Constants
§
RED_
ZONE
🔒
STACK_
PER_
RECURSION
🔒
Functions
§
ensure_
sufficient_
stack
Grows the stack on demand to prevent stack overflow. Call this in strategic locations to “break up” recursive calls. E.g. almost any call to
visit_expr
or equivalent can benefit from this.