We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2aa1c23 commit ccc1da2Copy full SHA for ccc1da2
compiler/rustc_mir_dataflow/src/value_analysis.rs
@@ -37,6 +37,7 @@ use std::fmt::{Debug, Formatter};
37
use std::ops::Range;
38
39
use rustc_data_structures::fx::FxHashMap;
40
+use rustc_data_structures::stack::ensure_sufficient_stack;
41
use rustc_index::bit_set::BitSet;
42
use rustc_index::{IndexSlice, IndexVec};
43
use rustc_middle::mir::visit::{MutatingUseContext, PlaceContext, Visitor};
@@ -774,7 +775,7 @@ impl Map {
774
775
// We manually iterate instead of using `children` as we need to mutate `self`.
776
let mut next_child = self.places[root].first_child;
777
while let Some(child) = next_child {
- self.cache_preorder_invoke(child);
778
+ ensure_sufficient_stack(|| self.cache_preorder_invoke(child));
779
next_child = self.places[child].next_sibling;
780
}
781
0 commit comments