bump up limit on monomorphization

This commit is contained in:
John Clements 2013-02-14 15:08:25 -08:00
parent 27b06777e6
commit 1869df30a6
1 changed files with 2 additions and 2 deletions

View File

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