Skip to content

Commit 97bd446

Browse files
committed
---
yaml --- r: 44674 b: refs/heads/master c: 1869df3 h: refs/heads/master v: v3
1 parent 45b5362 commit 97bd446

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 27b06777e6e2469cf4acee00b5702c5c7fb6d414
2+
refs/heads/master: 1869df30a66243f6f44e37a4f6c8b3d1f098dc94
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: a6d9689399d091c3265f00434a69c551a61c28dc
55
refs/heads/try: ef355f6332f83371e4acf04fc4eb940ab41d78d3

trunk/src/librustc/middle/trans/monomorphize.rs

Lines changed: 2 additions & 2 deletions
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)