Lines Matching defs:stack
155 /// This type defines its own destructor that uses constant stack space and
172 /// expression pattern string, and uses constant stack space and heap space
731 /// This implementation uses constant stack space and heap space proportional
1432 /// A custom `Drop` impl is used for `HirKind` such that it uses constant stack
1451 let mut stack = vec![mem::replace(self, Hir::empty())];
1452 while let Some(mut expr) = stack.pop() {
1460 stack.push(mem::replace(&mut x.hir, Hir::empty()));
1463 stack.push(mem::replace(&mut x.hir, Hir::empty()));
1466 stack.extend(x.drain(..));
1469 stack.extend(x.drain(..));
2253 // We use a thread with an explicit stack size to test that our destructor
2254 // for Hir can handle arbitrarily sized expressions in constant stack
2287 // We run our test on a thread with a small stack size so we can