rustc_
data_
structures
1.84.0-nightly
(86d69c705 2024-10-22)
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.