Skip to content

Commit 1869df3

Browse files
committed
bump up limit on monomorphization
1 parent 27b0677 commit 1869df3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc/middle/trans/monomorphize.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,9 @@ pub fn monomorphic_fn(ccx: @CrateContext,
137137

138138
let depth = option::get_or_default(ccx.monomorphizing.find(&fn_id), 0u);
139139
// Random cut-off -- code that needs to instantiate the same function
140-
// recursively more than ten times can probably safely be assumed to be
140+
// recursively more than thirty times can probably safely be assumed to be
141141
// causing an infinite expansion.
142-
if depth > 10 {
142+
if depth > 30 {
143143
ccx.sess.span_fatal(
144144
span, ~"overly deep expansion of inlined function");
145145
}

0 commit comments

Comments
 (0)