rustc_
data_
structures
1.84.0-dev
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.