We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 27b0677 commit 1869df3Copy full SHA for 1869df3
src/librustc/middle/trans/monomorphize.rs
@@ -137,9 +137,9 @@ pub fn monomorphic_fn(ccx: @CrateContext,
137
138
let depth = option::get_or_default(ccx.monomorphizing.find(&fn_id), 0u);
139
// Random cut-off -- code that needs to instantiate the same function
140
- // recursively more than ten times can probably safely be assumed to be
+ // recursively more than thirty times can probably safely be assumed to be
141
// causing an infinite expansion.
142
- if depth > 10 {
+ if depth > 30 {
143
ccx.sess.span_fatal(
144
span, ~"overly deep expansion of inlined function");
145
}
0 commit comments