From 9631bf2e2526173b21070eb532c6cb590c5869b8 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Sat, 19 Jul 2014 01:29:57 -0700 Subject: [PATCH] rustc: Make `monitor` public. It's harder to run rustc correctly without it. --- src/librustc/driver/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustc/driver/mod.rs b/src/librustc/driver/mod.rs index e433c3df8644c..ee490ad43ebad 100644 --- a/src/librustc/driver/mod.rs +++ b/src/librustc/driver/mod.rs @@ -418,7 +418,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. -fn monitor(f: proc():Send) { +pub fn monitor(f: proc():Send) { // FIXME: This is a hack for newsched since it doesn't support split stacks. // rustc needs a lot of stack! When optimizations are disabled, it needs // even *more* stack than usual as well.