rustc_
data_
structures
1.84.0-beta.4
(202008a1b 2024-12-07)
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.