rustc_
data_
structures
1.83.0-beta.6
(4ff8ff0ec 2024-11-16)
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.