File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
compiler/rustc_mir_transform/src/inline Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -162,9 +162,9 @@ pub(crate) fn mir_callgraph_cyclic<'tcx>(
162
162
// grows as we recurse into the call graph. If we use the same recursion limit here and in the
163
163
// solver, the solver hits the limit first and emits a fatal error. But if we use a reduced
164
164
// limit, we will hit the limit first and give up on looking for inlining. And in any case,
165
- // the default recursion limits are quite generous for us. If we need to recurse 64 times
165
+ // the default recursion limits are quite generous for us. If we need to recurse 16 times
166
166
// into the call graph, we're probably not going to find any useful MIR inlining.
167
- let recursion_limit = tcx. recursion_limit ( ) / 2 ;
167
+ let recursion_limit = tcx. recursion_limit ( ) / 8 ;
168
168
let mut involved = FxHashSet :: default ( ) ;
169
169
let typing_env = ty:: TypingEnv :: post_analysis ( tcx, root) ;
170
170
let root_instance =
You can’t perform that action at this time.
0 commit comments