about summary refs log tree commit diff
path: root/src/librustc_driver
diff options
context:
space:
mode:
authorJames Miller <james@aatch.net>2014-12-16 12:21:08 +1300
committerJames Miller <james@aatch.net>2014-12-18 15:28:33 +1300
commiteee209d9e2dde700a3958f3e539eff02b63f50bd (patch)
tree822db6930a4286a44cc638cd11c7919908752538 /src/librustc_driver
parent22a9f250b5e2de64c13c0f056aec13eb086ef79d (diff)
downloadrust-eee209d9e2dde700a3958f3e539eff02b63f50bd.tar.gz
rust-eee209d9e2dde700a3958f3e539eff02b63f50bd.zip
Only count nested returns when the outer return is reachable
This narrows the definition of nested returns such that only when the
outer return has a chance of being executed (due to the inner return
being conditional) do we mark the function as having nested returns.

Fixes #19684
Diffstat (limited to 'src/librustc_driver')
-rw-r--r--src/librustc_driver/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_driver/lib.rs b/src/librustc_driver/lib.rs
index b0f8b3bdbe7..82d3edfa5e0 100644
--- a/src/librustc_driver/lib.rs
+++ b/src/librustc_driver/lib.rs
@@ -472,7 +472,7 @@ pub fn list_metadata(sess: &Session, path: &Path,
 /// The diagnostic emitter yielded to the procedure should be used for reporting
 /// errors of the compiler.
 pub fn monitor<F:FnOnce()+Send>(f: F) {
-    static STACK_SIZE: uint = 32000000; // 32MB
+    static STACK_SIZE: uint = 8 * 1024 * 1024; // 8MB
 
     let (tx, rx) = channel();
     let w = io::ChanWriter::new(tx);