diff options
| author | John Clements <clements@racket-lang.org> | 2013-02-14 15:08:25 -0800 |
|---|---|---|
| committer | John Clements <clements@racket-lang.org> | 2013-02-21 16:18:22 -0800 |
| commit | 1869df30a66243f6f44e37a4f6c8b3d1f098dc94 (patch) | |
| tree | 518f0765315c0740e0ea02d2ce45692dd81c81b8 | |
| parent | 27b06777e6e2469cf4acee00b5702c5c7fb6d414 (diff) | |
| download | rust-1869df30a66243f6f44e37a4f6c8b3d1f098dc94.tar.gz rust-1869df30a66243f6f44e37a4f6c8b3d1f098dc94.zip | |
bump up limit on monomorphization
| -rw-r--r-- | src/librustc/middle/trans/monomorphize.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc/middle/trans/monomorphize.rs b/src/librustc/middle/trans/monomorphize.rs index e4ae6a00847..9be316b3022 100644 --- a/src/librustc/middle/trans/monomorphize.rs +++ b/src/librustc/middle/trans/monomorphize.rs @@ -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"); } |
